Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
How to change the (What's Going On?) box to100% in forumhome Details »»
How to change the (What's Going On?) box to100% in forumhome
Version: 1.00, by Dr.osamA Dr.osamA is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.3 Rating:
Released: 12-19-2009 Last Update: Never Installs: 136
Code Changes  
No support by the author.

ferst Sorry for my bad english

Description

This means change the (What's Going On?) box to100% of page in forumhome after you installed the sidebar

it is working with VB v 4.0.3 too

see attachment pic for explain and anderstand

in template forumhome find :


PHP Code:
    <vb:if condition="$show['sidebar']">
        </
div>
    </
div>

    <
div id="sidebar_container"<vb:if condition="$vboptions['sidebarposition'] == 0"> class="sidebarleft"</vb:if>>
        <
a id="sidebar_button_link" href="#">
            <
vb:if condition="$vboptions['sidebarposition'] == 0">
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
            <
vb:else />
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
            </
vb:if>
        </
a>
        <
ul id="sidebar">
            {
vb:raw sidebar}
        </
ul>
    </
div>
    </
vb:if> 
and delete it

in sem template find :

PHP Code:
    {vb:raw forumhome_markread_script
And paste the following directly above

PHP Code:
    <vb:if condition="$show['sidebar']">
        </
div>
    </
div>

    <
div id="sidebar_container"<vb:if condition="$vboptions['sidebarposition'] == 0"> class="sidebarleft"</vb:if>>
        <
a id="sidebar_button_link" href="#">
            <
vb:if condition="$vboptions['sidebarposition'] == 0">
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
            <
vb:else />
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
            </
vb:if>
        </
a>
        <
ul id="sidebar">
            {
vb:raw sidebar}
        </
ul>
    </
div>
    </
vb:if> 
for VB 4.0.8 Lp2 you have to use this code

PHP Code:
<vb:if condition="$show['sidebar']">
        </
div>
    </
div>

    <
div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>>
        <
a id="sidebar_button_link" href="#">
            <
vb:if condition="$show['sidebarposition'] == 'left'">
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
            <
vb:else />
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
            </
vb:if>
        </
a>
        <
ul id="sidebar">
            {
vb:raw sidebar}
        </
ul>
    </
div>
    </
vb:if> 
It's the same code that previously deleted

Demo jast until Gold ver. after that here

PS : Thank for help mr. abukhlifa adeplomsi

NOTE : Be sure you dont mis during the copy and paste

Try again by copying to a text document and then to modify the template
Enjoy

Download Now

File Type: txt arabic description.txt (1.6 KB, 78 views)

Screenshots

File Type: jpg before.jpg (73.5 KB, 0 views)
File Type: jpg after.jpg (76.3 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-28-2010, 06:53 PM
Cableguy69 Cableguy69 is offline
 
Join Date: Apr 2008
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just tried to add this to the test forum (VB 4.0.1), but the forumhome template doesn't have the code you said to replace. I know it was there with Gold but it seems there have been some substancial changes with 4.0.1

PHP Code:
{vb:stylevar htmldoctype}
<
html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<
head>
 
    {
vb:raw headinclude}
    <
title>{vb:raw vboptions.bbtitle}</title>

    <
vb:if condition="$vboptions['storecssasfile']">
        <
link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}forumhome-rollup.css" />
    <
vb:else />
    <
link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}forumbits.css,forumhome.css,tagcloud.css" />
    </
vb:if>

    <!--[if 
IE 6]><link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}forumbits-ie.css" /><![endif]-->
    <
vb:if condition="$show['sidebar']">
    <
script type="text/javascript" src="{vb:stylevar yuipath}/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>
    <
script type="text/javascript">
        var 
sidebar_align '<vb:if condition="$vboptions['sidebarposition'] == 0">left<vb:else />right</vb:if>';
        var 
content_container_margin parseInt('{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}}');
        var 
sidebar_width parseInt('{vb:stylevar forum_sidebar_width}');
    </
script>
    <
script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-sidebar.js?v={vb:raw vboptions.simpleversion}"></script>
    </
vb:if>
    {
vb:raw headinclude_bottom}
</
head>
    <
body>

<
script type="text/javascript">
document.write(unescape('%3Cscript type="text/javascript" src="'+
document.location.protocol+'//counter.goingup.com/js/tracker.js?st=bpkpctp&amp;b=5"%3E%3C/script%3E'));
</
script>
<
noscript><a href="http://www.goingup.com" title="free seo tools"><img src="http://counter.goingup.com/default.php?st=bpkpctp&amp;b=5" border="0" alt="free seo tools" /></a></noscript>



    {
vb:raw header}

    {
vb:raw navbar}

    <
div id="pagetitle">
        <
h1>{vb:raw vboptions.bbtitle}</h1>
        <
p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
    </
div>

    <
vb:if condition="$show['sidebar']">
    <
div id="content_container"<vb:if condition="$vboptions['sidebarposition'] == 0"> class="contentright"</vb:if>>
        <
div id="content">
    </
vb:if>
    <!-- 
main -->
        {
vb:raw template_hook.forumhome_above_forums}
    <
ol id="forums" class="floatcontainer">
        {
vb:raw forumbits}
    </
ol>
        {
vb:raw template_hook.forumhome_below_forums}
    <!-- /
main -->

        <
div class="navlinks">
        <
a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
    <
vb:if condition="$vboptions['forumleaders']">|
    <
a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
        <
vb:if condition="$vb_suite_installed">
            {
vb:rawphrase view_site_leaders}
        <
vb:else />
            {
vb:rawphrase view_forum_leaders}
        </
vb:if>
    </
a></vb:if>
        </
div>

    {
vb:raw forumhome_markread_script}

    {
vb:raw ad_location.ad_forumhome_afterforums}

    <!-- 
what's going on box -->
    <div id="wgo" class="collapse wgo_block">
        <h2>
        <span>{vb:rawphrase whats_going_on}</span>
        </h2>
        <div class="floatcontainer">
            {vb:raw template_hook.forumhome_wgo_pos1}
            <vb:if condition="$show['
loggedinusers']">
            <!-- logged-in users -->
            <div id="wgo_onlineusers" class="wgo_subblock">
                <h3><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
                <div>
                    <p>{vb:rawphrase there_are_x_online, {vb:raw totalonline}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
                    <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
                    <ol class="commalist" id="wgo_onlineusers_list">
                        {vb:raw activeusers}
                    </ol>
                </div>
            </div>
            <!-- end logged-in users -->
            </vb:if>
            {vb:raw template_hook.forumhome_wgo_pos2}
            <vb:if condition="$show['
upcomingevents']">
            <div id="wgo_events" class="wgo_subblock">
                <h3><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['
todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
                <ol>
                    {vb:raw upcomingevents}
                </ol>
            </div>
            </vb:if>
            {vb:raw template_hook.forumhome_wgo_pos3}
            <vb:if condition="$show['
birthdays']">
            <!-- today'
s birthdays -->
            <
div id="wgo_birthdays" class="wgo_subblock">
                <
h3><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
                <
ol class="commalist">
                    {
vb:raw birthdays}
                </
ol>
            </
div>
            <!-- 
end today's birthdays -->
            </vb:if>
            {vb:raw template_hook.forumhome_wgo_pos4}
            <div id="wgo_stats" class="wgo_subblock">
                <h3><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
                <div>
                    <dl>
                        <dt>{vb:rawphrase threads}</dt>
                            <dd>{vb:raw totalthreads}</dd>
                        <dt>{vb:rawphrase posts}</dt>
                            <dd>{vb:raw totalposts}</dd>
                        <dt>{vb:rawphrase members}</dt>
                            <dd>{vb:raw numbermembers}</dd>
                        <vb:if condition="$show['
activemembers']">
                                                <dt>{vb:rawphrase active_members}</dt>
                                                         <dd>{vb:raw activemembers}</dd>
                                                </vb:if>
                    </dl>
                    <p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
                    {vb:raw template_hook.forumhome_wgo_stats}
                </div>
            </div>
            <div id="wgo_legend" class="wgo_subblock">
                <h3><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
                <div>
                    <dl id="icon_legends" class="icon_legends">
                        <dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
                        <dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
                        <dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
                        <dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
                    <vb:if condition="$vboptions['
pt_hasprojectforums']">
                        <dt><img src="{vb:stylevar imgdir_statusicon}/project_new-16.png" alt="{vb:rawphrase project_forum}" /></dt><dd>{vb:rawphrase project_forum}</dd>
                    </vb:if>
                    </dl>
                </div>
            </div>
            {vb:raw template_hook.forumhome_wgo_pos5}
        </div>
    </div>
    <!-- end what'
s going on box -->

    {
vb:raw ad_location.board_below_whats_going_on}
    <
vb:if condition="$show['sidebar']">
        </
div>
    </
div>

    <
div id="sidebar_container"<vb:if condition="$vboptions['sidebarposition'] == 0"> class="sidebarleft"</vb:if>>
        <
a id="sidebar_button_link" href="#">
            <
vb:if condition="$vboptions['sidebarposition'] == 0">
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
            <
vb:else />
            <
img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
            </
vb:if>
        </
a>
        <
ul id="sidebar">
            {
vb:raw sidebar}
        </
ul>
    </
div>
    </
vb:if>

    {
vb:raw footer}
</
body>
</
html
Reply With Quote
  #33  
Old 01-28-2010, 07:29 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had to un-install due to not having any of those code you ask to change or the code to post above,
Reply With Quote
  #34  
Old 02-05-2010, 05:08 AM
nci nci is offline
 
Join Date: Aug 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Work as always Dr ,Installed.
Reply With Quote
  #35  
Old 02-05-2010, 06:20 AM
Switch3130 Switch3130 is offline
 
Join Date: Jun 2006
Location: United States
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made the correct template edits, and this still didn't work for me.
Reply With Quote
  #36  
Old 02-08-2010, 10:26 PM
Cableguy69 Cableguy69 is offline
 
Join Date: Apr 2008
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must have been having an off day lol, I've got it working thank you, looks much better now.
Reply With Quote
  #37  
Old 02-10-2010, 01:20 AM
Jassem's Avatar
Jassem Jassem is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank'ss

بآركـ الله بكـ آخي الكريم على الهاك

دُمتَ برعايه الله

www.Arlive.net
Reply With Quote
  #38  
Old 02-25-2010, 03:29 AM
Mastergumble Mastergumble is offline
 
Join Date: Sep 2008
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome

Installed it and love it ^^
Reply With Quote
  #39  
Old 03-01-2010, 09:00 PM
Trumpetrhapsody Trumpetrhapsody is offline
 
Join Date: Oct 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance this could be made into a mod with autotemplate scripts?

VB Should have this as an option by default
Reply With Quote
  #40  
Old 03-02-2010, 03:43 AM
Switch3130 Switch3130 is offline
 
Join Date: Jun 2006
Location: United States
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured this only worked if you used vB's sidebar, but I'm using another users on 4.0. How can I do this?
Reply With Quote
  #41  
Old 03-07-2010, 07:03 PM
axix20xx axix20xx is offline
 
Join Date: Mar 2009
Location: Iran
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx very nice looking now
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 10:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04822 seconds
  • Memory Usage 2,436KB
  • Queries Executed 27 (?)
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
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (3)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete