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 10-12-2007 06:59 AM

It might be a conflict with vbSEO alright.
The bit that error refers to looks for a threadid when the thread is bumped.

Can you post your URL format (an example like "forum-category/867-thread-title.html#post4029") and I will see if I can provide you with a workaround for this that works.

PoetJA-1975 10-12-2007 09:23 AM

hmmm - I was thinking it could have something to do with vBSEO
At anyrate - the JPiC rewrite rule is [forum_title]/[thread_title]-[thread_id].html

Thanx AND Thanx for the email as well ;)

Jacquii.

JohnBee 10-31-2007 04:29 PM

Geat MOD, installed and loving it. - thx

lazytown 11-06-2007 03:53 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.

I'm looking for moderator-only mass debumping of threads (using the check boxes). Could you please post the mods you made in that thread? Andreas only does it within the thread.

Thank You
-vissa

PoetJA-1975 11-06-2007 05:38 AM

Hey RINGLEADER - still waiting - is there a chance you've found a workaround for vBSEO?
Thanx,

Jacquii.

ringleader 11-08-2007 12:56 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1376817)
Hey RINGLEADER - still waiting - is there a chance you've found a workaround for vBSEO?

Oh sorry, I was out of the country there for a while :o

Try adding this plugin as a bit of a workaround instead:

Product: Bump or de-bump Threads

Hook Location: showthread_start

Title: Bump or Debump: Display Option

Execution Order:
5

Contents:
Code:

$vbulletin->templatecache['SHOWTHREAD'] = str_replace(
        array(
                '$vbphrase[remove_redirects]</option>',
                '$vbphrase[remove_redirects]</label></div>'
        ),
        array('
                $vbphrase[remove_redirects]</option><option value=\"bump\">$vbphrase[bump]</option><option value=\"debump\">$vbphrase[debump]</option>',
                '$vbphrase[remove_redirects]</label></div><div><label for=\"ao_bump\"><input type=\"radio\" name=\"do\" id=\"ao_bump\" value=\"bump\" />$vbphrase[bump]</label></div><div><label for=\"ao_debump\"><input type=\"radio\" name=\"do\" id=\"ao_debump\" value=\"debump\" />$vbphrase[debump]</label></div>'
        ),
        $vbulletin->templatecache['SHOWTHREAD']
);

...and undo the template edit for SHOWTHREAD template.

Quote:

Originally Posted by JohnBee (Post 1372862)
Geat MOD, installed and loving it. - thx

Cheers, glad you like it!

PoetJA-1975 11-10-2007 04:28 AM

Thanx for your help - I just couldn't get it installed correctly - could be because of a mod I'd 1st had installed on vB 3.5.4 (https://vborg.vbsupport.ru/showthrea...hlight=de-bump) --- Incredibly it still works correctly on 3.6.8 PL 2 ---- Just one idiosyncrasy - there's apparently a missing phrase for inline_bump/debump or some such - but it works fine even with vBSEO installed.

You may wanna take a look at the code - Anyway - I appreciate you taking the time to find a resolution ;) Much appreciate and thanx again for the inline modification - Works like a gem ;)

Jacquii.

TazeredBlackMan 11-17-2007 01:24 AM

Hey I installed and then uninstalled this product. Now when I go to make a new usergroup I get a SQL error saying Unknown column 'bumpthreadspermissions' in 'field list'

Any idea?

ringleader 11-18-2007 11:15 AM

Quote:

Originally Posted by TazeredBlackMan (Post 1384129)
Hey I installed and then uninstalled this product. Now when I go to make a new usergroup I get a SQL error saying Unknown column 'bumpthreadspermissions' in 'field list'

Run this SQL query and it will fix it:

Code:

ALTER TABLE usergroup DROP bumpthreadspermissions
Obviously, if you have any table prefixes, use it before 'usergroup'.

nyunyu 11-18-2007 04:53 PM

This is a very useful hack. However what i had in mind was, if people wanted to bump, they had a button to bump the thread, but then the moderators will have to click ok to approve the thread bump so that way it wouldn't get abused. Anyway this can be done?

Thanks. Reserved until replied.

ringleader 11-26-2007 12:01 PM

Quote:

Originally Posted by nyunyu (Post 1385058)
This is a very useful hack. However what i had in mind was, if people wanted to bump, they had a button to bump the thread, but then the moderators will have to click ok to approve the thread bump so that way it wouldn't get abused. Anyway this can be done?

