Jump to content

Portal Home


gazpot0111645

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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