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)
-   -   Show Thread Enhancements - External Link Titles, retrieve descriptive titles for URLs (https://vborg.vbsupport.ru/showthread.php?t=146679)

dj_f16 07-24-2007 10:16 AM

it gives error code and errors cookie... vBulletin version 3.6.7 pl1 ;)

magnus 07-24-2007 10:38 AM

Quote:

Originally Posted by dj_f16 (Post 1300002)
it gives error code and errors cookie... vBulletin version 3.6.7 pl1 ;)

Can't help you if you don't tell me what errors. Also, this has been tested and confirmed working on multiple 3.6.7 PL1 installations nor does it have anything to do with cookies.

magnus 07-24-2007 10:54 AM

Update:
v1.1.1
  • Wrapped returned titles in html_entity_decode(); to return properly decoded HTML characters.

magnus 07-24-2007 10:56 AM

Quote:

Originally Posted by TheMilkCarton (Post 1299723)
My blacklist just doesn't work. I tried blacklisting a .net if that makes any diff.

Everything else works, though. :)

I just tested the blacklist and can't seem to replicate the problem. I've blacklisted over a dozen various domains and each time they're excluded.

What version of vBulletin are you using? What's the *exact* string of text entered into the blacklist box?

Remember, you must prefix the domain with a period. For example, if you wanted to blacklist microsoft.com, you would enter .microsoft.com into the blacklist text area.

magnus 07-24-2007 10:59 AM

Quote:

Originally Posted by Dave Hawley (Post 1291645)
It shows this error on import into 3.5.4

Ok, this is because v3.5.4 doesn't support execution orders. You can try the attached file, I've removed the executionorder tags -- maybe it will play nice.

TheMilkCarton 07-24-2007 01:49 PM

Quote:

Originally Posted by magnus (Post 1300025)
I just tested the blacklist and can't seem to replicate the problem. I've blacklisted over a dozen various domains and each time they're excluded.

What version of vBulletin are you using? What's the *exact* string of text entered into the blacklist box?

Remember, you must prefix the domain with a period. For example, if you wanted to blacklist microsoft.com, you would enter .microsoft.com into the blacklist text area.

I was fully aware of how to enter the domains. I'll try a few more later when I get time.

FireFish 07-25-2007 05:04 AM

This is a nice mod; but (if I may), I recommend you add the ability for users to toggle this on or off via button on post toolbar or something like that.

Advanced users would appreciate the ability to override this mod & have their link show the URL in some cases while in the majority of others would prefer the page title.

But seriously, nice job! :up:

Dave Hawley 07-25-2007 06:59 AM

Quote:

Originally Posted by magnus (Post 1300029)
Ok, this is because v3.5.4 doesn't support execution orders. You can try the attached file, I've removed the executionorder tags -- maybe it will play nice.

Thanks! You have just made my day. Works well.

TheMilkCarton 07-25-2007 09:21 AM

Quote:

Originally Posted by FireFish (Post 1300868)
Advanced users would appreciate the ability to override this mod & have their link show the URL in some cases while in the majority of others would prefer the page title.

If the users were that advanced, they could figure out that they could just type out www.whatever.com, highlight it, click the URL button and then add the URL that way.

This mod won't overwrite "custom" URLs

rainyleaves 08-22-2007 11:31 AM

Awesome!!!
Thanks.
Just click INSTALLED & MOTM. :)

WarLion 08-25-2007 04:15 AM

damm dont work for me cool idea i guess mi curl is off

harmor19 08-25-2007 09:08 AM

I experimented with the blacklist and used ".*.xenweb.net:2082" to try and prevent users posting their link to cPanel only to have it converted to "cPanel® 11" (I own a hosting site). To my surprise it worked.

Thanks for the hack.

magnus 08-25-2007 02:40 PM

Quote:

Originally Posted by WarLion (Post 1325198)
damm dont work for me cool idea i guess mi curl is off

You would receive an error if cURL wasn't installed. Did you verify the mod was enabled, as it's disabled by default in the AdminCP.

maxicep 09-07-2007 10:28 PM

I have safe mode status "on".

So i getting error while i posting a new topic or reply.

Quote:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /includes/functions_newpost.php(360) : eval()'d code on line 56
How can fix it ?

Pls dont tell me about make safe mod : off

Can u fix this problem ?

*Now, i disabled the plugin.

magnus 09-08-2007 01:30 PM

Quote:

