Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 10-31-2004, 07:22 PM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to display unique text at the top of a specific thread (not an announcement)

Here is a simple way to create a UNIQUE "news" or "topic sentence" display for any thread.

This is something like a "sticky post" RATHER THAN an "announcement".

Basically, it is just a matter of publicly displaying the "Moderator Notes" found in the "Edit Thread" tool. You or your designated moderators can change this at any time for the thread in question. You will, of course, sacrifice the ability to privately display these "notes" to moderators only but you gain a "news" or "topic sentence" capability. Your choice...

Here's how:

GO TO: CPadmin --> Styles&Templates --> Style Manager --> select "Edit templates" from the desired style (or "Default" style) --> scroll down to "Showthread templates" and click on the << >> link. Then select "Customize" for the SHOWTHREAD template (or "Edit" if you have already tinkered with this.)

Find this:
Code:
<!-- / controls above postbits -->
Just BELOW it add this bit of code:

Code:
$thread[notes]
That's it! Of course, you can play with the location, fonts, formatting, etc. The key element is the $thread[notes] variable. (I have mine centered and use <smallfont>)

SOME QUESTIONS:

1. Is there a way to make displaying the $thread[notes] field recognize vBcodes by changing something in a template rather than require a hack toa .PHP script)?

2. Is there a simple (non-hack) way to expand the number of allowable characters in the $thread[notes]to more than 250? (Can one change the allowable characters for the "notes" field in the "thread" table using phpmyadmin without messing things up? How?)

Thanks!
Reply With Quote
  #2  
Old 10-31-2004, 09:08 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you ought to have a separate release and request threads? And have you got a screen shot? Thx
Reply With Quote
  #3  
Old 10-31-2004, 10:36 PM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have any clues on how I could make $thread[notes] recognize vBBcodes?

It is either being filtered or is somehow "out of the loop" for recognizing them for some reason. (It also does not recognize HTML.)
Reply With Quote
  #4  
Old 11-01-2004, 08:52 PM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wordforge.net
Maybe you ought to have a separate release and request threads? And have you got a screen shot? Thx
I don't know what you mean. Please explain a bit more. Thanks

Any ideas on how to make the $thread[notes] field accept vBBcode and/or HTML, anyone?

Thanks
Reply With Quote
  #5  
Old 11-02-2004, 01:21 PM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the $thread[notes] field could be made to accept vBBcodes, you could use this to display a banner which is specifically related to a particular thread.

Another thing you could do with this is provide an index of informational links directly related to the thread content. For example, if you have a thread on, say, The Matrix movie, you could display links to corresponding webpages on IMDB.com, review sites, Amazon.com, Google searches, etc. Obviously, you could also do that in a post, but having this information always appear at the top of the thread would give it much more proiminence.

Also, note that If you have a long thread over several pages, this could be displayed at the top of EACH page of the thread.

So, how could the $thread[notes] field be made to accept vBBcodes?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03914 seconds
  • Memory Usage 2,193KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete