miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

Displaying additional info for sticky topics

 
 
Page  Page 1 of 2:  1  2  Next »

Author andreasm
Partaker
#1 | Posted: 14 Jan 2006 10:10 
How can I make sticky threads in a different color?

e.g. in Red, so that important threads are seen better.

Author tentakel
Guest
#2 | Posted: 14 Jan 2006 22:31 
yes that would be great. or just put the word "Sticky" in front of the sticked topic-title. How to realise that?

Author _Marco
Partaker
#3 | Posted: 14 Jan 2006 22:49 
If your sticky topics need more attention, replace the topic_sticky.gif with some other image.
That's a simple, effective and non-core-destructive solution :-)

_Marco

Author tentakel
Guest
#4 | Posted: 15 Jan 2006 01:06 
i allready coded my modification:
h**p://ranger81.homeip.net/supportboard/index.php?action=vtopic&forum= 2

:)

Author andreasm
Partaker
#5 | Posted: 15 Jan 2006 14:24 
@tentakel: Great! How did you realized that?

Author Team
8-)
#6 | Posted: 16 Jan 2006 16:32 
You can use internal parseTopic() function for getting that out.

/* displaying additional info for sticky topics */
function parseTopic(){
if($GLOBALS['cols'][7]==1) $GLOBALS['stickyText']='<strong>Sticky:</strong>&nbsp;'; else $GLOBALS['stickyText']='';
}
/* --displaying additional info for sticky topics */

insert this code in bb_plugins.php, then paste {$stickyText} into templates/main_topics_cell.html (right after {$topic_reverse} for example)

Author andreasm
Partaker
#7 | Posted: 18 Jan 2006 15:02 
I added the code, but it doesn't work. Where must I call this function? What else must I do?

Author Team
8-)
#8 | Posted: 18 Jan 2006 15:22 
I've already described what to do and where to insert this function.

This 100% works with the latest RC5 release.

Author andreasm
Partaker
#9 | Posted: 18 Jan 2006 15:24 
Seems that this code doesn't work with my RC4 release.

Author Team
8-)
#10 | Posted: 18 Jan 2006 17:22 
Well - yes, parseTopic() is introduced in RC5. We recommend to upgrade your version.

Author Ivan
Advanced Member
#11 | Posted: 19 Jan 2006 17:04 
Team, despite I'm not programmer, can we replace, just like that, for example, the text "Sticky: " with a variable in the language pack and this way to have the word, symbol or whatever - in languages. Like this:

$l_sticky='what_you_like';

and:

/* displaying additional info for sticky topics */
function parseTopic(){
if($GLOBALS['cols'][7]==1) $GLOBALS['stickyText']='<strong>{$l_sticky}</strong>&nbsp;'; else $GLOBALS['stickyText']='';
}
/* --displaying additional info for sticky topics */

2. And also: how will be the same code for a closed topic?

3. And why don't you release this as a solution?

:)

Author Team
8-)
#12 | Posted: 20 Jan 2006 09:03 
The code for variable will be:

$GLOBALS['stickyText']="<strong>{$l_sticky}</strong>&nbsp;";

(quotes, not apostrophes)

2. Condition will be if($GLOBALS['cols'][5]==1)

3. That's too less imagination for calling it a solution.

Author Ivan
Advanced Member
#13 | Posted: 23 Jan 2006 08:39 
Thanks, Team :)

Author tom322
Active Member
#14 | Posted: 16 Jul 2006 00:06 
You can use internal parseTopic() function for getting that out.

/* displaying additional info for sticky topics */
function parseTopic(){
if($GLOBALS['cols'][7]==1) $GLOBALS['stickyText']='<strong>Sticky:</strong>&nbsp;'; else $GLOBALS['stickyText']='';
}
/* --displaying additional info for sticky topics */

insert this code in bb_plugins.php, then paste {$stickyText} into templates/main_topics_cell.html (right after {$topic_reverse} for example)


Hi!

I tested it (for closed topics -- $GLOBALS['cols'][5]==1, $closedText='Closed:';) and it works for main_topics_cell.html ! :)

However, when I paste {$closedText} in main_last_discuss_cell.html, like this:

{$topic_reverse}{$closedText}{$topic_title} {$pageNavCell}

, the {$closedText} text doesn't show up...

Would it be possible that it shows up in the latest discussions too? Thanks,

tom

Author Paul
Lead Developer 
#15 | Posted: 16 Jul 2006 18:26 
That will not work for latest discussions. Additional code changes in bb_func_ldisc.php are required.

Page  Page 1 of 2:  1  2  Next » 
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 Displaying additional info for sticky topics
 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