1
Mandarine
How to include my own code... :D
  • 2005/4/28 9:14

  • Mandarine

  • Just popping in

  • Posts: 20

  • Since: 2005/2/11


Hi !!

I've read the former topic, but I don't think it's the same problem.

I want to include my own code in a module index.php file.
But this module seems to use smarty system...
I think I have to use the $xoopsTpl variable...
but I don't find any method to add a script :(

something like that could be great :
$xoopsTpl->addScript(XOOPS_ROOT_PATH."/menu.php");

I think it's a smarty "problem" because when I simply include my script with the php include fonction, my menu appears in the top right corner :)

I've already bypassed this problem in my own module by not using the smarty system but now I have to : it's not my module


I hope you understand me because I'm not a native English speaker (writer^^) ;)

2
Mandarine
Re: How to include my own code... :D
  • 2005/4/29 7:49

  • Mandarine

  • Just popping in

  • Posts: 20

  • Since: 2005/2/11


I'll reformulate my question... ;)

I need to include my own PHP code in a xoopsTpl.
I have a menu I want to include in the myDownload module index .php file and I this module uses the smarty system.
How can I just do something like that ?

$xoopsTpl->addDisplayResultOfTheScript(my_own_script.php) ?

I don't really understand how to use template, and it may be impossible to do what I want... but can somebody helps me and says something, I'm feeling alone in this forum thread ;)

THX ;)

3
Mandarine
Re: How to include my own code... :D
  • 2005/4/29 14:48

  • Mandarine

  • Just popping in

  • Posts: 20

  • Since: 2005/2/11


no solution ?

4
Mandarine
Re: How to include my own code... :D
  • 2005/5/2 7:52

  • Mandarine

  • Just popping in

  • Posts: 20

  • Since: 2005/2/11


I'm a beginner, I've posted in the rigth section... What's wrong ?!?
I do my best to be as clear as possible, if I'm not enough, please tell me... I'll try to be more ;)

I've searched over the website but find no solution :(

Can anybody help because I really don't understand smarty :'( ?


Thanks.

Faithfully yours.

PS : I don't need to include my code in the theme.html because it's just for a module, do I ?

5
Mandarine
Re: How to include my own code... :D
  • 2005/5/2 15:02

  • Mandarine

  • Just popping in

  • Posts: 20

  • Since: 2005/2/11


thanks for your help

Login

Who's Online

233 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 233


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