Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
I would like to insert the UBBNews inside a .cgi file. I tried with no avail:

print ".../ubb/cgi-bin/ubbnews.cgi?ns_id=5";

and even "document.write..."


Is there a Javascript or preferably .cgi method?

confused

Sponsored Links
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
try ../


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Well to further explain I'm trying to print the news sessions inside "qq~". Since HTML is already generated there even if I were to do:

print "../ubb/cgi-bin/ubbnews.cgi?ns_id=5";

that code will print out in raw code. I would like to figure out a way to extract "ns_id". All I know is Perl is crazy. laugh

Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
ahh lol ok :x

::feels sheepish::


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
I feel the same way trying to figure out these codes/protocols. smile I'm sure the UBB Perl gurus will know because I sure don't? laugh

Sponsored Links
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
I usually know some things hehe, enough to bs my way around most things lol... but i'm so busy right now i can't grab my resource guides...

I got engaged last night as an example :x... I also start a new job on Monday...


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Congrats...Although I think UBBDev had the heads up on your engagement before your fiance did. tipsy

In the meantime I'll tinker with the codes...

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
[code][/code]

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Hey Brett. Thanks for replying. smile

For some reason I'm not getting an output and it shows a "syntax error"? I changed the URL to the correct one. Here's what I have:

[code][/code]I wonder if I did something wrong?

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
whoops

ok, i don't have ubbnews hack, i just checked the thread and the link is dead. But how to work it, in ubbnews.cgi; for the output, it'll need to be this "document.writeln(unescape('$output'));" being above like "$output =~ s/'/\'/;". Assuming ubbnews is setup like that.

Or another way, would be to include similar code into the file and print it there. It would be easy, being opening the thread list and print the first 5 or however many you have. (*just a thought*) wink

Sponsored Links
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Alright cool. smile I'll look into it but in the meantime here is the hack:

Click Here

laugh

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Woah. eek

The script actually uses the variable output. What's the chances in that? tipsy

Try this out.

replace 'print "$output";' with:
[code][/code]That should do it.

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Hehe...If you don't mind you're going to have to humor me. tipsy

Once I replace that code into ubbnews.cgi what script will I need to invoke it? I used the Javascript you made several posts above but that didn't work. I'm learning. laugh

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
By the way. when I replaced that code I got this on the current output of the UBBNews:

document.writeln(unescape('

That printed out. The end printed too:

'));

?


============================

[code][/code]confused laugh

Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
Wow, I'm gone for a day and Brett attacks the post :x...

Yeh Prime, you guys new as I was deciding what I was going to say to her :x...


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts

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,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)