Pages (2):    1 2
Member
Member
sbillard   17-08-2010, 23:41
#21

Back ticks are the backwards single quotes. On the US PC keyboard it is the key to the left of the "1" key below the tilda.

Administrator
Administrator
acrylian   18-08-2010, 08:41
#22

Typographica "backticks" are actually accents as used in French and other languages. Like à for example. On a Mac keyboard (European) they are left of the backspace key. Hit that key plus pressing SHIFT and then hit SPACE. Otherwise they don't appear. Normally they are used to add an accent to a normal character.

``

The call is still wrong. The first parameter must be the album folder name not the title. The title can be "album1" while the actual name on the filesystem can be "album2".

Also if the album is a subalbum of an album named "topalbum2" then the name of the subalbum is "topalbum2/album2".

Member
Member
Sabyre   18-08-2010, 14:54
#23

Is there a way to make it pull the current folder name without specifying it?

In my gallery there will be no subalbulms.

It works now because the folder name is the title, but if I make another sasha album, which is highly likely it wont work.

Administrator
Administrator
acrylian   18-08-2010, 14:55
#24

$_zp_current_album->name stores the name of the current album you are in. This works in the next_album() loop as well and then of course on album.php and image.php.

Member
Member
Sabyre   18-08-2010, 20:00
#25

Is that for the folder name or the title?

Member
Member
Sabyre   18-08-2010, 20:03
#26

nm, got it thanks...

What would be the proper way to call all tags from all albums? It's something I would like to put on the index.php and perhaps some other pages.

Member
Member
sbillard   18-08-2010, 21:37
#27

$albumObject->getTags() will return you an array of tags for the album. Presuming you do not want tags that are not associated with albums you would have to make a loop that recursively goes throught albums/subalbums and retireves the tags, then filter out the non-unique values.

Member
Member
Sabyre   18-08-2010, 21:51
#28

``

Seems to be pulling album tags from multiple albums. Note the empty string.

Any idea why thats working or whats going on?

Sorry for so many questions.

Member
Member
Sabyre   18-08-2010, 21:52
#29

hehe not sure the backtick worked for me.

Member
Member
sbillard   19-08-2010, 00:23
#30

I edited your post, it was missing the closing backtick. They are like quotation marks, two are needed.

I took a look at the function. There are indications that an empty album name should mean something, but in fact all that seems to happen is that it does an SQL search for folders with no name (not a likely match.) You might try setting the second parameter to true, that will give something different, but maybe not any more useful.

Acrylan will have to comment on this when Germany wakes up in the morning.

Member
Member
Sabyre   19-08-2010, 02:32
#31

Also I can not get the CSS to work with it....

``

Where 'tags' is my CSS. The CSS is located in my header php file.

.tags a { color: #FF0CFF; text-decoration: none; } .tags a:hover { color: #000000; text-decoration: underline; }

Administrator
Administrator
acrylian   19-08-2010, 11:55
#32

First, if you pass a variable as a parameter like the dont use quotes...that will pass the variable name as text...

For the older questions: The plugin is not meant to be used without an album name passed. It only gets tags from a specific album (or its images) optionally including the subalbums of that specific album. Not tags from all albums and not for the album and all of its images.

With the css you have to figure that out yourself, sorry. Or look at the standard themes how they print a tag cloud on their archive.php page.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.