|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
OK 3 part question: 1) How do we get our banners, which are called by a cgi file, to appear in the 6.x series? In the 5.x series, in the CP, there was an option for Header, so we simply inserted this: 2) What files (and where in the files) would need to be changed to change the link to the "Register" page so it goes to our site registration page? 3) On that note, what would it take (specifically) so our users would be logged into the UBB from our sign in page?
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
1) It also exists in UBB 6 Go to the CP - Style Templates - Choose Template - Header. 2. ubb_lib.cgi, " $RegisterLink = qq( $vars_wordlets{register_link} unless $vars_registration{SuspendRegister} eq "true";". 3. "Copy" some parts from "if ($ubb eq 'do_login') {" part of ultimatebb.cgi, and don't forget to require vars_config.cgi, ubb_lib.cgi, ubb_lib_2.cgi, and maybe some others.
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
for #1, I thought so and it's there but for whatever reason the script is not being executed (but it was on 5.47e and is on our 5.47e live site UBB ). Our 6.05 (dev) version is here .
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
Something I forgot to mention--in our 5.47e version we have this added on to Ultimate.cgi and other files: Would that also require a code change to those files, such as ultimatebb.cgi? If so, which ones? [ August 21, 2001: Message edited by: Kydd ]
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Oh.. You can put the CGI code of adlink.cgi (but make the result be in a variable, like $ad, instead of RETURN) in public_common.pl sub set_page_elements, and then in the same file, after put You can also try your way, but I don't have AdLink.pm so I dunno.
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
Please elaborate. All adlink.cgi is is this: So in essence it calls AdLink.pm. So what precisely is the easiest work-around?
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
OK... After add But I can't be sure...
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
If I test this what CP updates do I need to run (if any)?
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
Over at the UBB support forums, someone suggested that "it would go in the $header section of public_common.pl so it recurs on each page."
Any thoughts on that?
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It's what I suggested, just in another way.
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
Ha. I tried it the way you suggested and check out what happens. -first UBB page, no banner displaying. -list of topics, 1 banner displaying. -actual topic, 2 banners displaying. It's actually a little more inconsistent than that but generally, that's what happens... [ August 22, 2001: Message edited by: Kydd ]
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It balances 1. No idea 3. For some reason, the whole header appears twice (including the , etc)...
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
Well obviously I can't go "live" with this, which means we'll be stuck on 5.47e unless someone can come up with another idea...
|
|
|
|
|
Joined: Sep 2000
Posts: 59
Member
|
|
Member
Joined: Sep 2000
Posts: 59 |
This worked like a charm but the link for "register" where you see "You are not logged in. Login or register" (towards the top left side) is not changed. Any idea where to change that?
|
|
|
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: 449
Joined: February 2008
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 697
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 25
|
|
|
|