vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - [Monkey's Works] - Hey, guest! You should be a registered member! (https://vborg.vbsupport.ru/showthread.php?t=163264)

Triky 11-20-2007 10:00 PM

[Monkey's Works] - Hey, guest! You should be a registered member!
 
[Monkey's Works] - Hey, guest! You should be a registered member!
by Triky - Web City



Hi there, monkeys! With this template modification your forumhome will become a single message for guests and a login form for you not legged members. This will improve your registrations! It's just a template modification.

Preview:

https://vborg.vbsupport.ru/external/2008/01/12.gif GuestHomepage

Modification:

Quote:

Go to your FORUMHOME template
(AdminCp -> Styles & Templates -> Edit Templates -> FORUMHOME)

Add to the top:

Code:

<if condition="$show['guest']">
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
    <!-- no cache headers -->
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <!-- end no cache headers -->
    $headinclude
    <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin] - Welcome! Become an active member of $vboptions[bbtitle] right now!</phrase></title>
</head>
<body>



<!-- Guest Welcome Box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat" style="text-align: center; font-size: 28px">$vboptions[bbtitle] Guest Homepage - You should be a registered member!</td>
</tr>
<tr>
<td class="alt2" style="text-align: center">
Add here your forum description! This is an online community. Our goal is let members have fun with games, funny discussions, etc.

</td>
</tr>
<tr>
    <td class="alt1" style="text-align: center">

<table class="tborder" cellpadding="20" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<tr>
    <td class="tcat">
<div>Hey guest, welcome to the $vboptions[bbtitle]! This is our standard guest page. Before you can view our forums, you have to sign up with us. Ehy, don't worry, it takes just one minute and it's completely free! Try yourself: <br /><br />

<span style="font-size: 21px; font-weight: bold"><a href="register.php">Sign Up Now</a></span>
<br /><br />
By signing up you will see all our forums list and you will be able to edit your member profile, post threads, ask questions, chat with other members, communicate privately with other members, and much more!<br /><br />
If you're already a $vboptions[bbtitle] member, please login with the form below!


<br /><br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="35%" align="center">
<tr>
    <td class="tcat" style="text-align: center">
<!-- login form -->
        <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        <tr>
            <td class="smallfont"><label for="navbar_username"><strong>$vbphrase[username]</strong> </label></td>
            <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
            <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /><strong>$vbphrase[remember_me]</strong></label></td>
        </tr>
        <tr>
            <td class="smallfont"><label for="navbar_password"><strong>$vbphrase[password]</strong></label></td>
            <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
            <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
        </tr>
        </table>
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="do" value="login" />       
        <input type="hidden" name="vb_login_md5password" />
        <input type="hidden" name="vb_login_md5password_utf" />
        </form>
        <!-- / login form -->
</td>
</tr>
</table>

<br />
<span class="smallfont">If you have any problems with the registration process or your account login, please contact us: <a href="sendmessage.php">Send Message</a>.

<br /><br />

<!-- Community Statistics -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="35%" align="center">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
        </div>
        </td>
    </tr>
</tbody>
</table>

<!-- / Community Statistics -->


</td>
</tr>
</table>

</div>
    </td>
</tr>
</table>
<!-- / Guest Welcome Box -->

</body>
</html>
<else />

Ok, now add to the end of your template:

Code:

</if>

Done! :)
Check the red code if you want to edit the message (and remember that I'm italian, so my english isn't so good :p)!
See you to the next little modification!

<!-- ------------------------------[Monkey's Works] - vBulletin.org Releases Archive---------------------------- -->

Modifications

<!-- / ----------------------------[Monkey's Works] - vBulletin.org Releases Archive---------------------------- -->


mmllc 11-21-2007 09:33 AM

Great mod! I can't get it to work though, can it be because of VBAdvanced?

Triky 11-21-2007 09:51 AM

Sorry, I'm not familiar with vBAdvanced. This mod works only in your forumhome template, so if you (guest) go to a thread link, you will see that thread, not this page (with your viewing permissions, obviously). You will see this page only if: 1) you're a guest or not logged in, 2) you're in your forumhome (http://yoursite.com/forumfolder/index.php).

InoffLine 11-21-2007 10:03 AM

I thing it is really bad or seo.
Search Spiders will not heva opportunity to index your forum.

Triky 11-21-2007 10:25 AM

You could use this mod: https://vborg.vbsupport.ru/showthread.php?t=119134

tackebong 11-21-2007 10:48 AM

OMG, this can be the nicest mod I've seen! :D Thanks Triky!

youradhere4222 11-22-2007 07:27 AM

Question: Is "Monkey's Works" on the actual page, or did you just put that in the screen shot?

Triky 11-22-2007 07:30 AM

Quote:

Originally Posted by tackebong (Post 1386793)
OMG, this can be the nicest mod I've seen! :D Thanks Triky!

Glad you like it. :)

Quote:

Originally Posted by youradhere4222 (Post 1387374)
Question: Is "Monkey's Works" on the actual page, or did you just put that in the screen shot?

Absolutely not, it's not on the template, it's just on the screen! ;)

