Previous Thread
Next Thread
Print Thread
Rate Thread
#108337 05/29/2001 7:09 AM
Joined: May 2001
Posts: 157
Member
Member
Offline
Joined: May 2001
Posts: 157
hey i wanted to know if anyone knows how to write a javascript for the ubb, where if your like on a non ubb page, it shows if your logged into ubb or not? or something similar? i tried but i couldnt get it to work even if i was logged in, it would still show "Login, Register"

Sponsored Links
#108338 05/29/2001 3:02 PM
Joined: Oct 2000
Posts: 195
Bob Offline
Member / Eejit
Member / Eejit
Offline
Joined: Oct 2000
Posts: 195
This would be more of a modification to the UBB, and, I am pretty sure that it would be loads easier with cgi/perl. You could probably patch together something that works for you from various modificatiosn like Who's Online..


edit : have to get used to saying 'modification' instead of hack.

[ May 29, 2001 03:03 PM: Message edited by: RobbieB ]


If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating
#108339 05/29/2001 6:56 PM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
i'm leaning towards js, because that would probably be the simplest way to read the cookie data.

#108340 05/29/2001 7:55 PM
Joined: May 2000
Posts: 1,168
Member
Member
Offline
Joined: May 2000
Posts: 1,168
Actually it's a little of both. The only thing that UBB stores is the username and password. That info is sent on to a server-side CGI which does all of the other work. You'd eventually have to talk with the server in order to do what you want.

- DB

#108341 05/30/2001 8:16 AM
Joined: Oct 2000
Posts: 195
Bob Offline
Member / Eejit
Member / Eejit
Offline
Joined: Oct 2000
Posts: 195
so thats one vote for perl/cgi, one for js, one for in the middle. yet his problem still ain't solved smile tipsy


If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating
Sponsored Links
#108342 06/04/2001 1:54 PM
Joined: May 2001
Posts: 157
Member
Member
Offline
Joined: May 2001
Posts: 157
actually i have solved it and i used javascript...now i have two fields (username and password) on a non ubb page and when they enter it and click submit it loggs them into my ubb and if they are still logged into ubb (still have the cookie) but not on a ubb page it shows there username and a like to their profile...i figured it after a couple of hours of testing....

#108343 07/02/2001 2:43 PM
Joined: Apr 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 18
can you show us your solution please ??

thank you very much !

#108344 07/02/2001 7:48 PM
Joined: Apr 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 18
Yo i find the solution

replace :
Code
code:

by
Code
code:

on all files (ubbmisc.cgi, posting.cgi etc ...)

after write a little script in perl whith this sub :
Code
code:

Enjoy


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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 20240506)