I am try make only one modification in NukeC 2.1.
I would like that the field "Price" accepted letters (a, b, c, d, e, f...). The default only accepted numbers.
When I post new Ads, I fill the field "Price" of the form with numbers and works normally. E.g.: 31.33 or 51.999
Result in view Ads: Price : US$ 31.33 or 51.999.
But when I fill the field "Price" with letters they're not shown when I visualize the Ads, or either, it's blank. E.g.: Price : US$
Which the modifications that I must make so that the field "Price" has accepted letters (a, b, c, d...) and when visualizes the Ads, either shown perfectly? Price : US$ ABCDEF
Please, it is very important for me this modification. I am learning and initiating php and mysql through phpnuke. This doubt kill me days.
.../modules/NukeC/functions.php
Ads Theme
function themeads
Code:
if (($xprice != "") and ($xprice != 0)) {
echo "<b>"._NUKECADSPRICE."</b> : ".formatPrice($curr,$xprice);
}
Code:
function formatPrice($currency,$valueprice) {
return $theprice = "$currency ".number_format($valueprice,2);
}
I was modify the type of the field "price" for "text" and "varchar" of the table "nuke_ads_ads", but it was work.
E.g:
Code:
`price` int(11) NOT NULL default '0',
change for:
Code:
`price` varchar(255) NOT NULL default '',
`price` text NOT NULL,
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