Feckie (Roger) 11-22-2007 05:04 PM

Clicks install

Magnumutz 11-23-2007 06:26 AM

Quote:

Originally Posted by Triky (Post 1386780)

This one isn't compatible with 3.6.8 .

Triky 11-23-2007 07:24 AM

Oh, then I don't know.. sorry.

SEOvB 12-03-2007 09:38 PM

Also that mod will only show spiders that are visiting, not actually let them access content from what i read of the hack description.

Nice mod, and try searching for a treat search engines as members mod, i remember seeing one a while ago.


edit: Found it. https://vborg.vbsupport.ru/showthrea...ngines+members

Triky 12-03-2007 09:49 PM

Yup, I seen that mod too.
Ok, founded: https://vborg.vbsupport.ru/showthread.php?t=108070.

thefullmaza 12-05-2007 12:47 PM

Nice mod and thanks

Triky 12-05-2007 03:17 PM

Glad you like it. ;)

pspmaster93 12-06-2007 09:50 PM

just a question. how do i make this appear for all the other pages, not JUST the index. say like /private.php and every other page it wont work for how do i make it work for every page

Triky 12-07-2007 03:47 PM

Quote:

Originally Posted by pspmaster93 (Post 1396476)
just a question. how do i make this appear for all the other pages, not JUST the index. say like /private.php and every other page it wont work for how do i make it work for every page

If you se it on other pages, so other .php files, then you wouldn't have these data:

Code:

$vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers

However, I really don't know how you could set it for the entire forum. I will try to think about it, then if I'll find something, I will post it. Sorry.

thefullmaza 12-09-2007 02:20 AM

thanks and Demo

Triky 12-11-2007 07:40 AM

Quote:

Originally Posted by thefullmaza (Post 1397680)
thanks and Demo

Maybe you have missed an </if>..
Remember to click Install. :)

Jase2 12-18-2007 07:59 PM

Not much for this as there isn't much chance a guest will sign up if they can't even view your forums.

Regards Jason :)

Triky 12-19-2007 07:40 AM

Quote:

Originally Posted by Jase2 (Post 1403920)
Not much for this as there isn't much chance a guest will sign up if they can't even view your forums.

Regards Jason :)

Hi Jason,

If you're able to adequately and inviting present your web site/your forum, guests will be inspired and maybe they will take a moment to sign up on your forum to check what you have to offer. :)

DjLuv 01-03-2008 10:39 AM

thanx brotha, works like a charm on my forum, slightly customized it,

Users can see a demo at :- www.cinemadesi.com

Triky 01-03-2008 02:35 PM

Glad you like it, DjLuv. :)

icona 03-08-2008 12:12 PM

Hi all people! :)
***INSTALLED!

I'm an italian boy,excuse me for my bad english... :rolleyes:
I have installed this hack,but i want to offer possibility that guests can view the forum.

i Want to add this code inside my FORUMHOME template :

PHP Code:

<span class="smallfont">Se vuoi comunque visitarci,puoi farlo benissimo anche SENZA registarti: <a href="index.php"><span style="font-weight:bold">Visitaci adesso!</span></a

