Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[ Release v2.0.1 ] External discussion links (join/start a conversation!) Details »
[ Release v2.0.1 ] External discussion links (join/start a conversation!)
Mod Version: 1.00, by (Guest)  is offline
Developer Last Online: Jan 1970 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 3
Released: 19 Jun 2001 Last Update: Never Downloads: 0
Not Supported  

Another quick, but kick-arse hack. We have a home-made content management system (actually, a beta tool see incursio.com for more info - product is called Editio). At any rate, it allows staff or community members to create online articles. Once articles are published, I wanted a way to automatically link them into our forums, so people could start a discussion, or join a discussion already in progress about that particular article. Yahoo! does this with news events as well.

At any rate, perl script. chmod 755, I call it discuss_link.cgi. It should be invoked via SSI. Under Apache:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In the link above, plug in your forum number (forumid column in VB), and the title of the article. The title will be used as the title of the post. If a post exists in the passed forum with that title, a link to "Join the conversation" will be emitted. Otherwise, you get a link called "Start a conversation". You get the picture.

Our content management system (through its plugin concept) allows us to have stuff like this embedded within each article - you could cobble up something similar in your own system with a little effort.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Cheers.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 19 Jun 2001, 19:58
unixman
Guest
 
Not Downloaded
A demo would be nice, eh?

For those who'd like to see it in action - take a peek:

http://www.wetcanvas.com/Articles/Scott_Burkett/105/

Check the bottom of the page.

Cheers.
Reply With Quote
  #3  
Old 20 Jun 2001, 08:50
Nicholas Brown's Avatar
Nicholas Brown Nicholas Brown is offline
 
Join Date: Oct 2001
Not Downloaded
Good hack, but you should have done it in PHP and not icky pUrl
Reply With Quote
  #4  
Old 20 Jun 2001, 13:07
Balbanes
Guest
 
Not Downloaded
Oh wow that really is cool!

I think it would be good for long community news articles too.
Reply With Quote
  #5  
Old 20 Jun 2001, 13:44
unixman
Guest
 
Not Downloaded
So rewrite in PHP. I wrote it in Perl because it was done long before I ever had vbulletin.
Reply With Quote
  #6  
Old 20 Jun 2001, 13:50
v0n
Guest
 
Not Downloaded
Thumbs up

unixman - you are the man! Thanks for the hack.
Reply With Quote
  #7  
Old 20 Jun 2001, 17:26
TigerLily TigerLily is offline
 
Join Date: Nov 2001
Not Downloaded
Awesome hack! Thank you very much!

Any idea on when Editio will be ready for release? Looks like a cool product.

TigerLily
Reply With Quote
  #8  
Old 20 Jun 2001, 18:18
unixman
Guest
 
Not Downloaded
A bit off-topic for this board, but over the summer for sure. Just add yourself to our mailing list and you'll be the first to know. :-)

Cheers.
Reply With Quote
  #9  
Old 20 Jun 2001, 19:33
akiy's Avatar
akiy akiy is offline
 
Join Date: Dec 2001
Not Downloaded
Originally posted by unixman
So rewrite in PHP.
I went and rewrote the above in PHP. I've attached discussion_link.php below.

All you should need to do is include("discussion_link.php") where you would like the "Start/Join a Conversation!" link to be. You'll need to set your own username, password, database, and forumpath in the script, of course.

I've tried out the script on my site and it looks like it works. Any improvements, bug fixes, and such are always welcome.
Attached Files
File Type: txt discussion_link.php.txt (1.5 KB, 145 views)
Reply With Quote
  #10  
Old 22 Jun 2001, 01:08
ztsky
Guest
 
Not Downloaded
Cool!
But how to use it?
Reply With Quote
  #11  
Old 28 Jun 2001, 09:07
stroppytart
Guest
 
Not Downloaded
Ok, I imstalled both the .cgi and .php versions on a test page, but neither worked. Here's the gist of the page:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

What am I doing wrong? I'm not extremely familiar with the #include option.

For reference, here's my discussion_link.php page (password/username starred out for security reasons..duh):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #12  
Old 30 Jun 2001, 15:57
stroppytart
Guest
 
Not Downloaded
Can anyone help..?
Reply With Quote
  #13  
Old 30 Jun 2001, 20:35
unixman
Guest
 
Not Downloaded
The #include will only work if your Apache web server supports server-side includes (SSI). With regard to the PHP version that akiy posted - you just have to include it in using PHPs include syntax:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Cheers.
Reply With Quote
  #14  
Old 02 Jul 2001, 00:46
Juan Juan is offline
 
Join Date: Nov 2001
Not Downloaded
This looks like a nice hack!

I am testing it with the php version. I have named it discussion.php and uploaded it to the forums directory.

What is exactly what I need to include below to make sure it starts or joins in a conversation?

<? include "/path/to/my/forums/discussion.php"; ?>

The way it is, it just displays a blank page.
Reply With Quote
  #15  
Old 02 Jul 2001, 08:51
stroppytart
Guest
 
Not Downloaded
OK, that worked, but now I recieve this error where the link should be.

Warning: open_basedir restriction in effect. File is in wrong directory in /home/sites/site207/web/browse.php on line 306

Warning: Failed opening '/discussion_link.php' for inclusion (include_path='.:..:/usr/local/lib/php') in /home/sites/site207/web/browse.php on line 306



The usr/local/lib/php would be necessary? I wasn't aware php required a bin.. but I'm a novice, so eh.. is there any quick fix to this?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:35.

Layout Options | Width: Wide Color: