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)

bluered 08-15-2010 11:15 PM

thanks installed.

YankForum 08-20-2010 11:24 PM

thank you again , works perfect on 4.0.6

rtyagis 08-21-2010 09:42 AM

Nice One - :up:##Tagged ##

Skyrider 09-28-2010 10:36 AM

Mmm, I have a plugin installed so I can add affiliates at the bottom of the site.. but it seems this plugin causes it to be removed/hidden for guests.

Krusty1231 10-05-2010 04:01 PM

Thanks - installed and working fine.

AURFSCAN 11-07-2010 03:44 PM

To get this to display properly with 4.08 I had to modify the code a bit


find

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

place before

PHP Code:

    <vb:if condition="$show['guest']">
<
div id="wgo" class="collapse wgo_block block">
        <
h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
        <
div class="blockbody formcontrols floatcontainer">
<
br />    
<
p><center>To be able to view the Statistic Centeryou must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or loginThank you!</center></p>
<
br />    
</
div>    
</
div>
<
vb:else /> 

find

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

place after

PHP Code:

</vb:if> 


Mo HaRbI 11-22-2010 11:23 AM

Thanks - installed and working fine with 4.08
I am going to keep it for a short time just to see if the members like it or not
sorry I forget to advise you that I got it in ARABIC for my needs !

Thanks once more

FReeSTER 11-24-2010 08:04 PM

Quote:

Originally Posted by AURFSCAN (Post 2119077)
To get this to display properly with 4.08 I had to modify the code a bit


find

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

place before

PHP Code:

    <vb:if condition="$show['guest']">
<
div id="wgo" class="collapse wgo_block block">
        <
h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
        <
div class="blockbody formcontrols floatcontainer">
<
br />    
<
p><center>To be able to view the Statistic Centeryou must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or loginThank you!</center></p>
<
br />    
</
div>    
</
div>
<
vb:else /> 

find

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

place after

PHP Code:

</vb:if> 


Thank you bro, works great on 4.0.8 p2

qubed 02-19-2011 11:06 AM

Does anyone know if this works with 4.1.2? And if not, anything that might?

bulldog51981 02-20-2011 05:20 AM

Confirmed working on 4.1.1, should work with 4.1.2

stained 02-24-2011 10:47 AM

Confirmed working in 4.1.2

Randomm 02-25-2011 01:07 AM

Thanks a lot AURFSCAN!
It works. Anyway to also include (hide) the What's Going On?

rated, installed, and niminated

AURFSCAN 02-25-2011 05:42 PM

1 Attachment(s)
Quote:

Originally Posted by Randomm (Post 2166558)
Thanks a lot AURFSCAN!
It works. Anyway to also include (hide) the What's Going On?

rated, installed, and niminated


remove

Code:

<h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
for a cleaner look :)


kudos to borbole for the idea, I just made it work for later versions

borbole 03-28-2011 07:21 PM

The edits are updated for the latest version, 4.1.2!

djbaxter 03-28-2011 07:48 PM

Quote:

Originally Posted by borbole (Post 2178492)
The edits are updated for the latest version, 4.1.2!

What exactly has changed? It seems to be working fine in 4.12 for me so I'd rather not do back and revert the template and start all over again.

borbole 03-30-2011 09:52 AM

Quote:

Originally Posted by djbaxter (Post 2178498)
What exactly has changed? It seems to be working fine in 4.12 for me so I'd rather not do back and revert the template and start all over again.

If the edits are working fine for you then no revert is necessary. A class name had changed. In a fresh vb 4.1.2 it wouldn''t have worked properly, hence posting the new edits.

djbaxter 03-30-2011 02:30 PM

What was the class name?

borbole 03-30-2011 03:32 PM

Quote:

Originally Posted by djbaxter (Post 2179116)
What was the class name?

I don''t remeber it off hand now. But if you would look the up the names at your template and compare it with the new edits I posted, you will see the difference.

BF777 03-31-2011 07:03 PM

After installing this mod, my logged in users can no longer see the users in the "What's Going On" box. How do I enable it for logged in users?

borbole 03-31-2011 07:08 PM

Quote:

Originally Posted by BF777 (Post 2179517)
After installing this mod, my logged in users can no longer see the users in the "What's Going On" box. How do I enable it for logged in users?

This hides it for guests only. Did you make sure that you did the changes right?

BF777 03-31-2011 07:36 PM

Quote:

Originally Posted by AURFSCAN (Post 2119077)
To get this to display properly with 4.08 I had to modify the code a bit


find

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

place before

PHP Code:

    <vb:if condition="$show['guest']">
<
div id="wgo" class="collapse wgo_block block">
        <
h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
        <
div class="blockbody formcontrols floatcontainer">
<
br />    
<
p><center>To be able to view the Statistic Centeryou must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or loginThank you!</center></p>
<
br />    
</
div>    
</
div>
<
vb:else /> 

find

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

place after

PHP Code:

</vb:if> 


This worked for me. Thank you.

Using this code, does anyone know how to center "What's Going On?"

Or is that impossible because the main forum page "What's Going On" box has the text aligned to the left as well? Is it grabbing the info from there?

Also, I am currently running VB 4.1.1 suite. However, the code that worked was supposedly for 4.0.8. Will I encounter any problems?

AURFSCAN 03-31-2011 10:54 PM

BF777
Center 'Whats Going On' In guest only message

find line in code

Code:

<h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>

replace with

Code:

<h2 class="blockhead"><center>{vb:rawphrase whats_going_on}</center></h2>





Is it grabbing the info from there?

No, this is an additional, seperate message just for guests

However, the code that worked was supposedly for 4.0.8. Will I encounter any problems?

No :)

borbole 04-01-2011 01:52 PM

Quote:

Originally Posted by AURFSCAN (Post 2179583)
BF777
Center 'Whats Going On' In guest only message

find line in code

Code:

<h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>

replace with

Code:

<h2 class="blockhead"><center>{vb:rawphrase whats_going_on}</center></h2>





Is it grabbing the info from there?

No, this is an additional, seperate message just for guests

However, the code that worked was supposedly for 4.0.8. Will I encounter any problems?

No :)

The center tags have been depricated. In my original code I have centered the text with valid code. It would be better if you used that instead.

AURFSCAN 04-01-2011 06:52 PM

dang.. dont ya just hate depreciation :rolleyes: .. do what borbole said BF777 and use his original code. :up:

danyol1706 05-15-2011 05:52 PM

I run 4.1.3 and it works for hiding the "what's going on" section for guests, but it also hides the forum sidebar for guests on my forum.

Is there something in the code that may trigger this? If so, how do I alter the code to prevent this?

danyol1706 05-15-2011 05:56 PM

Also, when I copy and paste the code as instructed, I get the following message:

The following error occurred when attempting to evaluate this template:
Unclosed Tag
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

raj4x 05-21-2011 11:03 AM

Wow, very nice...thanks!

How can I also exclude other groups from viewing this info?
For example exclude members also.

Thanks again,

Raj.

lycheepassion 06-17-2011 09:36 PM

I want to remove this and revert to default but I try and get this error, why? :
Style Manager
adding child to non-existent node!

negrowarez 06-20-2011 05:55 AM

hello, I can used with vb 4.1.4?

fookaa 11-27-2011 05:57 PM

Hi,

Thanks for this, been looking around to find out how to do it :D

1 thing though....

See if as a guest you try to click on something you not permitted to view it redirects you to a big login box telling you you dont have permissions blaah login ect...

Can it not be made to just show that instead of the box you made ?

fookaa 11-28-2011 10:35 PM

Quote:

Originally Posted by fookaa (Post 2272451)
Hi,

Thanks for this, been looking around to find out how to do it :D

1 thing though....

See if as a guest you try to click on something you not permitted to view it redirects you to a big login box telling you you dont have permissions blaah login ect...

Can it not be made to just show that instead of the box you made ?


Ah ha :D

I found a nice way to do this :D

Instead of the code at the top use this

Code:

<vb:if condition="$show['guest']">
<vb:if condition="THIS_SCRIPT != 'register'" AND condition="$bbuserinfo['userid'] == 0">
        <meta HTTP-EQUIV="REFRESH" content="0; url=http://yoursite.com/subscription.php">
</vb:if>
<vb:else />

I put that under the

Code:

{vb:raw navbar}
:D

OldSchoolDSL 11-30-2011 03:10 PM

The code has changed some, but this modification still works.

Installed 4.1.8

bosanci28 12-01-2011 05:06 AM

installed,works in vb 4.1.8! thanks.

rfranklin 02-23-2012 03:52 AM

Anyone else have the commas disappear between online users for 4.1.10 or possibly earlier? I had to adjust the code to put them back in. Just curious.

Other than that it works great still. :)

stealhead_dan 04-23-2012 03:09 PM

instead of

HTML Code:

{vb: raw birthdays}
in the modified code for version 4.1.12 you need to change replace the code with


HTML Code:

<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>

otherwise you get the word ARRAY showing for birthdays

works otherwise

marccap 05-10-2012 12:00 PM

Quote:

Originally Posted by stealhead_dan (Post 2322784)
instead of

HTML Code:

{vb: raw birthdays}
in the modified code for version 4.1.12 you need to change replace the code with


HTML Code:

<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>

otherwise you get the word ARRAY showing for birthdays

works otherwise

Thanks for that as it shows array for me on 4.1.12 :up:

New Joe 05-10-2012 01:10 PM

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.

Boofo 05-10-2012 01:26 PM

What options?

djbaxter 05-10-2012 01:56 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.

Quote:

Originally Posted by Boofo (Post 2328017)
What options?

1. Admin CP >> Usergroup >> Usergroup Manager

2. select Usergroup: Unregistered / Not Logged In

3. Who's Online Permissions -> Set all to No

No add-on needed. Already built in.

Boofo 05-10-2012 02:17 PM

That doesn't hide the whole What's Going On box, though, like this mod does.


All times are GMT. The time now is 01:08 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.01395 seconds
  • Memory Usage 1,854KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_html_printable
  • (6)bbcode_php_printable
  • (12)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