vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How to display unique text at the top of a specific thread (not an announcement) (https://vborg.vbsupport.ru/showthread.php?t=71218)

ataraxia 10-31-2004 07:22 PM

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!

Borgs8472 10-31-2004 09:08 PM

Maybe you ought to have a separate release and request threads? And have you got a screen shot? Thx :)

ataraxia 10-31-2004 10:36 PM

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.)

ataraxia 11-01-2004 08:52 PM

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

ataraxia 11-02-2004 01:21 PM

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?


All times are GMT. The time now is 12:28 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.00969 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete