|
Joined: Jan 2002
Posts: 116
Member
|
Member
Joined: Jan 2002
Posts: 116 |
quote: Originally posted by Ed: hi Greg, i have an error:
quote: Unable to create a new configuration file: No such file or directory at /home/*****/www/pm/*******/htdocs/cgi-bin/board/cp_ubbnews.cgi line 109.
what should i do now? i have no file whos called "vars_ubbnews_$lastnumber.cgi"
so i don't know what the scripts is looking for
please help, thanks a lot in advance
Ed
did you creat an directory called ubbnews and chmod it 777? 
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
[code][/code][/b] Lauren... I have the same thing... no one has been able to help me on it yet.... I gave up and got rid of everything I uploaded and reinstalled my back up files... until this all gets straightened out and someone can fix this, I'm not even going to mess with it anymore....
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
look Kel ther is not a thing wrong with this hack read my post befor this one you are doing the ssi call all wrong or something.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
This hack works as directed. If you don't know how to use SSI, that's honestly not my problem. Ask your systems admin how to use SSI properly, because it varries.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
quote: Originally posted by Kel: Update... still can't get this to work... I've checked all permissions, check all paths... gone to my server FAQS for support on that end... did all that they said... created the .shtml file... blahblahblah... and I get either
unable to include "ubbnews.cgi?ns_id=1" in parsed file....
or
Premature end of script headers:....
or
File does not exist: ....
or
script not found or unable to stat:....
or
Can't locate UBBCGI.pm in @INC.....
I give up...
Then there is alot more wrong that what I can help.
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
{sigh}... I did everything exactly as instructed... called up the ssi exactly as you posted above... tried both ways "just in case"... checked with my server to make sure I did it right according to their instructions... everything went smooth as silk... EXCEPT!... I got the same error as Lauren... [an error occurred while processing this directive] When I checked my error log to see why I got this message, I saw various different errors (listed above) depending on what I tried in order to fix it... As I am not the only one having this same exact problem, I don't think it's me... I'm frustrated beyond belief with this because it all seems so simple and should be... and despite my efforts to figure it all out and get some assistance, it is still not working for me... I sincerely apologize for passing my frustrations on to those of you who have tried to help... I DO appreciate your time and efforts... 
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
Kel i am going to show you that this works with no probs at all have a look at this page. http://www.starbraker.com/Contests2.shtml yes it works with no probs with it. so this tells me it is something your doing or it is your server.
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Is there any way to call it with PHP? 
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
quote: Originally posted by Dave2: Is there any way to call it with PHP?
how do you mean Dave? Call the script? or call the latest posts?
|
|
|
|
Joined: Feb 2000
Posts: 62
Member
|
Member
Joined: Feb 2000
Posts: 62 |
This might help . . . I was having the same problems as Kel, Lauren etc., but I got out of jail - not sure if what I went through will help but for what it’s worth, here it is: I was editing my html in frontpage (I know, I know) and when I pasted the "exec cgi="cgi-bin/ubb/ubbnews.cgi?ns_id=1" command, I kept getting wild characters. So I cleaned it up using dreamweaver (trial) and then logged on to my host server suspecting that front page extensions might be an issue. I had never turned them on but I guessed that given the popularity of the prog. – they might be ‘on’ by default – they were so off they came. I then read about html parsing problems and a little hack to the .htaccess file when using the subdir – htdocs. (mine’s at the same level as cgi-bin) So I modified the .htaccess as per the text below Quote Because it is very resource intensive to have the server parse all HTML files it serves, it is common not to parse .html files for SSI's. You can make it parse all files on your site however by adding the following line to your .htaccess file in your htdocs directory. AddHandler server-parsed .html This will make all subdirectories (i.e., your entire site) parse *.html files. End quoteThere was a bit more info about ssi here ‘http://powweb.com/support/ssi.html’ including a simple (time) script which worked for me, demonstrating that I could ssi to html docs on my server. But I still kept getting - [an error occurred while processing this directive] – during the ubb call. Finally I checked this link “http://httpd.apache.org/docs/howto/ssi.html#includingtheresultsofacgiprogram” which referred to outputting the results of a cgi script, and I noticed the (#include virtual="/cgi-bin/etc.etc) variation as detailed by Greg. So I changed mine and “VOILA” Now I’m not sure which of these steps cured the problem, I had tried the (#include virtual="/cgi-bin/) earlier without success so I suspect it might have been a combination of crap html in F/Page, F/P extensions and the .htaccess – I’m not skilled at all when it comes to understanding how servers work so I may be way off base – but anyhow – it worked in the end. Now – can anybody advise on how best to format the output – it’s taking up a lot of room (even with headers only) especially with the date in there. I’ve tried to change the style template and reduce the font but I’ll still struggle to match my page I guess it’ll have to wait until tomorrow - it’s 3:45am in Sydney and I’m going blind  – g’night all PS - I just had to re-type ALL this again - I lost the lot because I'd included html parentheses in the post - not happy 
I'm depriving a village somewhere of an idiot.
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
quote: Originally posted by AllenAyres: quote: Originally posted by Dave2: Is there any way to call it with PHP?
how do you mean Dave? Call the script? or call the latest posts?
Call the latest posts...
If it generated a .inc file or something you definitelt could... Does it generate a file which gets updated, or not?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
You can print the generated cgi file in a .php page, use something like we do on our front page: [code][/code]
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Thanks (I saw that someone asked this question in the server-side scripting forum but got an incorrect answer...)
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Is there some way to remove the: : Before the posts? I've removed the 'forum text' since it doesn't look right on our site, however it still has the : and I can't figure out how to remove it... (see http://www.aagames.co.uk to see what I mean...)
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
When I tried to generate that cgi code into the php page, I got this error message:
Warning: Bad arguments to implode() in /home/virtual/roxydollboard/home/httpd/html/ubbphptest.php on line 2 ?>
|
|
|
|
Joined: Feb 2000
Posts: 62
Member
|
Member
Joined: Feb 2000
Posts: 62 |
OK - all works well - BUT - I cannot find a way for the output to conform to the nominated style template settings. It will pick up any changes to font colour – but not face or size??
I can adjust the font face (only) by embedding font info into the receiving page before uploading. When I “view source” on the output page, every UBBnews entry shows
I’ve tried Corona’s (public_ubbnews.pl) variation but no luck - HELP – as it stands it’s about as much use as an ashtray on a harley given that my output page is all size 1 arial
I'm depriving a village somewhere of an idiot.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Let me look into that. It is working perfectly on my sites for, well over 9 months.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
quote: Originally posted by guvner: This might help . . .
I was having the same problems as Kel, Lauren etc., but I got out of jail - not sure if what I went through will help but for what it’s worth, here it is:
I was editing my html in frontpage (I know, I know) and when I pasted the "exec cgi="cgi-bin/ubb/ubbnews.cgi?ns_id=1" command, I kept getting wild characters. So I cleaned it up using dreamweaver (trial) and then logged on to my host server suspecting that front page extensions might be an issue.
I had never turned them on but I guessed that given the popularity of the prog. – they might be ‘on’ by default – they were so off they came.
I then read about html parsing problems and a little hack to the .htaccess file when using the subdir – htdocs. (mine’s at the same level as cgi-bin) So I modified the .htaccess as per the text below
Quote Because it is very resource intensive to have the server parse all HTML files it serves, it is common not to parse .html files for SSI's. You can make it parse all files on your site however by adding the following line to your .htaccess file in your htdocs directory. AddHandler server-parsed .html This will make all subdirectories (i.e., your entire site) parse *.html files. End quote
There was a bit more info about ssi here ‘http://powweb.com/support/ssi.html’ including a simple (time) script which worked for me, demonstrating that I could ssi to html docs on my server. But I still kept getting - [an error occurred while processing this directive] – during the ubb call.
Finally I checked this link “http://httpd.apache.org/docs/howto/ssi.html#includingtheresultsofacgiprogram” which referred to outputting the results of a cgi script, and I noticed the (#include virtual="/cgi-bin/etc.etc) variation as detailed by Greg. So I changed mine and “VOILA”
Now I’m not sure which of these steps cured the problem, I had tried the (#include virtual="/cgi-bin/) earlier without success so I suspect it might have been a combination of crap html in F/Page, F/P extensions and the .htaccess – I’m not skilled at all when it comes to understanding how servers work so I may be way off base – but anyhow – it worked in the end.
Now – can anybody advise on how best to format the output – it’s taking up a lot of room (even with headers only) especially with the date in there. I’ve tried to change the style template and reduce the font but I’ll still struggle to match my page
I guess it’ll have to wait until tomorrow - it’s 3:45am in Sydney and I’m going blind – g’night all
PS - I just had to re-type ALL this again - I lost the lot because I'd included html parentheses in the post - not happy
Right, the code MUST be inserted MANUALLY into your HTML file. You can NOT insert it using dreamweaver or frontpage, and uploading it via frontpage extensions is really a bad idea in general.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
quote: Originally posted by guvner: OK - all works well - BUT - I cannot find a way for the output to conform to the nominated style template settings. It will pick up any changes to font colour – but not face or size??
I can adjust the font face (only) by embedding font info into the receiving page before uploading. When I “view source” on the output page, every UBBnews entry shows
I’ve tried Corona’s (public_ubbnews.pl) variation but no luck - HELP – as it stands it’s about as much use as an ashtray on a harley given that my output page is all size 1 arial
Cant confirm this anywhere. Let me add some checks to the script...
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
updated. only update if your having problems.
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
guvner... THANK YOU!!!... I will be trying this tomorrow... I have Powweb as well and read that also... I can't remember why I didn't try it... I think one of the dogs was making off with my fuzzy slipper and I got sidetracked... I'll let you know if it works... again... thanks BUNCHES!... Edit:.... now I remember why I didn't do this... I couldn't find the .htaccess file... 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
quote: Originally posted by Ellen: When I tried to generate that cgi code into the php page, I got this error message:
Warning: Bad arguments to implode() in /home/virtual/roxydollboard/home/httpd/html/ubbphptest.php on line 2 ?>
Use the url to the script, not the path
http://www.roxydollboard.com/etc etc...
|
|
|
|
Joined: Feb 2000
Posts: 62
Member
|
Member
Joined: Feb 2000
Posts: 62 |
Thanks Greg - but no good news I'm afraid. Went through the whole routine again - no change - situation as detailed before In my case I simply cannot get it to pick up font face or size settings/changes from the style template. I'm running 6.2.1 - anything there? Any chance you could have a look at my setup?? Thanks for everything so far. IGNORE - see next post . . .
I'm depriving a village somewhere of an idiot.
|
|
|
|
Joined: Feb 2000
Posts: 62
Member
|
Member
Joined: Feb 2000
Posts: 62 |
Hi Greg – ALL is well I found the little “culprit” Line 91 of public_ubbnews.pl shows: quote: return qq~ $name_space->{forum_title}: $name_space->{topic_subject} ( $name_space->{topic_date} $name_space->{topic_time} )
~;
}
I amended this as follows:
quote: return qq~ $name_space->{forum_title}: $name_space->{topic_subject} ( $name_space->{topic_date} $name_space->{topic_time} )
~;
}
and the problem went away!! – yeeeaahh – happy puppy
Thanks for your help . . .
I'm depriving a village somewhere of an idiot.
|
|
|
|
Joined: Apr 2001
Posts: 254
Member
|
Member
Joined: Apr 2001
Posts: 254 |
after installing this, I get this error! Help!
Global symbol "$vars_style_" requires explicit package name at /home/scificha/public_html/forum/cgi-bin/ubbnews.cgi line 35. Execution of /home/scificha/public_html/forum/cgi-bin/ubbnews.cgi aborted due to compilation errors
I am using 6.2.1.1. Any ideas?
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
Yeah, I get that as well (upgraded just to have a look...)
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
FIND: [/code]REPLACE WITH: [code] Fixed it for me 
|
|
|
|
Joined: Apr 2001
Posts: 254
Member
|
Member
Joined: Apr 2001
Posts: 254 |
[/code]REPLACE WITH: [code] Fixed it for me  [/b] Brilliant! It works! Thanx!
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
For Allen Ayers: Thanks for your help. UBB News works perfectly at http://www.karass.nu/cgi-bin/ubb/ubbnews.cgi?ns_id=1 I needed to add a .htaccess file to the directory, though to permit me to run ssi from the cgi-bin. My hosting company did not provide that by default. I also had to make a .htaccess file to let me run cgi programs from a non-cgi directory. Those of you having problems might have to look into this. Finally, I could not use the "execute" command, but needed to make it into an "include" like this: However, when I tried to call it from a php page, this is what I got: http://www.karass.nu/ubbphptest.php I'm so close, that it's frustrating, and would appreciate any assistance! Thanks!
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
You have to put the URI to the file, rather than the path, if that helps... I got it running fine on PHP.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
I got it to work, thanks all of you who helped 
|
|
|
|
Joined: Jan 2002
Posts: 63
Member
|
Member
Joined: Jan 2002
Posts: 63 |
hello umm not sure if this would be a problem or not but. i hacked the 2 files it says to hack, uploaed them + the other varios files to the directories and such, chmodded them but there is nothing in my cp to set up anything?? so i can't do anything further. i get no errors anywhere but there is nothing there. also in your instructions u have: [/code]this is what my cp has in it not sure if it should or not .
[code] well that is about all there was only the 2 files too hack so not much code to mess up on my part. i did update the vars wordlet mods files but that did'nt do anything. i'll wait for a answer or mabye a point in the right direction. oh 1 more thing. in your instructions u have this. - Upload files: cp_ubbnews.cgi ( cgi-bin ) chmod 0755 ubbnews.cgi ( cgi-bin ) chmod 0755 vars_ubbnews_sessions.cgi ( vars dir ) chmod 0777 cp.cgi ( cgi-bin ) chmod 0755 cp_common.pl ( templates ) cp_ubbnews_sessions.pl ( templates ) cp_ubbnews_add_newssession.pl ( templates ) cp_ubbnews_edit_newssession.pl ( templates ) public_ubbnews.pl ( templates ) but in your zip file there is a extra file vars_ubb_news.cgi i did upload this and chmodded it to 777 would this be wrong.
|
|
|
|
Joined: Jul 2001
Posts: 808
Coder
|
Coder
Joined: Jul 2001
Posts: 808 |
I install the last beta script (29.March) on a fresh installed V6.2.1.1
Seems to work but I notice the folling: One setting made in control panel seems to be ignored. My generated news-config files looks like:
[code][/code]Settings for Charlimit seems to be ignored. I enter for a test '500' but it will not be saved. Know issue ?
|
|
|
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
quote: Originally posted by deathdealer: hello umm not sure if this would be a problem or not but. i hacked the 2 files it says to hack, uploaed them + the other varios files to the directories and such, chmodded them but there is nothing in my cp to set up anything?? so i can't do anything further. i get no errors anywhere but there is nothing there.
It's at the bottom of the 'Primary Serttings' list box. If you don't have it, make sure you hacked cp_common.pl
|
|
|
|
Joined: Mar 2002
Posts: 3
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 3 |
I'm using UBB 6.2.1.1 and i'm having trouble with this hack. I've reinstalled it a few times and i've followed the directions EXACTLY but I keep getting the same error message whenever I try and load ubbnews.cgi. Here it is:
Content-type: text/html Software error: Can't obtain exclusive lock: Bad file number at /usr/local/www/virtual/******/***/******/ubb_lib_files.cgi line 566.
Someone please help because I really could use this hack on my website. Thanks.
|
|
|
|
Joined: Feb 2002
Posts: 41
Member
|
Member
Joined: Feb 2002
Posts: 41 |
Hi there. I'm using ubb 6.2.0 when i install this hack My control panel does not work. [/code]in "installlation and readme.txt" file ; </pre></div></div>in My cp.cgi file;<br> [code] and i modified other lines to cp.cgi and cp_common.pl files. But cp does not work. Please help me what is wrong
|
|
|
|
Joined: Jul 2001
Posts: 808
Coder
|
Coder
Joined: Jul 2001
Posts: 808 |
Now I set up a testboard with UBB V6.2.1.2 and modification wordlets. Nothing else. Cache and accelerator is enabled. I install last beta script and it look like this: Test Homepage with UBB News On my production Board with UBB V6.1.0.3 and the script V 2.0.0b1.3 it work perfect and look like: Production Homepage I like to switch to V6.2. the V6.1 dosn't work well with ubbnews and cache turned on. Any suggestion how I can fix the display output of the new script ?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|