26 Jul 2000, 17:13
Well, here is my first vB hack. I have not cut any code for a long time so that if anyone wants to clean up my PHP, please feel free to comment. I do wonder if there is a way to get the total number of records without a second query; I thought of counting to see if fewer than 30 (my page limit) smilies were returned, but then I would have to give up the "First to Last of Total" report.
I added the following variables: $startsmilies, $smilieslink, $linkstartsmilies, $smiliescountresult, $smiliescountrow and $smiliescount
Any way:
Replace the section in index.php (the main one, not the /admin/ one) that deals with "action=showsmilies" -- I have not posted it here as all my code has been added between the start and end of the section so that it should be simple for you to find (lines 44 to 56 in an un-hacked index.php).
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
In the "smilies" template you have to add the "$smilieslink" variable wherever you want your Previous/Next links to appear. I put mine after the table closes but before the centering closes:
$smiliebits
</table>
$smilieslink
</center>
Peter E. Humphries
[Edited by phumphries on 07-26-2000 at 01:14 PM]
I added the following variables: $startsmilies, $smilieslink, $linkstartsmilies, $smiliescountresult, $smiliescountrow and $smiliescount
Any way:
Replace the section in index.php (the main one, not the /admin/ one) that deals with "action=showsmilies" -- I have not posted it here as all my code has been added between the start and end of the section so that it should be simple for you to find (lines 44 to 56 in an un-hacked index.php).
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
In the "smilies" template you have to add the "$smilieslink" variable wherever you want your Previous/Next links to appear. I put mine after the table closes but before the centering closes:
$smiliebits
</table>
$smilieslink
</center>
Peter E. Humphries
[Edited by phumphries on 07-26-2000 at 01:14 PM]