Bug: I added a smiley, and instead of
, it was:
You've to add:
in your SHTML page so that you can view the smilies correctly [ ubb does not store the full path for them ].
You're right, but don't forget the
Check this out.. here is a new one...
Works fine if I go direct and go to:
http://207.106.139.34/cgi-bin/ubbcgi/ubbnews.cgi Ok, nice! Now I stick it in shtml at:
http://207.106.139.34/mmb_bak/ And I get the news, but I also get a lot of junk before the new output.
Help! any ideas?
Ok, redownload and reupload ubbnews.cgi again.
Yeah, I haven't gotten THAT error yet...but something weird.
The function "EXEC CGI" no longer works. I had to use the INCLUDE VIRTUAL function.
Must be the new coding
Mr. Bond,
When I call through the SSI the ubbnews.cgi it goes ok and show the news of the default forum, but, when i call ubbnews.cgi?forums=11 (for exemple) the server gives me in return:
[an error occurred while processing this directive]
Ps.: I just downloaded the new version 30 minutes ago...
Ps2.: Great hack man.
Knutt Ballz
[ May 18, 2001 03:36 PM: Message edited by: Knutt Ballz ]
Ok.. that new update knocked down more than 1/2 of the junk code that was getting spit out.
There is a little more its pumping out. Could you check:
http://207.106.139.34/cgi-bin/ubbcgi/ubbnews.cgi **Which works fine
and the ssi call at:
http://207.106.139.34/mmb_bak/ **Still shows some additional output.
Thx JB007!
i have the same problem. it worked fine before but now it doesn't!
I installed UBBnews and when I try to adjust settings in Control Panel, I select 'UBBnews Settings', and it displays
"UBBNews Settings" in bold above the drop down menus, and nothing else.
Any ideas?
x
xtrecate: you are probably missing the templates. upload cp_vars_ubb_news.pl and public_ubb_news.pl from the zip to ure boards 'Templates' directory.
heh, i had uploaded cp_vars~pl into the cgi directory by mistake. thanks D
ok i still haven't gotten it to work but i'm going to upgrade my ubb to the newest version and then trying the news hack again. i sure do hope it works this time.
hey mr. bond i have another idea for a feature. I love the idea how you can retreive the news from different forums and call them from different pages but can you make it so each one can have a different template so each one can have it's own color scheme? This would be great and then this would be the best script in the world!
ok i've upgraded UBB and reuploaded UBB News. Now i have a few questions in the UBB News control panel. Maybe put a wrong setting in there last time.
Where it says 'Forum(s) to grab topics from'. What exactly do I put here? I don't quite understand it.
Where it says 'Maximum forums to be called via URL'. What exactly does this mean? And what do I put there?
Ok hopefully you can answer these questions and it then UBB News will work. I'm scared to access from the page and get an error again so I just want the setting to be exactly right.
This would be great if we can do this. Our one UBB supports about 20 news pages. Some of them are the exact same forum but we format them differently per the color sets of the sites.
Example
www.shatteredcrystal.com shows news from 5 different sites plus it has it's own news in full form. Then if you look at
www.markeedragon.com you will see that it's main body news was the headlines for Ultima Online on the other site.
Having the ability to run multiple scripts would be the answer for us as our setup is complex in the fact that we have different color sets and we also have multiple news styles. All of these are running from the SlashUBB for UBB5.
yeah it sure would be great if mr. bond could do this. mr. bond must be gone this weekend as he hasn't posted in a while or replied to my email. can anyone answer my questions above?
For those who are having troubles with SSI check the perl path and the SSI statement.
Thanatos, "Forum(s) to grab topics from" option sets the default forums that you'd like to retrive news from. For example, if you want to retrive information from forum1 and forum2 you put: 1 2 [ Separate numbers by spaces].
The other option indicates how many forums that could be called via the URL ( ubbnews.cgi?forums=3,4,5 ) It's very necessary to set it to a small number , for example: if you specificed 3 then only three forums could be called, any extra forums will be dropped ( ubbnews.cgi?forums=3,4,5,6,7 forums 6 and 7 will be cancelled ).
ok good i got it to work. The only problem is that the Table Header Strip Background Color is black and the Table Header Strip Text Color is Black too but i set the text color to be white. How come it doesn't show up as white. I also can't change the regular text color either. It seems that all the text color is black no matter what i do. What is the problem? go to
http://server2048.virtualave.net/jpnetworks/index.shtml and see what i'm talking about.
Also mr. bond did you read above the feature request above. I would really like that feature.
it works as you can see
here on a test webpage , but when I do use this call:
it does not work properly as you
can see on this other test webpage .
Can you see what am I doing wrong ??
Thnx in advance
Knutt Ballz
[ May 20, 2001 07:24 PM: Message edited by: Knutt Ballz ]
Great hack! I'm gonna see if I can't fix a couple of them pesky bugs
[ May 20, 2001 09:47 PM: Message edited by: Dark Templar ]
Text Color Bugfix:
in public_ubb_news.pl:
>>>Find:
>>>REPLACE WITH:
EDIT: blasted quotation marks
[ May 20, 2001 10:09 PM: Message edited by: Dark Templar ]
quote:</font><HR>Originally posted by Dark Templar:
Text Color Bugfix:
in public_ubb_news.pl:
>>>Find:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, Arial">code:
>>>REPLACE WITH:
what is that supposed to do? I still have my text color problems. Is there a setting I am missing or something? I just can't get the text color to change on the black bars. go to
http://server2048.virtualave.net/jpnetworks/index.shtml and see what i'm talking about.
ahaha. The hack for the news uses the Text Color field for everything. Mr. Bond or someone needs to fix this where the 'announcement title' and the 'Read More' Bar have separate text colors then the actual news color text. Do you know what i'm saying?
Also, has anyone tried fixing it where different news(like ubbnews?forums1 and ubbnews?forums2) have differnet templates?
OOps...shoulld use the table strip text color on that ^_^
On my boards, its the same, so I didn't notice. Heh, I'll post the fix to that fix after I get home.
Ahah! I figured out how you can satisfy us masses wanting multiple style colors as well as multiple forums. If you could add one more variable when you call the news from a URL, we could specify which style template to use as well! That would be perfect. We could do something like:
ubbnews.cgi?forums=3?style=2
or however you split up variables in the URL, I forget right now. But I believe that ability would answer all my requests.
Hey did you ever fix that problem I was having? If so, please post the fix because I still have that problem.
yes this would be great! I really really need this feature too. We just need to fix the font color problem and add this feature and this would be the perfect hack. I wish I knew how to code or I would help out. Where has Mr. Bond been? He hasn't responded to any of this.
I fixed the text color problems, tho my layout has been modified slightly to resemble our newspro output (check the bottom of our front page for an idea of what I mean).
the template file we are using is here:
https://www.ubbdev.com/public_ubb_news.txt if you want to see where the errors are. It's mostly just some missing " and wrong styles....
there is still a bug regarding the smilies in the posts.
oh hehe i wish i saw your post before. I just went throught he code and fixed it myself! I feel good. I've never looked throught code before. It was actually quite simple. Now we just need to do that feature for different templates for different news. Ramirez had a good idea on how to do it. I'll email mr. bond and see if he can add that feature.
Thanks guys for the suggestions, I'm busy these days .. but I'll see what can I do ..
Quick question for you guys..
why is it when I specify a forum number like say 10...the news.shtml page that loads SHOWS forum 10 topics, but the title is for forum 5??? Why is this??
I've also noticed that it doesn't pick up the double digit forum #'s. It doesn't like my forum number 10! Ack! Any suggestions?
[ May 22, 2001 05:30 AM: Message edited by: HalfBreed ]
Hi,
is it possible, that on some servers the hack doesnt work ?
I installed it here
http://www.forumdeluxx.de/cgi-bin/ubb/ubbnews.cgi?forum=1 but it won´t work. Does it make use of exec-commands or something like that ?
Thanks for your help
Dennis
dbode, the hack works for me, it's just that it doesn't seem to recognize forum numbers over 9. Can anyone offer up any suggestions if the hack isn't going to be addressed, such as maybe renumbering forums (if possible)?
Hi,
I found the error : My server host is processing Perl-Scripts in CGI, so I just had to rename it to ubbnews.pl, that was all
Now I have an easy question - is it possible to integrarte UBBNews into a page WITHOUT using EXEC or something like that.
Perhaps building a table around the side ?
Any tricks ?
Thanks
Dennis
So far, after doing further testing, it appears that this hack can't distinguish say forum #1 and forum #10.
http://www.hourofhavoc.com/forums/ubbnews.cgi?forums=1 http://www.hourofhavoc.com/forums/ubbnews.cgi?forums=10 They produce the same thing and they are 2 completely different forums of course.
ok i'm still having problems with the Text colors.. i change the color and it applies to both news and title colors.. and in the subject it always includes the Forum name and then the actual News subject (Forum Name: News Title)... how do i fix this??.. btw, i download the LATEST zip files and thats what i got! help!?
your right! I hadn't even noticed that. I need this fixed because I have many forums over 9 that I will be using.
ruph, compare the file you have with the one I posted, the bugfixes are in there... for a quick fix, (nevermind, all that stuff I wrote a while ago is wrong, I am tired :))
Rename this file with a .pl extension and upload it in ascii to your Template directory and see if it clears up:
https://www.ubbdev.com/hacks/public_ubb_news.txt Dennis, it can be done, it's mainly a matter of putting the $Header and $Footer stuff back in...
I'm using forum 10 and it works just fine.
Hi again,
@AllenAyres :
Where would I have to place the $header and $footer in ? public_ubb_news.pl ?
Dennis
yes.. I'll look at it tonight and see where they need to be placed...
We're having large block of errors at the top and bottom of all the shtml pages we try to put the hack in.
Second, we have to list a forum in the forums to be pulled for news to be able to call it from script. This isn't a huge deal, but it's a bit of the pain.
Third, even if we put in "forums=61" or whatever, if we don't put in the setup to limit to a maximum of one forum, it will pull all the forums rather than just the one we have listed.
Fourth, we can't limit some forums to a certain number of characters but not limit others. It's either all or nothing. We really think this script would be best with standalone scripts that we can modify and make as many as we want, even if we do lose CP controls. It seems like a lot of the flexibility of the old SlashUBB is being sacrificed just to be able to have CP controls.
Any help for any of these issues would be appreciated. Thanks.
[ May 23, 2001 04:47 PM: Message edited by: MasterMind ]
ramirez: for all that is holy, please fix ure quote so that it doesnt screw up this page.
you are! damn. i wonder why it isn't working for some of us. Jeez this hack has the potential to be perfect. It is perfect for 1 website with not very many forums but with me with 5 websites that use the same UBB, i need different templates for each news and i need forums oveer 9 to work! too bad mr. bond isn't really going to work on it anymore. we need someone else. i would but i don't know how.
Everyone- I spent a while today coding, bugfixing, etc - I'll release a fixed version with many things improved tomorrow. You will no longer need to add that base href thing to your page - this does it automatically, and then invalidates the base href after the displaying of the news, so it doesn't mess up your other images on that page. There are some other misc. changes as well, such as ultimatebb.cgi?ubb=ubb_news works, and more. I hope JB007 doesn't mind that I'm working on improving it
Hey DT? How about an upgrade or modification for those of us at this point who have already altered alot of their board to get this new version working?
Alright here is my problem, I did all the hacking right, but when i try to see the news in my test.shml file on my site it,
1} Doesnt show up.
2) It Says [an error occurred while processing this directive]
Here are my UBB News Settings.
News on/off = Yes
Caching = On
Forums to grab from =1
How many topics to grab from each forum? = 10
Use characters limiting feature? = No
If yes, how many characters to display?= "blank"
Maximum forums to be called via URL = 3
What is the template you'd like to use? = MyTemplate
The HTML of my Test File is.
Anyway, SSI has worked on the servering i am useing now so what else can it be? Hope you could understand all of that.
Sorry, didn't realize it spread the page out. I hate that too, so I understand
Basically, the code is giving me errors whenever it tries to do an flock function. I'll try DT's version when it comes out and see how it works.
Albert, you might try a different SSI command, check the SSI tutorials in the database for a few examples.
Also, you might put a / in front of the path you are using to make sure it is using the correct base path /cgi-bin/ubbnews.cgi
DT, look forward to your update, JB has said he is busy...
Halfbreed-
The major changes are the coding inside ubbnews.cgi & the template itself (also a renaming of ubbnews.cgi to ubb_news.cgi because well...let's face it, everything in the cgi folder starts with ubb_ ;))
Anyhow, I'll try to make an upgrade documentation
Other than that, I added a way to call the ubb news through ultimatebb.cgi, and a link that can be clicked to view them which you can place. If you run it from ultimatebb.cgi, it is who's online compatible. Eventually I'll integrate the who's online aspect of it with a recoded version of Ghoste's home online hack (a hack which traces people on the main page), and more
Stay tuned, the release will be later today!
[ May 24, 2001 09:23 AM: Message edited by: Dark Templar ]
Thanks for your help, i tryed everything with the SSI, but then the host said i could use PHP instead of SSI and so i did. following what the host said, it told me to do this.
But for some reason it tells me when i go to test.php3, it tells me this
Unable to include 'cgi-bin/ubbnews.cgi?forums=1' - request execution failed Have any ideas on what i should do now?
I'll try to do extensive testing on the hack when I have the time since now I've upgraded to Windows2000 with IIS. DT you are free to modify the code as you like ... This is necessary to improve the hacking community and about the intergration with ultimatebb.cgi , I didn't take that step and won't take it because this will force the load of some heavy modules which I don't want to load just for some two or three simple functions. Anyway, you do what you think is the best. I think I'm gonna recode the hack again
JB007- Adding a call from ultimatebb.cgi shouldn't be too bad; just a way to get there from another location, and track who gets there from the UBB with who's online
Oh yeah...I wasn't home, at all, yesterday, and the day before an emergency came up and I couldn't finish fixing the base href nullification. It'll be done later today. Count on it
woo! looks good
al, try:
readfile("/cgi-bin/ubbnews.cgi"); ?>
or
readfile("http://www.mysite.com/cgi-bin/ubbnews.cgi"); ?>
That is what I used on my php test page and it worked.
nice work, tho it's not quite finished as it still needs quite a few bugfixes and wordlets... moving to "beta".
You can open a new thread in here once this is in finished form...
not picking on you, I will be going through the finished forum in the next 24 hours and moving those that aren't finished to beta...
DPK: I owe you big time
. I've been trying to figure out how to get a cgi-script to work in PHP !!
Ok, got some bugs:
* Only a few forums work for me. I currently have forums 1,3,4,8,9 and 10 (the others are either private or non-existent anymore).
I can use forum 1,3 and 4 with ubbnews but when I try 8 and 9 I get nothing. 10 just returns forum 1's posts.
Update: Ok, sometimes it works, sometimes it doesn't with 1,3 and 4. Sometimes it works after I clear the cache - sometimes not. I can't really find a pattern here.
* The title of the forums and the posts doesn't match. When I get posts displaying - most of the time the title of the forum and the posts don't match at all. I get the title of Forum 1 and the posts of forum 3 (which is the forum I wanted).
It's a great script that I probably will use as soon as it is a bit more bugfree.
http://www.bjorn3d.com/cgi-bin/forum/ubbnews.cgi?forums=9 - this is the forum I want to draw the news from.
/Björn
I upgraded to 6.04e and now is coming up blank on my news.shtml
Does anyone know if it works on 6.04e or are there any changes in the code?
Board Here
make sure you reinstalled the mod right? could be a goof.
WD, I have posted several times in this thread that we are using this script, we are (obviously) running 6.04e. I am running the same code you guys are, especially if you are using the template file I posted...
twice...
:rolleyes:
hey hey
alright, it took me awhile to post this, because i feel real stupid and amateur at hacking, but i have a question...
i followed all 3 sets of instructions on how to set this mod up, and when i viewed my page, i get this error:
alright, im pretty sure that its because i didn't edit my perl path...which brings up the stupid part of my problem and question:
what do i do to the perl path?
thats what the top of my ubbnews.cgi file looks like...i dont know what to change about it
i added a perl/bin/perl directory to my site, but nothing works...
i checked the pervious pages but i didnt see any problems like mine...which i probably over-read...
sorry for sounding like an idiot, but at least i had enough "courage" to post this
please help, as im a "newbie in distraught"
BTW, my board's a 6.04a
..::|-Peace-|::..
Hey,
I can't tell you what where perl is on your server but it will be the same path which you gave to your UBB when you set it up. Look in cp.cgi 1st line and it will tell u.
Usually #!/usr/bin/perl
reeeealllyyy....
:rolleyes:
thanks CTH...it works now
this hack is totally tight..heh
i appreciate the help, and thanks once again
..::|-Peace-|::..
For some reason even now i get this error in my test.php3 page
Warning: readfile("http://www.trigunforums.f2s.com/cgi-bin/ubbnews.cgi") - Success in /web/sites/130/trigunforums/www.trigunforums.f2s.com/test.php3 on line 14
It says Success so does that mean it is working? or what? it doesnt show anything just that. so i am thinking there are more errors.
hey hey
my board and my site isnt on the same server anymore, and i was curious how i could incorporate the SSI of the new settings
-----------
- To view specific forums via URL:
------------
would i have to change that (on my site) to the link of my new board addy...
it would turn out to be:
------------
- To view specific forums via URL:
--------------
or what would i have to change, if it's possible...
i saw some replies to this talking about , but i'm not too sure on if that has to do with this or not...
if it's not a big problem to anybody, i would totally appreciate a little help
thanks
..::|-Peace-|::..
You cant use ssi if your board is on a different server. I use php. Works very nicely. My board is on a subdomain and I pull the news onto the main domain in a php file.
Upped Dark Templar's zips to:
https://www.ubbdev.com/hacks/6/ubbnews.zip ubbnews.cgi is now ubb_news.cgi, so pay attention when updating your files...
allen, u have both ubbnews.cgi and ubb_news.cgi in the zip. careless error maybe?
nice this is done i think look good now look at my site on mian page
thx every one that fix it
im totally not familiar with php..
is there any way to include the php feature in this mod, as im sure theres a few people who would love to do this also
..::|-Peace-|::..
Allen,
I did found instructions for upgrading from 1.0 and 1.1 any special instruction to upgrade from 1.2 ?
thanks in advance.
Knutt Ballz
[ May 31, 2001 07:55 AM: Message edited by: Knutt Ballz ]
multi parted question...
saw this asked a few times in this thread, but never saw a (direct) answer.
is this hack available in a non-ssi form?
my bottom line: im looking for a hack that will display the 5 or 10 (for example) most recent active topics in a small table below the forum summary on ultimatebb.cgi. (again, without the use of ssi).
in v5's, this hack was developed by using a piece of the "slash bb" mod. any chance of an alternative revival?
Yes, most likely..:) I'll update the zip later today.
The only difference in these files, basically, was the addition of the base href to the actual cgi file to keep from having to do it on whatever page you have it SSI'd to.
Making the news.cgi file standalone is just a matter of adding $Header and $Footer in the appropriate places.
ok have any of you considered trying to add these features:
Be able to have different templates for different news sources
For some reason this hack doesn't work for forums over 9. It maybe a mistake on my part but I've heard other people have the same problem.
The different templates for different news sources would complete this hack for me. The reason I need this is because I have 6 websites that use the same UBB because it is a network. Each website has its own colors so I need different templates for each one. Do you guys know what I'm saying?
don't use the ubbnews.cgi , it was an error in the zip file. Download this updated version of the UBB news...
https://www.ubbdev.com/hacks/6/ubbnews.zip try using the ubb_news.cgi , it'll work .. I promise.
I have 6.04e.I read the instructions of install.txt and I cant find the part which says
# *****************************************************
# ubb_news.cgi
# *****************************************************
>>>Find:
my $your_site_base_url = qq(
www.sjanet.com/);
>>>Replace: (
www.sjanet.com/) with the name of the parent directory to the file you call ubb_news.cgi from.
I dont have any of that text in the file which is in the zip.What do I have to do? Also should I use the instructions of ubbnewsupg1.1 ?? What do I have to use? ubb_news.cgi or ubbnews.cgi?
Thanks
That's another bug in the documentation. You don't have to change or find that anywhere. Just try the hack after you finish the last step that actually is there.. it'll work.
http://www.yourdomain.com/cgi-bin/ubb_news.cgi? Remember to set all your settings in the control panel > UBB News Settings.
enjoy.
Thanks for the info.I installed it corectly but ..
I cant see the news in my shtml page and I tried it everything.
I used the perl path of the ubb scripts and still nothing.
To give you a hint ,I installed also newspro and I used the command and it worked fine. So I did this,I moved the news.txt to the cgi-bin directory and I write in my shtml the command .I also wrote it without the slash / .In both cases the result was
[an error occurred while processing this directive] !! So I can see txt files but now cgi ??And how my forum is working fine? I have tried it all.Maybe someone can give me a hint
ask ya host, something with the SSI config on their end.
Is There anyway to just make a table code and put the title of the topic and their links in that table without the description?
yeh, you could just edit the template that is included in the zip and remove some of the coding to make it work.
I'm currently at work, so i forget the code pieces you need to remove.
how come Im getting this error after I activated UBB news in the control panel?
Undefined subroutine &main::set_vars_ubb_news called at /www/greenarcher.net/cgi-bin/cp.cgi line 259.
Thanks
I cant get any news to display at all. When UBBNEWS is switched off, it displays "News Off", but when switched on, it just displays a blank page. It doesnt matter what forum I try, it still displays a blank page.
What can I do ?
Regards
Paul
Hey I ran into the same problem you did -- for me, it happened right after I rebuilt the forum stat files in the CP.
However, to "fix" this, I simply re-uploaded the cgi and template files -- this seemed to do the trick.
Hope this helps!
Two issues:
1. ubb_news.cgi is pulling from the right forum, but the forum name displayed is incorrect! (e.g., I've specified that the news be pulled from forum #13, but its displaying the name of forum #12).
--> UPDATE: When building the news, the hack seems to be pulling from FORUM NUMBER X (which is good), but its taking the forum name from FORUM
ORDER X when displaying the news items. (I guess this isn't an issue if your forum number and order number is the same.)
2. The link color of the name of the news poster is not using the specified style template.
Example:
http://www.bfn2k1.com [ June 12, 2001 10:23 AM: Message edited by: Mike ]
Temporary workaround to this is to manually update the order number for the forums in the category that contains your News forum.
e.g., if you created a new forum specifically for UBBNews, and it happens to be forum number 13, then re-order the forums in the category from:
1, 2, 3, 4
to:
13, 14, 15, 16
The intent of this is to match up the forum number and order number.
Mike:
Maybe you could help me out here:
how come Im getting this error after I activated UBB news in the control panel?
Undefined subroutine &main::set_vars_ubb_news called at /www/greenarcher.net/cgi-bin/cp.cgi line 259.
Thanks
Hi,
anyone out there who can tell my how I ad a template to ubbnews so that it doesn´t just show the news but also fits into the site when you have a layout with a navigation on the left ?
I put it in the template file on almost every place, but I get an error or it is shown in every news...
Thanks
Dennis
My guess is that you did not correctly hack the cp.cgi file -- I would recommend restoring backup files of your board from before you attempted to install the news hack, and to try going through the process once more.
Yup! I was able to fix it but there are some problems still.
http://www.greenarcher.net/cgi-bin/ubb_news.cgi How come the title of some forums is different with that of the post? (ex. Sports and Games should be UAAP Action but the post belongs to UAAP Action)
If it cannot be fixed is there a way to remove the forum title?
Btw. how do you change those blue links into green?
Thanks
This has to do with how the hack treats the Forum Number and Forum Order Number - to get around this, read my earlier post above.
Wish I could tell you - guess we need to wait until a new updated version that properly looks up your style templates. (Or you can go directly into the code and hardcode a color scheme in yourself.)
Regards,
Mike
Sorry, but I wanna ask...
What is the use of it?
arg... there's sooo many fixes people made in this topic, it'd take a year to do it! Can anyone make a new install file and get it to me?