vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - [AJAX] Tab Menu For Forum Home (https://vborg.vbsupport.ru/showthread.php?t=181741)

NsT 06-10-2008 08:21 AM

Sorry for your error, in fact, I never got this error when testing this mod. Can you tell me what VBB version you're using?

Magnumutz 06-10-2008 11:05 AM

3.7.1 PL1 dude...
Here's the link: http://haste-network.net/forums.php?styleid=39

NsT 06-10-2008 11:51 AM

I see, I didn't have chance to test this mod with 3.7.1 so I'm not really sure if VBB change the code on 3.7.1? Since I use function construct forum bit from 3.7.0.

It seems to load your default tab fine even with the error. Can you send me your index.php file?

soulface 06-10-2008 08:10 PM

Quote:

Originally Posted by Magnumutz (Post 1545617)
I'm getting this error:
[/b]

I think you've missed the templates redo. tabs_forumbits contents has been moved to a new templates called tabs_forumhome and some new contents has been replaced in tabs_forumbits.

I'm using vBulletin 3.7.1 Patch Level 1 and it's working fine...

Magnumutz 06-10-2008 09:25 PM

Quote:

Originally Posted by NsT (Post 1545823)
I see, I didn't have chance to test this mod with 3.7.1 so I'm not really sure if VBB change the code on 3.7.1? Since I use function construct forum bit from 3.7.0.

It seems to load your default tab fine even with the error. Can you send me your index.php file?

It's actually forums.php and it hasn't been changed one bit.

Quote:

Originally Posted by soulface (Post 1546100)
I think you've missed the templates redo. tabs_forumbits contents has been moved to a new templates called tabs_forumhome and some new contents has been replaced in tabs_forumbits.

I'm using vBulletin 3.7.1 Patch Level 1 and it's working fine...

Nope... i've just redone them and it's still the same.

NsT 06-10-2008 10:11 PM

The reason I asked for index.php is because I coded tabs.php base on index.php from 3.7.0. However Soulface just confirmed that this mod works okay with 3.7.1 so I believe the code is the same. I got a friend running 3.7.1 and it works fine too. Your problem seems weird.

Magnumutz 06-11-2008 06:05 AM

Well, i opened up the tabs.php file and replaced 2 "index.php" with "forums.php" phrases from it and it's got the same error.
But if it's a must... i'm PM-ing you my forums.php file.

NsT 06-12-2008 05:22 AM

@ Magnumutz: I have checked the file you sent me and it seems to be the same as 3.7.0 index.php file so I think it's not the reason causing the error on your forum.

Magnumutz 06-12-2008 05:43 AM

Ok... so what might be the problem?

mokonzi 06-12-2008 01:29 PM

Are you using a portal software at all? It might be it's losing it's route to the forum install.

NsT 06-12-2008 02:00 PM

I think the problem might be the template, since the error is about eval() function which is used to fetch templates.

Can you setup other tabs to see if they work? It seems to work fine with the error. If the error is not affecting, we can put an "@" in front of eval() and it'll hide the error.

Since I and my friends don't have this problem (tested on 3.7.0, 3.7.1) so I'm not sure how to fix this.

Magnumutz 06-13-2008 05:09 AM

Where do i put the "@" in front of?

NsT 06-13-2008 07:06 AM

Uhm let's try this: Open tabs.php,

You will see function eval(), since we don't know which function causes the error so just put @ in front of all eval().

For example: @eval('bla bla bla');

Let's see how it works :D

Magnumutz 06-13-2008 07:51 AM

Yup, it's hidden now... but there's a space between the tabs and the forums shown :(
Could that go away and the tabs "buttons" made bigger?

NsT 06-13-2008 12:16 PM

Cool! But I didn't see the space between the tabs and the forums
https://vborg.vbsupport.ru/external/2008/06/7.gif

You can edit the CSS, edit li properties, set a line-height:18px (or higher).

You also need to modify the template tabs_forumhome because your forum is using not standard template, it uses splited category template.

Magnumutz 06-13-2008 02:17 PM

Okay, thanks a lot for the nice support NsT... your gonna do good here on vB.org ;)

Later Edit: I set the li to 30px and it's perfect :)
Thanks again... now i gotta find what's causing the gap :p

NsT 06-13-2008 03:29 PM

You're welcome Magnumutz :D I'll try to help out as much as I can :p

maidos 06-13-2008 04:58 PM

the instructions is just too much. cant you provide product instead, I wont install until theres such feature

NsT 06-14-2008 01:12 PM

I don't think the instruction is too much because you just need to create 3 new templates win a few minutes, and then upload some files and setup your tabs. Probably it will take you abou 5 minutes to do this mod.

But anyway, this script is not for one who wants plug & play :D

YuOr 06-14-2008 06:13 PM

i hope i don't get banned for this question :)
but can i pay a little bit to someone to install it to my forum? pm me :)
thanks

