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)

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 ?


All times are GMT. The time now is 03:35 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.01135 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)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