1
cyanide
adding html / php
  • 2005/6/1 19:41

  • cyanide

  • Just popping in

  • Posts: 3

  • Since: 2005/5/30


Hi, new user...
Been going through the forums and faqs and haven't been able to find the answer.

I want to be able to drop in html and php code when creating pages eg.) in Sections.

For example, if I want to drop in a link to another page or call in an image. I know I can do this with straight html
eg) <a href="http://localhost/site/modules/sections/index.php?op=viewarticle&artid=2"> link</a>

But, I want this to work on localhost as well as the production server.
eg) <a href="<php echo XOOPS_URL . ('/modules/sections/index.php?op=viewarticle&artid=2'); ?>">link</a>

Unfortunately, it doesn't render the php code.

Any ideas ? Suggestions?

2
psindia
Re: adding html / php
  • 2005/6/2 10:38

  • psindia

  • Not too shy to talk

  • Posts: 171

  • Since: 2005/3/31


The theme file is a html file .
So you cannot add php code .
You can use xoop template tags.

You can use the tag <{$xoops_url}> for XOOPS url
<{$xoops_theme}> for theme folder..

Try to edit the default theme file.You will get all these codes ...

3
adrock
Defining 'xoops tags'
  • 2005/6/2 23:33

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


Does anyone know where these are defined?

I'd like to add some of my own, and realize that I need to include it in the smarty definitions, or something similar...

Don't know too much PHP, but know enough to be dangerous!

Thanks in advance...

4
Dave_L
Re: Defining 'xoops tags'
  • 2005/6/2 23:57

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Most, maybe all, of the XOOPS-wide ones are set in header.php and include/common.php. Look for calls to $xoopsTpl->assign and $xoopsTpl->append.

Login

Who's Online

179 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 179


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