elfsoup Posted December 18, 2009 Share Posted December 18, 2009 Perhaps I'm just a dummy, but after days and hours I could not find some of the tpl files that needed to be edited. So after my findings and with everything working just awesome I decided to modify the instructions a little... -------------------- Install Instructions -------------------- 1. Place the namespinner.tpl file in your /whmcs/templates/ "Not in the template you are using" 2. Change $maxspins variable to adjust number of suggested names 3. Change $showdotcom, $showdotnet, $showdotcc, $showdottv, $sensitivecontent to your liking 4. You can setup multiple sorts using the $sort1, $sort2, $sort1order, $sort2order variables. 4B. In the templates/orderforms/ "Template you are using for your ordering" 5. In adddomain.tpl add the line: {include file="namespinner.tpl"} directly before the last </form> tag 6. In configureproductdomain.tpl add the line: {include file="namespinner.tpl"} directly before the last </form> tag 7. In the domainchecker.tpl add the line: {include file="namespinner.tpl} directly before the last </form> tag 8. Block tpl access from the web (http://forum.whmcs.com/showthread.php?t=18709) 0 Quote Link to comment Share on other sites More sharing options...
spooky69 Posted December 31, 2009 Share Posted December 31, 2009 Same error as dataviking and the others - looks like style has been lost and there is no output along with no error messages. 0 Quote Link to comment Share on other sites More sharing options...
elfsoup Posted December 31, 2009 Share Posted December 31, 2009 Even with the changes I showed above. Strange, I had nothing but issues trying to get this to work until I did what I stated. Sorry I couldn't be of more help to you. 0 Quote Link to comment Share on other sites More sharing options...
spooky69 Posted December 31, 2009 Share Posted December 31, 2009 Already had it set like that but no good. I would really like to be able to use this - hoping webworker can shed some light. 0 Quote Link to comment Share on other sites More sharing options...
rudberg Posted January 31, 2010 Share Posted January 31, 2010 it probably will work if you use an absolute path instead, like: {include file="/WHMCS_DIRECTORY/templates/{$template}/namespinner.tpl"} but I know the above does not work since you can't include the {$template} in another Smarty-tag, so if you just know how to get another smarty-tag within a first, you should be set. Unfortunately I don't have enough time to try all ways out myself right now. 0 Quote Link to comment Share on other sites More sharing options...
ChrisGooding Posted January 31, 2010 Share Posted January 31, 2010 Im sure it doesnt need the smart tags around the variable, it should work without it something like... {include file="/WHMCS_DIRECTORY/templates/$template/namespinner.tpl"} If it doesn't you may need to add some full stops before and after the variable like this..... {include file="/WHMCS_DIRECTORY/templates/.$template./namespinner.tpl"} Cant remember fully, and not in a position to test it for you atm..... I'll have a look later once Im back in the office. 0 Quote Link to comment Share on other sites More sharing options...
WebWorker Posted January 31, 2010 Author Share Posted January 31, 2010 If you decided to stick the namespinner.tpl into your custom template folder it should work like this: {include file="customtemplatefolder/namespinner.tpl} Replace customtemplatefolder with the name of your custom template folder. By default Smarty will try to include things relative to the general template directory which is /whmcs/templates/ 0 Quote Link to comment Share on other sites More sharing options...
DataViking Posted March 1, 2010 Share Posted March 1, 2010 still no luck in my end 0 Quote Link to comment Share on other sites More sharing options...
WebWorker Posted March 1, 2010 Author Share Posted March 1, 2010 DataViking, I am looking at your website and your screenshot and I don't see any errors that would help me figure out what's going on. It seems that you're using domainchecker.php, which I can verify as working on my WHMCS. Have you tried enabling debug mode in the script? This can give you some extra information such as communication error with the enom API. 0 Quote Link to comment Share on other sites More sharing options...
solokron Posted March 4, 2010 Share Posted March 4, 2010 Yep, used to work, not any more. Getting same missing header, footer, stylesheet and namespinner not there like everyone else. 0 Quote Link to comment Share on other sites More sharing options...
ckung Posted March 5, 2010 Share Posted March 5, 2010 Hi, I have PHP Version 5.2.6-1+lenny6 and WHMCS 4.1.2. In addiion, I also have jwhmcs integration with Joomla. Instead regular default folder "portal" under templates directory, I need to change to jwhmcs-portal. I followed the instruction for enom spinner 1.5 and still can't get it to work. Can you advise where I should check? Thanks! Charles 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted March 12, 2010 Share Posted March 12, 2010 Did someone test this with latest update 4.2.1? 0 Quote Link to comment Share on other sites More sharing options...
WebWorker Posted March 19, 2010 Author Share Posted March 19, 2010 I have not tested 4.2 yet, but from what I can see the changes should not affect this addon. I will be upgrading to 4.2 in the coming week and will report back here. 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted March 19, 2010 Share Posted March 19, 2010 Thanks WebWorker, we have indeed updated to 4.2 and it's working perfectly fine. 0 Quote Link to comment Share on other sites More sharing options...
KevinTH Posted March 20, 2010 Share Posted March 20, 2010 Using Version: 4.2.1... Installed it out of the box and it worked (well kinda) Works and displays perfectly well in cart But domainchecker (Simple Domain Search) is messed up...See https://www.duplika.com/clientes/domainchecker.php for an example...enter in a domain name and tick one of the tlds....the namespinner stuff is really messed up visually. I found out why. All the code in namespinner.tpl for domainchecker uses entirely different css than for cart. I copied the cart part over domainchecker part and I now get a visually pleasing result. See http://www.a2z-4u.com/domainchecker.php for an example.. But for domainchecker (Bulk Domain Search) where you enter many domains it just won't work...Not sure if it ever will..I can't be bothered.... 0 Quote Link to comment Share on other sites More sharing options...
WebWorker Posted March 26, 2010 Author Share Posted March 26, 2010 I just finished the upgrade to 4.2.1 and everything works as expected. To all of you having issues, please note that this addon is made to match the web20cart template. 0 Quote Link to comment Share on other sites More sharing options...
Manchester Web Hosting Posted March 26, 2010 Share Posted March 26, 2010 Getting same missing header, footer, stylesheet and namespinner not there like solkron. If i cahnge path to full as above the at least the domainchecker page appears but no results. Debug does not even work. Im using latest 4.2 which above states is working...any chance you can share how you got yours working...this would be an excellent addin if i could get it to work 0 Quote Link to comment Share on other sites More sharing options...
WebWorker Posted March 26, 2010 Author Share Posted March 26, 2010 There's pretty explicit instructions included in the README.txt. Are you sure you placed the namespinner.tpl in the correct location? 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted March 27, 2010 Share Posted March 27, 2010 Well...this just driving me crazy...any help is appreciated. It simply not working for me...i had this working in the 3.x version but after moved to 4.x is not working at all. is not showing the css and also not returning any domain suggestion Debug is showing nothing Thanx! 0 Quote Link to comment Share on other sites More sharing options...
andy18 Posted March 30, 2010 Share Posted March 30, 2010 anyone able to get this working? I tried this on our dev and production installation of the WHMCS and can't get it load. I am following the installation instruction after downloaded the zip file. We have a custom template billingv4 which I tried changing the path as {include file="billingv4/namespinner.tpl} for the adddomain.tpl and configureproductdomain.tpl which still the same. To confirm again, both the .tpl should be the file in the templates/orderforms/web20cart and for domainchecker.tpl it will be under billingv4 template directory? 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted April 6, 2010 Share Posted April 6, 2010 Yep, used to work, not any more. Getting same missing header, footer, stylesheet and namespinner not there like everyone else. Guys I'm seeing the same behavior. I turned on php display_errors and I'm getting this error: No database selected Looks as though in my setup the mysql_connect is not getting called. Same case for me... worked a bit ago and today just stopped. I'm sure something changed, but I'm just not sure what. The rest of WHMCS works fine, however. Just a problem with trying to use mysql select statements within templates. -Eric 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted April 7, 2010 Share Posted April 7, 2010 Found my issue. Turns out there was an action hook that I was using that had mysql calls. Those calls prevent me from opening the database for this mod. I'm still trying to find a solution, though. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted April 7, 2010 Share Posted April 7, 2010 I found the issue with my problem and a solution. For anyone having the same issues, what I saw was that a hook that I had setup was using mysql calls. This overrides any connections that this mod makes. In order to to fix my problem, I had to specify the database connection in the namespinner.tpl file. This is what I used... Just before the first mysql_query call, add these two lines: include(ROOTDIR."/configuration.php");$whmcsmysql = @mysql_connect($db_host,$db_username,$db_password); Just after the last mysql call, add this: @mysql_close(@whmcsmysql); Hopefully this helps someone else. -Eric 0 Quote Link to comment Share on other sites More sharing options...
craigedmonds Posted April 14, 2010 Share Posted April 14, 2010 Hi, please provide more understandable instructions for version 1.5. Where do we place namespinner.tpl exactly? in /whmcs/templates/ or /whmcs/templates/default?? 1. Place the namespinner.tpl file in your /whmcs/templates directory.2. Change $maxspins variable to adjust number of suggested names 3. Change $showdotcom, $showdotnet, $showdotcc, $showdottv, $sensitivecontent to your liking 4. You can setup multiple sorts using the $sort1, $sort2, $sort1order, $sort2order variables. 5. In adddomain.tpl add the line: {include file="namespinner.tpl"} directly before the last </form> tag 6. In configureproductdomain.tpl add the line: {include file="namespinner.tpl"} directly before the last </form> tag 7. In the domainchecker.tpl add the line: {include file="namespinner.tpl} directly before the last </form> tag 8. Block tpl access from the web (http://forum.whmcs.com/showthread.php?t=18709) Kindest Regards Craig Edmonds 0 Quote Link to comment Share on other sites More sharing options...
manndaar Posted April 26, 2010 Share Posted April 26, 2010 I found the issue with my problem and a solution. For anyone having the same issues, what I saw was that a hook that I had setup was using mysql calls. This overrides any connections that this mod makes. In order to to fix my problem, I had to specify the database connection in the namespinner.tpl file. This is what I used... Just before the first mysql_query call, add these two lines: Just after the last mysql call, add this: Hopefully this helps someone else. -Eric I am very bad at PHP. will you please paste whole new updated namespinner.tpl with addition to your "mysql_query call". Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.