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)
-   -   Prefix for closed threads (https://vborg.vbsupport.ru/showthread.php?t=38583)

Scrub 05-12-2002 10:00 PM

Prefix for closed threads
 
As requested by some peeps. :eek. Here it is. After several hours of b***hing at the PHP. :D.


Screenie posted two posts below. ;)

Note: I did not know what to search for to see if this hack has already been made. But if it has, then get rid of this thread. :D. Also, if you can make this better, release it as your own for all I care. :).

Edit: Added the file itself. But with a new addon! :). You can now change the values in the Admin CP Options.

DWZ 05-13-2002 12:10 PM

Nice hack, but someone may want to rename this thread to something like "Prefix for closed threads"

as I had no idea what this hack was when I read the thread :)

Scrub 05-13-2002 12:21 PM

Screenie here. :p. And I added a new feature to it, DWZ. :D.

Dean C 05-13-2002 06:15 PM

ABSOLUTELY FANTASTIC HACK!!!

this shud be included in vbulletin itself ...

Ian 05-14-2002 01:22 AM

The databse query didn't work... I got this error:
Quote:

SQL-query :


$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,9,'Prefix for closed threads.','closethreadprefix','Closed Thread: ','Prefix to append to the beginning of closed thread titles. (You may use HTML)','','11')")

MySQL said:


You have an error in your SQL syntax near '$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,val' at line 1
I'm going to try the other method right now.

Smoothie 05-14-2002 02:16 AM

Good hack! Installed without a hitch.

RDX1 05-14-2002 03:02 AM

yeah, i suggested this at vb.com - and the more then one prefix hack will work also

Marshalus 05-14-2002 03:05 AM

Very nice! *installing now*

Scrub 05-14-2002 06:55 AM

Quote:

Originally posted by Ian
The databse query didn't work... I got this error:

I'm going to try the other method right now.

:eek:. I do not know anything about querys and what would make this happen. :(. We need someone with knowledge to help out here. :D. So, did the other way work for you? :o

Quote:

Originally posted by NerdNations
yeah, i suggested this at vb.com - and the more then one prefix hack will work also
What? :confused:

c-pr0mpt 05-14-2002 06:59 PM

Where do I edit this in the admin cp?


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