Help please!

Thanks...

Triky 03-10-2008 08:05 AM

Code:

<if condition="$show['guest']">
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
    <!-- no cache headers -->
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <!-- end no cache headers -->
    $headinclude
    <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin] - Welcome! Become an active member of $vboptions[bbtitle] right now!</phrase></title>
</head>
<body>



<!-- Guest Welcome Box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat" style="text-align: center; font-size: 28px">$vboptions[bbtitle] Guest Homepage - You should be a registered member!</td>
</tr>
<tr>
<td class="alt2" style="text-align: center">
Add here your forum description! This is an online community. Our goal is let members have fun with games, funny discussions, etc.

</td>
</tr>
<tr>
    <td class="alt1" style="text-align: center">

<table class="tborder" cellpadding="20" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<tr>
    <td class="tcat">
<div>Hey guest, welcome to the $vboptions[bbtitle]! This is our standard guest page. Before you can view our forums, you have to sign up with us. Ehy, don't worry, it takes just one minute and it's completely free! Try yourself: <br /><br />

<span style="font-size: 21px; font-weight: bold"><a href="register.php">Sign Up Now</a></span>
<br /><br />
By signing up you will see all our forums list and you will be able to edit your member profile, post threads, ask questions, chat with other members, communicate privately with other members, and much more!<br /><br />
If you're already a $vboptions[bbtitle] member, please login with the form below!


<br /><br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="35%" align="center">
<tr>
    <td class="tcat" style="text-align: center">
<!-- login form -->
        <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        <tr>
            <td class="smallfont"><label for="navbar_username"><strong>$vbphrase[username]</strong> </label></td>
            <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
            <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /><strong>$vbphrase[remember_me]</strong></label></td>
        </tr>
        <tr>
            <td class="smallfont"><label for="navbar_password"><strong>$vbphrase[password]</strong></label></td>
            <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
            <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
        </tr>
        </table>
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="do" value="login" />       
        <input type="hidden" name="vb_login_md5password" />
        <input type="hidden" name="vb_login_md5password_utf" />
        </form>
        <!-- / login form -->
</td>
</tr>
</table>

<br />
<span class="smallfont">If you have any problems with the registration process or your account login, please contact us: <a href="sendmessage.php">Send Message</a>.</span>
<span class="smallfont">Se vuoi comunque visitarci, puoi farlo benissimo anche SENZA registarti: <a href="index.php"><span style="font-weight:bold">Visitaci adesso!</span></a></span>
<br /><br />

<!-- Community Statistics -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="35%" align="center">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
        </div>
        </td>
    </tr>
</tbody>
</table>

<!-- / Community Statistics -->


</td>
</tr>
</table>

</div>
    </td>
</tr>
</table>
<!-- / Guest Welcome Box -->

</body>
</html>
<else />

In blue bold. ;)

koolfire 04-26-2008 08:21 PM

Why doesnt this work for me mate?

I tried closing if at end of forumhome and it doesnt work! Can someone help?

I use vBulletin 3.6.8 PL2

Triky 04-28-2008 06:57 AM

What does not work exactly, koolfire? Can you please link your forum?

koolfire 05-02-2008 01:23 AM

Man, It stays the same

I am using vBulletin 3.6.8 Patch Level 2 [PL2]

Triky 05-05-2008 11:35 AM

Can you please link your forum?
Are you sure are you viewing you forum modified style and not a default one?

sunnylikbeckham 09-08-2008 06:17 AM

its cool but only works for index
not all pages
may be work if i use it on header
not tried yet though

Nightmare-GameZ 01-27-2009 08:14 AM

Installed. A good mod. But its not supported anymore. I installed this on 3.7.4.

GSeybold 01-28-2009 06:30 AM

Hello Sorry to intrude

Do you think this will work in 3.72?

Thank you

Gabby

Triky 01-28-2009 03:49 PM

Yes, becouse you doesn't change the existing code in your template. You add just a part of code.


All times are GMT. The time now is 10:50 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.01504 seconds
  • Memory Usage 1,863KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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