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?

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

[high]* Chris M likes this Hack!!!
[/high]

*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/attachmen...&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

#01 12-17-2002 10:57 AM

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


All times are GMT. The time now is 04:44 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.01160 seconds
  • Memory Usage 1,774KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete