vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Hide What's going on from guests! (https://vborg.vbsupport.ru/showthread.php?t=237485)

borbole 05-10-2012 07:14 PM

Quote:

Originally Posted by New Joe (Post 2328013)
I don't get this.
I have options set on my Forum so guests can't see 'what's going on' without having to do anything like this.

There is no built in option in vb that will hide the entire What is going block from guests or from anyone else for that matter.


The first post is updated with the edits for the latest vb version.

knelo1 05-19-2012 11:04 PM

nice instaled Version 4.1.10 working:)

New Joe 06-14-2012 12:13 AM

Does the code still work for vb 4.2.0?

Is there any changes needed or not to the original code?

Bob_R 09-17-2012 05:28 PM

Anyway to make this visible to the Admin when not logged in?

Bob_R 09-17-2012 06:51 PM

:confused:

This mod seems to have taken out the

Total members that have visited the forum in the last 24 hours:

part of the What's Going On? box

Bob_R 09-17-2012 10:31 PM

1 Attachment(s)
Uninstalled (for now)

I know why it's not working but do not know how to fix it.

Note: This mod does indeed show me and works with what it was made for and that's OK but when the mod is installed:

This setting (see screenshot 1) prevents this (see screenshot 2) from showing when logged in, using this mod.

As soon as I uninstalled the mod screenshot 2 was displaying again

Bob_R 09-18-2012 07:23 PM

Figured it out myself.

Had to play with the code and change the wgo_pos2 to wgo_pos6. And then added my wgo_pos2. Which corresponded to my post above.

nerowolfe 09-19-2012 08:42 AM

Work's ok in 4.2.0. Ty :)

AK47- 01-21-2013 12:38 AM

Hello i use a paid purevb theme here is my FORUMHOME can you fix it please because it doesn't work here you go

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
        {vb:raw headinclude}
        <title>{vb:raw vboptions.bbtitle}</title>
        <script type="text/javascript" src="clientscript/vbulletin_read_marker.js?v={vb:raw vboptions.simpleversion}"></script>
        <vb:if condition="$vboptions['storecssasfile']">
        {vb:cssfile forumhome-rollup.css}
        <vb:else />
        {vb:cssfile forumbits.css,forumhome.css,options.css}
        </vb:if>
        <!--[if lt IE 8]>{vb:cssfile forumbits-ie.css,options-ie.css}<![endif]-->
        <vb:if condition="$show['sidebar']">
        {vb:cssfile sidebar.css,widgets.css,tagcloud.css}
        <!--[if lt IE 8]>{vb:cssfile sidebar-ie.css}<![endif]-->
        <script type="text/javascript">
        <!--
                document.write('<script type="text/javascript" src="' + yuipath + '/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>');
                var sidebar_align = '{vb:raw show.sidebarposition}';
                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>

        {vb:raw header}

        {vb:raw navbar}
<!--SHOUTBOX-->

        <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" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
                <div id="content" <vb:if condition="$sidebar_class">class="{vb:raw $sidebar_class}"</vb:if>>
        </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 id="navcustom" class="navlinks">
        <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" 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 ad_location.board_after_forums}
        <!-- what's going on box -->
<!-- Start Whats Going Heading PurevB -->
<div class="tcat">
        <div class="tcatLeft"><div class="tcatRight foruminfo L1 collapse"><div class="tcatWrap">
                <h2>
                <span class="forumtitle">{vb:rawphrase whats_going_on}</span>
                </h2>
        </div></div></div>
