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
PHP version = 4.4.2 apache
Webserver = Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a
Database = mysql 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, NetPBM, Thumbnail, Gd
Acceleration = full/86400, full/86400
Operating system = Linux serendipity.mountainhosting.ca 2.6.8-022stab076.4-smp #1 SMP Fri Apr 14 19:06:44 MSD 2006 i686
Default theme = carbon
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Posts: 1894
This can be configured in the album.tpl file (located in themes\carbon\templates\)
You will see a section similar to this:
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
-------------------------
The Termite - - http://www.termitenshort.com/
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
themese\carbon\templates\album.tpl to
{g->block type="core.ItemInfo"
item=$child
showDate=false
showOwner=$showOwner
showSize=true
showViewCount=false
showSummaries=true
class="giInfo"}
Posts: 1894
Did you try clearing the template cache in gallery ? (maintenance tasks)
let us know !
-------------------------
The Termite - - http://www.termitenshort.com/
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
http://www.dreamscapemedia.ca/Portfolio/main.php
Posts: 17
Oops, just realized I was logged in as an admin...again my mistake....heads a bit fuzzy today...day started at 4.
Posts: 1894
well, I'm glad you worked it all out
Eric-
-------------------------
The Termite - - http://www.termitenshort.com/
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?
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"
function getItemLinks(
then change this:
if (isset($permissions[$item->getId()]['cart.add'])) {
for this:
if (isset($permissions[$item->getId()]['cart.add']) && $item->getCanContainChildren()) {
See you !
-------------------------
The Termite - - http://www.termitenshort.com/
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.
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
-------------------------
The Termite - - http://www.termitenshort.com/
Posts: 4
Can anyone tell me where to download the Carbon theme? Can't seem to find it in the standard theme download list.
Posts: 1894
Here: http://codex.gallery2.org/index.php/Gallery2:User_Contributions#Themes
See you !
-------------------------
The Termite - - http://www.termitenshort.com/
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?
--
Website: http://me.sllewellyn.com
Gallery: http://www.something-beautiful.org/mygallery