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
  #32  
Old 02-18-2007, 08:57 PM
SidelineSports SidelineSports is offline
 
Join Date: Jan 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcG View Post
In your Admin CP...go to your "vBulletin Options" and scroll down down to "Latest News by Betlik.com"
Thanks for the help! Installed!
Reply With Quote
  #33  
Old 02-22-2007, 10:16 AM
BozzaJos BozzaJos is offline
 
Join Date: Feb 2006
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like an awesome hack! Unfortunately, I'm using vb3.5 and can't import the product. Can you perhaps make something like this for 3.5 or is there already anything similar to this for 3.5?

Anyway, good job mate! Looks like a good hack...
Reply With Quote
  #34  
Old 02-22-2007, 11:42 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be able to edit the product in NotePad or something and change the Product Dependency from 3.6 to 3.5. Of course I didn't author the hack, but I don't think there should be any problems running it on 3.5, considering it doesn't really make use of anything that changed (such as the datastore).
Reply With Quote
  #35  
Old 02-23-2007, 08:12 AM
Masiello's Avatar
Masiello Masiello is offline
 
Join Date: Jul 2005
Location: Italy
Posts: 426
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, from where I change the module title "Latest News" to my Own in forum home?
thx
Reply With Quote
  #36  
Old 02-24-2007, 12:55 PM
Masiello's Avatar
Masiello Masiello is offline
 
Join Date: Jul 2005
Location: Italy
Posts: 426
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anybody have making this hack W3C standard?

Quote:
Error Line 289, column 41: document type does not allow element "tbody" here .
<tbody id="collapseobj_latenews" style="">
Quote:
Error Line 298, column 4: end tag for "br" omitted, but OMITTAG NO was specified .
<br>
naturally the error line are reffer to my board.
Reply With Quote
  #37  
Old 02-26-2007, 01:26 AM
SidelineSports SidelineSports is offline
 
Join Date: Jan 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valdet View Post
Can anyone confirm that this great thing works for vb 3.6.4
Yes, it does for me with 3.6.4
Reply With Quote
  #38  
Old 02-26-2007, 01:44 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Masiello View Post
Can anybody have making this hack W3C standard?

naturally the error line are reffer to my board.
What DOCUMENT TYPE are you using on your board? By default you should not have a problem with the <tbody> tag.

<br> will be W3C compliant if changed to <br />
Reply With Quote
  #39  
Old 02-26-2007, 06:47 AM
Masiello's Avatar
Masiello Masiello is offline
 
Join Date: Jul 2005
Location: Italy
Posts: 426
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
What DOCUMENT TYPE are you using on your board? By default you should not have a problem with the <tbody> tag.

<br> will be W3C compliant if changed to <br />
Hello, I'm using DOCTYPE by Default

Quote:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
are you sure you don't have that problem using the same default doctype with this product enabled?

The tbody are allowed but not where it is now if not in a table
Reply With Quote
  #40  
Old 02-27-2007, 01:44 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps you edited your template and messed up the table code, because I'm positive <tbody> is used properly.

On another note, I would recommend the author change the usergroup part of the code. It will make the template code a lot cleaner, easier for users to understand, and will work for membergroups as well. I made a suggestion like this earlier, but now this one is much simpler.

First, edit the plugin Templating Starting.
Replace the Plugin Code with:
PHP Code:
if ((THIS_SCRIPT == 'index') AND $vbulletin->options['enable_ltnews'])
{
    
$ugroups_lt explode(','$vbulletin->options['ugroups_lt']);
    eval(
'$latest_news = "' fetch_template('latest_news') . '";');


Now edit the template latest_news. Find:
Code:
<if condition="$vboptions[enable_ltnews]"><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:
Code:
<if condition="$vboptions['enable_ltnews'] AND is_member_of($bbuserinfo, $ugroups_lt)">
Then find:
Code:
</if></if>
Replace with:
Code:
</if>
Reply With Quote
  #41  
Old 03-01-2007, 06:02 AM
Masiello's Avatar
Masiello Masiello is offline
 
Join Date: Jul 2005
Location: Italy
Posts: 426
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thincom2000 View Post
Perhaps you edited your template and messed up the table code, because I'm positive <tbody> is used properly.

EDIT: Thanks! Yuor code have fixed too that issue
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 12:27 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.04886 seconds
  • Memory Usage 2,320KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_php
  • (9)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