Jump to content
X2Community Forums

Themes and Customization


Recommended Posts

I am truly impressed with the platform and look forward to future releases.

 

The default theme and only theme is "x2 Engine".

We plan on developing our own theme... has anyone else successfully done so?

 

Has anyone come across customization restrictions?

 

Thanks in advance for your comments.

 

daicom3

Link to post
Share on other sites

This discussion was carried out via Private Message, but I will post the relevant information here for reference:

 

Hi there!

 

Sorry, I'm in the middle of setting up a new build for release and I've been slower on the forums than usual. About making a new theme: It is definitely possibly though we haven't seen anyone else try yet. The restrictions you are talking about refers to the small logos we include with our application. Out of respect for the authors of the software, we'd really prefer if those are left in, especially given that they're fairly small and non-intrusive.

 

Here's your options going forward for making a new theme:

 

1) You can edit the CSS files to your heart's content. You can make a copy of the themes/x2engine folder and go into the CSS and start screwing around with it. The CSS is decently organized, and you should be able to navigate around there fairly easily. If you need any assistance finding your way through the CSS I can refer you to another developer who deals a bit more with design than I do.

 

2) You can build a new theme from the ground up. This is more difficult and will probably require some knowledge of the Yii framework. You would want to make a new folder in the themes directory, and begin editing files. You'll need layouts, most importantly themes/your_theme/views/layouts/main.php and themes/your_theme/views/layouts/column3.php. If you want to go this route, you'll need to include our logos to not have any issues with the software. The three files that should be included are defined by these three lines of code. Make sure the ID of the element matches what is listed here:

 

 

<?php echo CHtml::image($themeUrl.'/images/x2touch.png','',array('id'=>'x2touch-logo')); ?>

<?php echo CHtml::image($themeUrl.'/images/x2footer.png','', array('id'=>'x2crm-logo')); ?></a>

and

<?php echo CHtml::link('',array('/site/page','view'=>'about'),array('id'=>'main-menu-icon'));?>

 

 

Where $themeUrl is obtained by calling

Yii::app()->theme->getBaseUrl();

 

 

We would absolutely love to see come up with alternate themes for the software and I wish you luck!

 

Jake

Link to post
Share on other sites
  • 11 months later...

Where in the system do you tell it which theme to utilize?

Also, under Change Settings, Theme, you can edit some basic items and then save that 'light' theme. Where does it get saved to?

How can I made it that all users use the 'light' theme that I created by default?

 

thanks

Carlos

Link to post
Share on other sites

So this is a slightly different use case of the word "Theme" as in the post I had made before, I am referring to Yii's theme system which allows for changing the layout / display of PHP files in the software.

 

The new system that we call themes is something different, as it is a database stored piece of information that simply changes colors in the software. All of this data is stored in the "theme" column in the x2_profile table in the database.

 

I don't know that there's a way to force users to use a theme, but you could just manually copy the theme column or run an SQL query to update all the records. Also, the themes themselves are stored as objects in the media table.

 

Jake

Link to post
Share on other sites
  • 3 weeks later...

As I listed in my first reply to the thread, you'd want to modify the contents of the /themes/ directory. Our theme is called "x2engine" but you could easily create your own folder... however, this will remove all of our CSS and all images in our theme folder!

 

My big recommendation is to make a copy of our CSS to your own theme, edit the protected/config/main.php config file to use your theme, and then modify the copied CSS so still have something to work with rather than starting from scratch.

 

Jake

Link to post
Share on other sites
  • 3 years later...
  • 1 year later...

Guys... I´m just trying to personalize the theme colors and I can´t do that... I tried into differente versions of x2crm and just can´t change colors, export the current theme or make any change... It´s just possible to set the different themes that software have, but the colors not correspond to the company colors and I must change it...

Someone can help me on what to do, what to change in each files to create a new theme or just can customize the current???

Link to post
Share on other sites

Hi sgludovats! Would you mind telling us what version of X2 you have?

 

I believe you can further customize the themes we have by modifying the themes itself. Below the default themes are background, content, links etc options below

where you can chose your desired colors. I'm not quite sure how you want to change it? Is it possible if you can elaborate on this? 

 

Sincerely,

Justin

Link to post
Share on other sites
  • 4 weeks later...

Hi, I tried from many different ways to change the colors when setting one of the themes that´s is provided in X2CRM as defaults... It just doesn´t work for me.. I tried to select themes then change the correspondent colors, or try to export the current theme but it just doesn´t work...  I even tried to change parameters in MySQL database in table named profile, just setting different colors in an user profile but it´s not reflecting any changes and not saving any changes that I do in profile tab for customize the theme color...

Link to post
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.

Loading...
×
×
  • Create New...