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
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 ?
zarzal can you send me cp.cgi and cp_common.pl files to
[email protected] :rolleyes:
:rolleyes:
I did it like you. But problem was continued. I guess, required install modshack
I install only a fresh copy of the board, then mod_wordlets_v1_6_ubb62.zip (AUTHORS: DPK & Leshrac WEBSITE:
www.qasic.com/ubbhacks.html) Nothing else. Then I apply the UBBnewsbeta and it work. I can create newssessions. But only the output of the ssi is my problem. The borders and colours will be supressed.
Can It be that i must use a .css to display the output in the right format ? Is there somwhere a doc who describe this ?
Same here, it don't use the style vars.
But if works, if I set the used style in the CGI. I've replaced
But I don't know why, this should be both the same.
Ok, now I've moved
in ubbnews.cgi and it works fine.
great ! it works fine. Thank you
quote:
Originally posted by UmARsIZ:
zarzal can you send me cp.cgi and cp_common.pl files to [email protected]
:rolleyes: :rolleyes:
Please don't ask for it anymore - it's not allowed to distribute the UBB files.
OMG!... It works!!... I finally got this to work!...
... I named this hack "My Holy Grail" because it has been so unattainable for so long! ... *happy snoopy dance*... IT WORKS!!!
Thats reason 1 of 5 why this hack is being rewritten. *cough*
*groan*.... you hate me Greg, don't you? ... C'mon... admit it... you love to see me suffer.... {sigh}
Ok... if you're going to rewrite this... can you make it so that it lists the posts in the order that they are made (most recent first) and NOT in order of the forum numbers? ... If I set it up to grab 20 posts from 10 forums, it grabs two from 1, two from 2, two from 3... and so on... in that order... so it's NOT the latest posts... it's just the last two posts in each forum... is there a way to change that?
*edit*... actually, it's only grabbing the name of the thread in the forum... not the actual post itself in the thread... and it lists that thread with the date and time that it was originally posted... NOT the date and time of the last post in the thread... any way to fix this? Any way to make this more on the idea of "Today's Active Topics"?... know what I mean?
in ubbnews.cgi and it works fine.[/b]
HEY that fixed it!! excellent all my hacks installed are now working!! (well until the next one )
Ok so now I am a little confused it this hack supposed to retain the default (when set) settings from the templates?? cause the background is white around the table regardless of what i do , and the header and footer do not show!! help me please
:rolleyes:
Fixed. Reupload ubbnews.cgi.
Greg... what's fixed? ... I re-uploaded ubbnews.cgi and see nothing different... are there any plans to do the things I mentioned above?
Yes Kel, I'll see if i can put it on the dev list.
Ok... thanks Greg...
quote:
Originally posted by Greg Hard:
Fixed. Reupload ubbnews.cgi.
Umm Nope still no header and white background, starting to think this could be me again!!
UBB News is truly a simple and functional hack!
I live in Sweden and we use the 24 hour format - how can I change the UBB News to use the same time & date format as the rest of our forum?
It isn't working here: Unable to create a new configuration file: No such file or directory at /homepages/20/d17095330/htdocs/cgi-bin/ubb/cp_ubbnews.cgi line 109.
quote:
Originally posted by Chasm:
quote:
Originally posted by Greg Hard:
Fixed. Reupload ubbnews.cgi.
Umm Nope still no header and white background, starting to think this could be me again!!
Same problem here, installed on 6.3 last night. Is it possible that using the JCTemplates is the issue since I can choose a style template but not a templates folder like I can for forums etc?
Looking into it guys, relax.
quote:
Originally posted by Greg Hard:
Looking into it guys, relax.
*grabs a tall glass of iced tea and relaxes*
Reupload ubbnews. I think (think!) i might have it. let me know.
FYI, this hack does not work with JCTemplates (yet) officially.
It took a bit of fiddling but it does work with JC's templates [
here ]
quote:
Originally posted by Greg Hard:
Reupload ubbnews. I think (think!) i might have it. let me know.
FYI, this hack does not work with JCTemplates (yet) officially.
Errr right not forgetting that I am running 6.2 i have reuploaded all the files and rechecked and rehacked cp common and cp.cgi and im now further away than I was before!! Now i get "Fatal Error. Styles File is NON EXISTANT. YOU HEAR ME?!" and NO colours at all!! at least I had table colours before now its like text in a snowstorm!! LOL
I don't want that the date is displayed and also that the font size is "1"... can somebody tell me how to do this?
Ok installed on 6.3.0 and in the cp, the question:
Grab that number on the whole forums?
Well the radio button wont stay. I select either choice, submit, says its done, I go back and neither radio button is selected. Doesnt matter which one I choose, nothing sticks.
quote:
Originally posted by WNxWakko:
Ok installed on 6.3.0 and in the cp, the question:
Grab that number on the whole forums?
Well the radio button wont stay. I select either choice, submit, says its done, I go back and neither radio button is selected. Doesnt matter which one I choose, nothing sticks.
I have the same thing.
For that 'styles is non-existant' thingy I quickly commented out the check and it worked... ubbnews.cgi:
[/code]Replace with:
[code]
Not ideal, but is better than not having any styles
.
That radio button also won't stay for me -- probably just a template prob.
Or just replace the unless line with:[code][/code]
*shrug*
Didn't want to make a solution that required a slight use of my brain
I have a vars_wordlets.mods.cgi and a vars_ubb_news.cgi file in the ZIP file. The instructions make no mention of these files, or what to do with them. Any ideas?
Ok, I am getting the error: [an error occurred while processing this directive]. I can parse .shtm files on the server, and in fact, the same page which gives me the error above, has other includes which are showing up.
I have tested using the string "", and "". I get the error when I use the first string. When I use the #include string, I get nothing. The cell where the SSI should be placed, shrinks to 1 pixle width, with no info.
I have SSI enabled in my httpd file. I am not using a .htaccess file.
*Hmm.... thinking of any other relative information...*
Ok.. I tried to call the file from my web browser:
"http://www.domain.com/cgi-bin/ubbnews.cgi
and
"http://www.domain.com/cgi-bin/ubbnews.cgi?ns_id=1
When I do it this way, I get a blank page. White background, and nothing else.
I am thinking, if using the url to test the file will work to test, then this could be the reason that the string is returning nothing. That is, assuming that you can call the ubbnews.cgi file the way that I have in a web browser. If this is the case, then it seams like the problem may be with the cgi-script, or the "string".
My domain is :www.walkthrough-online.com
Please help! Anyone..?
hmmm... check the permissions on your ubbnews folder and see if it's writing to it.
I have the ubbnews folder CHMOD to 777. Inside of the folder, there is 1 file:
"vars_ubbnews_1.cgi (Size:192) (Attr: -rwxrwxrwx)"
I do not know if this helps any or not, but I have a test page up on the server. The page holds 6 cell table (2 columbs, 3 rows). The first 2 rows just list which way I am trying to include into the 3rd row (#include or #exec). The last row has the include as #exec and as #include. In the #exec cell, I get nothing. In the #include cell, I get the error.
Anyway, here is a link to the test page, if it helps at all
http://www.walkthrough-online.com/testubbnews.shtm
Fixed? the Sytles problem, or my problem? I ask, because I download the zip again, and then checked the sized of the files, and the instructions. All of the files are the same size, and there is no change to the instructions.
If my problem is fixed, then I assume I need to redo the install? Or is there one file I need to reupload and/or edit?
Thanks!
Ok, ive got this working, but its displaying:
E46 M3 Discussion: TEST ( 06-01-2002 10:28 AM )
E46 M3 Discussion: Its Gone ( 06-01-2002 09:43 AM )
E46 M3 Discussion: All of this car buying is doing my 'ed in ( 06-01-2002 09:10 AM )
E46 M3 Discussion: I can't take it anymore... ( 06-01-2002 05:34 AM )
E46 M3 Discussion: SMG S5 ( 05-31-2002 09:08 PM )
E46 M3 Discussion: Return after 4 Month 'Lay Up' ( 05-31-2002 08:07 PM )
E46 M3 Discussion: Idling speed and SMG clunking ( 05-31-2002 07:20 PM )
E46 M3 Discussion: Put pen to paperwork today ( 05-31-2002 07:13 PM )
E46 M3 Discussion: HELP on Univ Trans fitting to Euro spec ( 05-31-2002 06:09 PM )
E46 M3 Discussion: Got blown away this morning! ( 05-31-2002 05:06 PM )
How do I set it so a) It doesnt put the forum name at the start of each topic, and b) remove the time and date at the end?
thanks!
I've managed to remove the date, time and forum description, but I am left with the brackets that would normally be before and after the date and time, and also the colon after the forum name ie:
E46 M3 Discussion: TEST ( )
E46 M3 Discussion: Its Gone ( )
E46 M3 Discussion: All of this car buying is doing my 'ed in ( )
E46 M3 Discussion: I can't take it anymore... ( )
E46 M3 Discussion: SMG S5 ( )
E46 M3 Discussion: Return after 4 Month 'Lay Up' ( )
E46 M3 Discussion: Idling speed and SMG clunking ( )
E46 M3 Discussion: Put pen to paperwork today ( )
E46 M3 Discussion: HELP on Univ Trans fitting to Euro spec ( )
E46 M3 Discussion: Got blown away this morning! ( )
Ive checked the code, but not being mr coder, im not sure where these are?
OK! found it in the template!
Ok, I have everything working great, but I notice that the script only collects a list of NEW topics, and ignores updated topics..
Is there any way of amending, or adding a feature that allows it to include a thread if it has been updated/replied to as well?
That would be great.. this tool is brilliant.
[code][/code]
[/b]
Ok so the colours are back now thanks But I really want my header to show and be changeable from the Cp as per the normal template!! how does one get this to work please?
Everything works peachy, except for the fact that it has set any other SSI's after the UBB News to read images from the noncgi directory which I don't want it to do..
Here's an example:
http://www.liberifatali.com/umbrella/index2.shtml Notice that on the right, all the images have '/noncgi' in them which shouldn't be..
Any ideas please?
Thanks
[EDIT]
I fixed this by FORCING my other images to read from their exact path.. But this should be an issue that needs fixing..
Realised the maxchar is not being updated...
found that in your cp_ubbnews.cgi
there's this
print FILE "foo1 => q~$in{foo1}~,n";
changed it to
print FILE "maxchars => q~$in{maxchars}~,n";
and it worked.
Any chance of allowing multiple HTML templates?
quote:
Originally posted by Dave2:
Any chance of allowing multiple HTML templates?
was just about to ask the same thing..lol
Greetings.
I installed this hack and it works with no major issues, however the one that I do have is the following:
I have only two choices, display only the headlines, or the entire topic.
I tried the check features and that did not do it, I also tried limiting the number of characters and that also failed. Is there a way to show only a part of the topic and have a link to "read more" as in the ubb front page? I'll appreciate any help I can get in solving this matter.
Great hack!!.
Rabriar
Never mind I tryed it again and it works flawlessly.
I must have them gremlins in my server....
Excellent work!!
Rabriar
I used this hack to add the latest topics to my homepage, and it appears to work fine, but...
It doesn't seem to address new REPLIES. That is, if someone posted a message last week saying "How do I do this...?" and then a week later, someone else posted a reply saying "Here is how you do it..." then I'd like that to show up as a news item. That is, I want a list of current topics, not just a list of the last posts.
Can that be done? Or is it supposed to that and something is wrong?
Todd: It is not supposed do that, its the designed behavior.
quote:
Originally posted by Greg Hard:
Todd: It is not supposed do that, its the designed behavior.
How hard would it be to alter the code to do so? I'm fairly savvy as far html/asp/vbscript/javascript, but Perl/CGi is not my forte.
Is it something you'd be willing to help me pursue, or do you think there is not a demand for it?
Shoot me a PM with details on what you want (much detail, i'm not very smart at figuring it out...
) and i'll see if i can do it.
i've got bluedomino.com has my host and they said i can't call "exec" in ssi code, but the rest of the variables should be ok, so that doesn't necessarily mean no UBB News right? i really don't no the first thing about ssi. not a damn thing. lol
my second question is...does this work with the JC Templates yet??
gost95 i am useing bluedomino.com as well and ubbnews will work for you.
but you have to call the ssi like this for it to work on bluedomino.com.
i use to use exec to call it till they moved me to a new server then the exec call would not work any more.
so i sent them an e-mail to find out what was going on and they sent me an e-mail back saying i had to use the call i posted below.
[code][/code]
but...the big question is does this work with jc templates...about a month and a half ago greg said it didn't.
thanks for the info though man.
What part interfaces with JC templates? I don't think it matters what kind of templates you use in your public forums, this doesn't touch them.
Those who don't feel like modifying your files can do like we have done since the beginning and just manually set the variables and upload the files...
[code][/code][/QB]
I keep seeing this, but it doesn't work for me. (I am using *.asp pages, and maybe that's an issue?)
The problem is, the server hits that code, and then comes back and tell me that there is no page named ubbnews.cgi?ns_id=1. Which is true. only ubbnews.cgi exists. The server is interpreting the passed variables as a literal.
I "solved" this problem by using a screen scrape of the page and extracting the details I need. But if there is cleaner way to do that, I'd like to know? Thanks!
Try
and make sure your path is correct.
if its stored in /path1/path2/path3/cgi-bin/ubbnews.cgi make sure you put that in, even if the asp calling is in the path3 directory.
ok...maybe it's just me being an idiot, but i'm having the same issue with both this and the latest threads hack. when i install everything and then call the file with the ssi script i get nothing not even an error.
since i really don't understand how to call a script, i'll tell you what i did. i just took,
since bluedomino doesn't allow for "exec", and i pasted it in the CP under a number of different places as test to see if it would work, i.e. Footer, Header, HTML Extra, Intro Text, and so on.
am i doing that right???
gost95 for latest threads to show up you must make a post after you install it or nothing will show up.
and for UBBNews did you first go into your cp and steup the forum you would like the news to come from?
you can see both of them running very well at this site.
http://www.starbraker.com/ the page you are calling them from should be a .shtml file not a .html or a .htm.
Todd Davis that could be the prob you are haveing as well i am not really sure if you can make a ssi call from a .asp page.
I am running a couple of these on the front of my site to show latest updates in the forums (as the latest topics hack isnt available). The problem people moan about most, is that it takes a good few seconds for the page to appear because of the scripts it is running to pull that information in.. is there any way of running a timed script to pipe this info to a file, and then just include that file so it appears instantly like the old latest posts hack did?
Well I thought I did have the problem fixed, but I was wrong, does anybody know why is it that the latest post appear entirely in the front page, meaning I put a limit of 200 characters and still shows the entire topic, I tried 100 characters and still the same result, also I try this with every option and still not good. If this is the way it's supposed to work then I'll just have to deal with it, but if it can be fixed I'd love to know how :-)
I love the hack any ways.
Rabriar
I am thinking of switching to UBB.threads - are there a UBBNews for that version??
Also: I would love to have multiple HTML templates for UBBNews.
Check out our site with UBBNews installed:
http://99mac.com/nyheter.htm (its a swedish macintosh site - in swedish)
Hello martin
threads has a news script that comes with it, there are also quite a few nice news-type scripts for threads at
www.ubbdev.com
Hello Greg,
Just thought I'd let you know that if HTML is enabled for a forum no tables get included in the shtml file I have. I'm using:
[/code]It works fine when HTML is not enabled for a forum. As soon as I enable HTML I get a blank shtml page and I have to remove all the News Sessions, Clear Cache, Rebuild Search Index and recreate the News Sessions as well as disable HTML in the forum so that the tables start appearing again on my shtml page.
Also for people that only have PHP extentions on their http server you can use this code in any of your php files:
[code]
Regards,
TiCaL
When I run the SSI I get this error:
Software error:
/usr/local/etc/httpd/cgi-bin/vars_wordlets_mods.cgi: syntax error at /usr/local/etc/httpd/cgi-bin/vars_wordlets_mods.cgi line 10, near "'time_localboard'"
Now when I delete everything in the var_wordlet_mod.cgi cept the ubbnews wordlets the hack works perfectly....
cp_ubbnews updated with a fix.
Hi Greg, I installed Ubbnews beta and also Sticky Threads hack, and I thought they would work together so that the sticky threads would be captured from ubbnews to appear them in the shtml file, but actually it doesn't. Is there in the future any chance to have this as an option in ubbnews hack (or maybe even now?)?
Thanks for your time
P.S. Your hacks are really great, keep up the good work.
That was a bug fixed back when JB007 was coding this
Your best bet would be to have an "announcements" forum only you can post new topics to, then pull your news from that
Sorry for getting out of topic:
Allen, how do you put images inside that, like the one in ubbdev index?
If I want to remove the box of "# replies | Read more..." which file should I edit?
Would anyone be so kind to link me to a working zip file of Greg's latest release of UBBNews? I've been looking all over since his site is down. Thks!
https://www.ubbdev.com/hacks/ubbnewsbeta2.zip - as always you can ignore the ubbintegration, upload your files and set the variables manually.
quote:
Originally posted by Saxeus:
If I want to remove the box of "# replies | Read more..." which file should I edit?
the public_ubbnews.pl file
Thanks Allen.
UBBNews3 will be out when 6.4 is released.
Thanks Allen!
Props to you too MasterMind for a cool hack.
Hey,
I'm at my wits end here. I've been trying to get this to work for about 6 hours. I've combed through all the included files, and I still can't figure out what's wrong.
I enter the Control panel, select "Advanced UBBNews" and I get this error message:
code:
Undefined subroutine &main::view_newssessions called at D:Inetpubwwwrootdevcgi-bincp.cgi line 480.
Line 480 in my cp.cgi =
code:
[qb]if (($ubb eq 'view_newssessions') && ($status eq 'Administrator')) {
&RequireCode("$vars_config{CGIPath}/cp_ubbnews.cgi");
&view_newssessions;
exit(0);
}
[/qb]
Well, actually, that's lines 478-482
I've compared this block of code with several other blocks in the cp.cgi, also tracing back to the file called in &RequireCode statement. Everything looks right, just can't seem to all the subroutines from cp_ubbnews.cgi.
Oh, I'm on 6.3.0.1 with a bunch of mods - stats, chat, PM inbox, calendar, etc.
Make sure you uploaded cp_ubbnews.cgi, CHMODded 755, etc.
Oh shoot...
I was about to go off on a nasty spurt about seeing CHMOD in the code. Since I'm using IIS 5.0 on a W2k box.
But then I thought, hmmm... maybe I should check my file permissions.
Got it working.
Thanks LK.
quote:
Originally posted by AllenAyres:
You can print the generated cgi file in a .php page, use something like we do on our front page:
code:
[qb]<?php
print implode("n", file("https://ubbdev.com/db/cgi/ubbnews.cgi?ns_id=2"));
?>
[/qb]
Thanks...That command works with PHP.
Just in case anyone else is like me and not strong on php, the code above - when copied directly off the page - causes the opening php tag to run into the function call
code:
just separate them
code:
[qb][/qb]
and it works a charm.
Thanks guys
Hmm...I'm testing this hack for a new site my team and I are building and so far I like what I see. I understand this is "Unmaintained" but I was wondering if anyone can resolve this problem I'm facing.
If I'm correct, UBBNews will grab the topic date/time when it's first posted, NOT by the replies. If so, I would assume that the posts would be listed in chronological order (e.g., 1/3/02, 1/2/02, 1/1/02). I listed the dates in descending order. Well on forums with replies it randomly selects the date/times of the posts.
Example:
--------------------
WooT
28. September 2002 09:23 PM
AW Man me and ghost had a wiff of a game!
17. December 2001 09:59 AM
need bz2 help baddddd
17. December 2001 09:13 AM
FE............
24. November 2001 09:09 PM
krylo killed haya's pc
26. December 2001 07:49 AM
HardWare: Hard Drive
25. November 2001 12:15 AM
rtcw CLIENT_UNKNOWN_TO_AUTH
04. January 2002 10:26 AM
--------------------
Notice the dates...It's just in random fashion. It didn't reflect the new threads created in Oct nor list them by the dates they were posted. Any help will be much appreciated. Thks!
Is anyone still following this thread?
If so I just have one small problem with the
hack and was wondering if anyone has seen it before?
For some reason the Link for the Topic doesn't get set, it sets the link on the posters name just fine, it just doesn't link to the topic in the forum
Here is the test page
http://www.alienarmada.com/ubbnewstest.shtml Thanks for any help!
Mike
ok, I get 2 errors in my site error logs with this:
quote:
ubbnews.cgi: Use of uninitialized value at ubbnews.cgi line 77.
that line is:
[/code]and this error:
<blockquote><font class="small">quote:
[qb]
ubbnews.cgi: Odd number of elements in hash assignment at ubbnews.cgi line 94.
[/qb]
which is:
[code]
Any idea for how to get rid of these errors?
here's a copy of the file:
https://www.ubbdev.com/ubb/upload/00000494/ubbnews.cgi.txt
I'm having an issue and I'm unsure if it's because it's intended to work the way it is or not.
I want to pull news from two forums which I can do simple enough. I simple edit the UBB News template and enter the forum numbers separated by a space like it says.
However, I find that it doesn't pull the posts based on chronological order. Instead it posts them from one forum first, then the next forum next.
Is this intended? Is there a way to make it so that it pulls posts based on the date instead?