View Full Version : Prefix for closed threads
Scrub
05-12-2002, 10:00 PM
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.
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 ...
The databse query didn't work... I got this error:
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.
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
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
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?
Scrub
05-14-2002, 09:52 PM
In the options screen where the Sticky, Poll, and moved attributes. :). And where you also turn your board off. The vBulletin Options. :p.
c-pr0mpt
05-15-2002, 11:52 PM
I must have done something wrong because its not there for me. :(
However it does work nicely, so I thank you for the hack. :)
Scrub
05-16-2002, 01:06 AM
This is where it should be located. :eek:.
http://www.genuineone.com/prefix.gif
And this is what you added in the http://www.yoursite.com/forums/admin/setting.php under Forum Display Options.
http://www.genuineone.com/fdo.gif
c-pr0mpt
05-16-2002, 07:29 AM
Thanks bro. I had something in the Code to generate option. lol
Thanks again for the hack. :)
Stylez
05-20-2002, 04:37 AM
ooh this is good. they should throw this in vb 3 =p
gj
Smoothie
05-20-2002, 05:24 AM
/me thanks Billy Cowen!
dinozz
06-08-2002, 08:23 PM
work with version 2.2.5 ??
Scrub
06-09-2002, 10:34 PM
Yes. It should work with all versions ov vB if I am not mistaken. :)
Chris M
06-12-2002, 06:14 PM
* Chris M likes this Hack!!!
*installs*
Satan
Erwin
06-13-2002, 12:55 AM
Nice and simple. Good idea - thanks.
Sinecure
06-14-2002, 12:45 AM
The DB query didn't work, but I did it the second way and it worked. You might want to look into updating that DB query, as it doesn't work :(
Regardless, this is a cool hack, great job :)
Scrub
06-14-2002, 02:33 AM
Hmm. Will look into it. :o.
Edit: Just redid it and got the same query with nothing being changed. :(. So, I do not know why it won't work for you guys. :(
Sinecure
06-14-2002, 03:37 PM
I'll try this on my local board, and see if its something on my webserver.
X-Fan
06-15-2002, 11:35 AM
Very, very cool hack! Makes it a lot easier to see, at a glance, what threads are closed.
Thanks!!!
JohnWoo
06-15-2002, 12:18 PM
You must do that, so moderators could wright comments why it's closing the thread... And it must wright lower than the thread...
And when you push "close the thread" it must send to the marked page where is situated CLOSE button special field for comments.
Example here
https://vborg.vbsupport.ru/attachment.php?s=&postid=256489
Scrub
06-15-2002, 01:36 PM
What? :confused:
plattopus
06-15-2002, 02:23 PM
I think he means:
You should make it so that moderators can include a reason for closing the thread after they close it. It should be displayed under the post itself (near the signature I assume).
And I think the next part says that there should be a text box in the edit page to add the reason.
Don't quote me on that though!! hahaha
Scrub
06-15-2002, 02:27 PM
I think that is what he means. :D. But that wouldn't count as an add on though. ;). :p.
JohnWoo
06-15-2002, 07:55 PM
plattopus:
10x
My english is too bad... You right explain my need! :)
Well... how i can do this ?
Scrub
06-16-2002, 05:33 AM
Currently working on it. LOL. :)
Xelation
07-03-2002, 04:18 PM
the query didnt work for me, any ideas? I get this error when I add it
SQL-query :
$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) 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
Scrub
07-03-2002, 09:11 PM
The query does not work for some reason. I do not know what is causing it. USe the second option to do what the query is supposed to do. The one about where you have to head over to setting.php and add a field. :p
Automated
12-11-2002, 06:17 PM
worked well for me! Thanks
Umm.. am I missing something? Looks like the attachment is only an addon for this hack. Where is the original hack at?
SpeedStreet
12-23-2002, 05:33 PM
I'm not seeing it either....There is no query or anything here.
Looks like I will have to pull apart my code and do this myself.
vetrivex
01-08-2003, 10:38 PM
what do I put here.... Code to generate option:
It doesn't say in the hack thingy O_o
vetrivex
01-08-2003, 10:43 PM
nvm, but I do get the query error, and WHERE IS the original hack? this just seems an upgrade O_o
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.