1
ldapguru
xoops and sticky URL's
  • 2003/12/31 2:24

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Hi I always wanted to be able to have several URL's being served with varied content from the same backend XOOPS engine. I have a method that could be implemented very easily such that content served from the same backend XOOPS engine can be represented using URL's that stick.

The method has 2 parts to it.
1. A sticky URl that changes after the user clicks on any particular link.

2. a sticky URL that sticks throughout the entire valid browser session.

Well, both these methods work prefectly fine. I am working on session management such that the session cookie contains parameters for all the various domains (URL's) that the user could choose and make then automatically signon to all domains at once.

The SSO (single Signon) components are in a beta stage and I shall post a release note when it's complete.

The Sticky URL's work just fine (LOL... No iFrames or Frames in use). You can see them in action at the following URL's

http://corp.ldapguru.org
http://products.ldapguru.org
http://partners.ldapguru.org
http://www.ldapguru.org

And the CORE XOOPS engine that serves these various URL's / Domains at http://www.ldapguru.net.

The modular code can be downloaded from my site ( for registered users. So go ahead register yourself at http://www.ldapguru.net/register.php and download the code.

Please do not abuse the system as this code has been implemented on my live site and not on a development or staging server.

2
CBlue
Re: xoops and sticky URL's

Wow! Thanks for sharing this! I may be able to use this with my site since I have unlimited subdomains with my webhost provider.

3
Stewdio
Re: xoops and sticky URL's
  • 2003/12/31 2:36

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Interesting. I've been installing multiple XOOPS under every domain. Very interesting indeed.

Thanks!

4
ldapguru
Re: xoops and sticky URL's
  • 2003/12/31 2:42

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Thats what i used to do a long long time ago. Now I just have 1 XOOPS engine powering all my domains. neat eh !!

5
Stewdio
Re: xoops and sticky URL's
  • 2003/12/31 2:47

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


You could even expand on that and offer it as a service to your clients if your a host provider. How coold would that be, one installation, multiple sites running off one engine.

Sweet deal and a hell of a job!

Nice... really nice

6
ldapguru
Re: xoops and sticky URL's
  • 2003/12/31 2:48

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Guess It'd be a good idea to post the code to use sticky URL's here itself, so that i can eliminate stale-unused registrations on my site.

backup your existing mainfile.php
copy the following code into your existing mainfile.php
include("parameters/whoisit.inc.php"); 
if (!(empty(
$serverName))) 

include(
"parameters/".$serverName."/mainfile.php"); 
}
define("WHERE_IS_PERSO","parameters/".$serverName."/"); 
?>


Now create a directory called "parameters" under your XOOPS root directory.

Place the file 'whoisit.inc.php" in the directory "parameters"


if (!(isset(
$serverName))) 

$serverName $SERVER_NAME
$serverName str_replace(".org","",$serverName);
$serverName str_replace(".net","",$serverName); 
$serverName str_replace(".com","",$serverName); 


?>


now create directories in "parameters" that reflect your domain name or subdomainname or URL

place your ORIGINAL mainfile.php in these directories.

you can customize mainfile.php within each directory to reflect the components that you want. ie: URL, absolute path etc..


Now this method is just one of the simple ways to use sticky URL's.

The method that I have in production uses a lil more complex method which includes modifying the apache virtualserver parameters. I could post a document to that effect if someone wants me to...

7
CBlue
Re: xoops and sticky URL's

Thanks! I tried registering on your site but when I entered CBlue as my username, it came up with the error that I needed to shorten my username to less than 4 letters. So I did. Then it came up with the error that I needed to have a longer username of at least 5 letters. So I gave up.

8
ldapguru
Re: xoops and sticky URL's
  • 2003/12/31 5:09

  • ldapguru

  • Just popping in

  • Posts: 13

  • Since: 2002/10/16


Thanks for pointing out the error. It's fixed now.

Cheers !!

9
CBlue
Re: xoops and sticky URL's

Great! I was able to register!

Login

Who's Online

348 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 348


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits