Support Forums

Add Param to function

This is a discussion on Add Param to function within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I'm trying to add param to the function feature_listings_vertical but I think I miss something. I would like to add ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-25-2008, 10:54 AM   #1
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 285
Rep Power: 19
hel68c is just really nice hel68c is just really nice
Default Add Param to function

I'm trying to add param to the function feature_listings_vertical but I think I miss something.

I would like to add the param language to this function

I put:
PHP Code:
function smarty_function_feature_listings_vertical($params$language, &$smarty)
...
if (
$language=='fr')
            {
            
$output.= "<a href='" $link ."'><b>"dot($crs[name_fr],17) . "</b>".$img_break dot($loop[$x][description],29) . $img_break ;            
            }
            else
            {
            
$output.= "<a href='" $link ."'><b>"dot($crs[name],17) . "</b>".$img_break dot($loop[$x][description],29) . $img_break ;
            } 
In the template I have this
Quote:
{feature_listings_vertical number=5 language='fr' table_attr='width="100%" cellspacing="9" cellpadding="2" class="texte_vedette_vert" style="color:#000066;"' td_attr='class="texte_ent_vedette_vert" valign="middle" align="center" colspan="2"' }
I don't know why, but it can't recognize the language.
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)

Last edited by hel68c; 11-25-2008 at 03:29 PM.
hel68c is offline   Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php function seymourjames Modules / Plugins / Modifications 3 08-04-2008 12:43 PM


All times are GMT -4. The time now is 12:27 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0