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)
-   -   vbThreadSpinner (https://vborg.vbsupport.ru/showthread.php?t=20512)

Axel Foley 07-31-2001 04:37 PM

When I take some actions using this awesome script, the ModLogActivities hack won't log them. If I use the standard procedure (using vB standard actions) to delete, close threads actions DO get logged by ModLog hack.

I haven't had the chance to take a look at the code Mas*Mind, and I wondered if you simply call vB functions or does the hack actually make the modifications itself (that would explain why ModLog hack doesn't "trap" the actions).

Thanks for you're work Mas*Mind, you made a great hack! ;)


...Axel

WhiteKnight 01-26-2002 01:54 AM

Long time passed, but it's still a great hack.

I installed it on 2.2.1 and it works fine for admins and supermods. But it gives me some problems with moderators, because they cannot access the spinner via Admin Options. I guess it's in the permissions, rather than the hack, but I haven't had the time yet to test it thoroughly. Maybe someone could point me to the right direction.

One more thing: how can I add a link to the spinner in the admin/mod cp?

DelusionalMind 01-26-2002 02:13 AM

nice :)

just installed it. hehe

mister 02-15-2002 02:33 PM

real nice hack.... cant wait to use it

Arathorn 02-17-2002 03:57 PM

Quote:

Originally posted by WhiteKnight
How can I add a link to the spinner in the admin/mod cp?
makenavoption("Spin Threads","spinner.php?action=spinthreads");

Tarion 02-27-2002 02:14 PM

Quote:

Originally posted by WhiteKnight
Long time passed, but it's still a great hack.

I installed it on 2.2.1 and it works fine for admins and supermods. But it gives me some problems with moderators, because they cannot access the spinner via Admin Options. I guess it's in the permissions, rather than the hack, but I haven't had the time yet to test it thoroughly. Maybe someone could point me to the right direction.

One more thing: how can I add a link to the spinner in the admin/mod cp?

i got it work for my mods in 2.2.1 with this modification:

in root/moderator.php search for:

PHP Code:

if ($action=="spinthreads") {

 
$permissions=getpermissions();
  if (
$permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmoderateattachments=1")) {
    
header("Location: mod/index.php?s=$session[sessionhash]&loc=moderate.php?s=$session[sessionhash]%26action=attachments");
  } else {
    
show_nopermission();
  }



and replace it with this code:

PHP Code:

if ($action=="spinthreads") {

  
$permissions=getpermissions();
  if (
$permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmoderateattachments=1")) {
    
header("Location: mod/index.php?s=$session[sessionhash]&loc=spinner.php?s=$session[sessionhash]%26parentid=$forumid");
  } else {
    
show_nopermission();
  }



It worked for my mods smoothly. I hope this helps you :)

WhiteKnight 03-07-2002 04:07 PM

Yes it does...thank you :)

v0nreagan 04-14-2002 01:19 PM

Would it be possible to add search to the spinner? Basicaly you would search for a pattern in subjest and spin only those posts?

scsa20 04-21-2002 08:31 AM

Quote:

Originally posted by Arathorn


makenavoption("Spin Threads","spinner.php?action=spinthreads");

hmm...might be a little late for this, but I just like to add something to that....if you are going to use that in the admin cp, all you have to do is put in the following instead of the above:

Code:

makenavoption("Spin Threads","../mod/spinner.php?action=spinthreads");
put that somewhere in your admin/index.php file (along with the other links), and it'll just go into the mod folder to get the file (along with any other thing it needs).....if you want to know a good place (well..I didn't really put it in a good place, but it's a good place)...here's what you do:

In admin/index.php, search for:

PHP Code:

makenavoption("Who Voted?","thread.php?action=votes"); 

and replace it with:

PHP Code:

makenavoption("Who Voted?","thread.php?action=votes","<br>");
makenavoption("Spin Threads","../mod/spinner.php?action=spinthreads"); 

well...that's were I put mine...good luck for whoever needed this type of info

BenH 04-27-2002 08:05 AM

Great Hack !
just the one im looking for , but will it work on 2.2.5 ?
i dont know to do any changes

thank you
ben


All times are GMT. The time now is 09:43 AM.

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.01043 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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