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)

jamesdasher 11-17-2001 11:04 PM

here is a picture of a post with a prefix

LuBi 11-17-2001 11:17 PM

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?

Palmer ofShinra 11-17-2001 11:25 PM

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.

LuBi 11-18-2001 01:52 AM

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

LuBi 11-18-2001 08:26 AM

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! ;)

jamesdasher 11-18-2001 06:01 PM

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

LuBi 11-18-2001 09:08 PM

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.

apfeifer 11-19-2001 02:41 AM

If/when I release a new version I will add the search part in, no guarantees that there will be another version though.

LuBi 11-19-2001 06:38 AM

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!

KuraFire 12-06-2001 06:06 PM

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


All times are GMT. The time now is 01:07 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.01209 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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