Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
UKBL ~ Easy Page Redirect Details »»
UKBL ~ Easy Page Redirect
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.0 Rating:
Released: 01-19-2009 Last Update: Never Installs: 5
Template Edits
Re-useable Code Translations  
No support by the author.

UKBL ~ Easy Page Redirect


Divert to ads, polls, survey, Internal, External Pages and then back to your site :up:

Hi Gang

Heres another Easy hack for all you promising Admins if you want to make some money from your site, and want to give guests, unregistered and low usergroup members an opportunity to upgrade or go for subscribed membership then this is the hack for you.

What do i do???

First you need to decide for what purpose your going to use the redirect for...

If its for advertising then you could send it to a page full of banners or links, just make a HTML page and add your panners and links, Then add it to your forum directory, you could name it advert.html and thats the page you need to place the code below. A copy is available for download in the zip file.

If its for another site associated with your forum then just add the script to the footer or header of that site, ideally the header, As an example i added the demo to an old topsite i had with great results see the pic below..



You could have it on an affiliate sign up page, or even if your doing a special offer, just make a web page and link to it, change it as little or as often as you want with the knowledge that members will always be taken back to your site.

As i said the script needs to go on the directed page or site, with a link either in the Navbar or with using the Easy Menu Tabs. Just link it to the diverted site page and then within XX seconds you could be back where you started. The amount of seconds is settable you you be it 10 seconds or 2400

Heres the code in full as it stands in the demo

Code:
<form name="redirect">
<center>
<font face="Arial" font size="4" color="Red"><b> You will be redirected to the Arcade in
<input type="text" size="2" name="redirect2">
Seconds, Please check out our Sponsors</b></font>
</center> 
<script>
<!-- 

var targetURL="http://www.ukbusinesslive.co.uk/forum/arcade.php?"
var countdownfrom=30 

var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
} 

countredirect()
//-->
</script>
Here are the bits you need to change

First find this...

Code:
<font face="Arial" font size="4" color="Red"><b> You will be redirected to the Arcade in
You can change the type and style of the font, as well as the color and size, thats easy enough, After the Bold Tag (<b>) is where you add the first instruction, change this to what you want.

Next... Find this...

Code:
Seconds, Please check out our Sponsors</b></font>
Change this to whater you want, But leave in "Seconds" as this describes the countdown units.

Then we need to tell it where to dirvert back to, Remember this is the return Url Address that you want the member to go back to, so find the return attribute below

Code:
var targetURL="http://www.ukbusinesslive.co.uk/forum/arcade.php?"
and change this for the url of your choice

Finally we need to let the script know how long to take before your diverted back to the forums, so find the following

Code:
var countdownfrom=30
and change this to whatever value you want, My demo below shows 30 seconds, but it could be as little or as long as you want

LIVE DEMO

Get yourself along to http://www.ukbusinesslive.co.uk/forum

On the Top menu tags the first one you will see is "Arcade" Click on that to try this redirect.



I have the tab sending the member to the external page/site rather than the arcade, with the script installed in the diverted page, the member will then be taken back to the arcade after 30 seconds.

if you like the Easy Menu Tabs You can down load it here https://vborg.vbsupport.ru/showthread.php?t=200684

As always, any questions or if you come up with a great idea for this hack, then please let us know, I will endeavor to answer every single post so please don't be shy.

Please click Installed if you Like it

Take care

Download Now

File Type: zip redirect.zip (188.2 KB, 90 views)

Screenshots

File Type: png arcade.png (66.5 KB, 0 views)
File Type: png redirect.png (190.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-20-2009, 06:27 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved
Reply With Quote
  #3  
Old 01-20-2009, 08:37 PM
DanTHEGREAT's Avatar
DanTHEGREAT DanTHEGREAT is offline
 
Join Date: Oct 2008
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet!! - installed -.
Reply With Quote
  #4  
Old 01-20-2009, 10:09 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DanTHEGREAT View Post
sweet!! - installed -.
Thanks Dan
Reply With Quote
  #5  
Old 01-21-2009, 02:42 AM
Rene Kriest Rene Kriest is offline
 
Join Date: Jun 2008
Location: Germany ./. Reality
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Certainly not unsexy.
Reply With Quote
  #6  
Old 01-21-2009, 04:58 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rene Kriest View Post
Certainly not unsexy.
:erm: Thank you Sir
Reply With Quote
  #7  
Old 01-21-2009, 05:20 AM
Shaliza Shaliza is offline
 
Join Date: Apr 2006
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great! I had been looking for something like this because I'm going to have a premium section on my site soon. Installed. =)

And to make it so that only a certain usergroup can see the ads, I'm assuming you'd have to put in something like:

Code:
<if condition="$bbuserinfo['usergroupid'] == 1">
right?
Reply With Quote
  #8  
Old 01-21-2009, 02:04 PM
bijju bijju is offline
 
Join Date: Sep 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great let me try
Reply With Quote
  #9  
Old 01-21-2009, 05:05 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shaliza View Post
This is great! I had been looking for something like this because I'm going to have a premium section on my site soon. Installed. =)

And to make it so that only a certain usergroup can see the ads, I'm assuming you'd have to put in something like:

Code:
<if condition="$bbuserinfo['usergroupid'] == 1">
right?
If the page that your using is within your forum then you can use the conditional, if its an external page, then you going to have to add the conditional to your tab or link within your forums.
Reply With Quote
  #10  
Old 01-24-2009, 02:49 AM
Shaliza Shaliza is offline
 
Join Date: Apr 2006
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06900 seconds
  • Memory Usage 2,331KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete