miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · 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:10Reply Quote
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:31Reply Quote
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:49Reply Quote
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:06Reply Quote
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:24Reply Quote
@tentakel: Great! How did you realized that?

Author Team
8-)
#6 · Posted: 16 Jan 2006 16:32Reply Quote
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:02Reply Quote
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:22Reply Quote
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:24Reply Quote
Seems that this code doesn't work with my RC4 release.

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

Author Ivan
Advanced Member
#11 · Posted: 19 Jan 2006 17:04Reply Quote
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:03Reply Quote
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:39Reply Quote
Thanks, Team :)

Author tom322
Active Member
#14 · Posted: 16 Jul 2006 00:06Reply Quote
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 Lead Developer
#15 · Posted: 16 Jul 2006 18:26Reply Quote
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

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
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
Check out the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.