Jump to content

How to change theme just for clientarea.php ?


Recommended Posts

Issue: having a custom theme is great for public pages, but it's a mess when a user visits his client area... css conflicts, updates overwriting your custom code, continuous necessity to update your code  according to WHMCS updates... lot of wasted time.

So, my idea is:

  • using custom theme for any public page (index . php, index . php ? rp=announcements, index . php ? rp=knowledgebase , contact . php etc.)
  • but switch to six (or twentyone, or another standard theme) just for client area ( clientarea . php ? action=whatever) 

Being not possible to edit clientarea . php, I guess that the only way is some kind of hook... but I can't imagine how switching the theme inside of it.

(I guess that just a simple $ _ SESSION [ 'Template' ] = 'six';      wouldn't be enough...)

Any idea?



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.

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