Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Posted By: chewbearsIn my vision I woul dhave it in the middle of View as Slideshow and Sort by:
<?php
if ($GLOBALS['plogger_level'] == "album") {
switch ($GLOBALS['plogger_id']) {
case '1': // This is the album id #
$button = "<a href=\"".$_SERVER['PHP_SELF']."?level=search&searchterms=CSS1\">CSS1</a>"; // this searches for 'CSS1' if the album id is '1'
break;
case '4': // This is the album id #
$button = "<a href=\"".$_SERVER['PHP_SELF']."?level=search&searchterms=CSS2\">CSS2</a>"; // this searches for 'CSS2' if the album id is '4'
break;
default: //defaults to nothing
$button = '';
break;
}
}
?>
<?php print $button; ?>
print ' <div id="pagination">
<table style="width: 100%;">
<tr>
<td>'.plogger_slideshow_link().'</td>
<td>'.plogger_pagination_control().'</td>
<td>'.$button.'</td>
<td id="sortby-container">'.plogger_sort_control().'</td>
<td id="rss-tag-container">'.plogger_rss_feed_button().'</td>
</tr>
</table>
</div>'."\n";
Posted By: chewbearsSo basically the first album I make is 1, second = 2 etc etc?Yep, but you can also check this in the Admin -> Manage section. When you are at the album you want, the URL should read http://yourploggerinstall.com/plog-manage.php?level=pictures&id=4 (where '4' is the ID number for that album).
Thanks again!
<?php
if ($GLOBALS['plogger_level'] == "album") {
switch ($GLOBALS['plogger_id']) {
case '1': // This is the album id #
$button = "<a href=\"".$_SERVER['PHP_SELF']."?level=search&searchterms=CSS1\"><img src=\"button.gif\" title=\"button\" alt=\"CSS1\" /></a>"; // this searches for 'CSS1' if the album id is '1'
break;
case '4': // This is the album id #
$button = "<a href=\"".$_SERVER['PHP_SELF']."?level=search&searchterms=CSS2\"><img src=\"button.gif\" title=\"button\" alt=\"CSS2\" /></a>"; // this searches for 'CSS2' if the album id is '4'
break;
default: //defaults to nothing
$button = '';
break;
}
}
?>
Posted By: chewbearsOne thing I am noticing though is that if the collection ID matches the Album ID I get the text on the collection and the album that matches the number. So Collection 1 has CSS1 and Album 1 does as well.heh, my bad. I fixed my post above. The first line should have "==" like:
if ($GLOBALS['plogger_level'] == "album") {
not:if ($GLOBALS['plogger_level'] = "album") {
Posted By: chewbearsAlso as I am developing my ideas I just ran into the problem which I thought was impossible. What if 1 album has CCS1 and CSS2? Could there be a drop down mnu like the one next to sort by: That would allow the user to choose which string (css1 or css2)?This could be done, but not as easily as the above code. I can look into it for you. You'll have to submit a form (either via a form button or a javascript submit link) instead of just a normal link. Let me know if you want this looked into. Also, would you only want the pulldown if there were more than one search term that you manually code in?
1 to 17 of 17