|
#11
|
||||
|
||||
i did what you said but this changes only the background of the images as you can see in the snapshot i took...the part above the pictures as you can see is still undefined...
|
#12
|
||||
|
||||
Chances are is you will still have some undefined <table> or <td> or something.
At the top of your code you have a undefined table in the marque section. Code:
$news = $db->sql_query("SELECT id, name, added, post_img FROM ".$db_prefix."_torrents WHERE banned = 'no' AND visible='yes' ORDER BY ".$db_prefix."_torrents.id DESC LIMIT 5")or sqlerr(__FILE__, __LINE__); if ($db->sql_numrows($news) > 0) { print("<marquee scrollamount=\"1\" onmouseover=\"this.scrollAmount=0\" onmouseout=\"this.scrollAmount=1\" scrolldelay=\"0\" direction=\"right\"> <table align=center cellpadding=0 cellspacing=0 width=100% border=0>\n<tr>\n"); while ($row2 = $db->sql_fetchrow($news)) { Code:
OpenTable("Τελευταίες Προσθήκες:"); You can see by the example I posted in the previous page. Of what to look for and how to correct the problem |
#13
|
||||
|
||||
I made 4 identical latestimages_block.php and numbered them latestimages1_block.php etc...[i altered the colors of eack one]then from index.php i called each one for each theme i use at my site! PROBLEM SOLVED!
I use my brain, even my coding skill are very limited ! ! example: at index.php Code:
if($theme == 'xxxxxxxxxxxxxx')include("blocks/latestimagesX_block.php"); |
#14
|
||||
|
||||
That is one way to solve it.
And well done with limited coding skills. The problem is every time you add a new theme. You will have to code another latestimages_block.php to match the theme. And the same goes for any other file you add, where you have the same issues. Far easier to define all the classes in your latestimages_block.php once. Then create a section in your CSS theme file Example Code:
/*==Start All Defines For latestimages_block.php==*/ Then put all the define code here /*==Finish All Defines For latestimages_block.php==*/ And just alter the colors to suit the theme. Saves your root folder from been filled with loads of identical files. |
The Following 2 Users Say Thank You to fireknight For This Useful Post: | ||
Giorgatzelos (24th July 2013),
romano1 (31st July 2013)
|
#15
|
||||
|
||||
this is my final latest_images.php
PHP Code:
how can i make it show all torrents [dead and seeding]? |
#16
|
||||
|
||||
remove
AND visible='yes' from the query.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
The Following User Says Thank You to joeroberts For This Useful Post: | ||
Giorgatzelos (21st August 2013)
|
#17
|
||||
|
||||
To help with your coding.
A couple of tags you are using <center> <font> Quote:
http://www.w3schools.com/tags/default.asp |
The Following User Says Thank You to fireknight For This Useful Post: | ||
Giorgatzelos (21st August 2013)
|
Tags |
latestimagesphp |
|
|