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)

Masiello 03-01-2007 06:27 AM

EDIT: Can it's possible any mod for writing more than only one notice?

Masiello 03-04-2007 04:47 AM

Please can be fix this with collapse module, that is in original code cause w3c errors and warning but removing it is a only drastic solution.
Thanks in advance

deezelpope 03-08-2007 09:04 PM

Thank you!! Very nice!!

dizzy100 03-16-2007 08:10 AM

Quote:

Originally Posted by dizzy100 (Post 1185156)
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 ?

Is nobody else seeing this ?

thincom2000 03-17-2007 07:15 AM

dizzy100, have you tried my modifications to this mod? Post #40.

momo2 03-17-2007 08:09 AM

installed excellent job thanks so much..
________
Triumph Rocket III

dizzy100 03-17-2007 08:19 AM

Quote:

Originally Posted by thincom2000 (Post 1205440)
dizzy100, have you tried my modifications to this mod? Post #40.

Ah i missed that :) Excellent and thanks very much, this solved the issue.

I couldn't replace the

Then find:
Code:

      </if></if>
Replace with:
Code:

      </if>
However as vbulletin said one of the If conditions was open without a close (which it would be) so left that in place.

Works perfect. You have my many thanks.

dizzy100 03-17-2007 08:23 AM

Quote:

Originally Posted by thincom2000 (Post 1205440)
dizzy100, have you tried my modifications to this mod? Post #40.

Ah solved it, didn't notice you had combined the first conditional.

Many many many thanks :)

harlita 03-18-2007 08:47 AM

Installed on 3.6.5 and it works great.

Looks really cool too. Thanks! *clicks installed*

Luky 03-18-2007 09:59 AM

Awesome mate!

kafi 05-23-2007 07:21 PM

Nice add-on, thank you!

Any chance to make this with javascript so that once user read it, he can click "X" to close it?

deezelpope 05-23-2007 08:36 PM

<i>It is collapsible...that's what I usually do.</i>

NashChristian 07-20-2007 03:33 AM

Hello.

Is there any way to have this show up on my forum HOME page only? Right now it is showing up on every page, and with the same content, it gets rather annoying on EVERY page. I know I can collapse it, but is there a way to just have it show up on the home? That would be much easier for me.

Thanks!

Great hack! (It's the first I've ever installed, and it actually worked the first time!)

NashChristian 07-20-2007 04:06 AM

Oh boy I figured it out, all on my own!

My how mother would be proud!

Thanks! Very cool Hack!:D

NashChristian 07-20-2007 04:39 AM

Ok, so I added the $latest_news line to my forum home template instead of the Navbar because I only wanted this on my home page. Only problem is that with the skin that I'm running, it was missing a shadow effect under the box, which all the other boxes on my page had. So I scanned the code and figured out which part was for the shadow effect. Please see the code below which I added into my forum home template:

$latest_news
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="70" align="left" valign="top"><img src="$stylevar[imgdir_misc]/bot_left.gif" alt=" " border="0" /></td>
<td width="100%" style="background-image:url($stylevar[imgdir_misc]/bot_back.gif)"></td>
<td width="70" align="right" valign="top"><img src="$stylevar[imgdir_misc]/bot_right.gif" alt=" " border="0" /></td>
</tr>
</table>


Everything works great with ONE SMALL EXCEPTION, there is a 1/4" gap between the bottom of the Latest News box, and the beginning of my shadow effect. It looks as though there is a <br> in there, yet I don't see any in the code.

You can reference my site to see what I mean: Click for Demo.

It is most obvious by looking on the left side, where the Latest News box ends, it also is extremely visible if you collapse the Latest News box. I've got a 1/4" gap in there and I can't figure out how to get rid of it.

Can any of you awesome coders out there give this newbie a hand PLEASE???

Thanks a bunch!

NashChristian 07-22-2007 05:26 PM

In the eternal words of Pink Floyd, "Is there anybody out there?"

NashChristian 07-24-2007 02:14 PM

Nope. Nobody out there.

Is there still no way to fix this so that it works with double digit user groups?

It still seems to have that bug/issue, so that a large percentage of my viewers are missing the news message.

If anybody could respond to this...

Thanks!

ESADCG 08-02-2007 06:38 PM

I have gone through this thread and none of the solutions seem to work well. Couldn't the author rewrite this to work with all usergroups instead of all these hacks to the hack? It is pretty much worthless without the additional usergroups.

periphrastic 09-28-2007 09:08 PM

installed & thank you

ESADCG 04-15-2008 01:54 AM

Helllllo!!! Still need those double digit usergroups! This dude hasn't been online in a year! Someone needs to rewrite this thing!

deezelpope 04-15-2008 08:53 AM

Quote:

Originally Posted by thincom2000 (Post 1191903)

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>

Quote:

Originally Posted by ESADCG (Post 1308299)
I have gone through this thread and none of the solutions seem to work well. Couldn't the author rewrite this to work with all usergroups instead of all these hacks to the hack? It is pretty much worthless without the additional usergroups.

Quote:

Originally Posted by ESADCG (Post 1490876)
Helllllo!!! Still need those double digit usergroups! This dude hasn't been online in a year! Someone needs to rewrite this thing!

Did you see this first post I quoted? It works to fix the issue.:up:

cbiweb 05-27-2008 03:23 AM

I have two styles: Default and Test 1. Neither of them is a parent to the other, they are two separate styles.
Test 1 has the $latest_news variable in its navbar template.
Default does NOT have it, yet it shows the latest news module as if it did.

Why would that happen? :confused:


All times are GMT. The time now is 01:28 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.01304 seconds
  • Memory Usage 1,776KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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