Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by apfeifer apfeifer is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-01-2001 Last Update: Never Installs: 28
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:

Comments
  #72  
Old 11-17-2001, 11:04 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is a picture of a post with a prefix
Reply With Quote
  #73  
Old 11-17-2001, 11:17 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANK YOU SO MUCH!?! I've got to do a few things ot get my forums back in order but now I'm installing this hack. Happy to see someone got it working, was it difficlut or were there any surprises during install? Also, who can use the prefixes? Admin & Mods or everyone who can post?
Reply With Quote
  #74  
Old 11-17-2001, 11:25 PM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by humble
Nevermind!!!!

Code:
INSERT INTO setting VALUES ( '171'  .......
&
INSERT INTO setting VALUES ( '172' ........
[quick questions]

a: can these code hack instructions be modified to add those values in the next available line entry?
Yes. See below

Code:
INSERT INTO setting VALUES ( 'NULL'  .......
&
INSERT INTO setting VALUES ( 'NULL' ........
That field is set to Auto-Increment. When you insert a new row, and set that value to NULL, it automatically sets it to the next higher number.

And no, if you did it with the 999 solution, it wouldn't create all the rows in between.
Reply With Quote
  #75  
Old 11-18-2001, 01:52 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the erroer I get, how can I fix it?

Database error in vBulletin Control Panel 2.2.1:

Invalid SQL: INSERT INTO setting VALUES ( 'NULL', '32', 'Prefixes', 'customposttypes', '', 'These will be displayed like \"Poll: \" and \"Sticky: \" but are custom. Enter each word you want with a space between it, like: \"Announcement Important Read\". Don\'t use commas. If you wish to use a space in the Post Prefix, place a _ where you want it to be.', '', '1');

mysql error: You have an error in your SQL syntax near ';

' at line 1

mysql error number: 1064
Reply With Quote
  #76  
Old 11-18-2001, 08:26 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I must say a few things, this hack is very powerful. I really needed this for my forum. Another feature I would like to see would be a way to intergrate all the prefixes into the search. Maybe search only for certain prefixes. Anyways the hack was extremely hard for this script kiddie to install. All my problem were with the DB queries. Syntax error this syntax error that. If it wasn't for the help of Bane from talkloud.net I would have never got my forums back up. The hack works now, I look forward to better english and maybe some updates on the hack with great new features.

Sorry no SS but check my site to see the results!
Reply With Quote
  #77  
Old 11-18-2001, 06:01 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, you had so much trouble with the hack LuBi...I have been so busy lately that I wasn't able to help you out right now, sorry about that. Glad you got it working!

James
Reply With Quote
  #78  
Old 11-18-2001, 09:08 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well thanks for making it, members of the only forum similar to mine have been screaming for this. So that everyone knows that it is DYNO, MOVIE, ATTN, whatever else they can come up with. Thank you for making the hack, I could have never figured out something like this. The funny thing was bane didn't get the syntax errors I did yet that NULL thing as mentioned above does need to be applied really if any other hacks exist. Thanks again!

But a search feature in the next script would be great, or arrange by prefix or something. Ex. All members could search for prefix MOVIE: and they would be listed however the user selects, date, member, whatever... If it can be done that would be great.
Reply With Quote
  #79  
Old 11-19-2001, 02:41 AM
apfeifer apfeifer is offline
 
Join Date: Oct 2001
Location: Sioux Falls, South Dakota, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If/when I release a new version I will add the search part in, no guarantees that there will be another version though.
Reply With Quote
  #80  
Old 11-19-2001, 06:38 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by apfeifer
If/when I release a new version I will add the search part in, no guarantees that there will be another version though.
Gotcha, but if ya do it'd be great.. and thanks again this hack works wonders!
Reply With Quote
  #81  
Old 12-06-2001, 06:06 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so like, this hack STILL doesn't allow you to specify the forum(s) on which the prefix option appears (in the newthread page) right?


Think that if you would add the prefix part into the Threadedit templates, we can turn existing (empty, prefix-less) threads into threads with a prefix? Or will it work with the edit option (weird though, cos what would happen if you edit post #10 in a thread??).

Any enlightenment concerning these two issues would be great

I think the forum-specific part is easily done, I'll go try that tonight and let you all know if it worked.
Reply With Quote
Reply


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:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04436 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete