Need help with own theme

Development related discussion.
User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Wed Aug 06, 2014 3:24 am

Oh haha but there's something weard when i do not fill in any information into the new role form it normally should show the error in the same overlay window but now it goes to the default new.phtml do you know how to fix this??
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Wed Aug 06, 2014 8:24 pm

Nevermind the normal theme has the same thing so its normal
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Wed Aug 06, 2014 9:57 pm

Alright the AdminCP is now done.
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Thu Aug 07, 2014 5:29 am

Alright this is very important, how can i get current theme path because i need to include a javascript whats into bootstrap/js/animated-progressbar.js
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Need help with own theme

Post by Jack » Thu Aug 07, 2014 9:42 pm

To include via PHP:

Code: Select all

require APPPATH . '/views/' . setting('theme') . '/path_to.file';
And for HTML:

Code: Select all

<script src="<?php echo Request::base('vendor/traq/views/' . setting('theme') . '/path_to.file'); ?>"></script>
But it is recommended to place JavaScript files into the "assets/js" directory instead.

User avatar
arturo182
Advanced Member
Posts: 151
Joined: Mon Mar 22, 2010 10:28 am
Contact:

Re: Need help with own theme

Post by arturo182 » Sun Aug 10, 2014 9:13 am

That's a pretty nice looking theme man. I like that it stretches nicely and looks more like an app than a website.
Traq, yo!

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Wed Aug 13, 2014 9:01 pm

Thank you very much
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Wed Aug 13, 2014 9:02 pm

Uhm Jack is there a way to change the editor????
Because I can't find a single file in the theme folder that will edit the editor
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

User avatar
Jack
Advanced Member
Posts: 666
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Need help with own theme

Post by Jack » Thu Aug 14, 2014 3:38 am

[quote="paulhobbel"]
Uhm Jack is there a way to change the editor????
Because I can't find a single file in the theme folder that will edit the editor
[/quote]
 
The editor is handled by a custom JavaScript library any textarea with the class of "editor" has the editor toolbar added to it.
 
However, textareas loaded by the default overlay feature are handled a little differently. But if you're using the Bootstrap modal instead of the default overlay feature then you may have to hook into Bootstrap somehow to add toolbar to it.
 
As for styling the editor, the CSS (in SCSS format) is located in the Traq dev tools repository.
Last edited by Jack on Thu Aug 14, 2014 3:42 am, edited 1 time in total.

User avatar
paulhobbel
Member
Posts: 28
Joined: Thu Jul 31, 2014 10:06 am
Contact:

Re: Need help with own theme

Post by paulhobbel » Fri Aug 15, 2014 6:49 am

Jack I hope you don't mind but I customized the likeaboss.js and the traq.js

https://github.com/paulhobbel/Bootstrap ... /master/js
Last edited by paulhobbel on Fri Aug 15, 2014 7:03 am, edited 1 time in total.
Bootstrap Theme for Traq here | Dutch Translation for Traq here | Theme demo here

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest