Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1 Add-ons:
Discuss this Article Add-On - 3 new forums supported!

 

First page Previous page 1 2 3 Next page Last page  View All


Dave
Staff / Moderator


Sep 5, 2002, 5:45 PM

Post #1 of 75 (11215 views)
Shortcut
     Discuss this Article Add-On - 3 new forums supported!  

Ok, I've finished goforum v1.01. This add-on adds "Discuss this article" functionality to Article Manager by making use of your existing forum (if you have one). See this thread for more info. In this version the following forums are supported:

- vbulletin
- ubbthreads
- gossamer forum
- ikonboard

New features include:

- no login setting for forums that don't require user login to post
- 'remove html' setting to remove tags from article summaries before posting to forum
- 'debug' flag to show what forum is returning when things aren't working properly.

If you already have this add-on installed and it's working well, there's no need to upgrade. If you have one of these other forums and you've be waiting to give it a try, please feel free.

Bug reports, suggestions and comments welcome!

Dave Edis - Senior Developer
interactivetools.com


Dave
Staff / Moderator


Sep 5, 2002, 5:47 PM

Post #2 of 75 (11208 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

I guess I better attach the file. ;) Here it is.


Edit: The download is now here http://www.interactivetools.com/products/articlemanager/addons/goforum.zip

Dave Edis - Senior Developer
interactivetools.com


(This post was edited by Dave on Oct 15, 2002, 10:00 AM)


InSite
User

Sep 5, 2002, 6:27 PM

Post #3 of 75 (11204 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Hi there :)

Cant remember if I or anyone else suggested this before, but would it be possible to have the script post the new thread in different forums according to category?

For example,

If article manager category = SPORTS, post new topic in forumID 1
If article manager category = MUSIC, post new topic in forumID 2
etc.

Also, can we have an option to post either the summary, or the entire article? Some of our summaries are a bit vague, so they dont make a lot of sense to forum users who havent navigated to the thread from the news article...

Quality work - if you had a members area for Article Manager upgrades such as this on a yearly subscription, I'd certainly sign up! I'm not saying I have loads of money to flash around, but I dont expect this kind of stuff for free Cool


Dave
Staff / Moderator


Sep 5, 2002, 7:06 PM

Post #4 of 75 (11200 views)
Shortcut
     Re: [InSite] Discuss this Article Add-On - 3 new forums supported! [In reply to]  


Quote
would it be possible to have the script post the new thread in different forums according to category?



It would, but you'd have to add some perl code. You would want to add something like the following a couple of lines after "# remove HTML for record data if requested" but before "# create new thread".

# specify forum cat based on article cat
if ($rec{'cat'} == 3) { $g{'forum_num'} = 12; }
if ($rec{'cat'} == 4) { $g{'forum_num'} = 22; }

Note: You'll need to check what your article manager category numbers are (referenced here with $rec{'cat'}).


Quote


Also, can we have an option to post either the summary, or the entire article?



You can have it show the entire body everytime, just look for the line that looks like this:

my $forum_body = "SUMMARY: $rec{'summary'}\n\n---\n\n ...

and replace $rec{'summary'} with $rec{'content'}. (rec standard for record, as in database record). Or if you wanted to get fancy you could create a spare field pulldown and insert different values based on what that was set to. That might look something like this:

if ($rec{'spare14'} =~ /entire article/i) { $rec{'summary'} = $rec{'content'}; }

Then if spare field 14 (or whatever number your field is) contains the text "entire article" (as opposed to say "summary only") it would set the summary value to be the same as the content, thus inserting the article content instead of the summary.

Hope that helps (and that it makes some sort of sense <grin>).

Dave Edis - Senior Developer
interactivetools.com


InSite
User

Sep 5, 2002, 8:00 PM

Post #5 of 75 (11196 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

CoolWorks like a charm! The full news article is now being posted in the relevant forum!

Thanks SOOO much! This will really improve discussions on my forums, and get our regular forum members reading the news too - makes it even more fun for our news reporters who volunteer their time.


MalaK_3araby
User

Sep 6, 2002, 1:07 AM

Post #6 of 75 (11181 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Excellent work indeed Dave.

You guys are going gret distance to please us and its surely appreciated.

/me off testing

--------------
Sure you can spell it, but do you get it?


MalaK_3araby
User

Sep 6, 2002, 2:28 AM

Post #7 of 75 (11176 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Hiya Dave ...

weired ... when i turn debugging ON it works .. turn it off and it returns line 174 error.

