The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Group Discussions Unknown Location
When I'm viewing deleted, moderated, or new group discussions, it gives me an unknown location in the activity instead of a Viewing Deleted and Viewing Moderated like with other deleted and moderated things. In this case, it should be Viewing Deleted Group Discussions and Viewing Moderated Group Discussions.
How can I fix this? |
#2
|
|||
|
|||
You can add it with a couple of plugins. Look at this article: https://vborg.vbsupport.ru/showthread.php?t=228112 and scroll down to "Instructions to Add your Page to the Who's Online List (WOL):". Of course you'll use moderation.php as the file name. One thing that's not shown is that you can check the parameter values (in the online_location_process plugin) using the array $values, so that you'd want the code to be something like:
Code:
if ($filename == 'moderation.php' AND $values['do'] == 'viewdiscussions') { if ($values['type'] == 'deleted') $userinfo['activity'] = 'viewdiscussions_deleted'; else if ($values['type'] == 'moderated') $userinfo['activity'] = 'viewdiscussions_moderated'; else if ($values['type'] == 'new') $userinfo['activity'] = 'viewdiscussions_new'; } |
#3
|
|||
|
|||
Quote:
I also just noticed I get it when confirming deletion of something: |
#4
|
|||
|
|||
Okay, so I added this plugin (credit goes to Joe for helping over on the official vBulletin site), which works:
Code:
if (strpos($userinfo['location'], 'moderation.php?do=viewdiscussions') !== false) { $userinfo['action'] = 'Viewing Moderated Group Discussions'; $handled = true; } I tried adding the deleted and moderated specifiers at the end: moderation.php?do=viewdiscussions&type=deleted and moderation.php?do=viewdiscussions&type=moderated. However, those didn't seem to do anything. Thanks! |
#5
|
|||
|
|||
Anyone?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|