vidan 06-15-2008 03:26 AM

hello =) thanks for great mods, but you must fix the login(cookie) issue, not all ppl want to use remember me option(if they are in netcafe?) and user keep log out if not using remember me.

NsT 06-15-2008 08:45 AM

@ YuOr: believe me, this mod is very easy, you don't need to spend any $$$ to install it but a few minutes ;)

@ vidan: yes, you're absolutely right. I'm working on it, hopefully i can fix it soon.

YuOr 06-15-2008 01:41 PM

Quote:

Originally Posted by NsT (Post 1549773)
@ YuOr: believe me, this mod is very easy, you don't need to spend any $$$ to install it but a few minutes ;)

did you try to install it with two toddlers jumping on you? LOL
I think i'll give it a try when they fall asleep :)

CHIPIT 06-24-2008 08:39 AM

Great mod, thanks!
However, I'm having a few issues.
1) I have forum descriptions enabled which should show in the tcat, however this is not the case and editing forumhome_forumbits to include the description variable does not work.

2) All the collapse buttons collapse the first one and the link in the tcat never points to a forumid. It would appear "$i" is not working.

NsT 06-25-2008 01:39 PM

Thanks for reporting issues.

Both issues were fixed with version 1.3, it's available to download now.

Sharapova 07-07-2008 03:39 PM

Ok huge problem. Please help.

