|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
quote: Originally posted by Quackie: Never mind, I got the Control Panel working. Ok, so everything works ok. Then, how do I use the SSI call? What's SSI and how do I use it?
Thanks
It's explained in the readme. One line where you want the news table.
etc.
|
|
|
|
Joined: Feb 2002
Posts: 18
Junior Member
|
Junior Member
Joined: Feb 2002
Posts: 18 |
Hi Greg, I know we have to call that <-#exec --> command but I don't know where to put it. I know that these SSI call only works in .shtml file. We don't have any .shtml file in the UBB at all. Should we create one and put this command inside? I mean how does it all work together? Can you explain alittle more. Sorry, I am new to this SSI, please patient with me.
Thanks Greg
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
This is to include news into your webpage. Put the code on your web page.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
"You do not have permission to access this area."
I am still getting this error, even after making your correction.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Should there be a file included named "vars_ubbnews?
And is this what gets added into the template: "...cp.cgi?ubb=view_newssessions&r=$ran"
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
wtf. Let me go over the zip..
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
ZIP file updated with bug fixes and error checks.
|
|
|
|
Joined: Jun 2001
Posts: 297
Member
|
Member
Joined: Jun 2001
Posts: 297 |
Nice! I guess your hard work , if it was hard work, paid off.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
did it? Is that an experience remark? Cause it was interesting setting up this crap. its not caching it!!!! UGH! Charles?!
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
"You do not have permission to access this area."
I am still getting this error, even after making your new correction and after putting in the new vars_ubb_news.cgi file.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Redo the cp.cgi file hacks, making sure it requires at least one file.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
First set of problems fixed. Reupload ubbnews.cgi, cp_ubbnews and redo cp_common.pl and cp.cgi carefully.
|
|
|
|
Joined: Apr 2001
Posts: 78
Member
|
Member
Joined: Apr 2001
Posts: 78 |
i tried the code in instal.txt but could not make it work by the code given there...instead i used this and zap! the page was there[code][/code]
|
|
|
|
Joined: Jun 2001
Posts: 216
Member
|
Member
Joined: Jun 2001
Posts: 216 |
Hello Greg, thanks for this hack, ive used it on 4 ubb versions now. I am posting for a request. The date format on a standard install displays the date in a number only format (ie: 02-10-2002). I wanted to request a date which displays the month in its full-name form. (ie: February 10th, 2002). Ive done this hack on all the prior ubbnews releases. And, its getting old Here is an example of a hacked ubbnews hack, displaying a full-name date (as well as a divider): http://www.altereddestiny.net Also, if possible, the addition of an option to add a page divider would be fantastic. Thank you again, --Corona
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
That's slated for UBBNews 2.3.0 Beta. Thanks for your kind words, if you wanna send me your code for it go ahead. 
|
|
|
|
Joined: Jun 2001
Posts: 216
Member
|
Member
Joined: Jun 2001
Posts: 216 |
Bug found:
Install text doesn't mention what to do with the included vars_wordlets_mods.cgi file included. Theres also a field inside the included vars_wordlets_mod.cgi which doesn't need to exist -- key is named: mod_wordlets.
Also, minor spelling error exist in cp_ubbnews_add_newssession.pl and cp_ubbnews_edit_newssession.pl. Status is misspelled as Satus.
I'll ship ya my ubbnews files after i hack the full-name date into them.
|
|
|
|
Joined: Jun 2001
Posts: 216
Member
|
Member
Joined: Jun 2001
Posts: 216 |
Heres my quick and dirty way to get the month to display with a full-name. in ubbnews.cgi: ## find: # strip off images - DONT. # $name_space{topic_body} =~ s/ ![]() ]+?>//ig; ##Add below: ($name_space{GetMonth}, $name_space{GetDate}, $name_space{GetYear}) = split(/-/, $name_space{topic_date}); my @UbbnewsMonths = ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $name_space{topic_date} = $UbbnewsMonths[($name_space{GetMonth} -1)] . " " . $name_space{GetDate} . ", " . $name_space{GetYear};
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
"You do not have permission to access this area."
Can someone please tell me how they got into the control panel? There are so few things to modify here, and I can't get in.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
I cant see reason for that... ugh..
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
In: "use vars qw(%vars_ubbnews %vars_ubbnews_sessions);"
should this be: "use vars qw(%vars_ubb_news %vars_ubbnews_sessions);"
When I made that change, I got in the control panel! Yeay!
|
|
|
|
Joined: Jun 2001
Posts: 216
Member
|
Member
Joined: Jun 2001
Posts: 216 |
bug -- when using ssi to call the news, the body text color within the news appears black, regardless of style settings. Also, body text does not follow style template text size setting.
To fix: ## in public_ubbnews.pl ## find:
$name_space->{topic_body}
## replace with:
$name_space->{topic_body}
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Okay ... I'm a SSI virgin. Where exactly do I put the [code][/code]Thanks. 
Sue adwoff.com
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
[code][/code]Thanks.  [/b] Me too...
Also, does this automatically create a sidebar or do I have to install the sidebar first? ... Can I decide where I want this to appear?... right, left, top, bottom? ... is it on the front page only or can i have it in every forum?
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
*bump*
can someone answer our question, please?
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
[code][/code]... etc etc etc...
Upload to WHERE??? to the directories in ()? ... if so... can you please direct me to the vars dir?... 'cuz I don't seem to have one... however I do have a styles dir... with all of my various vars in it... or would it be cgi-bin with the rest of the various vars???
Is there anyone around to answer these questions????
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
put the ssi where you want it to appear.
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
quote: Originally posted by Greg Hard: put the ssi where you want it to appear.
So IOW... put it in the header if that's where I want it? ... under the sidebar, if that's where I want it?
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Put it where you want the tables to appear...
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
quote: Originally posted by Greg Hard: Put it where you want the tables to appear...
Ok... got this part... got everything uploaded... didn't know where to upload them to, so I just put them in the ubbnews dir... AND in the cgi-bin and templates dir... did everything the txt said... and .... NUTHIN'! ... I can get into cp and can set everything... and submit... and all that... but there is nothing anywhere on my board at all that even remotely indicates that this even exists... *please insert icon of diminutive redhead pulling her hair out*.... 
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
:rolleyes:
This hack puts news posted in a single forum YOU set on the main page of your site... There SHOULDN'T be any indication this exists if you dont add the code to your index page.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
[code][/code]... etc etc etc...
Upload to WHERE??? to the directories in ()? ... if so... can you please direct me to the vars dir?... 'cuz I don't seem to have one... however I do have a styles dir... with all of my various vars in it... or would it be cgi-bin with the rest of the various vars???
Is there anyone around to answer these questions????[/b] vars=cgi der
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
sorry this has nothing to do with ubbnew i just wanted to ask Greg Hard what happen all the post for SwitchID did you guys find something wrong with it and took it down?
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
I DID add the code to my page... and there is NO table or news or anything... I set it up to pull from forums... headlines only... yes, I put only the forum numbers seperated by spaces... I followed your installation instructions word for word... did not add anything or subtract anything... I did exactly as I was told... and I have NOTHING!... please do not patronize... I thought this place was for assistance... and learning... I didn't know that a pre-requisite was to be an expert... if I were an expert, I wouldn't need your assistance, now would I? ...
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
No Kel. Try this:
instead. Remove the spaces if UBB added them in the above code.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
quote: Originally posted by ClanKiller: sorry this has nothing to do with ubbnew i just wanted to ask Greg Hard what happen all the post for SwitchID did you guys find something wrong with it and took it down?
Good question. Looking into it...
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
Thank you Greg.... *edit... oh forget this... it is not going to do what I want it to do... and I'm just tired of looking at code tonight... maybe tomorrow... *
|
|
|
|
Joined: Jan 2002
Posts: 266
Member
|
Member
Joined: Jan 2002
Posts: 266 |
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...
|
|
|
|
Joined: Apr 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 12 |
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
|
|
|
|
Joined: Jan 2002
Posts: 116
Member
|
Member
Joined: Jan 2002
Posts: 116 |
behold my news: http://gknet.twistedanime.net/dump/news.shtml twice I get an: [an error occurred while processing this directive] In the .shtml file I added: [code][/code]Ofcourse the first one doesn't work, that one is for .cgi files only, right? But the second one?? I thought I chmod everything OK. Also creating an news session worked perfect. Does anybody know what the problem is? thanks in advance
|
|
|
|
Joined: Jul 2000
Posts: 837
Member
|
Member
Joined: Jul 2000
Posts: 837 |
it should be like this. [/code]not like this
[code]
|
|
|
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
|
|
|
|