1
Tiran_Kenja
Re: XoopsGallery 2.1

Yeah. I updated XoopsGallery 2.1 to use the latest Gallery 2 version by just replacing everything in the engine folder. Not sure if that what has made group and user export very dodgey for me (since the I had problems with the packaged Gallery as well). But I have almost completed some improved versions of that. No idea where to submit patches tho.



2
Tiran_Kenja
Module specific Smarty Plugins

Heya!

Kinda new to this place. But I have been working a bit on wrapping a Smarty based blog (bblog) into a XOOPS module and it's been going fine. I just finished making it use the XOOPS tempting system to render it's templates. And it works fine. BUT it use a lot of plugins and that's a problem.

Normal operation work fine. I can set my own plugin dirs fine there. But when installing or updating the module I can't find any way of setting this up before XOOPS tries to parse the templates.

So I'm wondering if there is a way around this. Or perhaps it would be a nice feature if you could set up plugin dirs up in the xoops_version file?



3
Tiran_Kenja
Re: Embedded PHP

Doh!

I can't belive I missed that one... I looked in the smarty docs just the other day for a tag like that. *sigh*

Edit: Oh well. It seems the XOOPS stuff isn't set up when php is run this way. So all the global vars isn't there.



4
Tiran_Kenja
Re: Embedded PHP

Nevermind me. I figured out setting smarty variables in the header.php file. So that works for me now.

Basically you just need to have some (working =)) code in your header.php file (or somewhere else that is always included) set the smarty variables you need on the global $xoopsTpl object.



5
Tiran_Kenja
Re: Embedded PHP

I've been trying to do the same for awhile... But I am fairly sure that it's not possible to implement things in php directly in templates (SMARTY don't seem to support it). So I have been looking for alternative ways of doing it. I tried manipulating the $XoopsTpl object from the end of the header.php file. But I can't seem to get it to work (I'm trying to include a file so I don't heve to reinsert everything everytime header.php is updated)

Anyone made something like that work?




TopTop



Login

Who's Online

190 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 190


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