miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | 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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