vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [ Release v2.0.1 ] External discussion links (join/start a conversation!) (https://vborg.vbsupport.ru/showthread.php?t=20706)

chilliboy 07-12-2001 12:22 PM

Sorry its lost me - maybe its a host thing - contact them.

Deacon Frost 07-24-2001 03:34 PM

I've a Question to the cgi-version (php works fine *g*)... When my DB is not stored on localhost, what have I to add?

unixman 07-24-2001 04:24 PM

Quote:

Originally posted by Deacon Frost
I've a Question to the cgi-version (php works fine *g*)... When my DB is not stored on localhost, what have I to add?
Change:

Code:

# Connect to mySQL

$dbh = DBI->connect( "DBI:mysql:vbulletin", "id", "password");

to:

Code:

# Connect to mySQL

$dbh = DBI->connect( "DBI:mysql:vbulletin:xyz.mydomain.com", "id", "password");

Cheers.

Juan 07-24-2001 11:30 PM

Can someone please explain this hack better, I cannot get it to work. Instructions are not that clear to me.

unixman 07-25-2001 01:37 AM

This isn't a "hack", but a simple add-on script. What problems are you having specifically? "I can't get it to work" doesn't tell us a whole lot.

Juan 07-25-2001 03:16 AM

Thank you for your reply.

I don't undertand/know what code I need to add in the comment/join converstation to make it work.

tamarian 07-27-2001 05:29 PM

This is a great script.

I just added it (the PHP version) and it works.

Just one problem when the title of the page contains '#' it halts.

I tried htmlspecial chars, and stripslashes but they didn't change the behaviour. Any tricks to make it work with '#"?

tamarian 07-29-2001 06:00 PM

Another observation. If the page title ($topic) had an '&' it will trim it to just before the '&'

My guess is that the php parser expects a variable following &.

Example:

$topic = "Sweet & Sour" will create a thread titled "Sweet"

htnlspecialchars won't help, it will replace & with & !! :)

Any ideas?

unixman 07-30-2001 04:01 PM

With the PHP version of this script, you'll need to use urlencode() to encode the title before passing it along. There are similar solutions for Perl scripts out there as well.

tamarian 07-30-2001 07:41 PM

Yes, this fixed both of my problems, the & and #.

Thanks!


All times are GMT. The time now is 01:46 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.00960 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (1)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
  • (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