</div>
<!-- End Whats Going  Heading PurevB -->
        <div id="wgo" class="collapse wgo_block block">
                <div class="blockbody formcontrols floatcontainer">
                        {vb:raw template_hook.forumhome_wgo_pos1}
                        <vb:if condition="$show['loggedinusers']">
                        <!-- logged-in users -->
                        <div id="wgo_onlineusers" class="wgo_subblock section">
                                <h3 class="blocksubhead"><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_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <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>
                                        <vb:if condition="$activeusers">
                                        <ol class="commalist" id="wgo_onlineusers_list">
                                                <vb:each from="activeusers" value="loggedin">
                                                        <li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
                                                </vb:each>
                                        </ol>
                                        </vb:if>
                                </div>
                        </div>
                        <!-- end logged-in users -->
                        </vb:if>
                        {vb:raw template_hook.forumhome_wgo_pos2}
                        <!-- Start Members Today -->
                        <vb:if condition="$show['wgo_members']">
                        <div id="wgo_wgo_members_users" class="wgo_subblock section collapse">
                                <h3 class="blocksubhead"><a href="{vb:raw wgo_members.url}"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:phrase wgo_members_alt_title}"/></a>{vb:raw wgo_members.whotitle}</h3>
                                <a class="collapse" id="collapse_wgo_members_list" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw wgo_members.collapse}.png" alt="" title="{vb:rawphrase collapse_expand}" /></a>
                                <div id="wgo_members_list" {vb:raw wgo_members.style}>
                                        <p>{vb:raw wgo_members.visitors}</p>
                                        <vb:if condition="$vboptions['wgo_members_names']">
                                                <vb:if condition="$wgo_members['totaltoday'] == 0">
                                                        {vb:phrase no_members_list}
                                                <vb:else />
                                                        <ul class="commalist" id="wgo_wgo_members_list">
                                                                <vb:if condition="$wgo_members['template_hook']">
                                                                        {vb:raw wgo_members.template_hook}
                                                                <vb:else />
                                                                        <vb:each from="wgo_members_list" value="row">
                                                                                <li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw row}}" title="{vb:raw row.wrdate}">{vb:raw row.musername}</a>{vb:raw row.markinv}{vb:raw row.comma}</li>
                                                                        </vb:each>
                                                                </vb:if>
                                                        </ul>
                                                </vb:if>
                                        <vb:else />
                                                {vb:phrase member_list_disabled}
                                        </vb:if>
                                </div>
                        </div>
                        </vb:if>
                        <!-- End Members Today -->
                        {vb:raw template_hook.forumhome_wgo_pos6}
                        <vb:if condition="$show['upcomingevents']">
                        <div id="wgo_events" class="wgo_subblock section">
                                <h3 class="blocksubhead"><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 section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
                                <ol class="commalist">
                                        <vb:each from="birthdays" value="row">
                                                <li><a href="{vb:link member, {vb:raw row}}">{vb:raw row.username}</a><vb:if condition="$row['age']"> ({vb:raw row.age})</vb:if>{vb:raw row.comma}</li>
                                        </vb:each>
                                </ol>
                        </div>
                        <!-- end today's birthdays -->
                        </vb:if>
                        {vb:raw template_hook.forumhome_wgo_pos4}
                        <div id="wgo_stats" class="wgo_subblock section">
                                <h3 class="blocksubhead"><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>
                        {vb:raw template_hook.forumhome_wgo_pos5}
                </div>
        <div class="bottomBar"><div class="bottomBarLeft"><div class="bottomBarRight">&nbsp;</div></div></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_home">
        <div id="sidebar_container" class="<vb:if condition="$show['sidebarposition'] == 'left'">sidebarleft</vb:if><vb:if condition="$close_sidebar"> sidebar_closed</vb:if>">
                <a id="sidebar_button_link" href="#">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded-left.png<vb:else />tab-collapsed-left.png</vb:if>" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded.png<vb:else />tab-collapsed.png</vb:if>" alt="" />
                        </vb:if>
                </a>
                <ul id="sidebar" <vb:if condition="$close_sidebar">class="sidebar_hidden"</vb:if> >
                        {vb:raw sidebar}
                </ul>
        </div>
</div>
        </vb:if>
        <script type="text/javascript">
        <!--
        vbphrase['doubleclick_forum_markread'] = "{vb:rawphrase doubleclick_forum_markread}";
        init_forum_readmarker_system();
        //-->
        </script>
        {vb:raw footer}
</body>
</html>


borbole 01-21-2013 09:46 AM

Quote:

Originally Posted by AK47- (Post 2398296)
Hello i use a paid purevb theme here is my FORUMHOME can you fix it please because it doesn't work here you go

Why don''t you wait patiently here until I read your post but you have to bother me in private?

My signature there is not for nothing you know? Do not contact me ever in private or otherwise. You are in my ignore list now.

Krusty1231 01-24-2013 08:20 AM

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
        {vb:raw headinclude}
        <title>{vb:raw vboptions.bbtitle}</title>
        <script type="text/javascript" src="clientscript/vbulletin_read_marker.js?v={vb:raw vboptions.simpleversion}"></script>
        <vb:if condition="$vboptions['storecssasfile']">
        {vb:cssfile forumhome-rollup.css}
        <vb:else />
        {vb:cssfile forumbits.css,forumhome.css,options.css}
        </vb:if>
        <!--[if lt IE 8]>{vb:cssfile forumbits-ie.css,options-ie.css}<![endif]-->
        <vb:if condition="$show['sidebar']">
        {vb:cssfile sidebar.css,widgets.css,tagcloud.css}
        <!--[if lt IE 8]>{vb:cssfile sidebar-ie.css}<![endif]-->
        <script type="text/javascript">
        <!--
                document.write('<script type="text/javascript" src="' + yuipath + '/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>');
                var sidebar_align = '{vb:raw show.sidebarposition}';
                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>

        {vb:raw header}

        {vb:raw navbar}
<!--SHOUTBOX-->

        <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" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
                <div id="content" <vb:if condition="$sidebar_class">class="{vb:raw $sidebar_class}"</vb:if>>
        </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 id="navcustom" class="navlinks">
        <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" 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 ad_location.board_after_forums}
