View Full Version : Next button on front page and empy categories
dvolve
01-26-2006, 07:59 AM
Hi there! On my front page, the next button is visible along with the previous. Any way to make the next button not visible (since it's the current photo and there is no next in que)
Same goes with empty categories... How does one make categories visible in the archive section if and only if there are photos categorized under that category. Say "sky" a category i've created but haven't added photos to it yet. It still lists it there but with no photos. I want to make it NOT list until there is a photo listed under that particular category.
i've searched and searched and have come up with no answer.
Any help, i'd greatly appreciate it!
http:/dvolve.com/photo
PixelPost 1.4.3
cheers!
Andre'
Connie
01-26-2006, 09:50 AM
have a look in your template, which TAGs you use for NEXT and PREV
$lang_previous = "Previous";
$lang_next = "Next";
$lang_no_previous = "No Previous Image";
$lang_no_next = "No Next Image";
just set $lang_no_next empty:
$lang_previous = "Previous";
$lang_next = "Next";
$lang_no_previous = "";
$lang_no_next = "";
hope that helps for the main page
for the categories I have no idea in the moment, because I have no time to go into that deeper, having a short break at work...
dvolve
01-26-2006, 10:57 AM
have a look in your template, which TAGs you use for NEXT and PREV
just set $lang_no_next empty:
hope that helps for the main page
for the categories I have no idea in the moment, because I have no time to go into that deeper, having a short break at work...
This is what I found in the main index.php file:
$image_next_title = "$lang_no_next";
when I do this:
$image_next_title = "";
its still the same...
what am I doing wrong?
cheers! and thanks!!
Andre'
dvolve
01-26-2006, 11:01 AM
have a look in your template, which TAGs you use for NEXT and PREV
just set $lang_no_next empty:
hope that helps for the main page
for the categories I have no idea in the moment, because I have no time to go into that deeper, having a short break at work...
I should probably note this as well:
Located in my main index.php file
if($image_next_id == "") {
$image_next_id = $image_id;
$image_next_title = "$lang_no_next";
$image_next_link = "";
$image_next_thumbnail = "";
}
and in my template.html file I have this:
<a href="index.php?showimage=<IMAGE_NEXT_ID>">next</a>
im confused! O_0 o_0
Connie
01-26-2006, 12:29 PM
please read the taglist which is in the doc-folder
<IMAGE_NEXT_LINK>
is your friend!
dvolve
01-26-2006, 12:45 PM
please read the taglist which is in the doc-folder
<IMAGE_NEXT_LINK>
is your friend!
Yup, ive read that and it's still not working...
Okay, the issue is this: in the main front page, the next button should not exist, but it does... I tried changing the tag from <a href="index.php?showimage=<IMAGE_NEXT_ID> to <a href="index.php?showimage=<IMAGE_NEXT_LINK> but the next button still exists as a link...
checked the main index.php file and there is nothing between the two " "
am i missing something?
dvolve
01-26-2006, 12:54 PM
Figured it out.
I was doing everything right except for the formatting in the image_template.html file... Needed to remove the <a>...</a> section and just use the setting in the index.php one...
woohooo.... it's finally done! =)
Thank you for your help mate!
Andre'
Connie
01-26-2006, 04:08 PM
great! Now enjoy PP!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.