Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
News & Announcements Details »»
News & Announcements
Version: 1.00, by ry215 ry215 is offline
Developer Last Online: May 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.2 Rating:
Released: 03-27-2010 Last Update: 03-31-2010 Installs: 221
Uses Plugins Auto-Templates
 
No support by the author.

Description:
Show News & Announcements on FORUMHOME or All Pages

Features:
- On/Off Hack?
- Allowed Usergroups
- Where is News? only index or all pages
.... and more

How to install?

ACP
>> Plugins & Products >> Add/Import Product and upload the XML you downloaded.

And you are done


Polish Version by Marek58: Download here

Download Now

File Type: xml News & Announcements.xml (5.4 KB, 1382 views)

Screenshots

File Type: png new_acp.PNG (45.5 KB, 0 views)
File Type: jpg ver4.jpg (42.3 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
gundamz

Comments
  #72  
Old 10-10-2013, 07:08 PM
Slipperyduck Slipperyduck is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #73  
Old 10-10-2013, 07:27 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();
        }
    }
Reply With Quote
Благодарность от:
Slipperyduck
  #74  
Old 10-12-2013, 12:19 PM
Slipperyduck Slipperyduck is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
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
Reply With Quote
  #75  
Old 10-12-2013, 01:52 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, I thought it would.
Reply With Quote
  #76  
Old 10-12-2013, 07:21 PM
john7911 john7911 is offline
 
Join Date: Feb 2013
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #77  
Old 10-26-2013, 08:09 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #78  
Old 10-26-2013, 09:41 PM
john7911 john7911 is offline
 
Join Date: Feb 2013
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Installed on 4.2.1
What is the variable to put below the navbar?
Reply With Quote
  #79  
Old 06-02-2014, 09:05 AM
LordVader!'s Avatar
LordVader! LordVader! is offline
 
Join Date: Sep 2009
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

5/5
installed and it's exact what i was looking for!
Reply With Quote
  #80  
Old 09-05-2015, 07:09 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to add a background image into the news box?
Reply With Quote
  #81  
Old 09-09-2015, 03:14 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05053 seconds
  • Memory Usage 2,336KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete