Quote:
Originally Posted by Amenadiel
Well I'm getting to know the code, I've already modified the code to make glossary.php without args to act as if it had received a do=listglossary&c=1 by editing the "default action":
if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'listglossary';
$_REQUEST['c'] = '1';
}
Then I also inserted a "show all" link at the beggining of the letterbit, but it was a minor edit, I just added:
eval('$letterbits = "<td><a href=glossary.php>Show all</a></td>";');
before the other evals.
But this one I cannot accomplish. I edited the main Glossary template and in the section where the letterbit table is displayed I removed the "if" so it should display letterbit no matter what, and yet it doesn't happen.
I hope you don't mind I'm performing this little customization, I believe it's impossible to make a product to suit each and every webmaster out there LMAO.
EDIT: I did it! I hadn't noticed that in glossary.php the letterbit eval part is inside an if statement restricting it to show only if do = listglossary, so I took that whole part outside the 'if'. I had to set c = 1 because it is initially = 0 and takes me to a blank page.
|
how did you put letterbits in the main glossary page?