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 - Attention Guest: Please Register! (https://vborg.vbsupport.ru/showthread.php?t=207066)

tommyturnage 03-01-2009 10:00 PM

Attention Guest: Please Register!
 
1 Attachment(s)
This is a simple notice for guests to register. Its on a table by itself like a notice.

Please Click Installed. My First "Mod" :D

Open FORUMHOME

Find:
Code:

<if condition="$show['guest']">
<!-- guest welcome message -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
    <td class="alt1">
        <phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
    </td>
</tr>
</table>
<!-- / guest welcome message -->
<br />
</if>

Replace With:
Code:

<if condition="$show['guest']">
 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>

<td class="tcat" width="100%">
<div style="text-align: center;">
Join Today!
</div>
</td>

</tr>

<tr>

<td class="alt1" width="100%">
<div class="smallfont">
<center>
<a href="http://www.yoursite/forum/register.php"><FONT SIZE=4>Attention Guest: Please Register!</FONT></a>
<BR>
This enables access to exclusive features such as viewing over 23,000 downloads, posting, and joining our 10,000 strong community!
</center>
</div>
</td>

</tr>
</table>
</if>
<BR>

Change The Words In Red To Whatever You Want
Change The Link In Blue To Your Own Link

itsheinz 03-02-2009 03:33 AM

What template should we edit?

Extreme24 03-02-2009 03:43 AM

^^Probably the FORUMHOME template.

tommyturnage 03-02-2009 03:58 AM

Yeah, sorry. Forgot to include that.

Added it tho lol

Mike-D 03-02-2009 05:44 AM

Quote:

Originally Posted by tommyturnage
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>

<td class="tcat" width="100%">
<div style="text-align: center;">
Join Today!
</div>
</td>

</tr>

<tr>

<td class="alt1" width="100%">
<div class="smallfont">
<center>
<a href="http://www.yoursite/forum/register.php"><FONT SIZE=4>Attention Guest: Please Register!</FONT></a>
<BR>
This enables access to exclusive features such as viewing over 23,000 downloads, posting, and joining our 10,000 strong community!
</center>
</div>
</td>

</tr>
</table>
</if>
<BR>

You should use Phrases! That's what Phrases are for. Also <BR> Tags are obsolete. In this case you should use the <br /> Tag instead of the old ones ;)

Sweeks 03-02-2009 06:26 AM

Quote:

Originally Posted by Mike-D (Post 1758238)
You should use Phrases! That's what Phrases are for. Also <BR> Tags are obsolete. In this case you should use the Tag instead of the old ones ;)

Youre forgetting styling the text with CSS too.
________
Bdsm xxx

tommyturnage 03-02-2009 06:30 AM

Ehh its the first thing I have ever really made up on my own so yea it needs work.

But I thought it was cool so I posted it

solution24 03-02-2009 05:45 PM

Lol stolen from WarezScene

whitetigergrowl 03-03-2009 04:34 AM

Stealing from the stealers? lol

bleros 03-04-2009 02:31 PM

thnx mann is work fine

tommyturnage 03-06-2009 07:10 AM

whos to say they didnt steal it from me?

Davros 03-06-2009 07:34 PM

I've used this. It does it's job cheers.

Installed

Jasem 03-09-2009 01:04 AM

Good work, thank you......

BSMedia 03-12-2009 02:23 AM

You should replace the font tags with CSS properties

Any why use a manual template edit for what the notice system already does, and there is already a spot on forum home that has this?

emsplanet 03-16-2009 01:53 PM

thanksss

kyleforrest 04-10-2009 12:06 AM

Thanks for this :)

solidstate 04-13-2009 12:38 PM

woow it worked on my forum. see here: http://nulledplanet.com

dianna 04-30-2009 04:44 PM

Thx works great!

nomoreturn 05-01-2009 01:25 AM

Installed on 3.8.2 but i dint replace just add below
---------------------------
<if condition="$show['guest']">
<!-- guest welcome message -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</table>
<!-- / guest welcome message -->
<br />
</if>
-----------------------------

and welcome note and join today both are working good

bjkinzluvr 05-05-2009 04:52 PM

I just put the same thing in Notices and it is at the top where it is most visible. And it is easy to turn on and off, if desired. No template editing needed. Sorry, nothing against your mod, but for me Notices is just easier.

Speedy1050 06-14-2009 05:05 AM

Quote:

Originally Posted by bjkinzluvr (Post 1805183)
I just put the same thing in Notices and it is at the top where it is most visible. And it is easy to turn on and off, if desired. No template editing needed. Sorry, nothing against your mod, but for me Notices is just easier.


Same here. Used VB notice manager and set permissions so only people not registered can see it. Does the same job without hacking the code


Soz

SirHappy 06-20-2009 03:20 PM

thx. works in 3.8.3.

tommyturnage 10-05-2009 04:02 AM

Quote:

Originally Posted by solidstate (Post 1790169)
woow it worked on my forum. see here: http://nulledplanet.com

database error xD


All times are GMT. The time now is 06:17 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.01144 seconds
  • Memory Usage 1,763KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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