vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - FractalizeR: Show items, awaiting moderation in notifications area (https://vborg.vbsupport.ru/showthread.php?t=241301)

gsk8 10-22-2016 03:41 PM

So when this is "enabled", I'm unable to log in. I get this error:

PHP Warning: implode(): Invalid arguments passed in ..../includes/class_bootstrap.php(1230) : eval()'d code on line 37

Love this mod but what can I do to fix?

taravasya 11-30-2016 09:28 AM

gsk8 you admin on your forum? You have at least one forum section there you assigned as moderator?

gsk8 12-01-2016 12:00 PM

Yes, I'm admin.

Paul M 12-01-2016 01:32 PM

and the second part of his question, which you did not answer ?

Quote:

.... You have at least one forum section there you assigned as moderator?

gsk8 12-02-2016 01:32 PM

Hi and thanks for responding/helping Tara and Paul!

I selected admin and moderators as usergroups which can view the notifications. Is there something else I was supposed to do?

MarkFL 12-02-2016 03:10 PM

Quote:

Originally Posted by gsk8 (Post 2579045)
Hi and thanks for responding/helping Tara and Paul!

I selected admin and moderators as usergroups which can view the notifications. Is there something else I was supposed to do?

What do you have for "Items to track?"

Stratis 01-03-2018 04:09 PM

Quote:

Originally Posted by MarkFL (Post 2579047)
What do you have for "Items to track?"

I have same problem, I changed this line
if(!isSuperMod($vbulletin)){

I have
Items to track: Posts and threads.


I do not understand the code above
//visitormessage, groupmessage, picturecomment
and
//reply - post


Do we must do something with that to?
Thanks

taravasya 02-28-2018 09:15 PM

Stratis its in module: "Showing notifications" of FractalizeR product.
At this time:
//reply - post
its begin of first if statement after comment:
//#################### Acquiring ####################

and....

//visitormessage, groupmessage, picturecomment
its begin of second if statement after comment:
//#################### Acquiring ####################

And all together looks like this:

PHP Code:

    //#################### Acquiring ####################  
    //reply - post  
    
if(in_array('reply'$fr_itemsToTrack)) {  
        
$query "SELECT COUNT(*) AS num  
                  FROM " 
TABLE_PREFIX "moderation AS moderation  
                  INNER JOIN " 
TABLE_PREFIX "post AS post ON (moderation.primaryid = post.postid)  
                  INNER JOIN " 
TABLE_PREFIX "thread AS thread ON (post.threadid = thread.threadid)  
                  WHERE type = 'reply' "
$m_forums;  
        
$fr_result $vbulletin->db->query_first($query);  
        
$fr_modItems['reply'] ['total'] = $fr_result['num'];  
    } 

    
//visitormessage, groupmessage, picturecomment  
    
if(count(array_intersect($fr_itemsToTrack, array('visitormessage''groupmessage''picturecomment')))>0) {  
        
$query "SELECT COUNT(type) AS total, type  
                  FROM "
TABLE_PREFIX ."moderation  
                  GROUP BY type"
;  
        
$fr_result $vbulletin->db->query_read($query);  
        while(
$fr_entry $vbulletin->db->fetch_array($fr_result)) {  
            
$fr_modItems[$fr_entry['type']] ['total'] = $fr_entry['total'];  
        }  
    } 


For correct processing of rights of moderation with this product you need to rearrange this two if statement upward. Like this:

PHP Code:

    //#################### Acquiring ####################  
    //visitormessage, groupmessage, picturecomment  
    
if(count(array_intersect($fr_itemsToTrack, array('visitormessage''groupmessage''picturecomment')))>0) {  
        
$query "SELECT COUNT(type) AS total, type  
                  FROM "
TABLE_PREFIX ."moderation  
                  GROUP BY type"
;  
        
$fr_result $vbulletin->db->query_read($query);  
        while(
$fr_entry $vbulletin->db->fetch_array($fr_result)) {  
            
$fr_modItems[$fr_entry['type']] ['total'] = $fr_entry['total'];  
        }  
    }    

    
//reply - post  
    
if(in_array('reply'$fr_itemsToTrack)) {  
        
$query "SELECT COUNT(*) AS num  
                  FROM " 
TABLE_PREFIX "moderation AS moderation  
                  INNER JOIN " 
TABLE_PREFIX "post AS post ON (moderation.primaryid = post.postid)  
                  INNER JOIN " 
TABLE_PREFIX "thread AS thread ON (post.threadid = thread.threadid)  
                  WHERE type = 'reply' "
$m_forums;  
        
$fr_result $vbulletin->db->query_first($query);  
        
$fr_modItems['reply'] ['total'] = $fr_result['num'];  
    } 

Sorry for my english.... :erm:

final kaoss 08-14-2019 06:24 PM

Hmm... seems like this one has some edits to be made... does anyone have it working on vb 4.2.5 & php 7.0?

djbaxter 08-14-2019 07:46 PM

Version 4.0.3 AUGI is working on vB 4.2.5 and PHP 7.1.31 for me:

product-fr_notifymoditems-4_0_3_by_AUGI.xml


All times are GMT. The time now is 11:06 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.01383 seconds
  • Memory Usage 1,769KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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