PDA

View Full Version : Bump without Post (Moderators-Only Version)


tubedogg
29 Mar 2001, 12:49
This hack allows your moderators to bump a thread without posting in it. This is different from making a thread sticky in two ways: First, this will not append the thread title with "Sticky", and second, the thread will only be at the top of the thread list until another post is made, at which point it becomes second, so this is somewhat temporary (moreso on larger boards ;)).

If you wish, there is also a version in which you can allow any registered user, and/or the first, last, or any poster of any given thread to bump it. That is located here (http://www.vbulletin.com/forum/showthread.php?threadid=12571).

There is no demo or screenshot, but trust me, it works and looks lovely. :D

For version: v2 beta 3 (may also work on beta 1 and beta 2, but it is untested on those versions).

Files needed: postingsadd.txt, redirect_bump_template.txt (see attached zip file).

Files to edit: postingsadd.txt, postings.php, showthread.php (see instructions below).

Templates to edit/create: showthread, redirect_bump (see instructions below).

Instructions
1] Unzip the file posttingsadd.txt and redirect_bump_template.txt to your hard drive.
2] Open postings.php in an ASCII text editor, such as Notepad (Windows), SimpleText (Mac), EditPlus, UltraEdit, TextPad, etc. (DO NOT use WYSIWYG HTML editors such as FrontPage, HotDog, DreamWeaver, etc. They will in all likelyhood screw up the file! I will not be able to support you if you edit the file in one of these programs.)
3] Right below
require("./global.php");
insert the contents of posttingsadd.txt.
4] Create a new template called redirect_bump and add the contents of redirect_bump_template.txt.
5] In the showthread template, find
Stick / Unstick</a></smallfont>
and replace it with
Stick / Unstick</a><br>
<a href="postings.php?s=$session[sessionhash]&action=bump&threadid=$threadid">Bump</a></smallfont>

That's it.

Instructions are also included in the zip file (bump.txt).

FEEDBACK WANTED! :D Likes/dislikes/modification requests all gladly accepted.

29 Mar 2001, 13:03
If you wish, there is also a version in which you can allow any registered user, the first poster, or the last poster of any given thread to bump it. That is located here.


The link doesn't work. :) <http:///>

Suggestion:
It'd be good if it can be enabled / disabled using the control panel.

29 Mar 2001, 13:06
Yeah sorry about the link :D I was in the process of posting the other one and didn't have the link yet. hehe

As for the suggestion, I think that would take someone with a bit more knowledge than me. ;)

30 Mar 2001, 03:54
Why would you need to have it on/off?

Don't you trust your mods enough to know they won't just go bumping threads.


Thanks alot for making these 2 hacks, now I just need to decide which to use, the mod or the user one.

Cygnus
14 Apr 2001, 20:52
Tried this for 1.1.5 and it was a no go.

Any ideas what I would need to change to make this work?

Thanks!
Cygnus

CJ
21 Apr 2001, 19:35
great hack tubedogg!

tubedogg
21 Apr 2001, 21:22
Thanks, CJ! :)

Cygnus: I have no idea. I started working with vB at v2 beta 2, so I have no idea what the nuances of vB1 are. Sorry.

markrt
28 Jul 2001, 04:52
Hi

I am installing your Auto bump for admins hack. I am having trouble finding Stick / Unstick</a></smallfont> in the showthread template??

Please can you give me some idea where this is located as I cant even find the word Stick in this template?

Thanks
Mark

GB
28 Jul 2001, 05:11
I dont see that code in the showthread template either. The only template i find something remotely close to that is the showthread admin template

In the showthread template, find
Stick / Unstick</a></smallfont>
and replace it with
Stick / Unstick</a><br>
<a href="postings.php?s=$session[sessionhash]&action=bump&threadid=$threadid">Bump</a></smallfont>

ThomasP
28 Jul 2001, 09:05
Hi there,

in vB 2.0 Gold the admin options for showthread went to the showthread_adminoptions template.

Since it isn't a link based thingy anymore, you have to add the following to get it into the dropdown box:

find:

<option value="stick">Stick / Unstick Thread</option>


below that add (you can place it wherever you want between the <select> statements):

<option value="bump">Bump</option>


Very easy...

Thanks for that great hack, tube!
cu,
-Tom

markrt
28 Jul 2001, 12:26
Thanks works wel now.

Great little hack.

mark

GB
28 Jul 2001, 16:40
thanks ThomasP....works like a charm now

Chen
06 Aug 2001, 11:38
Superb! Perfect hack! :D

dxb
02 Sep 2001, 20:26
dose this work with 2.0.3 i didnt try but i want to know if somebody tried it

FWC
03 Sep 2001, 10:05
Originally posted by dxb
dose this work with 2.0.3 i didnt try but i want to know if somebody tried it

I installed in on 2.0.3 a few days ago. Works great!

dahamsta
02 Nov 2001, 19:49
Installed on 2.2, seems to be working ok.

adam

Dark Blaze
05 Dec 2001, 20:40
Great hack tubbedog, well done :)

I can't wait to install it as soon as I can. Is it available for 2.2.1 forum version?

Thanks for reading,

Arie
03 Jan 2002, 14:25
Great hack! I changed 1 thing however:

in postings.php:

eval("standardredirect(\"".gettemplate("redirect_bump")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");

TO:

eval("standardredirect(\"".gettemplate("redirect_bump")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");");

Because I see no reason why you would want to redirect to the thread when you obviously don't want to post in it!

You should also change the text from the new redirect_bump template to:

Thank you for bumping the thread. You will now be returned to the index of the current forum.

Sadie Frost
11 Jan 2002, 03:55
Works great in 2.2.1 - just be sure to do the showthread_adminoptions template edit that ThomasP outlined on page one :)

Joshua Clinard
22 Jan 2002, 07:16
Does this work on 2.2.1?

Stretchr
22 Jan 2002, 13:06
According to this it should work since 2.2.1 was a bug fix. HTH :pleased:
Originally posted by dahamsta
Installed on 2.2, seems to be working ok.

adam

Xelation
26 Jan 2002, 00:10
Just installed it and it works fine! I added the modifications that Arie made to. Keep up the good work!

irn-bru
11 Feb 2002, 22:09
thanx for the nice hack works well

cheers

Austin Dea
12 Feb 2002, 02:48
Does it work on 2.2.2?

FWC
12 Feb 2002, 04:21
Originally posted by Austin Dea
Does it work on 2.2.2? Yes.

CloudBurst
14 Feb 2002, 18:10
2.2.2 , works fine :D cool hack!

Joshua Clinard
25 Feb 2002, 00:22
I couldn't find this text

code:
Stick / Unstick</a></smallfont>

Or anything similar in the template, so I couldn't install it!

FWC
25 Feb 2002, 04:36
Originally posted by Joshua Clinard
I couldn't find this text

code:
Stick / Unstick</a></smallfont>

Or anything similar in the template, so I couldn't install it! Try showthread_adminoptions.

ZiRu$
19 Mar 2002, 03:36
Great Hack I will test it on 2.2.4

Joshua Clinard
19 Mar 2002, 03:47
It's not in that template either. Sorry.

FWC
19 Mar 2002, 07:38
Originally posted by Joshua Clinard
It's not in that template either. Sorry. Yes it is. Look again. You will see:

<option value="stick">Stick / Unstick Thread</option>

You want to put it under that.

ZiRu$
19 Mar 2002, 15:23
thats right

you'll see

<option value="stick">Stick / Unstick Thread</option>

in showthread_adminoptions


put THIS under it.....

not what it says

<option value="postings.php?s=$session[sessionhash]&action=bump&threadid=$threadid">Bump Thread</option>

Joshua Clinard
19 Mar 2002, 17:32
Well mine doesn't have it. I searched for the word stick, and and instick and neither one of them are there. I have reverted my templates as well. Maybe my upgrade didn't overwrite that template or somthing. I'll create a support ticket, and see if they can fix it.

xamu
01 Jul 2002, 18:19
Nice Hack but the zip file needs to have updated instructions. If not for reading all the way through this thread this hack would not work. Editing/updating the first post with current info would be wise, too. ;)

N9ne
01 Jul 2002, 18:33
Or someone else could just re-write it as I suppose files have changed A LOT since 2.0.0 to 2.2.6

Link14716
02 Jul 2002, 06:03
I want this hack, but figuring it was made for vB2 beta 3 and I have 2.2.6, I am kind of ify that it will work right....

FWC
02 Jul 2002, 06:37
If you do everything right, it will work. Read the whole thread.

Zelda-King
24 Mar 2003, 22:31
The text file says to add the bump code to the showthread template. You must mean showthread_adminoptions. I'm using vB 2.2.9. The code that works in that template for that is;

under <option value="stick">Stick / Unstick Thread</option> add <option value="bump"><a href="postings.php?s=$session[sessionhash]&action=bump&threadid=$threadid">Bump</a></option>

Reoplex
23 Jun 2003, 22:20
this hack works on v2.3.0 :) nice job.

padblaz
12 Aug 2003, 09:38
great hack, i've just installed it on 2.3.0 :)