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

Reply
 
Thread Tools
Add an advert into your redirect page Details »»
Add an advert into your redirect page
Version: 1.00, by Yours Truly Yours Truly is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 07-05-2007 Last Update: Never Installs: 12
Template Edits
 
No support by the author.

Note: This enhancement was originally posted by me under my old name Move-Along over here. So before any confusion arises it was made by me =]. I no longer support it on that thread and will continue to do so on this thread =]. Enjoy!

Time taken: 2 Minutes
Difficulty: Easy as pie
What it does: This will basicly just add an advert in the redirect screen. There is a screenshot attatched to show you what i mean.

You can also use this for Vb 3.5.x too

You shouldn't use AdSense here, because redirection pages wouldn't really count as content pages.


Go to:

Style manager --> [Style you want to edit] --> Edit templates --> STANDARD_REDIRECT

Now find:

PHP Code:
    <noscript>
    <
meta http-equiv="Refresh" content="2; URL=$url/>
    </
noscript
And replace it with this:

PHP Code:
    <noscript>
    <
meta http-equiv="Refresh" content="10; URL=$url/> // Change the content="10" to whatever you like the bigger it is the longer it will take to redirect
    
</noscript
After find this code:

PHP Code:
                <class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a
After add:

PHP Code:
<br>
<
br>
<
a href="http://www.adminpath.com" target="_blank"><img src="http://www.adminpath.com/delisiosso/misc/banner_right.gif"></a
Obviously change the url's to your desired url's.

---------------------------------------------------------------------------------------

Extending the load time:


PHP Code:
    var myvar "";
    var 
timeout 20;
    
exec_refresh();
    
//--> 
Find that piece of code and replace it with this:
PHP Code:
    var myvar "";
    var 
timeout 100;
    
exec_refresh();
    
//--> 
If you would like it so it doesn't automatically redirect then you can do this:

Find:

PHP Code:
    var myvar "";
    var 
timeout 20;
    
exec_refresh();
    
//--> 
Replace With:

PHP Code:
    var myvar "";
    var 
timeout 10000;
    
exec_refresh();
    
//--> 
Find:

PHP Code:
                <class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p
Replace With:
PHP Code:
                <class="smallfont"><a href="$url">Click here to continue to the page you requested</a></p

To come:

  • Admincp options to add url from the CP as opposed to changing the template each time
  • Rotating banners
  • Post some ideas

Show Your Support

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

Comments
  #2  
Old 07-07-2007, 08:04 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
    var myvar "";
    var 
timeout 20;
    
exec_refresh();
    
//--> 
Find that piece of code and replace it with this:
PHP Code:
    var myvar "";
    var 
timeout 100;
    
exec_refresh();
    
//--> 
If you would like it so it doesn't automatically redirect then you can do this:

Find:

PHP Code:
    var myvar "";
    var 
timeout 20;
    
exec_refresh();
    
//--> 
Replace With:

PHP Code:
    var myvar "";
    var 
timeout 10000;
    
exec_refresh();
    
//--> 
Find:

PHP Code:
                <class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p
Replace With:
PHP Code:
                <class="smallfont"><a href="$url">Click here to continue to the page you requested</a></p
Reply With Quote
  #3  
Old 07-09-2007, 11:49 PM
TGR TGR is offline
 
Join Date: Jun 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice thanks
Reply With Quote
  #4  
Old 07-10-2007, 11:12 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MARKETPROFITS View Post
Wow, great!

Thanks a bunch.
No problem =]

Quote:
Originally Posted by TGR View Post
nice thanks
Your welcome mate =]
Reply With Quote
  #5  
Old 09-08-2007, 10:42 PM
nul7 nul7 is offline
 
Join Date: Sep 2006
Location: USA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add rotating banners you can use the sponsors.php file from the sponsors mod...how would you show it to point to the PHP file to initiate the banner to show?
Reply With Quote
  #6  
Old 01-13-2008, 01:38 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea on how to get the advert to apear randomly from a list of banners?

that would be awsome..
Reply With Quote
  #7  
Old 02-17-2008, 07:41 PM
SAReefer SAReefer is offline
 
Join Date: Dec 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is what i get when i try the hack, any idea's why??

Reply With Quote
  #8  
Old 02-17-2008, 11:46 PM
kyle83 kyle83 is offline
 
Join Date: Nov 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add a rotating banner, use this script: http://javascript.internet.com/misce...ng-banner.html

The header code into your headinclude, and the rest into the redirect template.
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 06:15 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.04326 seconds
  • Memory Usage 2,309KB
  • Queries Executed 23 (?)
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
  • (16)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete