vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Bump or de-bump thread w/ usergroup permissions (https://vborg.vbsupport.ru/showthread.php?t=156627)

ringleader 08-29-2007 10:00 PM

Bump or de-bump thread w/ usergroup permissions
 
DESCRIPTION
This is a slightly modified version of "Bump thread and make thread older" by Kentaurus, and "Bump Threads/Make Threads older" by Andreas, who both provided the basis for this work.
It allows the administrator to set which usergroups can use this feature, and can limit the number of times it can be used on a single thread by anyone using a thread bump limit.

Be kind - it's my first attempt at making one of these, and the documentation for each version of vbulletin is confusing.

OPTIONS INCLUDED:
An option called "Bump thread" allows a user with the correct permissions set to make the last post in a thread equivalen to the current time.

An option called "make thread older" or "debump" allows a user with permissions set to make the last post in a
thread one day older.

Details
1 Product XML (1 Plugin, 12 Phrases (+admin help topics), 1 template re-write if you have Andreas' Template Modification System installed (ignored if not))

Only single Thread bumping/de-bumping is supported.
I do not intend to upgrade this product, but may do if I find the time.

INSTALLATION:
Unzip BumpThreads.zip
1. Upload bitfield_bumpthreads.xml to your ./includes/xml folder
2. Import the product-bumpthreads.xml
3. If you do not have Andreas' Template Modification System installed, you must do template edits by hand. These are found in the templateedits.txt file.
4. Upload bump.gif and debump.gif to your images/buttons folder.
5. Set Usergroup permissions for the product.

UNINSTALLATION:
1. Uninstall the product.

USAGE:
1. Set individual usergroup permissions to turn on the ability to Bump/De-bump a thread for each usergroup (default is no ability to access this function).
2. Limit the number of times a thread can be bumped/de-bumped by each usergroup (in case you want normal users to be able to bump a thread only once, but for moderators it can be many times).

Database alterations carried out:
1. Adds columns 'bump' and 'debump' to your 'thread' table to count the number of times a thread has been bumped.
2. Adds columns 'bumpthreadspermissions' and 'bumpthreadslimit' to the 'usergroup' table to track who has permission to use the feature, and how many times per thread.

Contributors:
Buttons courtesy of the excellent talents of dutchbb.

ringleader 08-30-2007 03:03 PM

*First post reserved*

Because, eh, everyone else does it.

Symmetrical? 08-30-2007 03:06 PM

second :D

ringleader 08-30-2007 03:58 PM

Woot!
Fast response/installation!
Hope it doesn't unintentionally kill your board or anything (though it shouldn't be able to, there's always the nervousness).

Feedback/suggestions welcomed and appreciated, btw.

LCN2007 08-31-2007 02:56 AM

This is great will instal when i get home

LCN2007 08-31-2007 06:05 AM

Doesnt let me set user groups im getting a Database error anyone else?

Can some help me figure it out please.

Hornstar 08-31-2007 06:43 AM

One feature I would die for is inline moderation of bumping debumping as that would allow me to bump several threads at once!

ringleader 08-31-2007 07:16 AM

Quote:

Originally Posted by LCN2007 (Post 1329319)
Doesnt let me set user groups im getting a Database error anyone else?

Can some help me figure it out please.

What vbulletin version are you running?
What error are you getting exactly?
When are you getting the error/What are you trying to do when you get it?

ringleader 08-31-2007 10:29 AM

Quote:

Originally Posted by hornstar1337 (Post 1329329)
One feature I would die for is inline moderation of bumping debumping as that would allow me to bump several threads at once!

This one does that (for moderators only) ;)

Hornstar 08-31-2007 11:45 AM

Quote:

Originally Posted by ringleader (Post 1329414)
This one does that (for moderators only) ;)

not what im after tho. I am after this, but with inline moderation (where you can tick the threads, and then click the drop down menu and select bump thread, or debump thread)

ringleader 08-31-2007 01:19 PM

Here you go then.

I had updated Andreas' mod for my own boards to include inline (mass-)moderation along with individual thread moderation.

I will release it pending Andreas's permission.
It's all automatically installed with a product.
PM me your email address and I'll give it to you (can't attach to PM's).

I've attached screenshots of the two functions it adds, so you're sure it's what you're looking for.

NFLfbJunkie 08-31-2007 01:45 PM

So do both the same thing? Bumping/Debumping can be done via the thread options drop down and the inline moderation?

ringleader 08-31-2007 02:10 PM

Quote:

Originally Posted by Junkie (Post 1329494)
So do both the same thing? Bumping/Debumping can be done via the thread options drop down and the inline moderation?

No, sorry.
I didn't realise that screenshot was so misleading! :o

The moderator can bump/debump on showthread (i.e. bump just that thread)
or
The moderator/admin can mass bump/debump threads on forumdisplay using inline moderation.

The inline moderation on showthread is for moving/deleting posts, not threads, so it isn't used.

LCN2007 08-31-2007 02:14 PM

Im trying to set the Usegroup Permissions.
I attached Photos.
Thanks for your assistance.

ringleader 08-31-2007 02:22 PM

Hmm, wrong phrase name there.

I re-uploaded the bitfield_bumpthreads.xml file.
Grab the new one and overwrite the one in your ./includes/xml/ directory.
Let me know if that solves your issue.

LCN2007 08-31-2007 04:07 PM

It lets me set the User permissions but its inop in the thread tools just shows two people images but no text and when i click one it says invalid function.

One other thing if you set the limit to 0 is that unlimited?

cristinag 09-01-2007 12:02 AM

Quote:

Originally Posted by LCN2007 (Post 1329567)
It lets me set the User permissions but its inop in the thread tools just shows two people images but no text and when i click one it says invalid function.

One other thing if you set the limit to 0 is that unlimited?

I'm having this same issue.

Hornstar 09-01-2007 03:23 AM

Quote:

Originally Posted by ringleader (Post 1329480)
Here you go then.

I had updated Andreas' mod for my own boards to include inline (mass-)moderation along with individual thread moderation.

I will release it pending Andreas's permission.
It's all automatically installed with a product.
PM me your email address and I'll give it to you (can't attach to PM's).

I've attached screenshots of the two functions it adds, so you're sure it's what you're looking for.

Thanks, I have pmed you my email. Hopefully Andrea will allow you to post it on the site as well.

thanks.

xLYNZx 09-01-2007 10:40 AM

i get an image with "REP" on instead!!

Mr. Burns 09-01-2007 12:23 PM

Quote:

Originally Posted by hornstar1337 (Post 1329329)
One feature I would die for is inline moderation of bumping debumping as that would allow me to bump several threads at once!

You said it!!!

pollon 09-01-2007 12:34 PM

Quote:

Originally Posted by xLYNZx (Post 1330048)
i get an image with "REP" on instead!!

Same here. If I click one it says invalid function.

I have TMS.

ringleader 09-03-2007 07:00 AM

Quote:

Originally Posted by LCN2007 (Post 1329567)
It lets me set the User permissions but its inop in the thread tools just shows two people images but no text and when i click one it says invalid function.

One other thing if you set the limit to 0 is that unlimited?

It's set to the default 'reputation' image.
The phrases are not installing, it seems.

Go to 'Languages and Phrases', 'Add New Phrase'.
Type -> Global
Product -> bump or de-bump threads
varname -> bump
Text -> Bump Thread

And add another phrase with the varname 'debump'.

ringleader 09-03-2007 07:39 AM

*update: the SQL queries in the original product were not installing phrases and table columns correctly, thereby causing the problems some people experienced. Please re-download and install again if you are experiencing problems.

Apologies to all those who were caused hassle.

pollon 09-03-2007 11:07 AM

I've reinstalled it and I've added those phrases but when i click on the link it gives me "invalid function".

ringleader 09-03-2007 02:24 PM

Do you know how to add a plugin?
There's one missing from yours.

Go to Plugins and Products System -> Add Plugin
Product: bump or de-bump threads
Hook Location: threadmanage_action_switch
Title: Action Switch
Plugin Php Code:
Code:

if ($_REQUEST['do'] == 'bump' OR $_REQUEST['do'] == 'debump')
{
        $handled_do = true;
        if (!$threadinfo['threadid'])
        {
                eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink'])));
        }
}

I swear that'll sort it for you.
...and thanks for even bothering to troubleshoot this.

LCN2007 09-04-2007 02:54 AM

I think its working now thanks for your help but i wont be sure until my site goes live ill let you know.

misuse 09-04-2007 03:31 AM

Is it possible to debump more than 1 day at a time? Like 10 days? Thanks for the hack!

ringleader 09-04-2007 08:52 AM

Quote:

Originally Posted by misuse (Post 1331891)
Is it possible to debump more than 1 day at a time? Like 10 days? Thanks for the hack!

Yep, but you would have to change some code in the plugins as it is hardcoded into it.
Any bit that says 86400 means one day (in seconds).
So if you set it to 864000 that would de-bump by ten days.

But then that would mean you would always be de-bumping by that many days.

y2krazy 09-06-2007 02:13 AM

Just wondering, but is this accurate:

Quote:

Not Supported
Or, do you plan to provide support for this (as it seems you have been doing since it's release in this thread)?

ringleader 09-06-2007 08:11 AM

Quote:

Originally Posted by y2krazy (Post 1333297)
Just wondering, but is this accurate:

Or, do you plan to provide support for this (as it seems you have been doing since it's release in this thread)?

More of an indicator that I might forget about it, likely won't upgrade it, and probably won't be able to solve any weird errors people may potentially get that I've seen on other mod release threads.

dutchbb 09-11-2007 09:33 PM

Nice update of this hack, I made some buttons to go with it, hope you like them:

ringleader 09-13-2007 06:23 AM

They're gorgeous! Wish I had the talent to make stuff like that.

turfy 09-15-2007 09:43 AM

Installed.

LCN2007 09-18-2007 04:41 AM

Quote:

Originally Posted by dutchbb (Post 1337261)
Nice update of this hack, I made some buttons to go with it, hope you like them:

How do we install the buttons?

ringleader 09-18-2007 06:31 AM

I updated this mod to include everything to date in one zip folder.
Installation instructions are better defined, too.

LCN2007: In the template edits, replace reputation.gif with bump.gif and debump.gif to use the above buttons (only needed if you have already installed this product).

LCN2007 09-18-2007 04:40 PM

thanks ill try that

PoetJA-1975 09-28-2007 04:27 AM

In vB 3.6.8 when bumping or debumping threads I get

Quote:

vBulletin Message
Invalid Action Specified
Any help will be appreciated - Also where's the download that includes the bump/debump function inline?

Thanx

Jacquii.

ps - GARS, vBSEO, vBAdvance installed...

lasto 10-04-2007 06:33 PM

The bump/de-bump limit for this thread has already been reached. No more are allowed

on my very 1st bump as well

ringleader 10-11-2007 06:22 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1348728)
In vB 3.6.8 when bumping or debumping threads I get

Can you check in your Plugin Manager that the one under Product : Bump or de-bump Threads called "Action Switch" is enabled. Go to edit it, and make sure it is active.

Quote:

Originally Posted by PoetJA-1975 (Post 1348728)
Any help will be appreciated - Also where's the download that includes the bump/debump function inline?

I have no plans to put the two mods together at the moment, but if anyone else would like to take this code and extend it, feel free to do so.

Quote:

Originally Posted by lasto (Post 1352989)
The bump/de-bump limit for this thread has already been reached. No more are allowed

on my very 1st bump as well

Depends on how many bumps you set to be allowed in the particular usergroup you are in.
To change the number of bumps OR debumps allowed for a thread, scroll down in the usergroup settings and change it there.

PoetJA-1975 10-11-2007 09:09 PM

Quote:

Originally Posted by ringleader (Post 1357402)
Can you check in your Plugin Manager that the one under Product : Bump or de-bump Threads called "Action Switch" is enabled. Go to edit it, and make sure it is active.

Hey RINGLEADER - thanx for the response... I did check the Plugin Manager and the Action Switch is enabled... But still the same error when bumping or debumping threads: Invalid Action Specified

I'm not sure what exactly to do with this... Could it possibly have a conflict with vBSEO or GARS? Anyway - perhaps you have another suggestion?

Thanx,

JAcquii.

btw - sent you a PM about the inline moderation hack ;)


All times are GMT. The time now is 07:56 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.01546 seconds
  • Memory Usage 1,828KB
  • 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
  • (1)bbcode_code_printable
  • (18)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
  • (40)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