Gossamer Forum
Quote Reply
Poll Plugin
I am having problems activating the pollreg.cgi. Does this need to be done before I see how the Polls look?

I have installed the plug-in via my admin controlls, but I don't see the "New Poll" button in my forum.

These are the errors that are generated when trying to run pollreg.cgi:

Quote:
[Mon Apr 29 13:30:33 2002] [error] [client 24.116.39.8] Premature end of script headers: /home/art-song/public_html/songtalk/cgi-bin/admin/pollreg.cgi

[Mon Apr 29 13:30:33 2002] [error] (2)No such file or directory: exec of /home/art-song/public_html/songtalk/cgi-bin/admin/pollreg.cgi failed

These are the files in my admin directory as listed by fileman:

Quote:
attachments   File Folder 28-Apr-2002 15:59 nobody rwx r-x r-x  
cron   File Folder 28-Apr-2002 15:59 nobody rwx r-x r-x  
defs   File Folder 29-Apr-2002 12:23 nobody rwx rwx rwx  
GForum   File Folder 28-Apr-2002 15:59 nobody rwx r-x r-x  
GT   File Folder 28-Apr-2002 16:00 nobody rwx r-x r-x  
mysqlman   File Folder 28-Apr-2002 16:00 nobody rwx r-x r-x  
Plugins   File Folder 28-Apr-2002 15:59 nobody rwx r-x r-x  
templates   File Folder 28-Apr-2002 15:59 nobody rwx rwx rwx  
tmp   File Folder 29-Apr-2002 13:25 nobody rwx rwx rwx  
tools   File Folder 28-Apr-2002 15:59 nobody rwx r-x r-x  
admin.cgi 6 kb Script File 04-Mar-2002 15:21 nobody rwx r-x r-x  
bases.pm 2 kb Script File 08-Apr-2002 14:00 nobody rw- r-- r--  
checksums.dat 48 kb unknown 28-Apr-2002 16:00 nobody rw- r-- r--  
constants.pm 4 kb Script File 06-Apr-2002 22:35 nobody rw- r-- r--  
db.cgi 1 kb Script File 04-Mar-2002 15:21 nobody rwx r-x r-x  
GForum.pm 20 kb Script File 23-Apr-2002 15:19 nobody rw- r-- r--  
nph-email.cgi 4 kb Script File 04-Mar-2002 15:21 nobody rwx r-x r-x  
pollreg.cgi 524 bytes Script File 29-Apr-2002 13:25 nobody rwx r-x r-x  
setup.cgi 18 kb Script File 21-Mar-2002 01:00 nobody rwx r-x r-x  
Any help?

Ryan
Quote Reply
Re: [hunthost] Poll Plugin In reply to
As I just wrote to you by email:

Try adding
Code:
use lib '/home/art-song/public_html/songtalk/cgi-bin/admin';
just after "use strict;" and replace GForum::init('.'); with
Code:
GForum::init('/home/art-song/public_html/songtalk/cgi-bin/admin');

That should work.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [hunthost] Poll Plugin In reply to
Also try changing the path to perl in the first line...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
In Reply To:
As I just wrote to you by email:

Try adding
Code:
use lib '/home/art-song/public_html/songtalk/cgi-bin/admin';
just after "use strict;" and replace GForum::init('.'); with
Code:
GForum::init('/home/art-song/public_html/songtalk/cgi-bin/admin');

That should work.

I tried this and still get the same errors.
Quote Reply
Re: [yogi] Poll Plugin In reply to
In Reply To:
Also try changing the path to perl in the first line...

Path to perl is correct.

Any other ideas?

Thanks for your help,

Ryan
Quote Reply
Re: [hunthost] Poll Plugin In reply to
Make sure you upload in ascii mode.. Sounds like either path to perl, or windows line feeds. =)

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Poll Plugin In reply to
In Reply To:
Make sure you upload in ascii mode.. Sounds like either path to perl, or windows line feeds. =)

Cheers,

Alex

I used FileMan to upload the file. (For some reason FTP won't allow the upload, but FileMan will.) FileMan reported that it was uploaded in ASCII.

Path to Perl is correct.

The above modifications were made with BB Edit which does not insert extra line feeds.

Still doesn't work.

Any ideas?

Thanks

Ryan
Quote Reply
Re: [Alex] Poll Plugin In reply to
Just an idea...

Is it possible to run the pollreg.cgi from the command line?

How would I try this?

Would it have the desired effect?
Quote Reply
Re: [hunthost] Poll Plugin In reply to
Yes, you can run it from the command line, and it should work. Tell me if you succeed.

Go to your admin directory, and type
Code:
perl pollreg.cgi

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
In Reply To:
Yes, you can run it from the command line, and it should work. Tell me if you succeed.

Go to your admin directory, and type
Code:
perl pollreg.cgi

Well I tried it and I don't really know if it worked. It didn't give me any errors, and returned another bash$ prompt, but I still don't see the "New Poll" button.

How would I know if the registration succeeded? How do I make sure the installation went OK?

Ryan
Quote Reply
Re: [hunthost] Poll Plugin In reply to
It should have printed something like
Code:
The Poll plugin has been successfully registered! Thank you for using it

The New Poll button should also be visible without registration. The only thing the registration does, is make sure the plugin works also after three days. If you don't register, the plugin will cease functionning.

Make sure you followed the instructions for installation in the "About" page. In the template "forum_view.html", you have to include three (!) times the code snippet in question.

Also you need the right permissions for the New Poll button to appear, you need a least be able to post a message in the forum in question.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
Where do I find these instructions?
Quote Reply
Re: [hunthost] Poll Plugin In reply to
In your admin area, go to "Plugins -> Poll -> About" for instructions on how to install the plugin (i.e on how to change your templates etc.)

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
I have attached the changes I made to forum_view.html.

"New Poll" Still does not appear.

Ryan

Last edited by:

hunthost: Apr 29, 2002, 10:58 PM
Quote Reply
Re: [hunthost] Poll Plugin In reply to
OK, I think I know what the problem is.

When I say add the code three times to the template, I mean to say that there are three different places, where you have to add it. Three times just before the "Post New" button.

Hope that helps.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
In Reply To:
OK, I think I know what the problem is.

When I say add the code three times to the template, I mean to say that there are three different places, where you have to add it. Three times just before the "Post New" button.

Hope that helps.

That does help. You might want to think about making your instructions a little more clear on that point. Also you should note that:

Code:
<input type="submit"<%unless user_forum_permission >= 5%> disabled<%endif%> name="do=post_write;forum=<%forum_id%>" value="Post New" class="submit">

is not exactly correct. When doing a search for this only one instance shows up. However a search for:

Code:
<input type="submit"<%unless user_forum_permission >= 5%>

will yield three results.

Now that I got the "New Poll" button to appear I am having trouble with actually writing the poll. I am attaching a screen shot of the write poll page.

I don't know if there is a problem with the code I was supposed to insert, or the actuall template itself, so am also including the two post_..._write.html templates i modified for you to look at.

And for good measure I am including the post_view_....html templates incase I have mis understood your directions.

With the view and write templates searchs on the text strings yielded no results and so I had to guess. As sometimes there are multiple occurances of a given marker ie:
Code:
<%body_table%>
it would help to have a more exact search string.

Does this make any sense?

Thanks for your help,

Ryan
Quote Reply
Re: [yogi] Poll Plugin In reply to
Just a thought,

Do you think the skeewampus look of the write new poll page has to do with it being displayed on a Mac IE5?
Quote Reply
Re: [hunthost] Poll Plugin In reply to
Looks like you overwrote a table <TD> or <TR> tag. Do a difference comparison and see what's missing.
Quote Reply
Re: [HeavyBombers] Poll Plugin In reply to
In Reply To:
Looks like you overwrote a table <TD> or <TR> tag. Do a difference comparison and see what's missing.

Thanks for pointing me in that direction. I actually had not over written anything, but discovered that I had placed the "to be inserted code" inside a <tr> rather than outside of it.

So far everything seems to be working now.

I'll keep you posted of any further problems.

Thanks for all your help Ivan, Scott and Alex.
Quote Reply
Re: [yogi] Poll Plugin In reply to
Well, I never saw anything displayed like this, and now it appears as if the thing has expired. When I tried to activate the: pollreg.cgi I still get the same errors:

Code:

[Tue May 14 15:08:07 2002] [error] [client 24.116.39.8] Premature end of script headers: /home/art-song/public_html/songtalk/cgi-bin/admin/pollreg.cgi
[Tue May 14 15:08:07 2002] [error] (2)No such file or directory: exec of /home/art-song/public_html/songtalk/cgi-bin/admin/pollreg.cgi failed

What do I do now?

Ryan

In Reply To:
It should have printed something like
Code:
The Poll plugin has been successfully registered! Thank you for using it

The New Poll button should also be visible without registration. The only thing the registration does, is make sure the plugin works also after three days. If you don't register, the plugin will cease functionning.

Make sure you followed the instructions for installation in the "About" page. In the template "forum_view.html", you have to include three (!) times the code snippet in question.

Also you need the right permissions for the New Poll button to appear, you need a least be able to post a message in the forum in question.
Quote Reply
Re: [hunthost] Poll Plugin In reply to
Yogi,

Are you there?

Still can't register. Can you help?

Ryan
Quote Reply
Re: [hunthost] Poll Plugin In reply to
Sorry for the late reply. I hadn't been here for a few days, I'll send you the registration script and instructions again. If it still doesn't work, contact me by email.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
Works great thanks!!