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)

magnus 05-15-2007 12:48 PM

Quote:

Originally Posted by C_P (Post 1247724)
I get similar error and PHP safe mode is not on:
safe_modeOffOff
safe_mode_gidOffOff
Here is my error:
and after i resolves back to thread it was posted in, my http://www.vbulletin.org displays this as the hyperlink:
301 Moved Permanently link test
Now, this could be do the he anonym modification we have installed. If so, we cannot install this but a nice option none the less.

Well, according to the error:
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 30
It's either one of 2 things. You verified safe mode isn't enabled, so there must be an open_basedir set in functions_newpost.php. You'll need to check for plugins that hook into your the file, and see if there's a way to resolve the error.

The reason the link shows as "301 Moved Permanently" is because vBulletin.org has a redirect to the portal page. The CURLOPT_FOLLOWLOCATION option tells the modification to follow all redirect tags until the end. Since you can't use that option, it stops on the first try.

You can still use the modification, you would simply have to disable CURLOPT_FOLLOWLOCATION and occasionally be stuck with links such as "301 Moved Permanently" in such cases.

C_P 05-15-2007 12:52 PM

Thank you for the reply and update.

Dave Hawley 06-07-2007 03:59 AM

Would this work on 3.5.4? If not, is there one for that version?

Quantnet 07-13-2007 01:45 PM

Any update on the &amp and quotation issue ?

I have something like this The iPhone - Doesn't Slice, Doesn't Dice, but Will It Blend? | CrackBerry.com

magnus 07-13-2007 02:01 PM

Quote:

Originally Posted by Dave Hawley (Post 1262925)
Would this work on 3.5.4? If not, is there one for that version?

It should work, but I haven't tested. It couldn't hurt to try.

magnus 07-13-2007 02:02 PM

Quote:

Originally Posted by Quantnet.org (Post 1289971)
Any update on the &amp and quotation issue ?

I have something like this The iPhone - Doesn't Slice, Doesn't Dice, but Will It Blend? | CrackBerry.com

To be honest, I completely forgot about that issue. I'll go ahead and take a look at it right now. I'm sure it's an easy fix.

My apologies!

Dave Hawley 07-15-2007 07:03 AM

It shows this error on import into 3.5.4

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Retreive link titles when editing a post', 'editpost_update_process', 'if ($vbulletin->options[\'linktitles_active\'])\r\n{\r\n preg_match_all(\'/\\[url\\](.*)\\[\\/url\\]/Ui\', $edit[\'message\'], $matches, PREG_SET_ORDER);\r\n\r\n foreach($matches as $match)\r\n {\r\n $url = parse_url($match[1]);\r\n $url_host = $url[\'host\'];\r\n $blacklist = preg_split(\'#\\s#\', $vbulletin->options[\'linktitles_blacklist\'], -1, PREG_SPLIT_NO_EMPTY);\r\n\r\n $host_is_blacklisted = false;\r\n foreach ($blacklist as $host)\r\n {\r\n if (preg_match(\'#\' . preg_quote($host, \'#\') . \'$#siU\', $url_host))\r\n {\r\n $host_is_blacklisted = true;\r\n break;\r\n }\r\n }\r\n unset($blacklist);\r\n\r\n if ($host_is_blacklisted == false)\r\n { \r\n if (function_exists(\'curl_init\') AND $ch = curl_init())\r\n {\r\n curl_setopt($ch, CURLOPT_URL, $match[1]);\r\n curl_setopt($ch, CURLOPT_TIMEOUT, $vbulletin->options[\'linktitles_timeout\']);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ch, CURLOPT_HEADER, false);\r\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n\r\n $file_contents = curl_exec($ch);\r\n }\r\n\r\n preg_match(\'/<title>(.*)<\\/title>/i\', $file_contents, $title);\r\n\r\n if ($title[1] != \'\')\r\n {\r\n $edit[\'message\'] = str_replace($match[0], \' . \'\"]\' . $title[1] . \'\', $edit[\'message\']);\r\n }\r\n }\r\n }\r\n}', 'linktitles');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054

Quantnet 07-24-2007 12:15 AM

Quote:

Originally Posted by magnus (Post 1289978)
To be honest, I completely forgot about that issue. I'll go ahead and take a look at it right now. I'm sure it's an easy fix.

My apologies!

Any updates ?
This shouldn't take you this long right ? :)

TheMilkCarton 07-24-2007 01:20 AM

My blacklist just doesn't work. I tried blacklisting a .net if that makes any diff.

Everything else works, though. :)

magnus 07-24-2007 10:13 AM

Quote:

Originally Posted by Quantnet.org (Post 1299693)
Any updates ?
This shouldn't take you this long right ? :)


No, it shouldn't.. and that's the funny part. Everytime I think I have it fixed, I find a character that for some reason won't translate over. It's as if certain html codes are exempt from being translated. I've gotten most simple characters such as &amp;, &copy;, etc. working fine, but other such as foreign lettering and fractions aren't working. It's the damndest thing..


All times are GMT. The time now is 05:50 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.01179 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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