miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

'Very Hot' Topic icon code

Author Anonymous
Guest
#1 | Posted: 26 Aug 2005 14:33 
will this work in 2.0?

I will show this on miniBB 1.4 example, which we release within this week (you can download RC):

1) Create some icon for hot topics, name it "topic_veryhot.gif" and place it into /img/ directory

2) Add to setup_options.php:

$veryhotcount=3; // it will define how much topic to define "hot"

3) Open bb_func_vtopic.php file, find this snippet:

if ($cols[6]==1) $tpcIcon='locked';
elseif ($numReplies<=0) $tpcIcon = 'empty';
elseif ($numReplies>=$viewmaxreplys) $tpcIcon = 'hot';
else $tpcIcon = 'default';

change it to this:

if ($cols[6]==1) $tpcIcon='locked';
elseif ($numReplies<=0) $tpcIcon = 'empty';
elseif ($numReplies>=$veryhotcount) $tpcIcon = 'veryhot';
elseif ($numReplies>=$viewmaxreplys) $tpcIcon = 'hot';
else $tpcIcon = 'default';


Author Team
8-)
#2 | Posted: 26 Aug 2005 14:41 
It should.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / 'Very Hot' Topic icon code Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB