vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - External URL Redirects in framed page (https://vborg.vbsupport.ru/showthread.php?t=136333)

SiMateoAko 01-12-2007 10:00 PM

External URL Redirects in framed page
 
URL Redirect for vBulletin is a simple way to keep your users grounded to your site. All external URLs will be displayed in a frame with your logo above.

Installation is simple and fast. Simply import the product (product-igusto_urlredirect.xml) and upload the ext.php file to your main forum directory.

How is this product different from other similar products released in the past?

It is true that other people have released similar products in the past. The main differences are as follows:
  • no code changes - other vBulletin hacks required you to change core files in order to make this work properly.
  • released as a product - other vBulletin hacks were not released as a simple importable product
  • No footprint - when you uninstall this product, there are no residual footprints. This has not been the case with other versions of this utility released to vBulletin previously.
  • Will distinguisth internal and external urls - Instead of displaying internal urls with the header, this plugin will evaluate the url and determine if it is the same as the host site. If it is, no banner will be displayed.


The product consists of one template (urlredirect_page) and one plugin. The plugin will change all external urls posted in forum posts to the new ext.php file. The template (urlredirect_page) is the header that will be displayed at the top of your redirect page.

Inside of the header you will find text that looks like this:

<!--Google Ads here-->

Replace that text with your google adsense javascript, or another ad generator.

I've tested this on 3.5.7 and 3.6.4. It works fine on both systems.

if you find it not working, check the following first:
  • Ensure that the plugin named "url_redirect parser" is enabled.
  • Ensure that you uploaded the file ext.php into your forum directory

Brought to you by the folks at www.igusto.net

Changelog

v1.0
Recently removed security flaw. Please update your ext.php file

Hornstar 01-12-2007 11:02 PM

Awesome mod, I suppose this is similar to google images when you click on one of those images it displays something similiar.

Can you whitelist sites, so they dont get the frame? if not that maybe an idea for a future update.

GruntHalo 01-12-2007 11:03 PM

Great mod, installed. :D

KURTZ 01-12-2007 11:06 PM

interesting hack, just a question it's compatible with vBanonimizer?

CSS59 01-12-2007 11:06 PM

is this a dup?
https://vborg.vbsupport.ru/showthread.php?t=136311

KURTZ 01-12-2007 11:10 PM

THIS is another one :)

The Finman 01-13-2007 12:06 AM

Quote:

Originally Posted by KURTZ (Post 1157590)
interesting hack, just a question it's compatible with vBanonimizer?

That is exactly what I am wondering. :confused:

SiMateoAko 01-13-2007 12:19 AM

Quote:

Originally Posted by KURTZ (Post 1157590)
interesting hack, just a question it's compatible with vBanonimizer?

unsure... give it a shot :)

SiMateoAko 01-13-2007 12:20 AM

Quote:

Originally Posted by KURTZ (Post 1157595)
THIS is another one :)

The difference with this plugin and the one you linked are numerous. They accomplish the same thing, but this one can be imported via the products menu, will filter out internal links, and won't leave a footprint when you uninstall it. Oh, and you don't have to edit core php files in order to make it work.

SiMateoAko 01-13-2007 12:21 AM

Quote:

Originally Posted by CSS59 (Post 1157591)

released on both forums b/c it is compatible with both versions. All future updates will be to this version.

SiMateoAko 01-13-2007 12:22 AM

Quote:

Originally Posted by hornstar1337 (Post 1157583)
Can you whitelist sites, so they dont get the frame? if not that maybe an idea for a future update.

That's a great idea. Look for it inthe next version.

wizardan 01-13-2007 01:10 AM

Very nice!
Installed.

DPSR 01-13-2007 01:40 AM

Very very nice, installed :D:D

