|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Thanks Allen! Props to you too MasterMind for a cool hack.
|
|
|
|
Joined: Aug 2002
Posts: 65
Member
|
Member
Joined: Aug 2002
Posts: 65 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Make sure you uploaded cp_ubbnews.cgi, CHMODded 755, etc.
|
|
|
|
Joined: Aug 2002
Posts: 65
Member
|
Member
Joined: Aug 2002
Posts: 65 |
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.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
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. 
|
|
|
|
Joined: Feb 2000
Posts: 62
Member
|
Member
Joined: Feb 2000
Posts: 62 |
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 
I'm depriving a village somewhere of an idiot.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
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!
|
|
|
|
Joined: Dec 2002
Posts: 1
Junior Member
|
Junior Member
Joined: Dec 2002
Posts: 1 |
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
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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
|
|
|
|
Joined: Nov 2001
Posts: 46
Member
|
Member
Joined: Nov 2001
Posts: 46 |
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?
|
|
|
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: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|