I have no <main> Tags :(

This is the forum, look http://www.ozvirtualsports.com/forum/index.php choose the Adobedecker skin

This is my forumhome

Code:

</head>
<body>
$header
$navbar
<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
                <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
        </tr>
        <tr>
                <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
                        <phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
                </td>
        </tr>

</table>
<br />
</if>
<!-- / guest welcome message -->

$forumbits $forumhome_markread_script
<br />
$ad_location[ad_forumhome_afterforums]

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
        </tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
                        <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
                <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                                <div>$activeusers</div>
                        </div>
                </td>
        </tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
                        <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
                <td class="alt1" width="100%">
                <div class="smallfont">
                        <div>
                                $vbphrase[threads]: $totalthreads,
                                $vbphrase[posts]: $totalposts,
                                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                                        <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                                </if>
                        </div>
                        <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
                </div>
                </td>
        </tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
                        $vbphrase[todays_birthdays]
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
        <tr>
                <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
        </tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
                        <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
        <tr>
                <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
        </tr>
</tbody>
</if>
<tbody>
 <tr>
                <td class="alt1" align="center" colspan="2"><div style="font-size:10px"><strong>
                        <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                        <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                        <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
&nbsp;
        <if condition="!$show['guest']">
                <!-- member logout -->
                <a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>
                <!-- end member logout -->
        </if>
</strong></div></td>
        </tr>
</tbody>
</table>
<div class="cat-btm_x"><div class="cat-btm_lft"></div><div class="cat-btm_rht"></div></div>

<!-- icons -->
<div style="padding:8px; 0; 8px; 0;"></div>
<table class="tborder_icons" align="center" border="0" cellpadding="6" cellspacing="0" width="100%">


<tbody>
<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="" border="0" /></td>
        <td align="left" class="alt1">
                <div class="smallfont">$vbphrase[forum_contains_new_posts]</div>
               
               
        </td>
        <td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="" border="0" /></td>
        <td align="left" class="alt1" ><div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
          <td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="" border="0" /></td>
        <td align="left" class="alt1" ><div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td>
</tr>


</tbody>

</table>
<!-- /icons-->

<!-- time and login code -->


<div style="padding:8px; 0; 8px; 0;"></div>


$footer
</body>
</html>

Where would I place step 8?

NsT 07-10-2008 07:24 PM

Sorry for my late reply!

On your code, you can delete "$forumbits $forumhome_markread_script" and replace by the code I supplied above.

Good luck!

blanky 07-11-2008 12:12 AM

Hi, I got it working great, but I have a problem, white lines between categories are showing up and I don't know why.. little help?

link: http://www.icheater.net/community/

Pic:

NsT 07-11-2008 01:57 AM

It seems guest can not select this style on your forum, I can't test it.

Since I make the templates based on default Vbulletin template so if you use different templates, you will have to modify the tabs_forumhome and tabs_forumbits.

The white line I think it's because of the the following codes:

Code:

<td class="smallfont" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">$tabs[description]</td>

Aren 07-15-2008 06:24 AM

Hi there NsT.

First of all, thanks a whole lot for such a great mod. I've been testing it and seems really good, but I got some problems yesterday that you need to be aware of.

I created three tabs (let's call them A, B and C). Tab A includes categories 1, 2 and 3, Tab B includes 4, 5 and 6 and Tab C only contains category 7.

Category 1 and 7 are only visible to admins and mods.
Category 2, 3, 4 and 5 are visible to everybody (including guests).
Category 6 is visible to some usergroups (neither registered users nor guests)

When I use my own user (an admin) everything works fine, but when I test it using a registered user, the problems arise.

When clicking on Tab A, I get a login page saying that I'm not logged in (I am and I checked the "Remember me" checkbox) or that I don't have permissions to access that page.

The same happens when clicking on Tab C.

And when clicking on Tab B I can see categories 4 and 5, category 6 "title" row is shown but not the forums it contains. If I do not have permissions to access that category I would expect that it is not shown at all (that's the default behaviour of vB).

So, basically, it seems that you should check how are you handling user's permissions.

Thanks anyway and keep up the good work! :)

Edited to fix an stupid (and big) error

NsT 07-18-2008 09:49 AM

Hi there Aren,

Thank you very much for your support. Unfortunately from now I won't have much time for coding since I must focus on my dessertation. Therefore this project is terminated.

At the first time I submited this mod, I set it to be "re-usable" so all of you can use the code, modify it and improve it. So please help each other out.

Many thanks!

maidos 07-20-2008 03:09 PM

anyway to provide a full product file so it can edit the templates?

TheInsaneManiac 07-29-2008 09:08 PM

Is there anyway to change the tabs to like bobs?

cSh 08-01-2008 11:20 PM

subforum example
1-X
2-Y
3-Z
install mod
1-X 2-Y 3-Z
why?
and firefox work explorer not work?

f0rmat 08-16-2008 10:55 PM

Demo here

iBaker 08-19-2008 10:25 PM

Don't you think that this mod should go to the graveyard given the developer has said he isn't supporting it now and that the Bobster version https://vborg.vbsupport.ru/showthread.php?t=175687 is proven more reliable and is still supported?

AzaDiyaR 09-09-2008 09:30 AM

wow thanks man this working perfectly ;)

www.azadiwelat.org/index.php

AzaDiyaR 09-09-2008 01:40 PM

Can you Fix this to Random ID

<input type="hidden" value="1" id="defaulttab">

if you can so this can be cool :D

Ray2khax 10-05-2008 12:05 PM

Hey can someone tell me why when I do this the template design goes away and everything turns white?

Ray2khax 10-05-2008 12:15 PM

Nevermind I fixed it :)

Very nice job!


All times are GMT. The time now is 05:17 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.01388 seconds
  • Memory Usage 1,851KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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