The Arcive of vBulletin Modifications Site. |
|
need help with this code Details »»
|
|||||||||||||||||||||||||
i have problem with below code:
i put this code in phpincloud template: Code:
if ($thread['replycount'] >10 and $thread['views'] >100){
$hot='HotTopic';}
so~~does this code wrong?? thankz~ :bunny: Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
because $thread is never defined in phpinclude or before.
you have to put that code into forumdiplay.php into the while loop |
|
#3
|
||||
|
||||
|
so which place should i put it in that file??
or i can put that in everywhere in forumdiplay.php ?? |
|
#4
|
||||
|
||||
|
after this part:
PHP Code:
|
|
#5
|
||||
|
||||
|
Quote:
now it show up ............. ![]() ![]() ![]()
|
|
#6
|
||||
|
||||
![]() you're welcome
|
|
#7
|
||||
|
||||
|
Quote:
about above code if i want to add attach file download times variable what name is that?$thread[counter]??or...... thankz again~~ |
|
#8
|
||||
|
||||
|
nope, just the ammount of announcements is saved in the threadtable, not the ammount of downloads.
i wouldn't do this, because you have to add a query per thread in aerage then... |
|
#9
|
||||
|
||||
|
Quote:
Xenon thankz again!! ![]() ![]()
|
|
#10
|
||||
|
||||
|
i use this code and it work well but i want it more different
PHP Code:
if the thread starter online show XXXif offline show ZZZ how can i do that?? thankz.............. |
![]() |
|
|