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)
-   -   Forum Home Enhancements - News & Announcements (https://vborg.vbsupport.ru/showthread.php?t=239284)

Slipperyduck 10-10-2013 07:08 PM

4.2.2 This plugin starts generating errors:

In my case:
Warning: Assigning the return value of new by reference is deprecated in ..../includes/class_bootstrap.php(561) : eval()'d code on line 26

ozzy47 10-10-2013 07:27 PM

Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla

Try this fix, (Untested)

Edit the plugin titled, Templating Starting under the group, News & Announcements

Replace everything in there with this:

Code:

if($vbulletin->options['enable_lns'] AND in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['lns_ug'])))
    {
        $lns=array();

        $lns['title'] = $vbulletin->options['lns_title'];
        $lns['text'] = $vbulletin->options['lns_text'];

        $templater = vB_Template::create('forumhome_lastest_news');
        $templater->register('lns',$lns);
                   
        if($vbulletin->options['enable_lns_place'])
        {           
            $template_hook['forumhome_above_forums'] .= $templater->render();
        }
        else
        {
            $template_hook['news'] .= $templater->render();
        }
    }


Slipperyduck 10-12-2013 12:19 PM

Quote:

Originally Posted by ozzy47 (Post 2451943)
Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla

Try this fix, (Untested)

Edit the plugin titled, Templating Starting under the group, News & Announcements

Replace everything in there with this:

Code:

if($vbulletin->options['enable_lns'] AND in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['lns_ug'])))
    {
        $lns=array();

        $lns['title'] = $vbulletin->options['lns_title'];
        $lns['text'] = $vbulletin->options['lns_text'];

        $templater = vB_Template::create('forumhome_lastest_news');
        $templater->register('lns',$lns);
                   
        if($vbulletin->options['enable_lns_place'])
        {           
            $template_hook['forumhome_above_forums'] .= $templater->render();
        }
        else
        {
            $template_hook['news'] .= $templater->render();
        }
    }


GREAT WORK OZZY47 - that did indeed fix it :) :up:

**NOTE above fix from OZZY47 for the 4.2.2 patch upgrade of vbulletin

ozzy47 10-12-2013 01:52 PM

Cool, I thought it would.

john7911 10-12-2013 07:21 PM

Thank you

tanzeelniazi 10-26-2013 08:09 PM

When i tick Auto Add Template? (No) i cant see announcement
when i tick yes (Auto Add Template?) i see but both i try i only see but other members cant see latest announcement why ? help please

john7911 10-26-2013 09:41 PM

Thank you
Installed on 4.2.1 :)
What is the variable to put below the navbar?

LordVader! 06-02-2014 09:05 AM

5/5
installed and it's exact what i was looking for!

ProFifaLeagues 09-05-2015 07:09 PM

Is there a way to add a background image into the news box?

tanzeelniazi 09-09-2015 03:14 PM

why its not working in my side i have 4.2.0 ?
Only admin can see and guest not members see why ?


All times are GMT. The time now is 12:40 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.01906 seconds
  • Memory Usage 1,741KB
  • 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_code_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