Gossamer Forum
Home : Products : Links 2.0 : Customization :

different design on two plattforms

Quote Reply
different design on two plattforms
Hi,



I want to have two different designs on two different plattforms.



e.g.



under www.domaina.com I want to have it in green

but under www.domainb.com I want to have it in blue.



But if I change the data base path I change as well the path to sitehtml.pl

is it possible to have the database under www.domaina.com and

use it from www.domainb.com?



Thanks for your help!



Sincerly Yours

Mark
Quote Reply
Re: [MarkBT] different design on two plattforms In reply to
You mean two Links scripts accessing the same database? Look at the bottom of links.cfg, you'll see a listing names "Extra Paths." In there, find this:

$db_links_name = "$db_script_path/data/links.db"; # PATH to links database.

Change the $db_script_path to the full path where the db is. Note, these are on the same server, just in different directories, correct? (/cgi-bin/linksa/ and /cgi-bin/linksb/ )

Example:

mydomaina looks like this:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/alex/cgi-bin/linksa/admin";
$db_dir_url = "http://localhost/cgi-bin/linksa/admin";



mydomainb would do this:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/alex/cgi-bin/linksb/admin";
$db_dir_url = "http://localhost/cgi-bin/linksb/admin";

but change this like so:

$db_links_name = "/alex/cgi-bin/linksa/admin/data/links.db"; # PATH to links database.


Leonard
aka PerlFlunkie