vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Two-Step External Links for Link Weight Retention (https://vborg.vbsupport.ru/showthread.php?t=217708)

aspen0 07-24-2009 12:05 AM

Updated, the only new file is the externalredirect.php, you can just upload the new one.

The update is that we've seriously relaxed the URL verification. It was decided there really wasn't a need for security to make sure the url variable was actually a URL and people kept posting weird URLs that would break it, so its gone.

This is different from the one Chris just attached above.

whizbox 07-29-2009 03:12 PM

Please help - I get a 500 Internal Server Error when any link is clicked. externalredirect.php works as a page but the error comes if the outgoing url is included as ?=...

I also have the issue with images in signatures?. Was this ever resolved?

TWTCommish 07-31-2009 10:00 PM

Yes, just recently. :) If you're using both an embedded external image AND an uploaded signature image in signatures, find the "Remove external link on postbit signature" plugin and change its location from "postbit_display_start" to "postbit_display_complete" and populate it with the following code:

Code:

global $vbulletin;
if (!$vbulletin->options['external_verify_sigs']) {
  $this->post[signature] = str_replace($vbulletin->options['bburl'].'/externalredirect.php?url=', '', $this->post[signature]);
}

You might have to empty your signature cache under Maintenance -> Update Counters, as well. Let me know if this works for you. :)

Regarding the 500 error; I'm afraid I don't quite understand that last part. Could you rephrase?

Stefanus 08-01-2009 08:15 AM

Quote:

Originally Posted by TWTCommish (Post 1854233)
Subdomains/non-www domains work fine; it's the commas that's causing the problem. I've modified the externalredirect.php file to allow for those, as well. Just uploaded the attached version over your existing one. :)

Thanks

Charles_1 08-08-2009 06:59 PM

I just installed this and it works only for new posts for me :-(.

When I perform Rebuild Post Cache in Maintenance -> Update Counters, all external links change to normal - without externalredirect.php in address (even those which I just created and worked until rebuild of post cache).

When I have post with external link (without externalredirect.php in address) and I resave this post (only hit edit and just after it save), redirect appears.

Any ideas why process of rebuilding post cache is removing redirects on external links?

I also tried disable all hacks and install this on two separate forums - still the same result.

vBulletin 3.8.3

aspen0 08-09-2009 07:34 PM

It could be the postcache process doesn't call the same hooks as the normal posting process, I don't know though.

I know I noticed some inconsistencies as well, but they only lasted a few minutes. We'll see if the other Chris has any ideas.

LifesGreatestGift 08-09-2009 10:04 PM

Found a bug in 1.0.4

https://vborg.vbsupport.ru/external/2009/08/23.png

If you have RSS enabled on your site, it uses the external.php file and when a member visits an external link, they are directed to the WARNING page.

But it looks like that when Im looking at who's online.

The mod works fine, but just thought Id point out this little "incompatibility".

Maybe its just me :-P

The highlighted part of the link has nothing to do with the external page, its a link thats meant for my site.

TWTCommish 08-13-2009 12:19 AM

Quote:

Originally Posted by Charles_1 (Post 1863681)
I just installed this and it works only for new posts for me :-(.

When I perform Rebuild Post Cache in Maintenance -> Update Counters, all external links change to normal - without externalredirect.php in address (even those which I just created and worked until rebuild of post cache).

When I have post with external link (without externalredirect.php in address) and I resave this post (only hit edit and just after it save), redirect appears.

Any ideas why process of rebuilding post cache is removing redirects on external links?

I also tried disable all hacks and install this on two separate forums - still the same result.

vBulletin 3.8.3

The post cache should use the standard bb code parsing functions. Are you sure the settings are all set to "Yes" before the rebuilding?

squishi 08-15-2009 06:37 AM

There's an automatic redirect on the external link page.
You think google does not detect this?

sdavis2702 08-16-2009 02:49 PM

This is great and I caught it at the perfect time. My most recent forum is brand new. It looks like this awesome hack doesn't go back and handle old post links. However, my site only had like 10 links so far. :)

Thank you for this. The only other option besides having horrible page rank was to disable live links... and that's a no-no!


All times are GMT. The time now is 09:32 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.01889 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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