Previous Thread
Next Thread
Print Thread
Rate Thread
Page 6 of 6 1 2 3 4 5 6
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Thanks Allen! thumbsup

Props to you too MasterMind for a cool hack.

Sponsored Links
Joined: Aug 2002
Posts: 65
Member
Member
Offline
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:

Quote
code:
Code
Undefined subroutine &main::view_newssessions called at D:Inetpubwwwrootdevcgi-bincp.cgi line 480.

Line 480 in my cp.cgi =
code:
[qb]
Code
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
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Make sure you uploaded cp_ubbnews.cgi, CHMODded 755, etc.

Joined: Aug 2002
Posts: 65
Member
Member
Offline
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
Offline
Joined: Nov 2001
Posts: 1,080
Quote
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]
Code
<?php
print implode("n", file("https://ubbdev.com/db/cgi/ubbnews.cgi?ns_id=2"));
?>
[/qb]

Thanks...That command works with PHP. thumbsup

Sponsored Links
Joined: Feb 2000
Posts: 62
Member
Member
Offline
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

Quote
code:
Code
 <?phpprint 

just separate them
code:
[qb]
Code
 <?php print 
[/qb]
and it works a charm.

Thanks guys wink


I'm depriving a village somewhere of an idiot.
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
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
Offline
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
quote:

ubbnews.cgi: Use of uninitialized value at ubbnews.cgi line 77.

that line is:
Code
[/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


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 46
Member
Member
Offline
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?

Sponsored Links
Page 6 of 6 1 2 3 4 5 6

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)