i am posting where login not required

--------------
Sure you can spell it, but do you get it?


taylor
User

Sep 6, 2002, 5:55 AM

Post #8 of 75 (11167 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Dave-

Could you release a version that doesn't have Findbin language in it? For some reason, goforum is choking on my server (apparently this finbin module hasn't been installed correctly). Dave Lo has spent a lot of time hard-coding the version 1 script for me to get it to work on my server.

Everytime I ask my admin to install it, he says he did--but dlo says it still isn't there.

I'm running 30+ other scripts on that server and have never run into this problem--before goforum.cgi.

Help? And no, I'm not a programmer so please don't ask me to add lines to the script. I will only get confused. :)

Taylor

Taylor


WebGuys
User

Sep 6, 2002, 8:04 AM

Post #9 of 75 (11162 views)
Shortcut
     Re: [taylor] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Just a note 2 Taylor.

First Taylor, If you know your path to cgi-bin i can help you fix the script to work without the $bin. Just let me know

WebGuys


Just a thought for the gang,

NASA used the equivelant of a commodore-64 to put men on the moon, but Windows requires a Pentium to run, Hmmmmm.


(This post was edited by WebGuys on Sep 6, 2002, 8:11 AM)


Dave
Staff / Moderator


Sep 6, 2002, 9:31 AM

Post #10 of 75 (11155 views)
Shortcut
     Re: [WebGuys] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Webguys asked "is their a way to have the script add a reference link to the article that is being discussed? "

Look for the line that starts with "my $forum_body =" and add the link at the end. Assuming you're using the default naming it would look something like this:

Read the full article at http://yoursite/publish/article_$rec{'num'}.shtml

$rec{'num'} would insert the number of the article.

Dave Edis - Senior Developer
interactivetools.com


Dave
Staff / Moderator


Sep 6, 2002, 9:41 AM

Post #11 of 75 (11151 views)
Shortcut
     Re: [MalaK_3araby] Discuss this Article Add-On - 3 new forums supported! [In reply to]  


Quote
when i turn debugging ON it works .. turn it off and it returns line 174 error

Is that the line that checks for "Thank you for posting!" in the output? Have you translated your forum? Try commenting out that line and see if it works then.

Dave Edis - Senior Developer
interactivetools.com


Dave
Staff / Moderator


Sep 6, 2002, 9:45 AM

Post #12 of 75 (11150 views)
Shortcut
     Re: [taylor] Discuss this Article Add-On - 3 new forums supported! [In reply to]  


Quote
Could you release a version that doesn't have Findbin language in it? For some reason, goforum is choking on my server (apparently this finbin module hasn't been installed correctly).



Hmm, that's too bad, FindBin is so handy. : ) Try commenting out the use Findbin line and adding a line with the filesystem path to your cgi folder after it. Like this:

#use FindBin qw($Bin);
my $Bin = "/www/websites/yoursite/htdocs/cgi-bin/"; # change this to match your server

If that doesn't work email me the code Dlo did for you and I'll send you something back that will work on your server.

Dave Edis - Senior Developer
interactivetools.com


WebGuys
User

Sep 6, 2002, 10:16 AM

Post #13 of 75 (11138 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

If you hit the discuss story button and use IkonBoard, it will do everything correctly, but if you go in and delete the topic and hit the button again, it says

Sorry, some required files are missing, if you intended to view a topic, it's possible that it's been moved or deleted. Please go back and try again

any ideas?


Dave
Staff / Moderator


Sep 6, 2002, 10:23 AM

Post #14 of 75 (11136 views)
Shortcut
     Re: [WebGuys] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Yea, that's going to happen. The way the program works is it creates a thread in the forum for each article when the user clicks on "discuss article", then remembers the link for future users who might click the link. So it's important that you don't erase the threads it creates or users will be redirected to erased threads.

An alternative approach, if someone was inclined to do some additional programming, would be to have the script try to access the page first and make sure it was there and then redirect the user. That would be a lot slower though then simply redirecting the user.

The simple solution would be "don't do that". ;)

Dave Edis - Senior Developer
interactivetools.com


WebGuys
User

Sep 6, 2002, 10:29 AM

Post #15 of 75 (11133 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

oops, you know me, I screw up by example :)

lesson learned today: Don't do what the webguys do



Webdork


Teambldr
User

Sep 6, 2002, 10:58 AM

Post #16 of 75 (11128 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

When I republish will it look for threads and if not there create threads for each news story republished? The reason I ask is when I republish it will be creating 1600 new threads all at once.
Brian


