⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Share your Themes



fdias
  • profile picture
  • Member

Posted 31 January 2012 - 16:40 PM

Hello all!

I've been using Grocery Crud for a little while now and been reading the foruns a lot.
I can say that I know the basics and would like to help.

I propose we post our custom themes here so we could share with all members. I'm developing a theme based on the flexigrid theme and will post it soon.

I hope this is OK with the admin, if not let us know how to proceed on sharing these themes.

PS. Thanks for all your hard work, It's indeed appreciated!

Cheers,

fdias

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 31 January 2012 - 19:19 PM

Of course it's ok. It's my pleasure ;)

fdias
  • profile picture
  • Member

Posted 02 February 2012 - 12:54 PM

Still working on my theme based on the flexigrid theme and will upload as soon as it's done.

Cheers!

fdias
  • profile picture
  • Member

Posted 02 February 2012 - 18:58 PM

I'm probably missing something, but how do I add a new theme?

I thought I just needed to create a new folder inside the themes folder (following the file structure).
I made a copy of the flexigrid folder, changed some styles and icons and tried to call this new theme "acme" but nothing happens.
If I rename this to flexigrid it works, but it seems that flexigrid and datatables are hardcoded and I cannot simply add another theme.

Please let me know what I'm doing wrong.

Cheers!

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 02 February 2012 - 19:33 PM

[quote name='fdias' timestamp='1328209119' post='401']
I'm probably missing something, but how do I add a new theme?

I thought I just needed to create a new folder inside the themes folder (following the file structure).
I made a copy of the flexigrid folder, changed some styles and icons and tried to call this new theme "acme" but nothing happens.
If I rename this to flexigrid it works, but it seems that flexigrid and datatables are hardcoded and I cannot simply add another theme.

Please let me know what I'm doing wrong.

Cheers!
[/quote]

To activate your theme you just have to add the set_theme at your new grocery_CRUD object. You can see an example at: http://www.grocerycrud.com/crud/example/offices_example . It is not hard cored you have to just add your theme there. If you want by default to choose the acme theme, then you have to go to application/libraries/grocery_crud.php at around line 2209 and change the default theme to "acme" and that's it.

I just want to inform that the "themes" is not so easy just to add a theme (as a wordpress theme for example) because is related with the core. So you can have a try, but have this in mind. It's not only a view with css files, as you can see it has many other things also that are required.

If you have any other problems just tell me.

fdias
  • profile picture
  • Member

Posted 10 June 2012 - 02:52 AM

Took me a while but I finally have my custom "theme". I don't know if you can really call it a theme as it's just new icons and a few changes on the CSS file.

Anyway I'm posting a screenshot and it anyone wants it I'll release a zip with the necessary files.

[img]http://s11.postimage.org/5qr8fd2dv/gc_grey_theme.png[/img]

Cheers.

Kaabi
  • profile picture
  • Member

Posted 17 September 2012 - 13:26 PM

only 1 skin ? c'mon guys we need to see more

proczekweb
  • profile picture
  • Member

Posted 18 September 2012 - 10:44 AM

http://dl.dropbox.com/u/40322244/datatables.zip

little modified datatables (realy dont like border-radius), with drag and drop ordering.

putoyair
  • profile picture
  • Member

Posted 18 March 2013 - 00:48 AM

Took me a while but I finally have my custom "theme". I don't know if you can really call it a theme as it's just new icons and a few changes on the CSS file.

Anyway I'm posting a screenshot and it anyone wants it I'll release a zip with the necessary files.

gc_grey_theme.png

Cheers.

Could you please post your theme?


heruprambadi
  • profile picture
  • Member

Posted 18 March 2013 - 02:31 AM

anyway, jtable sounds great too if you wanna create new table theme. is there anyone used this ?


davidoster
  • profile picture
  • Member

Posted 19 March 2013 - 16:34 PM

jTable is another fully featured CRUD system like Grocery CRUD not an option for an additional theme!


heruprambadi
  • profile picture
  • Member

Posted 20 March 2013 - 14:27 PM

oh really ? coz i used it for my GCrud theme, sir.


Rafael Alves
  • profile picture
  • Member

Posted 20 March 2013 - 20:53 PM

Hi @heruprambadi share with us!  :D

​I think gave many modification, right?


kenshicu
  • profile picture
  • Member

Posted 20 March 2013 - 22:11 PM

I made some modifications to flexigrid theme, I put the buttons bootstrap and relocate the button to search

 

download: http://www37.zippyshare.com/v/80671613/file.html

 

flexigrid_buttons_bootstrap.jpg


sachin vairagi
  • profile picture
  • Member

Posted 21 March 2013 - 03:26 AM

To kenshicu, i have download your theme but it is giving following error

 

Fatal error: Call to undefined method grocery_CRUD::set_js_lib() in D:\wamp\www\CodeIgniter_2.1.0\assets\grocery_crud\themes\flexigrid\views\list_template.php on line 3


sachin vairagi
  • profile picture
  • Member

Posted 21 March 2013 - 09:46 AM

ok got it now, i was using old GC library. :)


kenshicu
  • profile picture
  • Member

Posted 21 March 2013 - 12:41 PM

good, I use GC 1.3.4 :)


meyercr
  • profile picture
  • Member

Posted 21 March 2013 - 19:13 PM

I made a slight improvement to flexigrid/views/list_template.php.

 

It now conditionally displays the paging dialog, only if required.  Meaning, if you are displaying <= the default rows per page, don't bother with the paging display.

 

Starts at line 115:

	<div class='search-div-clear-button'>
                <input type="button" value="<?php echo $this->l('list_clear_filtering');?>" id='search_clear' class="search_clear">
        </div>
  	</div>
+ 	<?php if( $total_results > $default_per_page ){ ?>
  	<div class="pDiv" >
  		<div class="pDiv2" >
  			<div class="pGroup">

Then to close out the conditional (starting 4 lines from EOF)

  	</div>
+ 	<?php } else {?>
+ 	<div class="pDiv" style="height: 27px" >
+ 	</div>	      
+ 	<?php } ?>		   
  	<?php echo form_close(); ?>
  	</div>
  </div>

 

Note: This is the latest code from github => https://github.com/scoumbourdis/grocery-crud

(commit:  9a3f5c18575de74f25ded3d3b5d5e7921d884b86)


davidoster
  • profile picture
  • Member

Posted 25 March 2013 - 13:55 PM

oh really ? coz i used it for my GCrud theme, sir.

 

 

I believe you used one of the themes that jTable has. Not the jTable itself!!!

What you used is the theme roller, http://jtable.org/Themes which is also available and you can use it for the datagrid theme that GC has!


heruprambadi
  • profile picture
  • Member

Posted 27 March 2013 - 01:53 AM

oh god you right -_- you win this time !