Carbon Theme - Removing Date and Views?
Aristotle
Joined: 2002-12-23
Posts: 17 |
![]() |
I cant seem to locate where I can prevent the Date and Views info from showing up on either the albums or images? When going to Edit Album, I can uncheck Album Owner or Image Owner, but where can I disable the display of either the Date or Views? Gallery version = 2.1.1 core 1.1.0.1 |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
This can be configured in the album.tpl file (located in themes\carbon\templates\) You will see a section similar to this: {g->block type="core.ItemInfo" item=$theme.item showDate=true showSize=true showOwner=true class="giInfo"}
you can show/hide what you like by switching between true and false See you ! PS: make sure you make a copy of the TPL file in a local folder inside themes\carbon\templates |
|
Aristotle
Joined: 2002-12-23
Posts: 17 |
![]() |
Hmm, that didnt seem to work, and I cleared the browser cache and even went to another machine to be sure, I set that block in {g->block type="core.ItemInfo" |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
Did you try clearing the template cache in gallery ? (maintenance tasks) let us know ! |
|
Aristotle
Joined: 2002-12-23
Posts: 17 |
![]() |
Thanks, that seemed to be the problem, thanks again. Now I seem to have found something else. When viewing with IE, I get a nice simple button under an album for "Add to Cart", but in Firefox, I get a drop down with "Add to Cart" AND " Make Highlight". This seems strange? How can I get the same, simple button "Add to Cart" as with IE? An example with a few test items is here |
|
Aristotle
Joined: 2002-12-23
Posts: 17 |
![]() |
Oops, just realized I was logged in as an admin...again my mistake....heads a bit fuzzy today...day started at 4. |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
well, I'm glad you worked it all out Eric- |
|
Aristotle
Joined: 2002-12-23
Posts: 17 |
![]() |
Well actually one more if possible...I posted it as a different topic but no replies. Any idea how to remove the "Add to Cart" button for albums and have it only show up for images? |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
YEs, you need to mmodify the module.inc file of the module you are using for cart (checkout or cart) and look for this function"
then change this: for this:
See you ! |
|
Aristotle
Joined: 2002-12-23
Posts: 17 |
![]() |
Well that sounded simple...but not luck yet. I am using the "Checkout" module 0.1.14 with the "Checkout by Paypal" module 0.1.9. So I located /modules/checkout/module.inc, and after creating a backup I changed the getItemLinks function from this if (isset($permissions[$item->getId()]['checkout.purchase']) ){ to this if (isset($permissions[$item->getId()]['checkout.purchase']) && $item->getCanContainChildren()) { Then I purged the template cache, and browser cache and tried to load the home page without logging in, but I still get the "Add Album To Cart". I sincerely appreciate your help, you have been great and so I hate to keep bugging you....I am so close to starting to populate my site that I am chompin at the bit to get it working right. |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
The one reason you would see that link now even when not logged in would be because either "guest" or "everybody" has the rights to see it (i.e. checkout.purchase). If you'd like I can take a look directly at your gallery (PM me some access) and I'll let you know. See you ! PS: you don't bug me and that's why I answer :D |
|
Premiumblue
Joined: 2006-10-07
Posts: 4 |
![]() |
Can anyone tell me where to download the Carbon theme? Can't seem to find it in the standard theme download list. |
|
Termitenshort
![]()
Joined: 2005-10-09
Posts: 1894 |
![]() |
Here: http://codex.gallery2.org/index.php/Gallery2:User_Contributions#Themes See you ! ------------------------- |
|
steveman2000
Joined: 2006-04-08
Posts: 26 |
![]() |
I have no problem with getting this to work. However I have a multisite and updating this on all galleries isn't adequate. Is there a way for instance to only update it for a particular theme? I have tried looking up the api for which theme is currently setup so that I could do an if statement in the phpsmarty code. But I couldnt find it. Any ideas? -- |
|