![]() |
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: Code:
<!--#include virtual=/cgi-bin/discuss_link.cgi?topic=Downhill+Skiing+Basics&forum=5 --> 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. Code:
#!/usr/local/bin/perl |
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. |
Good hack, but you should have done it in PHP and not icky pUrl :)
|
Oh wow that really is cool!
I think it would be good for long community news articles too. |
So rewrite in PHP. I wrote it in Perl because it was done long before I ever had vbulletin.
|
unixman - you are the man! Thanks for the hack.
|
Awesome hack! Thank you very much!
Any idea on when Editio will be ready for release? Looks like a cool product. TigerLily:) |
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. |
Quote:
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. |
Cool!
But how to use it? |
All times are GMT. The time now is 01:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|