Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Links Block
Links Block
Goto page 1, 2  Next

13 Replies / 3649 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Blocks

View previous topic :: View next topic


ElGuappo
Reputation: 5.4 Add RepSubtract Rep
Local time: 3:12 AM


Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

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

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: 856.9 Add RepSubtract Rep
votes: 10
Local time: 3:12 AM

usa.gif

Fire In The Hole
Fire In The Hole

0.16 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 08 May 2009
Posts: 275
Points: 2038 

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: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 3:12 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.37 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

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

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

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.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


ElGuappo
Reputation: 5.4 Add RepSubtract Rep
Local time: 3:12 AM


Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

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

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: 856.9 Add RepSubtract Rep
votes: 10
Local time: 3:12 AM

usa.gif

Fire In The Hole
Fire In The Hole

0.16 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 08 May 2009
Posts: 275
Points: 2038 

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 Add RepSubtract Rep
Local time: 3:12 AM


Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

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

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 Add RepSubtract Rep
Local time: 6:12 PM
Location: Sydney, NSW
australia.gif

Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

Joined: Apr 06, 2008
Last Visit: 22 Jan 2009
Posts: 46
Points: 559 

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: 93.7 Add RepSubtract Rep
votes: 37
Local time: 9:12 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3672
Points: 191886 

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

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

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-mail Reply with quote

ElGuappo
Reputation: 5.4 Add RepSubtract Rep
Local time: 3:12 AM


Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

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

Post Links Block Posted: Mon May 12, 2008 10:35 am

That did the trick very nicely! Thanks Ped.

www.genesisgamingclan.com if anyone wants to do a drive-by.

Thanks for all your help here, folks. Most appreciated.
 

 
View user's profileSend private message Reply with quote


Digitalis
Reputation: 9 Add RepSubtract Rep
Local time: 6:12 PM
Location: Sydney, NSW
australia.gif

Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

Joined: Apr 06, 2008
Last Visit: 22 Jan 2009
Posts: 46
Points: 559 

Post Links Block Posted: Mon May 12, 2008 11:16 am

Looks like really stretched on mine :P

But looks awesome apart form that :p
 

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

ElGuappo
Reputation: 5.4 Add RepSubtract Rep
Local time: 3:12 AM


Armour Whore
Armour Whore

0.03 posts per day
Medals: 0

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

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: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 3:12 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.37 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

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

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

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
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Blocks


 
13 Replies / 3649 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum