Jump to content

a little help with smarty plugins...


blueman378

Recommended Posts

Hi guys.

im using smarty as the templating engine for my forum

well heres what im trying to do

 

{level_to_name level={id_to_detail id=$posts[posts].Posterid detail=level}}

 

but thats jsut outputting }

 

any ideas how i would go about doing this?

 

its two functions, one takes an id and gets its description from the database.

 

the other takes an id and gets details about a user;

 

so they both work fine on thier own.

 

so basically thyis is what im trying to do

 

use id_to_detail to get the users level (eg 4)

 

then use level_to_name to change that to a name (eg Moderator)

 

any ideas on a clean way to do this?

Link to comment
https://forums.phpfreaks.com/topic/131438-a-little-help-with-smarty-plugins/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.