Jump to content

Lukemob

Retired Forum Member
  • Posts

    12
  • Joined

  • Last visited

About Lukemob

Lukemob's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hello, I'm using a Czech text in the invoices and the characters are not showed properly. Where can I change the encoding? Thank you
  2. Hi, I have a small problem. Each time I want to connect DB from tpl file it doesn't work. It shows: NULL Code in .tpl: {php} function ht_getPrice($id="", $currency="", $period="") { $query=mysql_query("SELECT ".$period." FROM tblpricing WHERE relid='".$id."' AND currency='".$currency."'"); while($row=mysql_fetch_array($query)) { $price=$row[$period]; } return $price; } $test=ht_getPrice("68","1","monthly"); var_dump($test); {/php} If I include dbconnect.php, it stops showing anything. Any ideas?
  3. Hi there! I have a small problem, I have made own language file in lang/ folder.. this works ok. I have made my own templates with Czech text in it, this also works ok. But the problem comes when I want to edit eg. email templates or when I post announcement - with Czech characters like ř č ů etc. I think the problem will be in DB encoding setting, its currently in cp1250_czech_cs What should it look like? I think querying "SET NAMES" would help while connecting to DB.. Any ideas? Thanks ..!
  4. even renaming of the functions doesnt help..
  5. function redirect($to,$secs="") { if($secs!=$null) { echo '<META HTTP-EQUIV="Refresh" CONTENT="'.$secs.'; URL='.$to.'">'; } else { echo '<META HTTP-EQUIV="Refresh" CONTENT="3; URL='.$to.'">'; } }
  6. The next error: Fatal error: Cannot redeclare redirect() (previously declared in /home/www/pozdisek.cz/subdomeny/wl/whmcs/whmcs/include/_functions.php:15) in /home/www/pozdisek.cz/subdomeny/wl/whmcs/whmcs/include/_functions.php on line 21
  7. Next problem.. I have my own language file Czech.txt in lang/ folder and when I try to set the language to Czech.. it says: Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www/pozdisek.cz/subdomeny/wl/whmcs/whmcs/dbconnect.php(0) : eval()'d code on line 347
  8. Aha I didn't know about this function, I will try.
  9. My own functions.. is there a possibility that some function is the same-named as the functions from WHMCS and that's causing errors? But well, I know for sure.. that I have no function called outputClient*** in my functions. Should it work normally?
  10. Hello guys, when I want to add own page (after http://wiki.whmcs.com/Creating_Pages) and edit the code a bit. eg. import own functions and give there some if-conditions, the script stops to work. Code here: http://pastebin.com/yZL1XL1Q How should I do it? What should I change? Thanks..
  11. Hmm well. The problem is I can't see that file not even in the rar file I will try to download it from whmcs.com and re-upload. Thanks for reply anyway
  12. Hello users. I'm using WHMCS system, and I was about to get own template to work with it. I found this tutorial from whmcs.com: http://wiki.whmcs.com/Creating_Pages saying how to add custom pages. I did so, and when I went in browser to: domain.com/whmcs/custom.php just a white background with nothing in it. I think it's a problem of PHP code, because I also code PHP. I saw a line: require("includes/clientareafunctions.php"); - and after I went to directory includes to see if the files is really there, and it wasn't. I saw only "clientfunctions.php" which is not needed by the script as I see. I'm using version 3.7.1.. do you know where could be the problem? Many thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated