Jump to content


Photo

Themes and Customization

theme custom

  • Please log in to reply
8 replies to this topic

#1 daicom3

daicom3

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 23 August 2012 - 12:17 PM

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

#2 X2Jake

X2Jake

    X2 Engineer

  • Administrators
  • 1275 posts
  • LocationSanta Cruz

Posted 23 August 2012 - 02:08 PM

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
Jake Houser

Software Engineer at X2Engine

jake@x2engine.com

#3 justiceparty

justiceparty

    Member

  • Members
  • PipPip
  • 20 posts

Posted 27 July 2013 - 06:00 PM

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



#4 X2Jake

X2Jake

    X2 Engineer

  • Administrators
  • 1275 posts
  • LocationSanta Cruz

Posted 29 July 2013 - 08:16 AM

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


Jake Houser

Software Engineer at X2Engine

jake@x2engine.com

#5 Dendrobats

Dendrobats

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 19 August 2013 - 02:17 AM

And if I want to modifay theme for Yii where should I change it?



#6 X2Jake

X2Jake

    X2 Engineer

  • Administrators
  • 1275 posts
  • LocationSanta Cruz

Posted 19 August 2013 - 12:58 PM

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


Jake Houser

Software Engineer at X2Engine

jake@x2engine.com

#7 ironhide

ironhide

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 23 November 2016 - 09:20 AM

@x2jake  Would something like the attached screenshots be possible given the level of flexibility X2 offers? I'm trying to understand the lvl of effort with this?

Attached Files



#8 sgludovats

sgludovats

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 25 October 2018 - 09:22 AM

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???



#9 Justin

Justin

    x2force

  • Moderators
  • 4 posts

Posted 30 October 2018 - 11:48 AM

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







Also tagged with one or more of these keywords: theme, custom

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users