gazpot0111645 Posted January 12, 2014 Share Posted January 12, 2014 Hi all. I have edited the $_LANG['globalsystemname'] variable and removed 'portal home' and added something more suitable as a pagetitle. Now when i go to the side menu of my site it has removed the link for portal home and added my pagetitle there. Can anyone help me with this? I don't see why my pagetitle should have to be portal home. Surely for SEO purposes a more detailed title would be beneficial. Regards Gary 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 12, 2014 Share Posted January 12, 2014 it might be helpful to see a screenshot of what you're seeing and what you want to change. if I understand what you want to do, then there are at least two ways to do it, but it would be easier to comment after i've seen what you're seeing! 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted January 12, 2014 Share Posted January 12, 2014 $_LANG are for Client Area links. If u edit it, this is not a change of the page links that WHMCS got. If u edit it, in a way to custom your main page intergrated with WHMCS, u must make it in a better way. As brian! said, better comments or a screenshot helps you to get a better answer.... 0 Quote Link to comment Share on other sites More sharing options...
gazpot0111645 Posted January 13, 2014 Author Share Posted January 13, 2014 So where i have ringed is what has changed. I have changed the $_LANG['globalsystemname'] to give my website a title and now the link in the side menu has changed from what used to say 'portal home' Thanks Guys - - - Updated - - - Take a look for yourself - http://www.hpgservers.com 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 13, 2014 Share Posted January 13, 2014 Create a new $_LANG. You could call it $_LANG['homepagenav'] and make it equals to Portal Home. Then in your template, you change {$LANG.globalsystemname} to {$LANG.homepagenav}. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted January 14, 2014 Share Posted January 14, 2014 Cheap UK FR Game Servers, Game Hosting, Game Provider, High Performance Game Servers. This is too big label for your link so it goes off your grid. If you change again to something smaller, it might be better. In the .tpl you can add links u want and name them as you want. $_LANG attributes are for WHMCS labels. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 14, 2014 Share Posted January 14, 2014 Dennis is absolutely correct - that's one of the ways I had in mind (I think it's the "correct" solution), but just remember that you should never alter the english.php language file (when you update whmcs with a version that includes language updates, this file will be overwritten) - so you're much better off using overrides - http://docs.whmcs.com/Language_Overrides btw - the file you should be looking to edit is line 6 of footer.tpl inside the portal directory... <li> <a href="index.php"> <img src="templates/{$template}/images/icons/support.gif" alt="{$LANG.globalsystemname}" width="16" height="16" border="0" class="absmiddle" /></a> <a href="index.php" title="{$LANG.globalsystemname}">{$LANG.globalsystemname}</a></li> so either follow Dennis' advice and create the new variable... or because your site seems to be only using English, you could be lazy, not bother with a new variable and just hardcode it! <li> <a href="index.php"> <img src="templates/{$template}/images/icons/support.gif" alt="Portal Home" width="16" height="16" border="0" class="absmiddle" /></a> <a href="index.php" title="Portal Home">Portal Home</a></li> replace Portal Home with whatever you want the link to be. 0 Quote Link to comment Share on other sites More sharing options...
gazpot0111645 Posted January 14, 2014 Author Share Posted January 14, 2014 Thanks guys, I appreciate your help. So just to confirm this is what i have done. I have edited my english.php language file and added $_LANG['homepagenav'] = "Portal Home"; I have kept $_LANG['globalsystemname'] = "Cheap UK FR Game Servers, Game Hosting, Game Provider, High Performance Game Servers."; and then replaced the globalsystemname in the footer.tpl to homepagenav. Does that make sense? So if there is an update to the language files i would need to make sure i add these back in? Thanks Gary 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 15, 2014 Share Posted January 15, 2014 Thanks guys, I appreciate your help. So just to confirm this is what i have done. I have edited my english.php language file and added $_LANG['homepagenav'] = "Portal Home"; I have kept $_LANG['globalsystemname'] = "Cheap UK FR Game Servers, Game Hosting, Game Provider, High Performance Game Servers."; and then replaced the globalsystemname in the footer.tpl to homepagenav. Does that make sense? So if there is an update to the language files i would need to make sure i add these back in? Thanks Gary Yes, basicly. I always add my custom 'code' at the buttom of the document so it can easily be copied over to the new language files - but you should follow brian!'s advise. I've never really looked much into the language overwriting, and if you accidently overwrite your language files without having a backup, then it's just tough luck. I learned that the hard way 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.