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)
-   -   Miscellaneous Hacks - Add an advert into your redirect page (https://vborg.vbsupport.ru/showthread.php?t=151527)

Yours Truly 07-05-2007 09:00 PM

Add an advert into your redirect page
 
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 :p

Yours Truly 07-07-2007 07:04 AM

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


TGR 07-09-2007 10:49 PM

nice thanks

Yours Truly 07-10-2007 10:12 AM

Quote:

Originally Posted by MARKETPROFITS (Post 1287102)
Wow, great!

Thanks a bunch.

No problem =]

Quote:

Originally Posted by TGR (Post 1287138)
nice thanks

Your welcome mate =]

nul7 09-08-2007 09:42 PM

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?

powerful_rogue 01-13-2008 01:38 PM

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

that would be awsome..

SAReefer 02-17-2008 07:41 PM

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

https://vborg.vbsupport.ru/external/2008/02/9.gif

kyle83 02-17-2008 11:46 PM

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.


All times are GMT. The time now is 10:24 AM.

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.02661 seconds
  • Memory Usage 1,767KB
  • 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
  • (16)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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