Try
Find:
Code:
eval("\$pagenav = \"".gettemplate("showthread_numpages")."\";");
Replace with:
Code:
if ($totalpages==1) {
eval("\$pagenav = \"".gettemplate ("showthread_numpages2")."\";");
} else {
eval("\$pagenav = \"".gettemplate("showthread_numpages")."\";");
}
Quote:
Originally posted by Parker Clack
Ok,
This is what I have written and it doesn't work.
if ($pagenav==1) {
eval("\$pagenav = \"".gettemplate("showthread_numpages2")."\";");
} else {
eval("\$pagenav = \"".gettemplate("showthread_numpages")."\";");
}
showthread_numpages2 is a second template that I have written that says.
This thread is 1 page long.
So now no matter how many pages long it is it goes to this variable instead of showthread_numpages.
Any ideas?
Parker
|