In need of Carbon theme for G2 tweak

drhiii

Joined: 2003-04-27
Posts: 397
Posted: Fri, 2011-09-23 20:07

Have been able to tweak all but four or five elements. Need to hide from 'Everyone' and 'Registered Users', but not Site Admins of course: words/menu items for Edit Permissions, Edit Photo, Edit Album, Login/Logout and Register. I know this has been beat to bloody pulp, but there is a need to accomplish this.

A G2 supporter has been very gracious in supplying me with some Jquery examples and I've banged on it for a few days and the examples from this gent make all the sense in the world, but am just not getting these elements hidden. So am looking to contract out to get these last theme tweaks accomplished.

Takers?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2011-09-23 20:58

Hi,

Edit Permissions, Edit Photo and Edit Album should be hidden by default from "Everyone" and "Registered Users" (except if using the useralbums module where Registered Users have full permissions on their albums).

I would have thought Registered Users would need Login/Logout and Register

Anyway, you can try hiding the systems links from all but the admin

Copy template/theme.tpl to template/local/theme.tpl and find ...

	  {g->block type="core.SystemLinks"
		    order="core.SiteAdmin core.YourAccount core.Login core.Logout"
		    separator="«"
		    othersAt=4}

change to

      {if $user.isAdmin}
	  {g->block type="core.SystemLinks"
		    order="core.SiteAdmin core.YourAccount core.Login core.Logout"
		    separator="«"
		    othersAt=4}
      {/if}

This can be refined further but is a start to where you want to go. You will need to delete cache.

The other edits I suspect are down to the useralbums module and you will need to change the way that is setup.

Luckily, I have spent some time looking at that module recently so let me know which one of the permission below you want the album owners to have and I'll let you know what to change.

core.viewAll		->	View all versions
core.addAlbumItem	->	Add sub-album
core.addDataItem	->	Add sub-item
core.edit		->	Edit item
core.delete		->	Delete item

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-09-23 21:57

In our private emails I indicated that I would be able to do this for you.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2