vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Right (or left) side bar on forumhome (https://vborg.vbsupport.ru/showthread.php?t=89246)

MegaHertz 06-20-2004 11:45 PM

Very nice might have to try this out. :D

Creative210 06-26-2004 06:53 AM

Thanks so much!

Grounds_Network 07-04-2004 07:00 PM

I ran into a little problem that might also happen to other people

For some people the tables sizes in thread may be changed, so to fix this if you can't figure it out.

First Take this out of the bottom of the navbar Template
PHP Code:

<table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="$stylevar[outertablewidth]class="page" align="center">
<
tr>
<
td

Then edit the FORUMHOME Template and find

PHP Code:

$navbar 

Under That Add

PHP Code:

<table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="$stylevar[outertablewidth]class="page" align="center">
<
tr>
<
td



because it is in FORUMHOME now the mod will only edit the index and not any other pages.





Edit: And yet I got another thing you can change to make the homepage better. :P

when you install this mod at the bottom of the forum home you will notice that the "Current Active Users" table and all other tables below that have been resized. And if you are like me you want them to strech the hole way. So heres what you do.

In the FORUMHOME temple Find
PHP Code:

<br />
<
br />

<!-- 
what's going on box --> 

And Above that add the tables for the sidebar

PHP Code:

</td>
<
td width="20%" valign="top">
<!-- 
what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <if condition="$show['
guest']">
    <!-- guest welcome message -->
    <tr>
        <td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
    </tr>
    <tr>
        <td class="alt1">
            <phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
        </td>
    </tr>
    <!-- / guest welcome message -->
    </if>
    <tr>
        <td class="thead">
            <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>
            <img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0"  width="20" height="20" align="center" />&nbsp;<phrase 1="$vboptions[bbtitle]">Forum Stats</phrase></td>
    </tr>
</thead>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>$vbphrase[threads]: $totalthreads<br />                 $vbphrase[posts]: $totalposts<br />
            $vbphrase[members]: $numbermembers</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">
            <
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>
            <
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" width="20" height="20" align="center" /></a>&nbsp;$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <
tr>
        <
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">
            <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]"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" width="20" height="20" align="center" /></a>&nbsp;$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="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
<tbody>
    <tr>
        <td class="thead">
            Your custom cell.
        </td>
    </tr>
</tbody>
<tbody>
    <tr>
        <td class="alt1" width="100%"><div class="smallfont">Some text for your custom cell go here!</div></td>
    </tr>
</tbody>
</table>
</td>
</tr>
</table> 


tnguy3n 07-05-2004 05:17 PM

Your fix is for right side bar, ain't it? well, I tested on my test board in both IE & Firefox browsers and didn't see any difference for where you put those HTML tags, but yeah i put all those tags in forumhome for the the left side bar. ;) thanks for pointing it out those. :)

Grounds_Network 07-05-2004 08:37 PM

Yea, they are for left side bar, but you'd have to be stupid not to know how to use then for left :/

The second was a little fix, because some people like the forums to look a certain way. Like my usersonline at the bottom were changed to be the same size as all the forum content for the index, but with the code moved it alows the usersonline thing to strech all the way across.

You should post this hack on vB.org, alot of people are requesting it.

motochick 09-10-2004 08:50 PM

Thank you!

I am a total novice and I managed to get it on my forum (and with adding some tweaks to it too) :) Great directions.

One more thing... how do I get the sidebar to show up on the rest of the forum pages (like when somebody clicks a thread) ?

Thanks!

spence2 09-13-2004 03:27 AM

Thank you! Worked like a charm. (vB3.03)

jons5150 09-26-2004 04:28 AM

Nice work. I've been around 3 years now, and I finally got one to work!!!

Thanks...

AngelGrove 10-04-2004 05:38 PM

Well it works good enough for me, I am not that great with HTML so the Custom Cell is a bit hard to work with, but I got it well enough, good mod. Click's install.

- AngelGrove

Emil 10-20-2004 08:39 AM

Great :)

Is there anyway I can get this sidebar on every page of the forum instead of just the forumhome? Would appreciate that. Thanks


All times are GMT. The time now is 07:59 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.01249 seconds
  • Memory Usage 1,783KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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