Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

www.clan-themes.co.uk :: View topic - Links Block

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Links Block
Goto page 1, 2  Next

13 Replies / 1559 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » Blocks

View previous topic :: View next topic


ElGuappo
Reputation: 5.4
Local time: 5:30 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Apr 19, 2008
Last Visit: 03 Aug 2008
Posts: 40
Points: 431 

Post Links Block Posted: Sun May 11, 2008 9:56 am   

I don't know what else to call it.

Have a look here... http://www.theperfectgeneral.com/index.php

I love the center block showing the rows and columns of icons for each game. What I would like, but am clueless as to how to do, is to have two rows of 3 icons, each one of which links to somewhere. I just can't find out how to set the center block so that it displays a line of three icons.

Any help, even to a 'this is how you do it, retard' guide, would be most appreciated.
 

 
View user's profileSend private message Reply with quote

Bayler
Reputation: 751.4
votes: 9
Local time: 5:30 PM

usa.gif

Status: Offline
0.69 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 02 Dec 2008
Posts: 276
Points: 6725 

Post Links Block Posted: Sun May 11, 2008 11:20 am   

HTML is the easiest way:

Code:

<table border="0">
    <tr>
        <td>Icon1</td>
        <td>Icon2</td>
        <td>Icon3</td>
    </tr>
    <tr>
        <td>Icon4</td>
        <td>Icon5</td>
        <td>Icon6</td>
    </tr>
    <tr>
        <td>Icon7</td>
        <td>Icon8</td>
        <td>Icon9</td>
    </tr>
</table>


The more Table Rows you want to add, just keep repeating !
 

You will not recieve help from me if i have to go digging for your CMS information and version, If i have to take the time to play 21 questions, then you can take the time to google! No Copyright, no support either!  
View user's profileSend private messageMSN Messenger Reply with quote

DreAdeDcoRpSE
Reputation: 738.9
votes: 5
Local time: 5:30 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.13 posts per day
Medals: 2 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 04 Dec 2008
Posts: 497
Points: 11478 

Post Links Block Posted: Sun May 11, 2008 1:51 pm   

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0

But to put it in like a block format, you can do something like

Code:
<?php
if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php"); }
   

$content = '<table border="0" width="100%" align="center" cellpadding="1" cellspacing="1" height="">
               <tr>
                    <td>Icon1</td>
                    <td>Icon2</td>
                    <td>Icon3</td>
              </tr>
              <tr>
                    <td>Icon4</td>
                    <td>Icon5</td>
                    <td>Icon6</td>
              </tr>
              <tr>
                    <td>Icon7</td>
                    <td>Icon8</td>
                    <td>Icon9</td>
             </tr>
     </table>';

?>


Which is putting it just like Bayler said. And from there you would just have to name the block once saved to something like, block-CenterTables.php . That is just an example, but you do need the block- to start off the name.
 

  • Donations for custom work is appreciated at [HS]
 
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger Reply with quote




ElGuappo
Reputation: 5.4
Local time: 5:30 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Apr 19, 2008
Last Visit: 03 Aug 2008
Posts: 40
Points: 431 

Post Links Block Posted: Sun May 11, 2008 11:52 pm   

Many, many thanks guys. That looks like it will do the job perfectly.

I appreciate you both taking the time to reply! Pint

One more thing; how do I put a space between each row of icons?

Last edited by ElGuappo on Mon May 12, 2008 12:23 am; edited 1 time in total
 

 
View user's profileSend private message Reply with quote

Bayler
Reputation: 751.4
votes: 9
Local time: 5:30 PM

usa.gif

Status: Offline
0.69 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 02 Dec 2008
Posts: 276
Points: 6725 

Post Links Block Posted: Mon May 12, 2008 12:03 am   

assign the align="center" to each <td tag to allign the content of each cell...

to align a table you can either <table align="center" or use <div align=center"> to align the entire content...

Example:

Code:

<div align="center"><center>

<table border="0">
    <tr>
        <td align="center">Icon1</td>
        <td align="center">Icon2</td>
        <td align="center">Icon3</td>
    </tr>
    <tr>
        <td align="center">Icon4</td>
        <td align="center">Icon5</td>
        <td align="center">Icon6</td>
    </tr>
    <tr>
        <td align="center">Icon7</td>
        <td align="center">Icon8</td>
        <td align="center">Icon9</td>
    </tr>
