vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - FA Latest News (https://vborg.vbsupport.ru/showthread.php?t=138805)

SidelineSports 02-18-2007 08:57 PM

Quote:

Originally Posted by MarcG (Post 1183737)
In your Admin CP...go to your "vBulletin Options" and scroll down down to "Latest News by Betlik.com"

Thanks for the help! Installed!

BozzaJos 02-22-2007 10:16 AM

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...

thincom2000 02-22-2007 11:42 AM

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).

Masiello 02-23-2007 08:12 AM

Hello, from where I change the module title "Latest News" to my Own in forum home?
thx

Masiello 02-24-2007 12:55 PM

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.

SidelineSports 02-26-2007 01:26 AM

Quote:

Originally Posted by valdet (Post 1188456)
Can anyone confirm that this great thing works for vb 3.6.4

Yes, it does for me with 3.6.4

thincom2000 02-26-2007 01:44 AM

Quote:

Originally Posted by Masiello (Post 1189669)
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 />

Masiello 02-26-2007 06:47 AM

Quote:

Originally Posted by thincom2000 (Post 1190804)
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

thincom2000 02-27-2007 01:44 PM

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>

Masiello 03-01-2007 06:02 AM

Quote:

Originally Posted by thincom2000 (Post 1191903)
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 :)


All times are GMT. The time now is 11:31 AM.

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.01117 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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