1
LiliVG
<{$XOOPS_URL}> is defined in which file?
  • 2007/2/12 18:03

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


I need to make a smarty tag, like <{$xoops_domain}> instead of xoops_url (I need it to leave out the http:// part of the address) to put in a module I'm working on. Can anyone tell me which file that's located in so i can get an idea of how to create this variable? Thanks!

2
Lance_
Re: <{$XOOPS_URL}> is defined in which file?
  • 2007/2/12 19:02

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


OK, no disrespect. Not meant to.

But this is a funny question. It's like asking, "I'm changing the engine in my car, does anyone know where the ignition key goes??".

The info you want is in mainfile.php

Cheers.

/edit.
Again, simply in light of already being at a level to make a module.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

3
LiliVG
Re: is defined in which file?
  • 2007/2/13 0:52

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


It's a very simple module that is 98% html. And no, I'm not completely familiar with exactly how all of the files in XOOPS interact with each other, but I'm learning. A person's gotta start somewhere, right? And for your information, my module is almost completely done, and works fine, so I can't be all that incompetent.

4
Dave_L
Re: is defined in which file?
  • 2007/2/13 1:29

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Which XOOPS version?

In 2.0.16, it's in class/template.php:

$this->assign( array(
   
'xoops_url' => XOOPS_URL,
   
'xoops_rootpath' => XOOPS_ROOT_PATH,
   
'xoops_langcode' => _LANGCODE,
   
'xoops_charset' => _CHARSET,
   
'xoops_version' => XOOPS_VERSION,
   
'xoops_upload_url' => XOOPS_UPLOAD_URL
) );


I think it's somewhere else in 2.2.x.

5
LiliVG
Re: is defined in which file?
  • 2007/2/13 2:25

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


Thank you Dave

As it turns out, I can use <{$xoops_url}> for what I'm working on and it works ok, so I don't want to make it more complicated for myself if I don't need to (what with me being such a noob and all )

Login

Who's Online

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


Members: 0


Guests: 222


more...

Donat-O-Meter

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

Latest GitHub Commits