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

Reply
 
Thread Tools
FA Latest News Details »»
FA Latest News
Version: 1.2, by farooqaaa farooqaaa is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.4 Rating:
Released: 02-07-2007 Last Update: 02-08-2007 Installs: 71
Uses Plugins Template Edits
 
No support by the author.

Hello,

***** This HACK is brought to you by Betlik.com *****


* Description:
Show latest news on FORUMHOME.

* Features:
- Whole Hack Enable/Disable
- Allow separate usergroups.
- Expand/Collapse Table
.....more features coming soon in next versions.

* How to install?

Download the version you like. Goto your VBulletin AdminCp > Plugins & Products > Add/Import Product and upload the XML you downloaded.

Now Open Template: "navbar", at the bottom add:-
Quote:
$latest_news
And you are done

Version History:
1.0 - Initial release.
1.1 - New Feature: Collapse / Expand Table
1.2 - News title is now in a "thead" td.

***** Please click to Install if you like this hack *****

Thanks

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-10-2007, 09:29 AM
farooqaaa farooqaaa is offline
 
Join Date: Aug 2006
Location: Pakistan
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
if the usergoup its for example 25 doesnt appeard

I remove from template this code

<if condition="$bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{0} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{2} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{4} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{6} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{8} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{10}">

And now works with all usergroups byt i cannot restrict

Strainge error
Don't remove that code. Re-install the product, and don't edit that template (latest_news).

Hope that helps.

Thanks
Reply With Quote
  #23  
Old 02-10-2007, 09:31 AM
farooqaaa farooqaaa is offline
 
Join Date: Aug 2006
Location: Pakistan
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Ah, yes. I was wondering about that. Didn't quite mind the bold text as a header and didn't really feel the need to add a thead on a box with only one short blurb in it... Still I'll install the update. Thanks!
If you don't want the THEAD to be there, install version 1.1
Reply With Quote
  #24  
Old 02-10-2007, 02:15 PM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by farooqaaa View Post
Don't remove that code. Re-install the product, and don't edit that template (latest_news).

Hope that helps.

Thanks
if i dont remove this code your hack doesnt appeard to groups with 2 digits exapmle group 25,26,11,.....
Reply With Quote
  #25  
Old 02-10-2007, 02:44 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rmxs View Post
if the usergoup its for example 25 doesnt appeard

I remove from template this code
Considering this hack doesn't use bitfields for Usergroup Permissions, you should do the following.

Create a new plugin.
Product: Latest News
Hook Location: parse_templates
Title: Latest News Usergroup Perms
Execution Order: 5
Plugin PHP Code:
PHP Code:
if ((THIS_SCRIPT == 'index') AND $vbulletin->options['enable_ltnews'])
{
    
$augs explode(','$vbulletin->options['ugroups_lt']);

    
$mgs explode(','$vbulletin->userinfo['membergroupids']);

    if (
is_array($augs))
    {
        foreach (
$augs AS $aug)
        {
            if (
is_array($mgs))
            {
                foreach (
$mgs AS $mg)
                {
                    
$news_allow = (trim($aug) == $mg) ? true $news_allow;
                }
                unset(
$mg$mgs);
            }

            
$news_allow = (trim($aug) == $vbulletin->userinfo['usergroupid']) ? true $news_allow;
        }
        unset(
$aug);
    }
    unset(
$augs);

Then edit your template latest_news.

Find:
PHP Code:
<if condition="$bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{0} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{2} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{4} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{6} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{8} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{10}"
Replace with:
PHP Code:
<if condition="$news_allow"
Reply With Quote
  #26  
Old 02-10-2007, 02:44 PM
Glynn58 Glynn58 is offline
 
Join Date: Jul 2006
Location: Barnsley UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep thats true, i have had to remove the code,

oops cross posted lol
Reply With Quote
  #27  
Old 02-12-2007, 02:33 PM
SidelineSports SidelineSports is offline
 
Join Date: Jan 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the foolish question all. I uploaded the XML file, and inserted the $latest_news at the bottom of the navbar template as instructed. I see nothing, get nothing. Is there something I'm missing? Do I need to 'turn on this feature'? Change any settings? I am very new at all of this. Any help would be appreciated.
Reply With Quote
  #28  
Old 02-14-2007, 04:55 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rmxs View Post
if i dont remove this code your hack doesnt appeard to groups with 2 digits exapmle group 25,26,11,.....

Yeah I know what its doing:

Usergroup 11 would allow Usergroup 1 to view the news

Even if you added 11,12,2,4,5,6

Usergroup 1 would still be able to view it fully.

I tried the same thing by looking on my laptop and using my PC in the admincp.

As soon as I removed my usergroup 11 I could then view the news as a guest on my laptop.


So all 2 digit numbers are not working

Will there be any fix to this soon?

I really like this mod
Reply With Quote
  #29  
Old 02-14-2007, 04:56 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006 View Post
Will there be any fix to this soon?

I really like this mod
It seems you guys have ignored my previous post: https://vborg.vbsupport.ru/showpost....9&postcount=24
Reply With Quote
  #30  
Old 02-16-2007, 08:40 AM
MarcG MarcG is offline
 
Join Date: Jan 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SidelineSports View Post
Sorry for the foolish question all. I uploaded the XML file, and inserted the $latest_news at the bottom of the navbar template as instructed. I see nothing, get nothing. Is there something I'm missing? Do I need to 'turn on this feature'? Change any settings? I am very new at all of this. Any help would be appreciated.

In your Admin CP...go to your "vBulletin Options" and scroll down down to "Latest News by Betlik.com"
Reply With Quote
  #31  
Old 02-18-2007, 08:37 AM
dizzy100 dizzy100 is offline
 
Join Date: Mar 2006
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't seem to work for Mod ID numbers. I.e. i have a mod that is assigned to the mod group (7 i think) and cannot see the news. All other groups 1 - 6 including me the admin can however and i have checked and she's right, nothing shows. Any ideas ?
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 01:10 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.05235 seconds
  • Memory Usage 2,332KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete