Fork me on GitHub

Multy_sites . Help me please!  Bottom

  • I need this function so much , but I cannot configure it icon_frown
    I need several subdomains :

    first.mysite.com
    second.mysite.com

    and I just wondering , what I must write here ?
    _____________________________________________
    Original version from the module :

    folder "para$serverName = $SERVER_NAME;
    $serverName = str_replace("www","",$serverName);
    $serverName = str_replace("essai","",$serverName);
    $serverName = str_replace(".org","",$serverName);
    $serverName = str_replace(".net","",$serverName);
    $serverName = str_replace(".com","",$serverName);

    _____________________________________________
    my version

    folder "para$serverName = $SERVER_NAME;
    $serverName = str_replace("mysite.com","first.mysite.com",$serverName);


    It doesn' work


    Help me please ! ;-(

    PS: I use AutoTheme light .8
  • link to the multisite faq
    http://athomeandabout.com/modules.php?op=modload&name=Subjects&file=index&req=viewpage&pageid=4

    good luck with figuring it out!! its a bugger to get working right.
  • thanks for the link .......
    Now i understand in general ,
    but I still have no idea how to write correctly ..... I mean whoisit.inc.php
    I must be really stupid ! icon_wink

    If you could give me an example ? Just one line ....
    I would really appreciate.... icon_wink

This list is based on users active over the last 60 minutes.