Originally Posted by maxicep (Post 1334533)
I have safe mode status "on".

So i getting error while i posting a new topic or reply.

How can fix it ?

Pls dont tell me about make safe mod : off

Can u fix this problem ?

*Now, i disabled the plugin.

The only way around this other than disabling safe_mode is to edit both the "Retreive link titles when editing a post" and "Retreive link titles when posting a new post" hooks via the Plugin Manager and remove (or comment out) the line:

PHP Code:

curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue); 


maxicep 09-08-2007 10:08 PM

I edited the ur plugin and

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

to

// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

So it is disabled ? Anything maybe wrong ? But Now working fine ..

magnus 09-09-2007 01:54 PM

Quote:

Originally Posted by maxicep (Post 1335057)
I edited the ur plugin and

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

to

// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

So it is disabled ? Anything maybe wrong ? But Now working fine ..


Nope, that's what I said in the previous post. The only catch is that you won't get titles from pages that have redirects, you'll get the occasional title as "301 Moved Permanently". But most pages will work fine.

maxicep 09-09-2007 01:58 PM

And how can i enable that function ? do u know ?

can i enable the curl_setopt function in my server side ?

*P.S: server is mine. So i can configure it too if u know what should i edit on server side about safe mode configuration.

Thx for help

magnus 09-10-2007 11:11 AM

Quote:

Originally Posted by maxicep (Post 1335450)
And how can i enable that function ? do u know ?

can i enable the curl_setopt function in my server side ?

*P.S: server is mine. So i can configure it too if u know what should i edit on server side about safe mode configuration.

Thx for help

In your global php.ini file, find the line that says:
Code:

safe_mode = On
and change it to:
Code:

safe_mode = Off
* Note: To find the location of your php.ini file, in your vBulletin AdminCP click on Maintenance -> View PHP info and look for the line Loaded Configuration File.

Once you make the change, you'll need to restart your web server. Assuming it's apache, it can be done by issuing the command "apachectl restart" (as root) from the command line.

maxicep 09-10-2007 12:25 PM

No no,

i know what u said, i know how disable the safe mode but i asked u how can i allow curl_setopt function while safe mode running. So can i configure safe mode settings like curl_setopt : on ?

magnus 09-11-2007 06:28 PM

Quote:

Originally Posted by maxicep (Post 1336166)
No no,

i know what u said, i know how disable the safe mode but i asked u how can i allow curl_setopt function while safe mode running. So can i configure safe mode settings like curl_setopt : on ?

No. The entire point of PHP safe_mode is to disallow certain functions. To circumvent that would defeat the point of safe_mode (to which, honestly, is a pain in the rear).

maxicep 09-11-2007 07:22 PM

Ok so i disable the safe mode on my server for only that mod :(

magnus 09-12-2007 01:44 AM

Quote:

Originally Posted by maxicep (Post 1337196)
Ok so i disable the safe mode on my server for only that mod :(

Is there a reason you even had safe_mode enabled? It would be fine and dandy if you were serving static content and not much else, but even vBulletin itself benefits from having safe_mode disabled -- not to mention most of the modifcations available here.

maxicep 09-12-2007 05:56 AM

Of course, i prefer it for more security .

magnus 09-12-2007 11:42 AM

Quote:

Originally Posted by maxicep (Post 1337452)
Of course, i prefer it for more security .

The original intent of PHP safe_mode is to provide a bandaid solution for shared server security issues. Since you apparently maintain your own server, you're not really seeing much (if any) benefit to having it enabled.

In fact, it's been removed as of PHP 6.0.0.

maxicep 09-15-2007 07:50 AM

Thanks for help magnus.

Also i have problem with some Turkish Website Titles.
If title include a Turkish character like "ş, ğ, ı, ç" title looking very bad.

I tried edit the plugin
first line

<?xml version="1.0" encoding="ISO-8859-1"?>

i made it

<?xml version="1.0" encoding="ISO-8859-9"?>

I added this plugin again but iso charset didnt changed, i cant change it?

Should we change it for solve Turkish character problem ?

magnus 09-15-2007 01:44 PM

Quote:

Originally Posted by maxicep (Post 1339376)
Thanks for help magnus.

Also i have problem with some Turkish Website Titles.
If title include a Turkish character like "ş, ğ, ı, ?" title looking very bad.

I tried edit the plugin
first line

<?xml version="1.0" encoding="ISO-8859-1"?>

i made it

<?xml version="1.0" encoding="ISO-8859-9"?>

I added this plugin again but iso charset didnt changed, i cant change it?

Should we change it for solve Turkish character problem ?

Could you show me an example of what's happening?

maxicep 09-17-2007 01:43 AM

Sure, see below

Fenerbahçe Fan/FB Videoları, FB Resimleri, FB ?�arkıları, FB Yazıları, FB Hakkında Her?�ey

Some characters look bad on some sites?

But site title looking good when i enter the site.
Site title on my explorer
Quote:

Fenerbah?e Fan/FB Videoları, FB Resimleri, FB Şarkıları, FB Yazıları, FB Hakkında Herşey :
Url
Code:

http://fenerbahce-fan.blogspot.com/

REIGN SS 10-11-2007 04:19 AM

Installed works about 80% of the time... I guess it has to due with the External Links Timeout setting, currently at 6seconds... Thanks for the mod!

Boothby 11-03-2007 08:55 PM

For all, having problems with Save Mode on this is my little fix to solve it.

Find twice
PHP Code:

if (function_exists('curl_init') AND $ch curl_init())
{
    
curl_setopt($chCURLOPT_URL$match[1]);
    
curl_setopt($chCURLOPT_TIMEOUT$vbulletin->options['linktitles_timeout']);
    
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
    
curl_setopt($chCURLOPT_HEADERfalse);
    
curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);

    
$file_contents curl_exec($ch);


And replace with:
PHP Code:

$file_contents = @file_get_contents($match[1]); 

Then I added a small tweak to parse url's without a scheme, like "http://".

find twice:

PHP Code:

$url_host $url['host']; 

After it add:
PHP Code:

if(!$url['scheme'])
{
      
$match[1] = "http://" $match[1];


Now it works for me beautyful.

Thanks and installed.

SC-Bahamut 11-11-2007 11:02 AM

Hello

Sorry, for my English, i am German. ;)

I have a little Problem with intern Links in my Forum. Extern Links works perfect, but intern Links shows so:

Original Link:
h**p://w*w.support-community.net/showthread.php?t=1370

was to
Support-Community.net - Support rund um ihren Computer

Who can i make that the Title of the Tread (Horizontale Balken beim Booten), and not the Title of the Forum, was created ?

Greetz

magnus 11-12-2007 12:07 PM

Quote:

Originally Posted by SC-Bahamut (Post 1380260)
Hello

Sorry, for my English, i am German. ;)

I have a little Problem with intern Links in my Forum. Extern Links works perfect, but intern Links shows so:

Original Link:
h**p://w*w.support-community.net/showthread.php?t=1370

was to
Support-Community.net - Support rund um ihren Computer

Who can i make that the Title of the Tread (Horizontale Balken beim Booten), and not the Title of the Forum, was created ?

Greetz

It grabs the title provided by the page (the text found between the <title></title> tags). You would need to edit your templates and remove the forumtitle variable from within those tags.

TrioxX 12-10-2007 01:04 AM

Hi,

great hack! Installed it.

EDIT:

How can we change the pagetitle of internal sites, that all pages of the board will be shown as the real pagetitle (like search, boards...) ?

Satz 12-19-2007 11:04 AM

i have tried everythin still cudnt make it work on my forum :( , wud be pleased if some one can help me out

TrioxX 12-19-2007 11:23 AM

YOu must tell, what not work. Because we're no mindreader ;)

Satz 12-19-2007 12:47 PM

no errors nothin , simply dont work after doing the installation

if i post the link , its good for mods here to treat me with an infraction

TrioxX 12-19-2007 02:17 PM

Link to your board?

Satz 12-19-2007 05:15 PM

ok here comes another infraction

www.wareztalk.com/forum < very new forum , so dont gimme an infraction it is just the domain name

rwoscott 12-19-2007 07:33 PM

Satz, To ask a silly question, have you enabled it, via the admincp?

Installed. Works great. Thanks.

magnus 12-20-2007 04:37 PM

Quote:

Originally Posted by Satz (Post 1404573)
no errors nothin , simply dont work after doing the installation

if i post the link , its good for mods here to treat me with an infraction

The modification is disabled by default. Verify that you enabled it, as per the instructions:
Quote:

2. Enable the modification via AdminCP > vBulletin Options > External Link Titles Options (it is disabled by default)


All times are GMT. The time now is 08:07 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.01624 seconds
  • Memory Usage 1,847KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (19)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