Yeah, that is entirely possible.

But if you're limiting the number of bumps a thread can get in total (not the number of times a particular person can bump it) as this does then the feature can't be abused the way this is written.
It's only a bump anyway, there's no reason for it to be moderated I think.

RFViet 11-26-2007 07:00 PM

thanks, installed.

inspector 12-07-2007 08:02 PM

I'm having the same problem as PoetJA-1975. I'm getting the Invalid Action Specified error when I try to bump a thread. I checked and made sure the plugin was active.

I'm not sure where to place that bit of code above.

inspector 12-15-2007 10:17 AM

Can anyone help me with this? Please?

inspector 12-25-2007 02:53 PM

Please offer some help.

inspector 12-31-2007 01:10 PM

I guess there is no support for this plugin. Uninstalled.

mrsbuzzy 01-30-2008 01:43 AM

I am getting this error:

Parse error: syntax error, unexpected '<' in C:\domains\parent-2-parent.com\wwwroot\forum\postings.php(149) : eval()'d code on line 11


and a VBulletin message which states:
Invalid Action Specified

koby411 02-04-2008 09:58 PM

I installed this and tried using it.
It bumps the thread on thread view.
But on the forum index, it doesn't update the last post info with the bumped thread..

How do I make it do that?

CoryNickerson 02-04-2008 10:07 PM

Is it possible to incorporate a timer for this? Admin can set bump times for each specific forum. This will limit people from repeat bumping on high traffic forums like mine.

I've seen other sites have timers at the top above post if your author. Counts down by Hours: Minutes until your next bump time is available.

:)

ringleader 02-05-2008 10:43 AM

Quote:

Originally Posted by koby411 (Post 1436396)
I installed this and tried using it.
It bumps the thread on thread view.
But on the forum index, it doesn't update the last post info with the bumped thread..

How do I make it do that?

Presumably your forum index is cached, since it updates on Showthread.php
Clear the forum index cache and that should do it.

Quote:

Originally Posted by CoryNickerson (Post 1436403)
Is it possible to incorporate a timer for this? Admin can set bump times for each specific forum. This will limit people from repeat bumping on high traffic forums like mine.

Ooh nice idea, but a little too complex for me to implement just right now.

This hack limits the number of bumps that can be done in a threads lifetime, if that's any help.
i.e. if you set the limit to 5, then the thread can be bumped OR debumped only five times no matter who does it.

There's a hack out there that limits the bumping to the thread author, however, if you'd prefer that. Still no timer though!


Anyone who's interested: it says above that this is not supported. I come back in here only when I can, so be patient or don't bother.

LCN2007 02-09-2008 11:01 PM

How to set for unlimited bumps?

ringleader 02-10-2008 03:43 AM

Quote:

Originally Posted by LCN2007 (Post 1439676)
How to set for unlimited bumps?

Actually, I never thought of that. :o
But it could be a vulnerability (somehow).

Just set it to a ridiculous number and that will work ;)

Bubble #5 02-14-2008 07:55 PM

Is this compatible with 3.7? :confused:

ringleader 02-15-2008 06:23 AM

Quote:

Originally Posted by Bubble #5 (Post 1443173)
Is this compatible with 3.7? :confused:

Haven't a clue.
I don't know anything about v3.7 to know whether it would work on it.

Since hooks aren't removed, however, I would say that it does.
The placement of the code to show the 'bump/debump' bit in SHOWTHREAD template will more than likely have changed a little.

bada_bing 02-28-2008 02:44 AM

Any chance this works for VB 3.5.x ?

Thanks

ringleader 03-03-2008 06:52 AM

Quote:

Originally Posted by bada_bing (Post 1452617)
Any chance this works for VB 3.5.x ?

Thanks

I don't think so. I think the hooks used are not available in that version.

You could check by installing it - a simple uninstall will remove it if it doesn't work for you.

bada_bing 03-03-2008 11:20 AM

Has anyone tried this in a 3.5 version yet. Id rather not test on a production site...

justchil 03-03-2008 12:13 PM

Very cool! I'm glad you added the usergroup permissions into this hack :D

*installed*

apdcanari 03-09-2008 07:27 AM

Bonjour,

