|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
maz Smarty n00b
Joined: 07 May 2006 Posts: 2
|
Posted: Sun May 07, 2006 12:36 pm Post subject: Adding a javascrip (non-smarty) mod to a smarty template |
|
|
I am sure this is simple and straight forward to someone experienced in smarty.
I have posted a help request here too
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=7873
I have a 'classifieds' script which uses smarty templates. I also bought a 'mod' for this script. The mod is a bit older and is not based on smarty.
The mod contains some php and javascript.
I have got the 'admin' side of the mod to work. So I'm half way there. I just need someone to help me incorporate the user side. Just need to include the mod into the smarty template.
If you can help, please contact me on
mazharandsameena at yahoo.com |
|
Back to top |
|
radar Smarty Regular
Joined: 06 Oct 2006 Posts: 64
|
Posted: Tue Mar 06, 2007 7:48 pm Post subject: |
|
|
This seems to me that is very easy to complete. This being the case I am not going to put myself into the ring in doing but i will tell you how (if the need is still here)...
Smarty has a literal tag, it is how you can put CSS and Javascript code right onto a template file...
Code: |
{literal}
// javascript code here
{/literal}
|
That is all you need to get that working. (if you still need it of course)... Hope it somewhat helps. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|