Kết quả 1 đến 1 của 1
-
11-02-14, 03:04 PM #1
New way to force guests to register
SPEND ME A BUCK
If you want me to do the setup for you and create a unique character for your site please check my fiverr.com gig: [Only registered and activated users can see links. ]
ABOUT THIS MOD
My idea was to place a fix characater on the bottom right, wich forces guests to register an account, because i was sick of those standard "hello guest, register" mods.
So with this little modification, you are able to display a nice and flashy character to all guests - forcing them to register
All examples on the bottom are free to use.
-----------------------------------------------------------------------------------------------------------------
LIVE-DEMO: [Only registered and activated users can see links. ]
-----------------------------------------------------------------------------------------------------------------
IF YOU RUN VBULLETIN 3.X.X CHECK THIS THREAD
1. Upload your desired image to "/images/misc/register.png" (if you want my symples, feel free to use them, they are all attached below)
2. Open your "additional.css" and add the following lines:
div.forcetoregister {
background:url(images/misc/register.png);
background-repeat: no-repeat;
width:300px;
height:200px;
padding:0 5px 3px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}
To show it on EVERY PAGE add this:
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
To show it only on FIRST PAGE (forum home) add this (thx @ Whity):
<vb:if condition="THIS_SCRIPT == 'index'">
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
</vb:if>
To show it on every page EXCEP THE REGISTER PAGE, add this code:
<vb:if condition="THIS_SCRIPT != 'register'">
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
</vb:if>
If you want the image to show up only for SPECIFIC USERGROUP(S), for example User who need to verify their e-mail adress - use this code:
<vb:if condition="is_member_of($bbuserinfo, 3)"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
Make sure to check your Usergroup ID in the ADMINCP as these may differ!
4. Mark as installed
5. You are done!
-----------------------------------------------------------------------------------------------------------------
NEW FEATURE: RANDOM IMAGE ON EVERY PAGERELOAD
Since some one at the forum came up with the wish, to have random images on every pagereload, i can now provide you a solution:
1. Add this code to your "additional.css" instead of the code provided on top:
div.forcetoregister {
background:url(rotate.php);
background-repeat: no-repeat;
width:300px;
height:200px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}
2. Download the file "rotate.php" wich is attached below
3. Upload the file "rotate.php" to your FORUMROOT
4. Open "images/misc" via FTP and create a new folder called "ftr" (Complete path should look like this: /images/misc/ftr)
5. Upload your desired images to the "ftr" folder (supported file extensions are: PNG, GIF & JPG)
6. Your done!
SPEND ME A BUCK
If you like my Mod feel free to check my fiverr.com gig: [Only registered and activated users can see links. ]Khách viếng thăm hãy cùng PandavB xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
Các Chủ đề tương tự
-
Force Users to Read a Thread
Bởi PandavB trong diễn đàn vBulletin 4.x Add-onsTrả lời: 0Bài viết cuối: 11-02-14, 10:55 AM -
Limited Guest Viewing -- Motivate Guests to Register
Bởi KingSky trong diễn đàn vBulletin 3.8 Add-onsTrả lời: 0Bài viết cuối: 10-02-14, 10:59 AM -
[JX] Cho mình hỏi cái Tools Register Tools Online mở Port bao nhiêu nhỉ !
Bởi nguoidaukho trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 0Bài viết cuối: 05-11-12, 08:54 PM -
Ai còn giữ JX Offline Register Software của MĐ cho mình xin nhé
Bởi SaoThaiBinh72 trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 9Bài viết cuối: 05-09-11, 08:30 PM