EDIT: Not compactable with vBanonimizer :(

SaN-DeeP 01-13-2007 02:47 AM

thanks this modification will come handy

DPSR 01-13-2007 03:24 AM

One problem:

It redirects some home links (like http://www.site.com/gallery/blah.php) to site main page- http://www.site.com/index.php :(

Any sol. for this?

SiMateoAko 01-13-2007 05:32 AM

Quote:

Originally Posted by DPSR (Post 1157720)
One problem:

It redirects some home links (like http://www.site.com/gallery/blah.php) to site main page- http://www.site.com/index.php :(

Any sol. for this?

I'll look into this tomorrow and get a fix for you. Are these all internal links that you are having a problem with?

ETA: Just figured out the problem. Reuploading the file now.

EETA: Just FYI, redownload and replace the ext.php file with the new one. Should do it.

DPSR 01-13-2007 06:55 AM

AFter updating, its not uploading external links on my portal page (site main index page, but previous version was doing it!)

Second, its still pointing gallery images to- http://www.fotorack.com/ext.php?ref=...dex.php?n=4220

when clicked, its take to invalid url- http://http//www.fotorack.com/gallery/index.php?n=4220
:(

cuphongle 01-13-2007 07:13 AM

looks good, gonna try it out

Dismounted 01-13-2007 08:05 AM

Quote:

Originally Posted by KURTZ (Post 1157590)
interesting hack, just a question it's compatible with vBanonimizer?

Quote:

Originally Posted by The Finman (Post 1157632)
That is exactly what I am wondering. :confused:

As the author of vbAnonymizer, I say that this hack should work together with it. You will just get the normal vbAnonymizer Redirect inside the frame.

EDIT: *CONFIRMED NOT WORKING WITH VBANONYMIZER!*

DPSR 01-13-2007 08:18 AM

Quote:

Originally Posted by Dismounted (Post 1157836)
As the author of vbAnonymizer, I say that this hack should work together with it. You will just get the normal vbAnonymizer Redirect inside the frame.

By the way, this hack opens up a serious XSS hole. You leave $ref unchecked in the script. Also, this hack will cut all URL's with more than one GET variable on a URL.

Nope buddy, your hack is not working with this :(:(

After installing above hack, all links are converted to http://site.com/ext.php?ref=

Dismounted 01-13-2007 10:00 AM

Thanks, I wasn't sure. I edited the above post to reflect it.

MaestroX 01-13-2007 10:12 AM

Thanks for the mod, I think i've found a bug though.

Any links with subdomains get redirected, any solution to this?

tankaya61 01-13-2007 01:43 PM

its super plug-in
thanks man

SiMateoAko 01-13-2007 02:26 PM

Quote:

Originally Posted by MaestroX (Post 1157899)
Thanks for the mod, I think i've found a bug though.

Any links with subdomains get redirected, any solution to this?

Can you give an example?

for example, is your site www.mysite.com and it's redirecting forum.mysite.com?

If so, I can look into this and get a fix soon.

SiMateoAko 01-13-2007 02:28 PM

Quote:

Originally Posted by Dismounted (Post 1157836)
As the author of vbAnonymizer, I say that this hack should work together with it. You will just get the normal vbAnonymizer Redirect inside the frame.

EDIT: *CONFIRMED NOT WORKING WITH VBANONYMIZER!*


Can someone link me to vanonymizer? I searched for it but couldn't find a thing. I'm sure I can figure out a way to makeit compatible.

SiMateoAko 01-13-2007 02:37 PM

Quote:

Originally Posted by DPSR (Post 1157811)
AFter updating, its not uploading external links on my portal page (site main index page, but previous version was doing it!)

Second, its still pointing gallery images to- http://www.fotorack.com/ext.php?ref=...dex.php?n=4220

when clicked, its take to invalid url- http://http//www.fotorack.com/gallery/index.php?n=4220
:(

I think something on your server is configured differently.

See this link:

http://www.exmo-social.com/ext.php?r...dex.php?n=4220

odds are it's something with your .htaccess file

DPSR 01-13-2007 03:04 PM

Quote:

Originally Posted by SiMateoAko (Post 1158078)
Can someone link me to vanonymizer? I searched for it but couldn't find a thing. I'm sure I can figure out a way to makeit compatible.

It here - https://vborg.vbsupport.ru/showthread.php?t=131292

:)

EDIT, just re-tried..not working! No problem i will wait for some update ;)

SiMateoAko 01-13-2007 10:01 PM

Quote:

Originally Posted by Dismounted (Post 1157836)
By the way, this hack opens up a serious XSS hole. You leave $ref unchecked in the script. Also, this hack will cut all URL's with more than one GET variable on a URL.

just fixed both of these issues.

SiMateoAko 01-13-2007 10:10 PM

Just added functionality to parse signatures too

letsjoy 01-13-2007 10:19 PM

where is file ?

Attitude 01-14-2007 07:27 AM

well cudnt install it properly.

1) Imported the Product.
2) Copied the ext.php file in the forum directory.

Now what?????? Didnt see any urlredirect template or plugin....... stuck!! Logged out and logged back in.... still cudnt see any urlredirect template or the plugin....

sorry m new to all this.....

any help would be appreciated....

Robru 01-14-2007 10:48 AM

Quote:

Originally Posted by SiMateoAko (Post 1158394)
Just added functionality to parse signatures too

Thanks, works perfect!

SiMateoAko 01-14-2007 03:08 PM

Quote:

Originally Posted by Attitude (Post 1158675)
well cudnt install it properly.

1) Imported the Product.
2) Copied the ext.php file in the forum directory.

Now what?????? Didnt see any urlredirect template or plugin....... stuck!! Logged out and logged back in.... still cudnt see any urlredirect template or the plugin....

sorry m new to all this.....

any help would be appreciated....

I'll try installing it on one of my forums today to see if I have any problems.

Attitude 01-14-2007 03:25 PM

Quote:

Originally Posted by SiMateoAko (Post 1158937)
I'll try installing it on one of my forums today to see if I have any problems.

m using Vbulletin 3.6.3 ........


see what you can do...

thanks mate

Ronak 01-15-2007 01:22 AM

Nice hack :) wish it had worked with vBanonymiser ;) and btw delete ur Google ad codes in it..or u will get banned :(

SiMateoAko 01-15-2007 03:14 AM

Quote:

Originally Posted by Ronak (Post 1159465)
Nice hack :) wish it had worked with vBanonymiser ;) and btw delete ur Google ad codes in it..or u will get banned :(

Thanks for the heads up.

The next version in a few weeks will be completely reworked and compatible with vbanonymiser.

OmniBuzz 01-15-2007 10:32 PM

what does it do with iframe ?

Zia 01-18-2007 12:25 PM

Hello SiMateoAko...

i got few request..

it would be nice if the external link showed inside an iframe so user will be able to use the Vb's Navbar...

Something Similar like it :
http://img143.imageshack.us/img143/7646/istugv4.jpg

Like: Externally hosted download zone or etc can be presented to user by this way.
Pls give a thought on it.

ubblite 01-23-2007 03:50 PM

Quote:

Originally Posted by DPSR (Post 1157811)
Second, its still pointing gallery images to- http://www.fotorack.com/ext.php?ref=...dex.php?n=4220

when clicked, its take to invalid url- http://http//www.fotorack.com/gallery/index.php?n=4220
:(

Same problem here - you can't use this hack with links on you OWN site, you'll get the same error as mentioned above.

SiMateoAko, can you please update this hack to fix this problem? Thanks.

obmob 01-23-2007 11:52 PM

Interesting, thanks! :D


All times are GMT. The time now is 06:05 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.01491 seconds
  • Memory Usage 1,828KB
  • 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
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete