vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Hide Lastest Post From Guests (https://vborg.vbsupport.ru/showthread.php?t=262142)

Eplexx 04-16-2011 10:00 PM

Hide Lastest Post From Guests
 
1 Attachment(s)
I just wanted to disable guests from viewing the last post so I edited the last post. Looks like this:

http://screensnapr.com/e/psiNnt.png

You can customize the message, color etc.

How to do it:

1. Goto: forumhome_lastpostby and put this code at the top:
Code:

<if condition="$show['guest']">
<font color="#ff0000">[Register to see last post]</font>
</if>

2. Find:
Code:

<if condition="$show['lastpostinfo']">
and add this above:
Code:

<if condition="$show['member']">
3. Find:
Code:

<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
and add this below:
Code:

</if>
If you have any issues just post and I can help you, there are loads of things you'd be able to but I just customized it for disabling the guest viewing.

s.sami 04-19-2011 07:29 AM

how can i hide which i choose members or ranks ? also which i want categories? : )

thanks

Eplexx 04-20-2011 11:10 PM

Quote:

Originally Posted by s.sami (Post 2186217)
how can i hide which i choose members or ranks ? also which i want categories? : )

thanks

Code:

<if condition="is_member_of($bbuserinfo, 1, 2, 3)">[Register to see last post]</font>
</if>

Is this what your asking?


All times are GMT. The time now is 05:57 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.00993 seconds
  • Memory Usage 1,715KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete