1
solidsnake
automatically changing the siteurl
  • 2004/6/24 2:45

  • solidsnake

  • Just popping in

  • Posts: 33

  • Since: 2004/5/16


Hi, my site is currently at a test server, (Ex. http://tempserver/folder/index.php) my question is, how do I automatically change this address when I transfer it to the actual server? (Ex. http://actualserver/folder/index.php) -- {X_SITEURL} sometimes just don't work.

2
intel352
Re: automatically changing the siteurl
  • 2004/6/24 3:10

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


edit mainfile.php, the url is kept there

3
solidsnake
Re: automatically changing the siteurl
  • 2004/6/24 6:32

  • solidsnake

  • Just popping in

  • Posts: 33

  • Since: 2004/5/16


thanks, but currently I hardcode some graphics and links from my test server, (I manually type http://testserver/folder/index.php to refer to the homepage) -- but of course when i transfer my site to the actual site, these links would not work anymore. In Custom Block they say I should use {X_SITEURL} but this doesn't work in all modules.

I know I'm doing something wrong, please offer suggestions.

thanks to all!

4
intel352
Re: automatically changing the siteurl
  • 2004/6/24 10:43

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


heh, guess i shoulda paid closer attn to your question


for php code, use this predefined language statement:
XOOPS_URL
example: $ex = XOOPS_URL."/modules/donations/";

for smarty templates, use this:
<{$xoops_url}>
example:




5
solidsnake
Re: automatically changing the siteurl
  • 2004/6/28 11:15

  • solidsnake

  • Just popping in

  • Posts: 33

  • Since: 2004/5/16


Hi bd_csmc,

Thanks for the reply, will try to test it out and will get back to you about the result. thanks for your patience in answering my questions.

best regards,
solidsnake

6
intel352
Re: automatically changing the siteurl
  • 2004/6/28 12:09

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


np, no patience required

Login

Who's Online

330 user(s) are online (248 user(s) are browsing Support Forums)


Members: 0


Guests: 330


more...

Donat-O-Meter

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

Latest GitHub Commits