<vb:if condition="$show['guest']">
<div class="collapse wgo_block block" style="text-align: center;">
<h2 class="blockhead"><span>What's Going On is disabled for guests!</span></h2>
<div class="blockbody formcontrols floatcontainer" style="text-align: center;">               
<p>Hello there guest!<br />
To be able to view the Statistic Center, you must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or login. Thank you!</p>       
</div>       
</div>
<vb:else />
<!-- what's going on box -->
        <div id="wgo" class="collapse wgo_block block">
                <h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
                <div class="blockbody formcontrols floatcontainer">
                        {vb:raw template_hook.forumhome_wgo_pos1}
                        <vb:if condition="$show['loggedinusers']">
                        <!-- logged-in users -->
                        <div id="wgo_onlineusers" class="wgo_subblock section">
                                <h3 class="blocksubhead"><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_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <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>
                                        <vb:if condition="$activeusers">
                                        <ol class="commalist" id="wgo_onlineusers_list">
                                                <vb:each from="activeusers" value="loggedin">
                                                        <li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
                                                </vb:each>
                                        </ol>
                                        </vb:if>
                                </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 section">
                                <h3 class="blocksubhead"><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 section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
                                <ol class="commalist">
                                        <vb:each from="birthdays" value="row">
                                                <li><a href="{vb:link member, {vb:raw row}}">{vb:raw row.username}</a><vb:if condition="$row['age']"> ({vb:raw row.age})</vb:if>{vb:raw row.comma}</li>
                                        </vb:each>
                                </ol>
                        </div>
                        <!-- end today's birthdays -->
                        </vb:if>
                        {vb:raw template_hook.forumhome_wgo_pos4}
                        <div id="wgo_stats" class="wgo_subblock section">
                                <h3 class="blocksubhead"><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 section">
                                <h3 class="blocksubhead"><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>
                                                <vb:if condition="$vboptions['showlocks']"><dt><img src="{vb:stylevar imgdir_statusicon}/forum_lock-16.png" alt="{vb:rawphrase forum_is_closed_for_posting}" /></dt><dd>{vb:rawphrase forum_is_closed_for_posting}</dd></vb:if>
                                                <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:raw template_hook.forumhome_icon_legend}
                                        </dl>
                                </div>
                        </div>
                        {vb:raw template_hook.forumhome_wgo_pos5}
                </div>
        </div>
        <!-- end what's going on box -->
        </vb:if>

        {vb:raw ad_location.board_below_whats_going_on}
        <vb:if condition="$show['sidebar']">
                </div>
        </div>
<div id="sidebar_home">
        <div id="sidebar_container" class="<vb:if condition="$show['sidebarposition'] == 'left'">sidebarleft</vb:if><vb:if condition="$close_sidebar"> sidebar_closed</vb:if>">
                <a id="sidebar_button_link" href="#">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded-left.png<vb:else />tab-collapsed-left.png</vb:if>" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded.png<vb:else />tab-collapsed.png</vb:if>" alt="" />
                        </vb:if>
                </a>
                <ul id="sidebar" <vb:if condition="$close_sidebar">class="sidebar_hidden"</vb:if> >
                        {vb:raw sidebar}
                </ul>
        </div>
</div>
        </vb:if>
        <script type="text/javascript">
        <!--
        vbphrase['doubleclick_forum_markread'] = "{vb:rawphrase doubleclick_forum_markread}";
        init_forum_readmarker_system();
        //-->
        </script>
        {vb:raw footer}
</body>
</html>

@ AK47- Give that a whirl - it should work fine!

Naijasite 02-19-2013 11:10 PM

workes well for 4.2

tanzeelniazi 03-27-2013 08:26 AM

Working Perfect in 4.2.0 :)

Naijasite 04-04-2013 10:20 PM

if i hide what's going on from guest. Will it prevent search engines from crawling content from the what's going on?

I have a mod installed which shows Visitors found this page by searching for blabla,testing etc.
wil seo still be able to crawl the words on what's going on?

djbaxter 04-04-2013 11:17 PM

Quote:

Originally Posted by Naijafinder (Post 2414309)
if i hide what's going on from guest. Will it prevent search engines from crawling content from the what's going on?

I have a mod installed which shows Visitors found this page by searching for blabla,testing etc.
wil seo still be able to crawl the words on what's going on?

Are you confusing "What's Going On" with "Activity"?

What's Going On just shows stats and members online, etc. I doubt that's a rich source of info for spiders or human visitors for specific threads or posts.

The answer is no - it won't impede search engine spiders at all from finding your content.

marccap 04-11-2013 11:33 PM

I just added this before the "whats going on"

PHP Code:

<vb:if condition="$show['guest']">
<
div class="collapse wgo_block block" style="text-align: center;">
<
h2 class="blockhead"><span>What's Going On is disabled for guests!</span></h2>
<div class="blockbody formcontrols floatcontainer" style="text-align: center;">        
<p>Hello there guest!<br />
To be able to view the Statistic Center, you must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or login. Thank you!</p>    
</div>    
</div>
<vb:else /> 

and added this after and works fine on 4.2

PHP Code:

</vb:if> 


Cruncher Pete 07-11-2013 02:39 AM

This is exactly what I need, so I tried it out in my localhost first and received the following error:

Parse error: syntax error, unexpected '.' in C:xamp\htdocs\vB\includes\class_core.php(4716):eva l0'd code on line 145.

Code on line 145 reads as follows:

var $appshortname = 'vBulletin";

How do I fix this as I do not know much about coding errors.?


All times are GMT. The time now is 08: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.01574 seconds
  • Memory Usage 1,915KB
  • 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
  • (2)bbcode_php_printable
  • (3)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
  • (17)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