vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Custom Post Prefixes (https://vborg.vbsupport.ru/showthread.php?t=32038)

apfeifer 11-01-2001 10:00 PM

Hack: Custom Post Prefixes
Version of vB: 2.2.0, although may work on earlier versions but not tested
Current Version: 1.0.0
Description: This hack allows you to add custom prefixes to post, like "Poll: " and "Sticky: ", only custom ones editable in the control panel.


All feedback is appreciated, and everything you need is in the attached file.

NOTE: If you downloaded this prior to 5:10 CT please re-download it, I fixed something in the directions.

Version 1.0.0 released, go here
for details.

silence 11-02-2001 09:21 PM

Thank you Andrew! :)

Hamma 11-02-2001 10:21 PM

Cool :D

RobAC 11-02-2001 10:28 PM

I can't seem to get this to work. I've done everything and received no errors. I've added a couple prefixes via the admin cp and tried a test post.....they don't show up in the post titles.

Dalius 11-02-2001 10:35 PM

Dalius Hack Reviews

I have been looking for something like this for a while, thanks alot man!

RATING: 9/10

Hamma 11-02-2001 11:07 PM

I like it but havent tried it :) Is it possible to make the custom ones stick?

apfeifer 11-02-2001 11:08 PM

Rob, are you sure you edited forumdisplay.php? If you forgot to do that I can see why it isn't working, but otherwise it should. Also, you can try looking in phpMyAdmin to see if the table "thread" has anything in the customprefix column in the posts you tried it on. Make sure you have edited all of the templates, too.

Hope that helps.

:cool:

apfeifer 11-02-2001 11:09 PM

Hamma, yes, you can still Stick threads if you use a custom prefix on them. In the install you can edit it (change a = to .=) to still display the "Sticky: ", otherwise it will be overwritten by the custom one. In the next version I am going to add some more options in the control panel for it, including an option to overwrite "Sticky: " and others, or put them on also.

:cool:

RobAC 11-03-2001 04:25 PM

Quote:

Originally posted by apfeifer
Rob, are you sure you edited forumdisplay.php? If you forgot to do that I can see why it isn't working, but otherwise it should. Also, you can try looking in phpMyAdmin to see if the table "thread" has anything in the customprefix column in the posts you tried it on. Make sure you have edited all of the templates, too.

Hope that helps.

:cool:

I've checked forumdisplay.php and templates. Everything is set the way it should be. I checked the database. The customprefix column is empty.

RobAC 11-03-2001 04:31 PM

The only change that I see to make in the newreply template is to add the : $posttype to the template. I have made the custom templates, etc. Has anyone else gotten this to work?


All times are GMT. The time now is 02:02 AM.

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.01250 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete