PDA

View Full Version : Template System!



Adam
01-16-06, 10:06 PM
Hey!

I would like there to be a better template system for WHMCS. I mean the current one in place is okay. It would be best if we had access to the PHP files so we can add our little bits here and there. I don't know what Matt can do but there are bits here and there that I would like to edit. Maybe he can let us have access to the PHP files but have a lic. key where if it does not match the domain, IP and stuff it wont run?

UWebSmart
01-16-06, 10:35 PM
Hello,

I have to disagree on this one, I think the current template system is very good indeed. Its about the easiest I have seen and would not like to see it changed as its VERY easy and quick to implement into a current website.

Remember that most of the text can be edited by editing the language file.

Adam
01-17-06, 02:17 AM
Hello,

I have to disagree on this one, I think the current template system is very good indeed. Its about the easiest I have seen and would not like to see it changed as its VERY easy and quick to implement into a current website.

Remember that most of the text can be edited by editing the language file.

I agree too! Just that for example, I would like to print Welcome {NAME} of client on the client area, since we can't edit that I can't do that. Or if I want to put some PHP on one page, I could't Maybe Matt, can have like a [PHP]where we can input custom PHP scripts or other stuff.

I think that WHMCS should have a better template system thats all. I'm not trying to change the template system just make better one. I'll come up with a list of [STUFF] in the next few days!

retrointeractive
02-10-06, 02:35 AM
I would love to see a little bit more customization avaible, as well. I've just started using this software, and it IS very easy to integrate, but easy isn't always better for everyone.

I'm OK with the way the current template files work, but I would love to see a subset of template files... one for each page. Then if someone wants to customize only the header/footer they can just mess with the main template files, but if you're like me, you can also go into the subpage templates and edit those any way you like. I understand that you want to protect the source and can't release the PHP, but it would be nice if I could at least ditch the:

» Client Area
» My Invoices
» My Products and Services
etc...

and replace them with h1's or h2's so they match the rest of our site, a crucial part of maintaing any site's professionalism.

We may be the minority, but some of your clients are designers. It's in our blood to tweak the heck out of everything. Please let us do so!

bAsH
02-10-06, 05:50 AM
The actual template system is very good but, an access for certain files was a good idea :D

Adam
02-11-06, 03:31 AM
I think, what Matt should do is have it so we can view all code source and still have the template system. Than he should still have the part to link back to his site incoded and have a lic. file incoded as well.

Matt
02-11-06, 07:59 AM
Hi,

The system will always be encrypted. It is impossible to protect the script if it is not encrypted as then any license checking code could just be removed. However, I am looking in to implementing a more fully customisable template system to allow furthur customisations of the system.

Regards,

Matt

bAsH
02-11-06, 12:02 PM
But you can give structure of files for example for payement methods for script in php personal methods etc..., no?

Anthony
04-22-06, 05:50 PM
Sorry for bringing this back up...

What about just encoding the licensing system, but leaving the other php pages open sourced?

I'm running away from Lpanel for this very reason (they have alot of features, but lack support and some of those cool features just barely work).

I'm not a programmer, but I do know HTML and how to code in a layout and adding some custom fields, so it would still be useful instead of being limited all the time.

Just a thought...

Matt
04-22-06, 05:58 PM
All the client area files in V2.4 are now open source. This is already a huge step forward in allowing more customisation. What else is there you want to customise? You can add up to 5 fields on the clients profile and up to 5 fields on each product - where else do you want custom fields?

Matt

Anthony
04-22-06, 06:01 PM
Sorry about that, I read this post before looking at 2.4 changelog :)

What about the admin interface? This part isn't really important, but it would be cool to be able to customize it also.

Matt
04-22-06, 06:23 PM
No, the admin interface isn't customisable.

Matt

retrointeractive
04-23-06, 12:48 AM
I'm thrilled just to be able to customize the client area, but if you were going to improve upon this idea any further, I would like to be able to do the same with the affiliate, login, download, support, etc pages that clients or visitors are likely to be using. I don't have a strong need for most of these pages, but I would use them if they were customizable.

I don't care about the admin interface, no one's going to see it other than members or our organization and it's much nicer looking now than before. You could convert to using divs and CSS for the general layout of the admin area rather than using all tables as it is now. That would be an easy way to let people customize it if they desire.

keith70
04-27-06, 11:53 AM
I agree with customization of the other areas also.

I would even like to be able to customize the admin area, or at least be able to add links to other pages.

steven.c
07-04-07, 05:30 PM
I agree with customization of the other areas also.

I would even like to be able to customize the admin area, or at least be able to add links to other pages.

Is this possible to do yet? We'd like to add another drop down tab with links to custom pages within the admin area.

steven.c
07-04-07, 05:52 PM
I agree with customization of the other areas also.

I would even like to be able to customize the admin area, or at least be able to add links to other pages.

Is this possible to do yet? We'd like to add another drop down tab with links to custom pages within the admin area.

Found the menu links in the admin area can be editted via the js file. Just looking for how to add pages accessible by those only logged in as admin.

steven.c
07-04-07, 05:58 PM
Spoke too soon...I see I can easily add links to existing menu tabs, but how can we go about adding additional menu tabs?

Matt
07-04-07, 06:19 PM
You cannot add new menu buttons in the admin area - only links in the existing menus. It is the client area that is fully customisable through templates. The admin area is not.

Matt

steven.c
07-04-07, 06:22 PM
Spoke too soon...I see I can easily add links to existing menu tabs, but how can we go about adding additional menu tabs?

Alright, we'll try to make that work. Can we add a page using the article in the knowledgebase but limit access to it based on the level of admin that is logged in?

Matt
07-04-07, 06:23 PM
The code in the knowledgebase is for the client area.

steven.c
07-04-07, 06:26 PM
The code in the knowledgebase is for the client area.

Is there anyway that pages could be added to the admin area utilizing the same backend system that verifies one is an admin for the other pages?

We'd like to create a staff area in the same login to handle some payroll/schedule tasks among a few other things.

MACscr
07-04-07, 07:04 PM
The code in the knowledgebase is for the client area.

Is there anyway that pages could be added to the admin area utilizing the same backend system that verifies one is an admin for the other pages?

We'd like to create a staff area in the same login to handle some payroll/schedule tasks among a few other things.

yes, i dont know the variable name off the top of my head, but you will have to hide a category and its content from everyone else except admins using something like {if $adminloggedinstatus} show this {/if}

Im not completely sure if thats the session name, but im sure you can figure that out.

Matt
07-04-07, 07:10 PM
You can't use smarty template variables in a custom PHP page :)
That is the name of the session variable you would need to check though to see if the user is logged in as an admin.

Matt

steven.c
07-04-07, 07:11 PM
You can't use smarty template variables in a custom PHP page :)
That is the name of the session variable you would need to check though to see if the user is logged in as an admin.

Matt

:) Thanks, we'll play around with it.