Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 4
Junior Member
Junior Member
Offline
Joined: Feb 2002
Posts: 4
I am bringing this question from InfoPop\'s UBB Support Forum to get modification help for the Perl script in the "ultimatebb.cgi" file.

My question has been asked before on this board, in the Archives however, I am taking the question further and wanting help with modifying the Perl script. My question digs deeper into making a modification to the "ultimatebb.cgi" file.

Thank you Charles or whomever, if you can tweak the code for me.

UBB uses an HTML login form which caries a value in the hidden input field, named "refer". The value is the URL of the page where a user clicked on the Login link, so that when the user loggs in, they are returned to the page they were looking at when they discovered they needed to login. This function is only available inside UBB, but I would like to make it availabe outside the UBB to use anywhere on the website. In other words, I would like to return users to the static web page where they entered their login name.

I intend to apply the URL of the page, which a user is viewing, to the form's "refer" value using JavaScript or an SSI tag. However I need the UBB script to handle this request without dumping the user at the front door of the UBB.

Below is the section of Perl code that handles the login of users.

[code][/code]Thanks in advance for helping me with this hack.

GoodGuy
David Longhurst

Sponsored Links
Joined: Feb 2002
Posts: 4
Junior Member
Junior Member
Offline
Joined: Feb 2002
Posts: 4
So, what does one need to do to get some help in doing a hack? My attempts so far have failed me on this hack. Can anyone give me a pointer?

Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
A hack i wrote detaches the login. You can dig through it to see how its done if you wish. The name of the hack is 'application forms v2.0.1'. Examine the included text file for a routine named 'login_application'. I wrote a parallel do_login routine to display the transition page the way i wanted it to appear without altering the existing sites login routines.

the solution to your problem, can easily be done by creating a form field that includes a value for the variable refer. i believe you can even hardcode the refer variable to a simple full url address.

example:







try replacing $ENV{'HTTP_REFERER'} with the site you want to forward to. such as: http://yourdomain.com/whereto.html


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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
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
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)