UBBNews 2.0:
This new version is a rewrite version with a major feature called 'news sessions', I'll discuss it later. Please note that this version is beta. So you may report any problems HERE ( don't email me ).
News Sessions:
Suppose you've got forums A,B,C,D and you want to display the forums A and B topics on a page and the forums C,D on another page and you want them to have compeletly different configuration settings ( max topics, characters limit , status , style template ). With News Sessions that's possible! You can create many news sessions as you like from the CP with different settings and different forums to grab topics from, and to get a specific news session's content via URL, you simpely do this: ubbnews.cgi?ns_id=NEWS_SESSION_ID . The id's are displayed in the control panel.
Practical Example:
We've created a news session from the CP with the forums A,B,C and the id was #2, we want to display the news on these forums so we simply make an SSI call with: ubbnews.cgi?ns_id=2
So, give it a try and report dozons of errors as usual
Download here .
Are there any demo boards?
Actually, you won't notice much differece between the user-end in this version and the pervious one. Major change is in the control panel.
the features sound good jb, something we need... will test it on a test board soon.
Sounds good Bond
One question, does it have upgrade instructions?
lookin good, sessions are just what i need
Nice job!!! Wow...
Awesome! You should update the zip with MasterMinds fix.. it doesnt work unless you change the t to T.. you should have an intstruction for upgrading and put a note there somewhere about the perl path for ubbnews.cgi..
Awsome JB, I have been waiting for a good news script like this.
incase anyone didn't catch what mastermind was talking about.. Look in ubbnews.cgi
You'll see the code correction he is talking about, it threw me for a loop at first.
[ June 20, 2001 10:59 PM: Message edited by: Djnemesis ]
bugs:
- when setting sessions, it looks for the vars files in the $vars_config{CGIPath}/ubbnews/vars_ubbnews..etc path - need to either add instructions to create the ubbnews folder in the cgi directory and upload the vars file to it, or change the scripts to look for the vars file in the cgi folder
- colors in the output should more closely pull from the ubb variables, what I mean is, if your background color is categorystripbackgroundcolor, then your text color should be categorystriptextcolor, or the titles can and will be invisible for a lotta sites
request: can you set a session to show headlines only?
reason: I'd like to have 1-2 announcements up top and then below a list of maybe the last 5-10 headlines... that way we can keep the latest news in front of the visitor without making them scroll for 4-5 pages.
possibly an option to show headlines below the announcements and how many would be tres cool
Nice work tho... a few bugs (to be expected in beta), but great possibilities..:)
Good job JB007...
I agree with Allen.
[ June 21, 2001 02:42 AM: Message edited by: LK ]
I'm thinking you could also use this like a much better version of the original Active Topics (UBB5). UBB6 version is pretty useless =).
So some sort of Headlines (Subject, date, poster, time / No. to show / Format) feature like AA states would help.
Well, I've updated the hack, here are the fixes, new features:
1. When I was developing the hack, I added the hashes to the use vars statement in cp.cgi but forgot to mention that in the installation file, this is now fixed.
2. Applied MM's fix.
3. Added 'View Headlines Only' feature, you can enable it from the news session addition/modification page. It will show only the forum,topic subject and the posting date of the topic ( like Ted's old news grabber ).
4. Minor changes in the templates to be more ubb-style compatible.
5. Minor change in the wordlets file, actually there was a typo in one of the hash keys.
To update, just perform the first new step of the cp.cgi instructions and reupload all files.
For those who want to upgrade from previous versions, you must uninstall the old hack, install the new one and create a new session that matches your old settings.
Allen, the instructions for creating the new directory are already there ( in the 'preparing for install' section ).
The first one kicked butt. This one is even better, News Sessions are great! No bugs from this side of the farm reported.
Sorry Bond, I missed that, was just reading the bottom..:)
On our front page I am using it in the upper right column as a "semi-replacement" for active.cgi. The topics aren't updating with the changes in the forums, any idea? It sounds like it is reading the cache when first built and not when the threads update in the forums. Also, when selecting more than one forum to read from, it pulls the latest howevermany topics you input from
each forum, not that number (ex.: 4) from all the forums as a group... your news is gonna be huge if you select more than 1-2 topics and more than 1 forum to read them from
Another suggestion, the
option to enclose the headlines in one $TBT / $TBB type table so that if we include the headlines below the main announcements, they aren't just left our there all alone
I attempted to do this myself with varying results, most all of them very bad.
Other than that, excellent work Bond!
Thanks for your comments Allen, I'll look after the problem. And about enclosing the headlines in a table header/footer , this will require a bit of work, but I'll do it.
nice...:)
If it's too much work to enclose in a table, don't worry about it, I just snapped that I can do the same thing manually on the front page, then use the ssi inside of that.
If it adds too much complexity, don't worry about the table thing.
Added a headline only forum and it says its not valid, and i added it manually -- white page.
Mastermind. Nice Quote .. I guess I am a console junkie
Well, I've added an option to apply the 'maximum topics to grab' amount on the whole forums as you wanted Allen. But remember that this amount must be dividable on the number of forums you specify ( example: Let's you that you've specified 2 forums, 4 topics max , then 4/2 = 2 topics for each forum ). So go and redownload and reupload files ( no changes in the installation instructions ).
MM, can you give me the exact error message?, because there are two possibilities for not valid forums
[ June 21, 2001 05:04 PM: Message edited by: JB007 ]
Hello, I know this is not the most proper place to ask, but I dont know wherelse to go.
I have installed this hack in my testboard, and have implemented this code on my testwebsite;
....but nothing happens, neither when I add a new topic to the configured forum.
Have I forgotten to activate some SSI stuff in my apache webserver, or what could the problem be?
Please delete this message, or move it to a proper place.
But I would appreciate som helping guidelines on this issue
I got this error too.
But... in CP, instead of specifying the forum NAME, specify the forum number, e.g. "Forum9" instead of "ThisForumName"
All right, does it works directly with out SSI? I mean if you call it directly from the browser: ubbnews.cgi?ns_id=2
If you have SSI enabled on the server and include that string in your .shtml file (ie index.shtml) or whatever you may have called it, it should display. If you have done this and it still doesn't work, try using this string instead.
That one could possibly work instead of the exec cgi one.
Nice hack. Can't wait to see it finished though.
Right now, it's too buggy.
1) Using "headline only mode", the names of the forums don't match up to where the links take you. The message topics are correct though.
2) Using "Show full topic", 1 out of every 5 or so topics cuts off to early, breaking the table and looking bad. And the topics don't link to anything, and the replies line is incomplete.
3) Using "headlines only" mode, the "Grab that number on the whole forums?" doesn't seem to make any difference, it grabs the amount of topics you specify from each forum.
4) The Limit Characters seems to start counting from the begining of the header. Can we get this to count from the beginning of the message body?
Thanks for the great hack.
This happens whenever i try and add a news session. I chmoded all the news files 777. What's wrong?
Make sure there is a ubbnews dir in your cgi dir.
It's there with chmod of 777. But i'm still getting those errors. Wierd. Am i the only one?
Yes this works perfectly well, but if not if i implement the code in a website. I have triad to put it in the General Display Settings "Forum Intro Text" box, just as a try, but when I call the forum summary site, all I just see is the actual codeline and not the content of it.
But as you say, browse directly to it works well....exerpt from a few bugs.
As soma0 says;
1) Using "headline only mode", the names of the forums don't match up to where the links take you. The message topics are correct though.
- I discovered this too. I found that if I have the Category View, and in Forum Settings have numbered to different forums as number 1, e.g. if both are forum number 1 in two different Categories, the newscript get confused. I solved this by giving each forum a unik number in the Forum Setting Page
2) Using "Show full topic", 1 out of every 5 or so topics cuts off to early, breaking the table and looking bad. And the topics don't link to anything, and the replies line is incomplete.
- Here I dont see any topic content at all, just the topic header, but the tables are perfect. The vertical size of the table increase if there are answers to the topic, but as I say, none of the content shows up.
4) The Limit Characters seems to start counting from the begining of the header. Can we get this to count from the beginning of the message body?
- As nothing of the topic/message content shows up, I am not abel to determine iif this works or not
I am working/testing on a machine not connected to the LAN/internet, my site isnt ready to upload yet, so i cant provide you with an url so you can have a look.
But I can make a bitmap file and upload it or send you, for you to take a look. Can I send by mail or upload somewhere?
This doesn work either, but a direct call like JB007 told me to test works well.
this might be outside the scope of this modification, but in the announcement/news forum, would it be possible to add a drop-down list of post icons that can be placed like we have our microphone on the front page? Something similar to the way slashcode is done... if my announcement is about someone new being added - an icon to go with that, if it's about the ubb sale - a dollar sign, if it's code related - maybe a computer, etc... would align itself in the upper right of the post...
I have the microphone hard-coded in, it would be nice to use a variety of icons to match the subject of the post...
In the control panel, you must specify the NUMBER only like '1 2 3 4' this will indicate forums 1,2,3 and 4, Specifying the order of the forums will return unmatched forums names, Since the script takes the actual forum number not the order.
The cp_ubbnews.cgi file was not updated on the last update, so re download now and re upload it. This should fix the problem of applying the 'maximum topics' amount on the whole forums.
I'm still getting those software errors. I check all the files for chmod and ascii. So what wrong?
i REALLY like this hack--i had problems too, but i dealt with them......include virtual worked, exec cgi didn't... the test session doesn't work, but i can add new ones so i dont care
...
i had the issue where the forum titles were displaying the order in which the forum was created, not it's forum number, and as a temporary work around i used the same fix from the thread about the last version of ubb news: I made the forum order in primary settings-> forum settings, the same as the forum number. caused a slight inconvenience, but it was worth it to be able to use this now.
other than that, i dig it.... i'm not done with this page, but you can check it out at:
http://www.fireseek.com/gm.shtml
Guys!!! The forum number appears next to each forum's name in the forums settings page!
I forgot to remove the test session entry from the configuration and since it does not have a configuration file .. it failed. So you've to remove it manually from the vars_ubbnews_sessions.cgi file.
...remove....how....where...what??
emme sick [censored]...I knoe it
The hack works fine. If you are having problems with software errors it could be possible the instructions confused you or another hack is somehow messing it up.
As for the SSI include, if exec cgi or include aren't working and it is displaying the actual string itself, then I'd check with your server admin on that box. It doesn't sound like he has SSI enabled for the cgi-bin and isn't allowing you to access the files or something of that nature.
In either way, not trying to be rude.. But please work those problems out on your end and let the creator of the hack concentrate on finishing and incorporating some new features into it.
Thanx JB007, The hack is very much appreciated.
JB -- The error i still get is:
Same here. Think this is due to creating forums, and later delete them, and somehow the the newsscript get confused about the forumnumbers when a forum supposed to be in the numberrow isnt there anymore?? (Even if you dont make a call to it...obviously)
Got the SSI to work in some way, but there are still some bugs if you add several forums to one session.
Also, I guess there shouldnt be the linebreak in between the tables, when you call the whole message display from SSI.
Just the headline view works well with one linebreak between each topic header, but not the table display...take to much space
Well, I haven't deleted a forum before, so I'm gonna test it
The smilies dont show up in the news.. i tried the base href thing but still didnt work... i have the Smilie Mod installed.. does it make a diff? can you help me?
There's code in there that specifically removes graphics...
i noticed that smilies dont even show up as X's or anything.. whats the code that removes graphics?
Well, I've tried removing/adding forums but it still works very well.
ruph, the code is located in ubbnews.cgi:
thanks.. smilies are now working and everything else is perfect!
Hi,
I have two questions :
In the first version of UBBNews, it was not possible to add a header and a footer around UBBNews without using ssi - but I can´t do this because my server is not supporting "include" or "execute". Is it possible to add a header and a footer in this version ? It may look more like my UBB then...
The second question is if the errors in the first version considering the numbers of forums have been fixed. I want to use UBBNews for a forum with no. 34, so this wasn´t possible in the first version because you coudn´t go higher then 9...
Thanks for your help
Dennis
Hi Dennis,
So you want to display it as a normal ubb page? Well, currently it's not possible or let's say nobody has done it until now. And for the forum numbers: I didn't receive any errors until now!
Hi,
thanks for your quick answer. I will upgrade then, be right back later with a number of self-made errors
Well - because of the ubb-sytle : I just wanted to add a template which shows the header and footer also on ubbnews... I didn´t manage that for the last version.
Thanks
Dennis
Heres the Error I get when I try to call it directly without using a SSI call in a page:
Content-type: text/html
Software error:
Undefined subroutine &main::NewsRow called at d:harvestgaincgi-shlubb2ubbnews.cgi line 129.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
hey, i've just installed this hack which was pretty easy. but i have one question before i go further...
i'm trying to make a cellphone review and article section in my site. i wonder if it is possible to:
1. post an article and
2. display it in a separate page in category or forum that isn't visible in the main forums page.
3. display the article in this format:
Title of Article
by Username
Date Posted
Article Body Article Body Article Body Article Body Article Body Article Body Article Body Article Body Article Body Article Body Article Body Article Body
Post a response:
Here fields will be displayed for users to fill out to post something. Show below the form are the responses posted so far, and depending on the number of comments, will be displayed in continuous pages just like in the forum. it shouldn't be that difficult, but i would like some suggestions from you first.
thanks.
Hi,
are there any upgrade instructions ? I didn´t find them in the .zip...
Dennis
Ok, here I am again.
There is one bug in UBBNews 2, that was also in the version before :
I have a forum called "News" and another called "Marktplatz". News is Nr. 8, Marktplatz is Nr. 7, but News is Order Nr. 1 and Marktplatz Order Nr. 8
When I chose News for UBBNews, I always get the content of Forum Nr. 8 displayed, but it shows me the title of Forum Order Nr. 8.
Then I have a second question - can I add something around UBBNews by modifying ubbnews.cgi here :
Can I put some html in there ?
Thanks for yourhelp
Dennis
Guys, I admit it: I'm dumb
AS a result of misunderstanding how forums numbers are stored in the UBB, I admit that I choosed the order field to get the forums titles which caused slight problems with some users
. However, the solution is simple, simply open up ubbnews.cgi, look for:
Replace with:
Find:
Replace with:
I'm sorry!
The zip file has been updated.
Dennis, you can print anything after that statement, just make sure that you assign it to the $output variable if you want it to be cached.
[ June 27, 2001 08:01 PM: Message edited by: JB007 ]
Hi again,
I tried to add some html using
Of course, when I add text etc, everything works, but when I add " for example, it will not work...
Is there a possible solution to add a whole complex html (like the header in my ubb...)
Thanks
Dennis
Update:
I've fixed the same problem in cp_ubbnews.cgi. This problem caused the script to refuse some forums ( as MM's problem ). To update, just upload cp_ubbnews.cgi and ubbnews.cgi.
Well, you've to escape the double quotes in order to get correct results, for example:
But you can also get rid from all this by using the 'qq' or the 'q' operators:
See? You can replace the ~ sign by anything non-alphabatical or non-numerical such as !,% .. etc.
[ June 28, 2001 03:49 PM: Message edited by: JB007 ]
GREAT !
That worked !!!!
Thanks for your help, that was a lot of help !
Dennis
Hi,
I also had the problems with the smilies, but now I added some html and it doesn´t show up eigher (wanted to include some link to a sponsor with their logo...)
Can you turn that on somehow ?
Dennis
Great modification! The whole thing looks great, but if there is a smilie in the post, the smilie shows as an "x". The source says the source for the smilie is the cgi-bin directory, but my images are in ubb/smilies. How do I get the modification to reflect this?
Here is the page that shows the problem.
Thanks
[ June 30, 2001 03:15 PM: Message edited by: Ellen ]
Hello,
Please help, I get this error when I call ubbnews directly from browser:
Content-type: text/html
Software error:
Undefined subroutine &main::SummaryRow called at /home/sites/site11/web/cgi-bin/forum/ubbnews.cgi line 126.
For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.
And when called from web page with exec I get:
[an error occurred while processing this directive]
Whicj is normal because there is some "software error".
I will appriciate any help on this one...
Was waiting to install this until I was sure it could do the following.
Lets say you make three forum's for news, essentially three categorys of news (not to be confused with forum categorys). Now you want to output the headlines for each, that's no problem (I think, judging by doc's).
But what about being able to include all three forums into the headline output for the main page of all the different cats?
Please let me know what directory of my UBB should I upload the jIRC files,
and I'm really puzzled how do I point to the jIRC chat location from my UBB's CP.
Thank you.
Alright i have a question.. here i go.
Lets say i dont need diffrent max topics and such on my site, what else does this version have over the other one? Is it worth upgrading? Right now, i only pull Topics from 1 forum, and i only display it 1 place, so i dont think i really need to upgrade.. but i could be wrong.
I seriously can't get this to work
Either via the SSI exec (which does work, I was using version 1.3 with no probs) or via a direct access, both give the following error:
"Content-type: text/html
Software error:
Undefined subroutine &main::NewsRow called at \shadowleisuremisc - fwebsitescopy of online overcoolers.netforumsubbnews.cgi line 129.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error."
I know others have got this problem... there must be a solution? My server is running Win2k IIS5 with the latest release of ActivePerl, and I'm using UBB 6.05. Hope this gets solved soon...
Well thanks to the subsequant replies posted on here :rolleyes: , I semi solved it. I didn't realise that the vars_wordlets_mods thing actually had to be installed, I just assumed it was something needing to be altered if it was already installed. You might like to make that clearer in your next release.
So anyway, it's displaying news. But it's only displaying 1 news item, the first item posted on the board. Any new posts do not come up at all. I've set it to grab 5 topics but only one is showing. Looks like I'm gonna have to use 1.3 again.
the wordlets_mods module is required for most good hacks needing wording.
Awesome hack, works great, not a single problem with mine!
I would also like to see this included if possible.
Alex
How can I format Date and Time (german board, so I need german date-format (DD.MM.YYYY))?
Hi again,
please look at my modified UBBNews :
http://www.hardwareluxx.com You will see it correctly when you use Internet Explorer, but you won´t see UBBNews when you use Netscape. That´s because I need to place a /table tag somewhere at the end in ubbnews.cgi - but where ? I tried everywhere, but wherever I place the print "", it doesn´t work...
Can anyone tell me where I have to place it?
Thanks very much !
Dennis
the word "whether" in the configuration creation thing is spelled "wether".
and I get an error when I click create news session
well I just read allen's post saying to create a folder in the instructions,or edit the code, I created the folder and it works! This is my test board so I'll start on my real UBB files when I get to america.
its keep giving me this error
when it works fine when i called directly
I just get this after installing every thing as far as I know fine:
Content-type: text/html
Software error:
Undefined subroutine &main::NewsRow called at ubbnews.cgi line 126.
For help, please send mail to the webmaster (
[email protected]), giving this error message and the time and date of the error.
ANY help much apreciated
One question what code would i have to edit to make the headline fonts in bold or maybe a bit bigger??????
Ok someone help plz, i've tryed installing this twice now, on different boards on different servers and I can't get it to work
link to error page is the problem the fact that I only have version 6.0?
[ July 12, 2001 02:36 PM: Message edited by: Fatphil ]
Oh well I gave up on UBBNews2 and I have installed version 1 as I can get that one to work, check out the greatness
link
Got the same problem, anyone?
??? ubb 6.1 ???
###########
i insert:
works fine
##########
i insert:
[an error occurred while processing this directive]
WY ?!?!?
but it works fine - when i called directly !!!
[ July 15, 2001 12:42 PM: Message edited by: melder ]
bump
plz help
Well, I have UBBNews 2.0 now running for two weeks, it runs fine
but it generates A LOT OF TRAFFIC.
I have around 5000 hits a day on UBBNews and it has around 350 MB of traffic a day. Is that normal ?
Pretty much - I have to upgrade my server ;-)
Dennis
Real quick cosmetic question...
Is there anyway to move the News Fader display ABOVE, the Forum Title / Description Bar (i.e. Forum | Topics | Posts | LastPost | Moderator )...
Thanks!!! I have Custom Category strip backgrounds, and use both of them, it would look alot nicer to swap those to tables.
Help, I have installed the mod, everything is working great till I call for the news, when I enter the url in my browser, I get this error:
Undefined subroutine &main::SummaryRow called at /home/custombb/public_html/ubb/cgi-bin/ubbnews.cgi line 126.
Any help is nice
there is no way to change the style or the colors in the output .. whatever changes i do in public_ubb_news.pl , it keep the same colors and style ..
cleareing the cache ,, starting a new season .. will not make any change
When I click UBBNews in the CP, it says : "FYI You Don't Have Permission to enter" .
Why ?
I CHmodded it all right as well.
[ July 24, 2001 05:54 AM: Message edited by: ZoneX ]
Thanks LK, that did the trick.
Hmmm. I can get the session through the browser by typing
http://gamingrealm.co.uk/cgi-bin/ubbnews.cgi?ns_id=1 . How come it won't work when I use or that other method posted here ?
So how can I get the news to show in a post I make.
FYI,
If you're getting a error dealing with undefined subroutine &main::NewsRow or SummaryRow, that just means you forgot to upload the public_ubbnews.pl file in the templates dir. (Since the NewsRow and SummaryRow functions are defined there)
I had the same problem, and when I upload the file, the problem went away
Anyone...
Hmmm. I can get the session through the browser by typing
http://gamingrealm.co.uk/cgi-bin/ubbnews.cgi?ns_id=1 . How come it won't work when I use or that other method posted here ?
So how can I get the news to show in a post I make.
I have hacked everything right. when I call directly from the browser it works fine, but when I insert a SSI call it gives me this, " HTTP/1.1 404 Object Not Found Server: Microsoft-IIS/5.0 Date: Mon, 30 Jul 2001 08:02:07 GMT Content-Type: text/html
404 Object Not Found " , I tihnk I know why, its not my host because I can use news pro fine. but I can't use this, is the reason because I have my UBB hosted on forum.undertakerinc.org, and my site on underinc.org, so my SSI call looks like
( ), if you go directly to my news you can see it, but the text is black, any reson on why thats happened, if someone can help me out that would be good
thanks in adavance.
I know this may be a lot to ask, but is there any way that this mod could be modded (even more, yay!) to only pull posts by specific users? I help run a gaming development board. People are often rending their garments and crying to the heavens because it's hard to find developer posts. I wanted to use UBBNews to pull the X most recent posts that users 9, 12, 35, 37, etc. had made. Can anyone think of a good way to do this? BTW, the hack, as written, works well on my system after using #include.
Lord, type the path, not URL.
Like
Its seems you didn't read my whole post. I site, and Bulletin are in way different directories, all my UBB files are stored on forum.undertakerinc.org, then my site is on undertakerinc.org, so there folder are not both just like that, thats why I came here to seek answers
I can't seem to change the text colour for the script can someone please assist?
i want the text to be white but when i put in the hex code and save the template my ubbnews script is using it stays as black!
Is this the same script that UBBDEV.com is using on the front page through SSI?
Yes... without hacking the ubb files
It runs the center column in regular mode and the right hand column in headline mode.
I don't have time right now to explain the setup for it, but all you really need to do is set the variables and upload the files...
@ all
the hack works great but:
a look in my error-log-file:
ubbnews.cgi: Odd number of elements in hash assignment at [..] /ubbnews.cgi line 94.
whats that?
greetings
/cartman
Just need a question answered. Read through the hack install and when it asked to find:
use vars qw( and then add:
%vars_ubbnews %vars_ubbnews_sessions
This is what I have when I did a search on on my
CP.cgi:
use vars qw(%vars_wordlets_mods);
#use vars qw(%vars_config %vars_display %vars_email %GotTime $status @memberslist %vars_wordlets_cp %vars_wordlets_email %vars_wordlets_err %vars_wordlets_img %vars_wordlets_date %template_match %vars_wordlets %vars_misc %vars_style %vars_search %vars_registration %vars_time @ubbadmin $username $password $InfopopCopyright $ThisHTML %in %ProfileNumber $memlistopen $CurrentTab %template $template $CPMenu $CPHeader $CPFooter $CPDropDown $Hiddens $public_name $LoginWording $admin_number $direct_to $version $version_number $cache_cookie %member_profile $selscript $exact_path %vars_rate);
Any suggestions?
I already asked this somewhere elkse but didn't get a reply :-(
Is it possible to change the UBBnews script into something like
Webwereld site ? (in Dutch, but you'll know what I mean, click on 19 reacties in the yellow bar)
So the reactions are more or less seperated from the board...
Anybody can use there own newsscripts but use the reaction (and usernames) from UBB.
JB007, I like your script, but I hope you can modify it for general newssytems as well !
P.
is this mod still in Beta, or has it been tested, and final?
Hello Guys!
I'm sorry for my delay, I was in a vacation to Korea/Japan. I went to the World Cup 2002 studium in Korea
Well, I'm sorry for any inconvience that I had caused for all of you. If someone can address the common problems and questions so that I can get back on the track?
SplitFyre, put that code in the first line.
Good to see you again JB, sounds like a great trip.
We're still using this on our front page with no ubb file modifications, just setting the variables in the scripts and ssi'ing where we need, works really well
)
About the only thing I would like to see in this more than what's there is the ability to have a drop-down list of icons when you make a post that you can choose to include like the microphone we have that's hard-coded. The drop-down would allow you to have icons that "fit" the subject matter, much like slashcode. One other thing might be the use of more than one template...
Hey guys,
I cannot seem to pull anything from the forum that I have designated news to be pulled from.
When I browse to:
http://www.futurelooks.com/cgi-bin/ubbnews.cgi?ns_id=1 It shows up as blank but in our forum there are two threads in there? What could this be?
Here is what I have currently in my CP.CGI which I think is not the problem:
#use strict;
use Fcntl ':flock';
use CGI::Carp qw(fatalsToBrowser carpout);
use CGI qw(:cgi-lib :standard);
use vars qw(%vars_ubbnews %vars_ubbnews_sessions %vars_wordlets_mods);
#use vars qw(%vars_config %vars_display %vars_email %GotTime $status @memberslist %vars_wordlets_cp %vars_wordlets_email %vars_wordlets_err %vars_wordlets_img %vars_wordlets_date %template_match %vars_wordlets %vars_misc %vars_style %vars_search %vars_registration %vars_time @ubbadmin $username $password $InfopopCopyright $ThisHTML %in %ProfileNumber $memlistopen $CurrentTab %template $template $CPMenu $CPHeader $CPFooter $CPDropDown $Hiddens $public_name $LoginWording $admin_number $direct_to $version $version_number $cache_cookie %member_profile $selscript $exact_path %vars_rate);IS there anything wrong in here? I really want to implement this feature..
Any help is appreciated.. even when pulling through an SSI call it shows as being blank.
Got it to work... yea!
Can't seem to get it to pull anything into my news_frame.htm. Using Front Page for now and cannot seem to get the damn thing to pull.
The way in which I want to pull the UBBNews is through a news_frame.htm file. If I use the Include Page function in Front Page it requests a link URL. So I put in:
http://www.futurelooks.com/cgi-bin/ubbnews.cgi?ns_id=1 It loaded once for a few seconds and then disappeared. Is anyone else using Front Page to implement this hack? I want to know if I am to use the virtual or exec SSI line where do I put it within the code? I can't remember. Your help is appreciated. Bottom line is I can't pull it through a frame but only if I pull it up manually through a browser!
Ok here it is.. my news page gets pulled through a frame and no matter what I do I cannot get the UBBNews to pull up in the include. In the frame I specified latest_news.shtml but it won't pull anything outside of existing data before UBBNews2.0 implementation. What do I need to do to get the data to pull as it will pull through a normal call to the browser:
www.futurelooks.com/cgi-bin/ubbnews?ns_id=1
Everything seems to be working just fine with this mod, in CP and when I post but 1 thing. It is not showing up on the page that the news was intended to be on.
Here is the page that the SSI should be getting its info from. But as you can see
here that the news is not there. I am using the following code to pull in the news...
Have I done something wrong or does this not work for version 6.05 yet?
Iinstalled it but i get this software error:
Content-type: text/html
Software error:
Undefined subroutine &main::NewsRow called at ubbnews.cgi line 129.
Is there something that i did wrong or something i missed??
PLEASE HELP ME!!!
OKAY!!! ... i got iw working and it works GREAT!
This is a great mod
I have it installed and it works perfectly! Except for one thing. In Internet Explorer (5.5) it shows up just the way i want it to. But with Netscape, It shows the text but not the table around the post/new, or the colors of the table cells.
For a better example, here are some creens of my dilema.
Internet Explorer Netscape!!! Did I do something wrong or does everyone have this problem???
I have installed this hack and it works great. I would like to remove the option to view replies, I will be using this hack to display news but do not want the guest to post replies or view the forum. How can I do this??
ummm.. jb seems to have gone on vacation again
edit the template file to remove the "replies"
I would like to echo this statement verbatim. I too have this script installed and it appears to be functioning perfectly, but my host server log lists this exact error for each request UBBNews2 makes. In other words, if I set UBBNews to pull 2 topics from 3 different forums, my sever log will show the error mentioned above 6 times.
(I know, pick, pick, pick) but I would like to get rid of this error.
I have the same problem with this hack as I do the Latest Threads. When I use the #exec cgi statement on IIS 5 I get nothing, just a blank. I can run the page manually in my browser and it works fine.
An include virtual shows the cgi code...
Still hoping for an answer on how to make this work on IIS!
I'm having the exact same problem as XPerT. When I enter the cgi manually in the browser, it works perfectly, but the #exec SSI call does not work at all -- just produces a blank screen. I've gone over it for hours with my server experts, and they say the SSI call is entered correctly (right path/call and everything), but that something is wrong with the cgi script itself.
Any ideas?
[ 10-13-2001: Message edited by: August ]
I have had a difficult time getting UBBNews to honor the font settings I have for my Headlines Only session. I know others have had this problem, but I have never seen the solution posted in the forums. Can anybody help me out?
Thanks,
-Eric
Nevermind, I figured it out.
Same thing happening here
QUESTION- what do you do if one of your forums has a space in it? Like if the forum name is General Discussion, it'll think you're trying to call topics from "General" and "Discussion", right?
quote:
Originally posted by BloggerMan:
QUESTION- what do you do if one of your forums has a space in it? Like if the forum name is General Discussion, it'll think you're trying to call topics from "General" and "Discussion", right?
Don't you just enter the forum number instead of the forum name?
Works great here... one of the best hacks ever!
quote:
Originally posted by XPerT:
I have the same problem with this hack as I do the Latest Threads. When I use the #exec cgi statement on IIS 5 I get nothing, just a blank. I can run the page manually in my browser and it works fine.
An include virtual shows the cgi code...
Still hoping for an answer on how to make this work on IIS!
First off, if you already haven't done this, save the file as shtml. Secondly, in IIS, you need to make the file writeable and executable. Set execute permssions to scripts and executables. You may need to play around in IIS, since I totally forgot what voodoo raindance song I had to sing to get SSI to work. I had the exact same problems.
If you search the Microsoft Knowledge Base (heck, do a deja.com search on "IIS SSI enable") you should find a step-by-step document on enabling SSI on IIS 4.0 and 5.0. The trick is usually to make sure all file extensions are parsed by the SSI or ASP dll rather than html files not being parsed, as well as cgi files. On my IIS 4.0 box, the hack worked almost perfectly right out of the box...
The only thing that doesn't seem to work is the option as to whether I want the summary count to apply to all forums selected or to each enumerated forum... no matter what I pick (yes/no) when I return to the control pannel and pull up the UBBNews options, I get neither box selected and the code always defaults to "no".
Some suggestions / request I was going to make (and I may try and get ambitious and see if I can figure out how to do it myself) are:
1. Allow a third summary option that takes the first X characters, not including the title of the forum or the date, but perhaps includes the user name so that one could show "UserXyZ was heard saying "blah, blah, blah..." and so forth...
2. Allow an option that actually scans ALL active non-private forums and picks the X newest posts or replies from ALL the forums, kind of like the daily summary does (but without resetting at midnight and with a configurable X number).
3. Create a better interface for selecting the forums. Opening two screens in the CP to make a list of all the forums to be included, guaging which ones should be (the most active ones or the ones you most want to promote) would be great... i.e., perhaps a list with checkboxes of all the forums active unerneath, with a # of posts, replies, and date of last activity, so one can then just check the checkboxes and when pressing Save Settings, those forums get added (instead of the one line "type in all the forum numbers you want to include, with a space between each" that is featured now.
In any case, this is a very nice hack, is going to either completely solve my issue or give me sufficient basis to modify it to suit my needs.
Thanks, JB. And thanks to LK and dj in helping me find it via email in the first place.
Mario Kroll
Wargamer.com