Smarty at another Location and with newer version

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Florian Fiegel
Regular
Posts: 21
Joined: Fri Feb 15, 2008 12:38 pm
Location: Germany/Bochum
Contact:

Smarty at another Location and with newer version

Post by Florian Fiegel »

Hi,

on my webspace I already got Smarty at another location with a newer version cause I use it for a couple of other pages.

My first question is: Can I use a newer version of Smarty without problems to compability?
And if this works: Where can I define the SMARTY DIR to use the newer version?

greets
FF
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Smarty at another Location and with newer version

Post by garvinhicking »

Hi!

Yes, you can use a newer smarty version; s9y uses Smarty unmodified. Best thing is if you copy your Smarty files into the s9y bundled-libs directory, or set a symlink.

If you absolutely must patch the SMARTY_DIR, look for it in the include/functions_smarty.inc.php file in the serendipity_smarty_init() function.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Florian Fiegel
Regular
Posts: 21
Joined: Fri Feb 15, 2008 12:38 pm
Location: Germany/Bochum
Contact:

Post by Florian Fiegel »

Thx.

Cause I am going to integrate a menu and a few other things with s9y and the "normal" pages, i have to use Smarty from the other directory. So it seems i have to make a symlink.

But to be honest: I don't know how to create a symlink. Do you have any link to a tutorial? :oops:
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Lookup google for a tutorial. But it does not matter if you copy the files over, because your menu and the other parts can be interpreted by serendipity's smarty; another Smarty object instance will not be involved.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply