11
m0nty
Re: redirects to wrong place
  • 2005/11/1 1:01

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


if u change mainfile.php make sure you clear templates_c folder afterwards.. or your changes may not reflect straightaway.

12
McDonald
Re: redirects to wrong place
  • 2005/11/1 1:14

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Oke, forget about the html-files.
Let's check the mainfile.php again.
I am not sure how this one looks in XOOPS 2.0.7.

Check if the following lines are the same in your mainfile.php:
Quote:
define('XOOPS_ROOT_PATH', '/home/www/pug-club/portal');


and this one:
Quote:
define('XOOPS_URL', '/portal');


What I noticed is that if you type in the address barhttp://www.pug-club.com/portal/ it redirects to the urlhttp://www.pug-club.com/portal/portal/index.php with the result an error, 'Page not found'.

Maybe you can post a listing of your mainfile.php here without passwords/usernames.

Delete also all files from templates_c after uploading and setting the CHMOD of mainfile.php back to 444.

13
m0nty
Re: redirects to wrong place
  • 2005/11/1 1:54

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


if your site is a sub of the root.. ie /portal/

then the url

Quote:

define('XOOPS_URL', '/portal');


needs to be a full url not a relative..

so it should be >

define('XOOPS_URL''http://www.pug-club.com/portal');


no trailing slash (/)

14
McDonald
Re: redirects to wrong place
  • 2005/11/1 2:01

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


My own website is in a subdirectory called XOOPS and my url is defined as define('XOOPS_URL', '/portal'); without giving any problems.

The different thing is is that my home-button (main menu is not visible and buttons have been replaced by buttons at the top) directs tohttp://www.ronsrovlinks.nl/xoops instead of using any kind of fancy coding.

But I think thats not possible when using the default theme.

15
m0nty
Re: redirects to wrong place
  • 2005/11/1 4:30

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


you're using 2.2.3 not 2.0.7

16
silverpug
Re: redirects to wrong place
  • 2005/11/2 22:52

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


Quote:

m0nty wrote:
you're using 2.2.3 not 2.0.7


but when i go to the administration, underneath it sais version 2.0.7..!!!! and i had 2.0.6 and i only upgraded to 2. 0. 7 2 weeks ago when i had another problem!!

17
silverpug
Re: redirects to wrong place
  • 2005/11/2 22:55

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


Quote:

m0nty wrote:
if u change mainfile.php make sure you clear templates_c folder afterwards.. or your changes may not reflect straightaway.


when u say clear templates_c you mean completely delete all the files in there?? they are not important??

18
silverpug
Re: redirects to wrong place
  • 2005/11/2 23:08

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


Quote:

McDonald wrote:
Oke, forget about the html-files.
Let's check the mainfile.php again.
I am not sure how this one looks in XOOPS 2.0.7.



this is a copy paste of my mainfile exluding some passwords/user names
Quote:


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', 'C:/Inetpub/www.pug-club.com/portal');

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://www.pug-club.com/portal');

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


then it gives some other things about user names/ passwords and continues with this stuff


// 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";
}
}
?>

19
McDonald
Re: redirects to wrong place
  • 2005/11/3 0:48

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


The mainfile.php looks good.

The menu is defined in the filehttp://www.pug-club.com/portal/index.php between line 56-74.

If you change line 59 as follows it should work:

<class="menuTop" href="http://www.pug-club.com/portal/index.php">Home</a>

20
m0nty
Re: redirects to wrong place
  • 2005/11/3 1:25

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


sorry silverpug, i meant mcdonald is using 2.2.3.. which is different to 2.0.7

with regards to your mainfile, it looks correct..

but i'm not sure what mcdonald is on about regarding line 59..

the menu is built from a template (system/templates/system_block_mainmenu.html) and is an include from theme.html when you enable the main menu block in admin..

viewing the source of the page from a browser is no good other than as a quick diagnosis.. if you want to change the layouts then you have to start looking at the actual templates. but the paths are taken from the xoops_url provided in mainfile.php

once you have that sorted.. delete the contents from templates_c folder.. they are just compiled templates (like a cache) and will be regenerated the next time that template is used.. if you don't clear that folder, then any changes you make will not be reflected because the old files in that folder will still contain the old paths.

Login

Who's Online

144 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 144


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