Voici une petite modification :

Search in SHOWTREAD :

Code:

                        <a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
                </if>
                &nbsp;
                </div>
        </td>

After, add :

Code:

<if condition="$permissions['bumpthreadspermissions'] & $vbulletin->bf_ugp['bumpthreadspermissions']['canbump']">
<td class="tcat" align="$stylevar[right]">
<div class="smallfont">
<a href="postings.php?$session[sessionurl]do=bump&amp;t=$threadid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/bump.gif" border="0" alt="$vbphrase[bump]" /></a>
</div>
</td>
</if>
<if condition="$permissions['bumpthreadspermissions'] & $vbulletin->bf_ugp['bumpthreadspermissions']['candebump']">
<td class="tcat" align="$stylevar[right]">
<div class="smallfont">
<a href="postings.php?$session[sessionurl]do=debump&amp;t=$threadid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/debump.gif" border="0" alt="$vbphrase[debump]" /></a>
</div>
</td>
</if>

C?dric ;)

ringleader 03-10-2008 07:20 AM

Merci apdcanari, that's quite a nice idea!

mrsbuzzy 03-13-2008 04:25 PM

It would be GREAT if this were available for 3.7

KEKforce 04-25-2008 06:17 AM

Just tested it on vb3.7.0. rc4 and works great!

justchil 05-02-2008 06:38 AM

I'm not having any luck with 3.7.0 "gold" or whatever the stable release is called. I tried reinstalling with "allow overwrite" checked. I think this may have something to do with reverting my templates although I did the reinstall AFTER reverting my templates.

ringleader 05-02-2008 02:23 PM

Quote:

Originally Posted by justchil (Post 1505441)
I'm not having any luck with 3.7.0 "gold" or whatever the stable release is called. I tried reinstalling with "allow overwrite" checked. I think this may have something to do with reverting my templates although I did the reinstall AFTER reverting my templates.

I haven't a clue about the new 3.7 file structure.

It may be that the fundamental part of the code will not integrate with the new showthread file (especially with all those social networking things going on in vbulletin now).

The bad thing is I may not install 3.7 myself because of the social aspect.
It's not for all sites.

Still, I'll see if I can work out this problem for you on a local install of 3.7 - can't promise when though, I just quit my job this morning and it's more hectic than ever ;)

justchil 05-03-2008 04:19 AM

No rush... I can take a look at it a little closer when I have time. I disabled the social feature... installed it mostly for the new album/gallery/photo deal. I just wanted to try everything as far as an install/reinstall and a quick look over before saying it didn't work :D

dutchbb 05-05-2008 10:38 PM

Works without a problem on 3.7 gold.

Make sure you revert ALL templates AFTER upgrading to 3.7, then install this hack again with plugin overwrite and template edit. Should work.

Hornstar 05-08-2008 07:11 AM

For limit for bumping and de bumping, if I set it to 0, is that 0 or unlimited?

Also, any chance for an update, so we don't have to do any template edits?

1quick1 05-11-2008 02:28 AM

Installed on VB 3.7.0 and it's working fine. The only issue I've found is it doesn't update the forumhome page when a bump happens. For it to show the correct time/date I have to go into the ACP ---> maintenance --> update counters --> Rebuild Forum information

Does this get done automatically with a cron job or is this something that I will have to manually run everytime I bump some threads?

Quote:

Originally Posted by hornstar1337 (Post 1512431)
For limit for bumping and de bumping, if I set it to 0, is that 0 or unlimited?

Also, any chance for an update, so we don't have to do any template edits?

I installed this and the 0 setting is actually 0. So you have to go in and actually set a number. Since I wanted mine to be unlimited I just set it to like 150 or something and it works now.

ringleader 08-13-2008 08:12 PM

Quote:

Originally Posted by hornstar1337 (Post 1512431)
For limit for bumping and de bumping, if I set it to 0, is that 0 or unlimited?

Also, any chance for an update, so we don't have to do any template edits?

Yeah, zero essentially deactivates the mod for all users until you activate it for them, unfortunately. I will look at setting this in a vboptions of some sort in future.

oz_girl 08-16-2008 07:47 AM

reserved :)


All times are GMT. The time now is 07:15 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.03309 seconds
  • Memory Usage 1,830KB
  • 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
  • (4)bbcode_code_printable
  • (13)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