vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - Cel Social Groups Notifications (https://vborg.vbsupport.ru/showthread.php?t=228247)

Taragon 11-18-2009 07:49 PM

Would it be possible to hook this product to a certain phrase the way ie. this product does? https://vborg.vbsupport.ru/showthread.php?t=185636
PHP Code:

    if ($vbulletin->options['latest_auto'])
    {
        
// adds location to forumhome template
        
$vbulletin->templatecache['FORUMHOME'] = str_replace(
            
$latest_location,
            
$latest_location.'$platest',
            
$vbulletin->templatecache['FORUMHOME']
        );
    } 

preferably at both FORUMHOME and group.php

cellarius 11-18-2009 07:55 PM

You want to show the latest groups discussions or messages on forumhome? There are other mods for this, IIRC, and no, this is not possible with this mod. It only delivers a single number (the number of unread groups).

Taragon 11-18-2009 08:06 PM

Not exactly. I only want the number of unread groups (like your mod does), but not placed at the notifications menu, but at forumhome (and preferably at group.php)

cellarius 11-18-2009 08:30 PM

Ah, ok. This is easy: The code in the main plugin (should then be changed to a hook so it is only executed on a page were you want to show the number) saves the result in a variable: $vbulletin->userinfo['cel_groupnotification']. This should be available in templates as $bbuserinfo[cel_groupnotification].

Taragon 11-18-2009 08:50 PM

thanks! :)

AzzidReign 11-19-2009 03:14 AM

Ahh, I posted in the 4.0 thread. I still have 3.8 so I guess I'll be installing this one lol Thanks again!

cellarius 11-20-2009 08:05 AM

Quote:

Originally Posted by jaycob (Post 1916395)
nope, just will not work at all. 3.8.4 - added the usergroups, tried other templates. tried everything and no go. will tag this mod. thx

I had this mod tested by other coders on their sites, and the modification does work. I also do not understand what you mean by "tried other templates". This mod has no templates, and no template changes have to be done.

mbc100 11-20-2009 12:44 PM

i will installed later

AcidX 11-22-2009 08:36 AM

Didn't work for me either. Uninstalled :(

Rasher54 11-25-2009 07:20 PM

Not working for me either :/


All times are GMT. The time now is 07:38 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.01144 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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