The Arcive of vBulletin Modifications Site. |
|
Need some help on this, please! Details »»
|
|||||||||||||||||||||||||
I am writing a Gallery script using vbulletins templates and want to list the pics in rows of 3 across. Here is a snippet of my code but everything I tried didn't work.
PHP Code:
Here is the gallery_bits template: Code:
<td> <normalfont><a href=photo.php?id=$picid><img width="150" border="0" height="150" src="photos/$url" alt="$title"></a> <br><center>$title</center></normalfont> </td> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
^Bump^
I've updated it above with what I have right now. |
|
#3
|
||||
|
||||
|
Try this:
PHP Code:
|
|
#4
|
|||
|
|||
|
Thx...I'll give it a shot. Thx for the response!
|
|
#5
|
|||
|
|||
|
It works on the first row but every subsequent row there is only 1 pic.... click here
|
|
#6
|
||||
|
||||
|
Play with this line:
PHP Code:
|
|
#7
|
|||
|
|||
|
I got it to work but my problem is with the templates and displaying the pics properly...I can't wait till vb3 where we can use conditionals in the templates....
|
|
#8
|
|||
|
|||
|
Here is the code I am now using and it works except I can't get it to work with the templates....
PHP Code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>$bbtitle Photo Album</title> $headinclude </head> <body> $header <table cellpadding="0" cellspacing="0" border="0" width="95%" align="center"><tr><td> <table cellpadding="2" width="100%"> <tr bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif"> <td width="100%" align="center" height="28"> <H3>$bbtitle Photo Album</H3> </td> </tr> <tr> <td> <table border="0" cellspacing="1" cellpadding="3"width="100%" align="center"> $gallerybits </table> </td> </tr> </table> </td> </tr> </table> $footer </body> </html> Code:
<td><normalfont><a href=photo.php?id=$picid><img width="150" border="0" height="150" src="photos/$url" alt="$title"></a><br><center>$title</center></normalfont></td> |
|
#9
|
||||
|
||||
|
You are saying in the code (without the template) this:
PHP Code:
PHP Code:
|
|
#10
|
|||
|
|||
|
The <tr> is there in the line:
PHP Code:
|
![]() |
|
|