</table>
</center></div>


also, as a foot note, you can add 'Join Game server' and 'Join Voice Server' href links through those images...
make sure you set border="0" to your image src links if your going to hyper link ....most browsers auto assign a border if hyperlinked..so you have to manually tell it not to!
 

 
View user's profileSend private messageMSN Messenger Reply with quote

ElGuappo
Reputation: 5.4
Local time: 5:30 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Apr 19, 2008
Last Visit: 03 Aug 2008
Posts: 40
Points: 431 

Post Links Block Posted: Mon May 12, 2008 3:25 am   

I think you replied to my 'how do I centralise everything' question which, idiot that I am, I managed to figure out shortly after I asked it. Then I edited my question to 'how do I put a space between the rows?' which I still haven't been able to get my head round.

I was thinking of an nbsp but 'thinking' about it and 'making it work' are clearly two different things.

I think that's the last thing I need to have answered. Any help much appreciated as always!
 

 
View user's profileSend private message Reply with quote




Digitalis
Reputation: 9.1
Local time: 8:30 AM
Location: Sydney, NSW
australia.gif

Status: Offline
0.19 posts per day
Medals: 0

Joined: Apr 06, 2008
Last Visit: 01 Dec 2008
Posts: 47
Points: 533 

Post Links Block Posted: Mon May 12, 2008 5:42 am   

Dude, that is a fucking sweet site (s'cuse the french)

Umm, when you say gap, do you mean like, a line down or across ?

HTML for down a line is like

<br> or something. (hope it helped :) )
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

Ped
Reputation: 337.1
votes: 17
Local time: 11:30 PM
Location: Great British Empire
uk.gif

Status: Offline
2.35 posts per day
Medals: 2 (View more...)
Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 04 Dec 2008
Posts: 1766
Points: 15787 

Post Links Block Posted: Mon May 12, 2008 8:33 am   

Just add some more cellpading and cellspacing, in the table statement like below

Code:
<table border="0" width="100%" align="center" cellpadding="4" cellspacing="4">


I also went to the trouble of replacing the text with images and links for anyone intreasted and centering the cells.

Code:
$content = '<table border="0" width="100%" align="center" cellpadding="4" cellspacing="4">
               <tr>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
              </tr>
              <tr>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
              </tr>
              <tr>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
             </tr>
     </table>';

?>
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

ElGuappo
Reputation: 5.4
Local time: 5:30 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Apr 19, 2008
Last Visit: 03 Aug 2008
Posts: 40
Points: 431 

View user's profileSend private message Reply with quote




Digitalis
Reputation: 9.1
Local time: 8:30 AM
Location: Sydney, NSW
australia.gif

Status: Offline
0.19 posts per day
Medals: 0

Joined: Apr 06, 2008
Last Visit: 01 Dec 2008
Posts: 47
Points: 533 

View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

ElGuappo
Reputation: 5.4
Local time: 5:30 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Apr 19, 2008
Last Visit: 03 Aug 2008
Posts: 40
Points: 431 

Post Links Block Posted: Mon May 12, 2008 2:02 pm   

Don't suppose you could post a screenie so I could see what you mean, could you?

It looks fine and dandy for me and if it doesn't for you I'd like to know why.

Thanks for the feedback either way, though; much appreciated.
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 738.9
votes: 5
Local time: 5:30 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.13 posts per day
Medals: 2 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 04 Dec 2008
Posts: 497
Points: 11478 

Post Links Block Posted: Tue May 13, 2008 12:46 am   

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0

I do suggest one other thing on top of what Ped posted. Its adding into the Link coding to have it open in a different page.

target="_blank" is the addition to the link, so all and all it will look something like this as a finish block.

Code:
<?php
if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php"); }
   

$content = '<table border="0" width="100%" align="center" cellpadding="4" cellspacing="4">
               <tr>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
              </tr>
              <tr>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
              </tr>
              <tr>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
                    <td align="center"><a href="YOUR LINK HERE" target="_blank"><img border="0" src="LINK TO YOUR IMAGE HERE" /></a></td>
             </tr>
     </table>';

?>



Just don't forget that you need to name it like block-WHATEVER.php