Dave
Staff / Moderator


Sep 6, 2002, 11:03 AM

Post #17 of 75 (11125 views)
Shortcut
     Re: [Teambldr] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

It doesn't create a thread until the first time someone clicks on the "Discuss this article" link. At that point it creates a thread and then redirects the user. It remembers the link and just redirects future people automatically.

Note: With vbulletin there's a slim chance the user will get a "Unable to create thread, try again in a couple minutes" error if they click "discuss" on too many articles all at the same time that have never been clicked on before. This is because vbulletin has a 45 second minimum delay between postings.

Dave Edis - Senior Developer
interactivetools.com


Teambldr
User

Sep 6, 2002, 11:24 AM

Post #18 of 75 (11119 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Would it be a good idea to create a seperate account for posting to the forum?



Thanks!
Brian


Dave
Staff / Moderator


Sep 6, 2002, 11:30 AM

Post #19 of 75 (11116 views)
Shortcut
     Re: [Teambldr] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Probably, just to keep things clean and simple. The most secure setup would be to have a separate user with as little access as possible but the ability to post new threads. Login as that user yourself first to make sure you can post new threads before doing it with the script.

Dave Edis - Senior Developer
interactivetools.com


WebGuys
User

Sep 6, 2002, 11:36 AM

Post #20 of 75 (11114 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Ok now that i have deleated it and screwed it up, i looked thru Mysql and deleated every reference to the calls in the forum database, deleated the forum, remade it, gave it a new number, reflected that in goforum.cgi and it still wont work, did the data get put into AM's database? i gotta fix this

****** UPDATE ***** I deleated the goforum.DAT and all is good, sorry for the panic mode.... should just looked t\at the script first



WebDork


(This post was edited by WebGuys on Sep 6, 2002, 11:39 AM)


taylor
User

Sep 6, 2002, 11:51 AM

Post #21 of 75 (11107 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

SmileThanks Webguys for the offer. I'll be brave and attempt Dave's suggestion...

Meantime, Dave:

What if I am not using the default naming method--I'm naming each article a unique name?

Taylor


Dave
Staff / Moderator


Sep 6, 2002, 11:59 AM

Post #22 of 75 (11106 views)
Shortcut
     Re: [WebGuys] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

If you erase a thread by accident, the easiest thing to do (if you have a text editor) is open up goforum.cgi, look for the article number and erase that line. The next time someone clicks on "discuss" for that article it will just create a new thread since it won't have a link in the data file. Be sure to make a backup copy before you do that though.

If it becomes as ongoing issue for anyone we could look at whipping up a little script to assist in that process.

Dave Edis - Senior Developer
interactivetools.com


Dave
Staff / Moderator


Sep 6, 2002, 12:08 PM

Post #23 of 75 (11103 views)
Shortcut
     Re: [taylor] Discuss this Article Add-On - 3 new forums supported! [In reply to]  


Quote
What if I am not using the default naming method--I'm naming each article a unique name?



Then it's more complicated. : ) You need to check some field values and create a new variable. Something like this:

my $article_link;
if ($rec{'filename'}) { # if filename defined
$article_link = "http://yoursite/publish/$rec{'filename'}.shtml";
} else { # otherwise, use regular link
$article_link = "http://yoursite/publish/article_$rec{'num'}.shtml";
}

then insert $article_link where you want the link to appear in the text string. Note: I didn't test this code but it's generally what you'd want.

Dave Edis - Senior Developer
interactivetools.com


WebGuys
User

Sep 6, 2002, 12:11 PM

Post #24 of 75 (11101 views)
Shortcut
     Re: [taylor] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Its ok Taylor, was gonna tell you to do that, just wanted to make sure you knew the path. But again Dave strikes the iron when the fire was hot and took care of the problem, i am gonna be out of a job before i know it, wait, i dont work there, so why am i worried....

BTW, Will be away next 10 days, goin on a cruise to Mexico, so I will miss you all, Naw I will be PARTYING!!!!!!



WebGuy


MalaK_3araby
User

Sep 6, 2002, 12:33 PM

Post #25 of 75 (11096 views)
Shortcut
     Re: [Dave] Discuss this Article Add-On - 3 new forums supported! [In reply to]  

Hi Dave ... i also commented out line 174 and it works now.

Yes, the board is translated.

Thanks.

--------------
Sure you can spell it, but do you get it?

First page Previous page 1 2 3 Next page Last page  View All
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4