Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[VB3-RC2] vBRedirect v1.1 - Redirect to external pages with your banner above Details »»
[VB3-RC2] vBRedirect v1.1 - Redirect to external pages with your banner above
Version: 1.00, by JustJonno JustJonno is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-09-2004 Last Update: Never Installs: 15
 
No support by the author.

What It Does:
This script will provide you with a redirect page for all the links people put on your site using the URL tags.
It opens a new page with your own customisable banner and text on top and the external link opens within a seperate frame setup by the script. Useful if you want users to stay on your site but still check out posted links. All the banner .gif header attributes are setup from within a template so you don't need to go editing php files to change the look of it.

Installation Type:
Installation is easy and will take approx 5 mins when following the install.html included.
Experiance Level: Amature
Install Time: 5 mins
PHP Edit?: No file edits needed, AdminCP access needed.

Support:
Support for this script is available and will be answered either here or On Our Forums.

Hope you like my first mod, i normally write full code, not hack other peoples

JJ

---------------------------------------------------------------------------
[edit] 11-march-04 01:29 ; Fixed the www and http problem with the links, its recommended you update the redirect.php if you have already installed, or install this again.

Show Your Support

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

Comments
  #22  
Old 03-14-2004, 05:57 AM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Okiewan
Nice hack, very useful!
Only issue is when linking to a post (for example) within the forum itself...
Anyway to apply this to only external links?
In redirect.php find:
PHP Code:
if ($rdr == '')
{
    eval(
print_standard_error('error_redirect'));

And Replace With:
PHP Code:
// Get Host Name From URL
preg_match("/^(http:\/\/)?([^\/]+)/i"$rdr$matches);
$hostname $matches[2];

if (
$hostname=='www.domain.net')
{
    
$url $rdr;
    eval(
print_standard_redirect('Redirecting...',0));    
}
else if (
$rdr == '')
{
    eval(
print_standard_error('error_redirect'));

Change $hostname to yours and that should work for you.
Reply With Quote
  #23  
Old 03-15-2004, 02:57 PM
JustJonno JustJonno is offline
 
Join Date: Jan 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Okiewan
Problem...
Installing this hack will blow-up vbadvanced homepage (the layout).
It has something to do with the custom BB codes.

Removing the bbcodes will of course leave all links posted in threads messed-up.
There is another way to set this up, instead of using the [url] directive, use something like [ext] and then make sure the editor's javascript for links points to [ext] instead of [url] that way the in-built [url] directives still work for vbadvanced homepage

JJ
Reply With Quote
  #24  
Old 07-17-2004, 09:11 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

!!! Security Warning !!!

This hack has a major Vulnerability!
The author has been informed to take apropriate steps to fix this.
In the meanwhile, I strongly recommend to uninstall this hack.

!!! Security Warning !!!
Reply With Quote
  #25  
Old 07-17-2004, 09:16 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the vulberability? Might be nice to know.
Reply With Quote
  #26  
Old 08-29-2004, 03:51 AM
Silverstangs Silverstangs is offline
 
Join Date: Nov 2003
Location: Roseville Sacramento CA
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has the security issue been resolved?
Reply With Quote
  #27  
Old 09-05-2004, 07:20 AM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this then took it out and now my original url redirect doesn't work. Can someone tell me what the original bbcode for url is supposed to be?

THanks!!
Reply With Quote
  #28  
Old 09-05-2004, 03:20 PM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone? How do I set it to parse the urls like normal?
Reply With Quote
  #29  
Old 09-24-2004, 04:11 PM
airaffair airaffair is offline
 
Join Date: Aug 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
!!! Security Warning !!!

This hack has a major Vulnerability!
The author has been informed to take apropriate steps to fix this.
In the meanwhile, I strongly recommend to uninstall this hack.

!!! Security Warning !!!
Would like to know what the issue is and if the code "can" or can "not" be secured and if so how?

I mean...I like the fact that you found this security hole - but is it something you could tell/share with the rest of us? maybe we could even fix it ourselves?
Reply With Quote
  #30  
Old 09-28-2004, 09:51 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using this hack on my link forums and want to have the breadcrumb in the upper frame. How do I get the variables to pass? I just keep getting the variable names. What other php files would I need?

The only reason I'll want to do it is if the link forums also have a variable for the forum name. Then I can make a nav bar in the upper frame similar to those on regular forums with the corresponding forum name of the link. If that variable doesn't exist, then I can't do what I want and I'll just use the hardcoded html one that I'm going to work on right now. Someone give me some insight please.
Reply With Quote
  #31  
Old 10-01-2004, 02:45 PM
mgold mgold is offline
 
Join Date: Aug 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

page http://www.securityrelease.com/showt...hp?p=23#post23

just click the link or any other link on the forum

error:
Warning: main(./global.php): failed to open stream: No such file or directory in D:\securityrelease\forums\redirect.php on line 40

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php4\pear') in D:\securityrelease\forums\redirect.php on line 40


I turned it off while its not working but what could the error be?
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 11:50 PM.


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.06560 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete