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)

Sayid 07-05-2009 04:46 PM

Second problem is solved

Try to post this url between [img] tags in your sig

Code:

http://i48.servimg.com/u/f48/11/38/19/72/110.jpg
do not forget to turn on redirect in sigs and tell me what happened

NLP-er 07-05-2009 05:12 PM

Quote:

Originally Posted by NLP-er (Post 1842991)
Installed and after link clicking on my forum I got:
Code:

1||1246761650||88.199.62.36||url=http://www.wp.pl||http://www.forum.simple-nlp.pl/informacje/887-kolejny-test.html||Opera/9.61 (Windows NT 5.1; U; pl) Presto/2.1.1Access Denied, you have been logged.

Got it - it was vbFirewall - this mod: https://vborg.vbsupport.ru/showthread.php?t=196791

TWTCommish 07-05-2009 06:58 PM

Thanks for updating us, NLP-er. Much appreciated. :)

Sayid: thank you, that's extremely helpful. I believe I've pinpointed the problem; vBulletin has a setting to define the maxium height and width of even remotely-hosted signature images like that one. If an image is above these limits, vB treats it like a link, instead, hence the redirection.

I'll take a look at putting together a quick patch. Thanks again for the clarification. :)

AdamJ2 07-07-2009 03:15 AM

I don't know why, but all of our signature images, regardless of them being local or remote, are not showing up properly.

The remote ones just show up as a link, while the local ones just show up as SIGPIC (in brackets).

I have even set the option to enable this only for guests, yet it is still doing this for all the non-guests.

AdamJ2 07-07-2009 03:24 AM

Even with all of the options turned OFF in the settings page, the signature pics do not work.

They ONLY work when the product is disabled.

The only other modification installed is vMail. This is on a 3.8.3 install.

Alfa1 07-07-2009 09:26 PM

Thats the same as I am experiencing.

ade5675 07-08-2009 02:24 AM

I am getting a funny error message whenever you click on a member's username ..... saying


Quote:

Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /...../..../public_html/naijadiscussion/naijaforum/includes/class_userprofile.php4 on line 158

http://www.naijadiscussion.com/naijaforum/index.php4

Alfa1 07-08-2009 12:42 PM

Links that have variables in them like this, result in an 'invalid url' error:
PHP Code:

viewresource.asp?resourceID=145 


aspen0 07-08-2009 06:28 PM

Quote:

Originally Posted by ade5675 (Post 1844921)
I am getting a funny error message whenever you click on a member's username ..... saying





http://www.naijadiscussion.com/naijaforum/index.php4

That is likely from an improperly done file edit.

ade5675 07-08-2009 06:46 PM

Quote:

Originally Posted by aspen0 (Post 1845269)
That is likely from an improperly done file edit.


Thanks, I will look into it and fix it.

AdamJ2 07-08-2009 07:06 PM

1 Attachment(s)
I applied the 1.03 update but it still kills all of my signature images regardless of they are local or external.

See attached for an example.

TWTCommish 07-08-2009 07:10 PM

I've got a fix worked out for some of the signature images which I'll have up shortly, though turning off verification for signatures should certainly stop the problem in the meantime; I've tested both uploaded signature pictures and remotely-hosted IMG tags this way, and both show up fine when the signature setting is set to "No."

TWTCommish 07-08-2009 07:11 PM

Quote:

Originally Posted by Alfa1 (Post 1845093)
Links that have variables in them like this, result in an 'invalid url' error:
PHP Code:

viewresource.asp?resourceID=145 


Re-upload the latest externalredirect.php file; it has modified URL verification. :)

TWTCommish 07-08-2009 07:19 PM

Quote:

Originally Posted by AdamJ2 (Post 1845295)
I applied the 1.03 update but it still kills all of my signature images regardless of they are local or external.

See attached for an example.

Hard to diagnose from afar (though let me know if turning off signature verification fixes the issue).

If you're comfortable with giving me temporary admin/FTP access via PM, I'd be glad to take a look. :)

AdamJ2 07-08-2009 08:06 PM

Quote:

Originally Posted by TWTCommish (Post 1845304)
Hard to diagnose from afar (though let me know if turning off signature verification fixes the issue).

If you're comfortable with giving me temporary admin/FTP access via PM, I'd be glad to take a look. :)

Unfortunately, even with signature verification turned off, the issue persists. I have to disable the product to prevent the error.

I'll send you a PM shortly, thank you.

TWTCommish 07-08-2009 08:08 PM

Not at all! Sorry to hear about the issues; I'll do what I can to pinpoint them, and I'll look forward to the PM. :)

Alfa1 07-08-2009 10:06 PM

This mod conflicts with Links and Download manager.
I am getting this weird error on various pages:
PHP Code:

Warningparse_url(http://javascript:AL_get(this) [function.parse-url]: Unable to parse URL in [path]/global.php(400) : eval()'d code on line 301 

When I turn Two-Step links off, they dissappear.

ade5675 07-09-2009 12:38 AM

Quote:

Originally Posted by ade5675 (Post 1845277)
Thanks, I will look into it and fix it.

Everything works fine now. It was the file edit that was not improperly done.

Thanks aspen0 .... great mod

installed and nominated :up:

TWTCommish 07-11-2009 04:51 PM

Okay, to anyone having issues with images in signatures: it appears there's a conflict only when a user is using an upload signature picture and an externally-linked image at the same time. I'm looking into how best to work around this, but for those of you who allow both of these things and want to keep using the rest of the hack (for posts, comments, blogs, etc.), here's a quick fix:

Just update the "Remove external link on postbit signature" plugin in the "in the "postbit_display_start" hook location. Replace it with this:

Code:

global $vbulletin;
if ($vbulletin->options['external_verify_sigs'] && (strpos($this->cache['sig'][$this->post['userid']], 'http') !== false || strpos($this->post['signature'], 'http') !== false)) {
  $this->cache['sig'][$this->post['userid']] = $this->bbcode_parser->parse($this->post[signature]);
}

Set signature verification to "No" and your signature images should be left alone, and you can use the rest of the hack's functionality for the time being.

Brandon Sheley 07-11-2009 05:50 PM

I've yet to see how this would help at all with SEO
It's no different that adding a nofollow tag to external links IMO
Has anyone installed this and done nothing else and has seen positive results from it?

regards

TWTCommish 07-11-2009 08:58 PM

I'm not sure if you read aspen's initial posts, but they explain the SEO benefits. They also explain why adding nofollow tags to external links doesn't work the way it used to.

aspen0 07-12-2009 04:07 PM

Quote:

Originally Posted by Loco.M (Post 1847081)
I've yet to see how this would help at all with SEO
It's no different that adding a nofollow tag to external links IMO
Has anyone installed this and done nothing else and has seen positive results from it?

regards

Please see here:

http://www.mattcutts.com/blog/pagerank-sculpting/

At least on Google for sure, nofollow no longer provides any SEO benefit. Zip zero zilch.

dondavis 07-14-2009 09:40 AM

Hello thank you for mod. But i cant make it work for me. I have done all file mods, put php file in forum root, installed product. But no effect :(. I have vbseo installed maybe that's the problem. Can you help me please with some advice?

jawatkin 07-15-2009 10:23 AM

Quote:

Originally Posted by TWTCommish (Post 1847047)
Okay, to anyone having issues with images in signatures: it appears there's a conflict only when a user is using an upload signature picture and an externally-linked image at the same time.

The fix you posted does indeed work, but I only allow my users to use an upload signature and it happens to me, as well. It only happens on signatures that have an image that is linked. At least, as far as I can tell. This signature triggered the issue:

Code:

[URL="http://www.myforum.com/forum/album.php?albumid=3125&pictureid=31032"][SIGPIC][/SIGPIC][/URL]
Now, what I did find was that... in the user's profile, in the "About Me" section, it works perfectly. But in showthread, it just displays the sigpic tags. HTH.

aspen0 07-15-2009 05:38 PM

Quote:

Originally Posted by dondavis (Post 1848494)
Hello thank you for mod. But i cant make it work for me. I have done all file mods, put php file in forum root, installed product. But no effect :(. I have vbseo installed maybe that's the problem. Can you help me please with some advice?

There may be a conflict with VBseo. You could have also done the file edits incorrectly. Please doublecheck your work, they can be confusing, for instance one edit needs to go just inside a closing } in a line of 3 } and it can be easy to misread it and put it after all three, instead of after just the first two.

ade5675 07-17-2009 01:58 AM

Quote:

Originally Posted by Loco.M (Post 1847081)
I've yet to see how this would help at all with SEO
It's no different that adding a nofollow tag to external links IMO
Has anyone installed this and done nothing else and has seen positive results from it?

regards




Some sections on my forum are mostly driven by RSS feeds from other external sites so I have lots and lots of links to other sites. Trust me .. I am seeing a big positive difference in what the mod is doing already on my site. I had once used the rel="nofollow" anchor tag attribute without any value-added noticed so I say stay clear of it.

I am monitoring this mod on my site and will provide updates later. So far, it works well for me.

You can check for yourself > Naija Discussion Forum


:up: :up: :up:

dondavis 07-19-2009 04:25 AM

Quote:

Originally Posted by aspen0 (Post 1849378)
There may be a conflict with VBseo. You could have also done the file edits incorrectly. Please doublecheck your work, they can be confusing, for instance one edit needs to go just inside a closing } in a line of 3 } and it can be easy to misread it and put it after all three, instead of after just the first two.

Yeah thank you. It was my mistake in file edits.

Stefanus 07-22-2009 10:36 PM

Hi,
The following link gives a invalid url:
http://jv.news24.com/Beeld/Opinie/Ru...540963,00.html

This seems to be the case on all none www urls, any help on this?

Thanks

aspen0 07-23-2009 03:35 PM

if you've got it installed please mark it as such Stefanus.

I will look into that bug, should be an easy fix.

TWTCommish 07-23-2009 03:42 PM

1 Attachment(s)
Quote:

Originally Posted by Stefanus (Post 1853811)
Hi,
The following link gives a invalid url:
http://jv.news24.com/Beeld/Opinie/Ru...540963,00.html

This seems to be the case on all none www urls, any help on this?

Thanks

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. :)

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 06:43 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.01410 seconds
  • Memory Usage 1,851KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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