1
shansta22
Url Problems
  • 2005/2/27 10:46

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


Hello,

Having a few problems with my in page linking..

whenever I am in a /modules/ module and want to link back to privacy.php instead of going to the url I am gettig ex:
/modules/afl/privacy.php instead of mysite.com/privacy.php

I have tried using these in linking,

privacy.php
/privacy.php
<{$xoops_url}>/privacy.php

and none seem to be working..

Can anyone HELP please?

thanks,
Shan.

2
wtravel
Re: Url Problems

Hi,

The code you need to use depends on how you ise it:

XOOPS_URL is used in the module php files (after including the header.php file).

Example:
echo XOOPS_URL."/privacy.php";

or if you want to use it as a definition:
$url = XOOPS_URL."/privacy.php;

When you use it in a smarty template you will need to use:
<{$xoops_url}>

Hope this helped. If you need more info, let me know.

Regards,

Martijn

Login

Who's Online

222 user(s) are online (188 user(s) are browsing Support Forums)


Members: 0


Guests: 222


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