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)

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 03:55 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.01156 seconds
  • Memory Usage 1,744KB
  • 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_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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