21
fredski
Re: Xoops problem on Aliased Domains
  • 2005/8/5 11:15

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


3 Cheers for LazyBadger

hiphip


LOL




22
fredski
Re: Xoops problem on Aliased Domains
  • 2005/8/4 16:27

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Spoke too soon :(

Lance your code worked a treat till I tried accessing the domain without specifying www. then it all went tits up.

Tried your way badger and everything is sweet :)



23
fredski
Re: Xoops problem on Aliased Domains
  • 2005/8/4 16:10

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Lance Your A STAR

That worked a treat



24
fredski
Re: Multisite hack for XOOPS 2.2
  • 2005/8/4 16:01

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


sounds like this might be what im looking for too :)



25
fredski
Re: Xoops problem on Aliased Domains
  • 2005/8/4 15:24

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


is there anyway I can change the define('XOOPS_URL', 'http://www.domain1.com'); so that it checks what the reffering domain is from a list of specified domains and puts that as the defined url???????


Thoughts on this anyone?



26
fredski
Re: Xoops problem on Aliased Domains
  • 2005/8/4 13:18

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Quote:

bluenova wrote:
10th line down

define('XOOPS_URL', 'http://www.domain1.com');

Change to the correct domain name


At the moment its named as my main site url

'http://www.ideal-handling.com'

This is whats causing a problem on my aliased domain. i.e ideal-handling.co.uk, because all the internal links use full urls likehttp://www.ideal-handling.com/modules/news and not /modules/news, because there is not need to add the domain to an internal link.

Due to this I cannot navigate my aliased site without being directed to the main sites domain pages, which I don't want.



27
fredski
Re: Xoops problem on Aliased Domains
  • 2005/8/4 12:55

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Well heres my mainfile.php
can you have a look and see where I'm going wrong?

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define("XOOPS_MAINFILE_INCLUDED",1);

    
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    
define('XOOPS_ROOT_PATH''/home/httpd/vhosts/domain1.com/httpdocs');

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    
define('XOOPS_URL''http://www.domain1.com');
    
define('XOOPS_CHECK_PATH'1);
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
        if ( 
function_exists('debug_backtrace') ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]['file'];
        } else {
            
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
        }
        if ( 
DIRECTORY_SEPARATOR != '/' ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath'\\') ? '\\' DIRECTORY_SEPARATOR'/'$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR'/'XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// Database
    // Choose the database to be used
    
define('XOOPS_DB_TYPE''mysql');

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
    
define('XOOPS_DB_PREFIX''xoops');

    
// Database Hostname
    // Hostname of the database server. If you are unsure, 'localhost' works in most cases.
    
define('XOOPS_DB_HOST''localhost');

    
// Database Username
    // Your database user account on the host
    
define('XOOPS_DB_USER''myuser');

    
// Database Password
    // Password for your database user account
    
define('XOOPS_DB_PASS''mypass');

    
// Database Name
    // The name of database on the host. The installer will attempt to create the database if not exist
    
define('XOOPS_DB_NAME''mydata');

    
// Use persistent connection? (Yes=1 No=0)
    // Default is 'Yes'. Choose 'Yes' if you are unsure.
    
define('XOOPS_DB_PCONNECT'0);

    
define('XOOPS_GROUP_ADMIN''1');
    
define('XOOPS_GROUP_USERS''2');
    
define('XOOPS_GROUP_ANONYMOUS''3');

    if (!isset(
$xoopsOption['nocommon'])) {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }
}
?>


Any help would be appreciated.



28
fredski
Xoops problem on Aliased Domains
  • 2005/8/4 10:15

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have noticed a problem with my aliased domains, for some reason when I click on any link on the aliased domain it will take me to the page on the main domain.

ie, Say I'm on domain2.co.uk and click a link to news,
instead going to domain2.co.uk/modules/news
it goes to domain1.co.uk/modules/news

Is there a reason that XOOPS is specifying the domain url before the folders? as there isn't any reason it should need to.

Any help would be much appreciated.

Thanks :)



29
fredski
Re: Newbb2 RSS not validating on MyYahoo
  • 2005/7/6 11:03

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Ok I've ran it through a validation checker and here's the result:
Quote:
Sorry

This feed does not validate.

*

line 7, column 47: lastBuildDate must be an RFC-822 date-time [help]

<lastBuildDate>Wed, 6 Jul 2005 11:24:37 BST</lastBuildDate>
^

*

line 25, column 43: pubDate must be an RFC-822 date-time (10 occurrences) [help]

<pubDate>Mon, 4 Jul 2005 15:43:30 BST</pubDate>
^




Ok so now what do I need to do?



30
fredski
Newbb2 RSS not validating on MyYahoo
  • 2005/7/6 10:54

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


How come I can use an rss reader to view my newbb2 rss but when I try to add it to a site such as yahoo it says 404 page not found. For some reason it cant find a vilidated rss feed at that url. I know I'm entering the correct url ie http://www.ideal-handling.com/modules/newbb/rss.php

Anyone found the same problem and worked out how to solve it?




TopTop
« 1 2 (3) 4 5 6 ... 25 »



Login

Who's Online

259 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 259


more...

Donat-O-Meter

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

Latest GitHub Commits