Page 1 of 1
admin by editing the txt-files
Posted: Tue Jun 23, 2009 10:49 am
by p_newton
Version of script: 1.6
Thinking about doing the admin by editing the txt-files "entries" and "banned_ip" thus making removal of the delete, comment and ip buttons an option. How can I remove those?
I read somewhere in this forum replacing the icons by transparent ones, but that won't make the GBook any narrower, which is one of the things I hope to achieve.
Thanks, Peter
Posted: Tue Jun 23, 2009 9:37 pm
by Henrie
You can change the code in gbook.php file.
Lines 556-562 (is shown in the private messages)
Code: Select all
<td style="width:50%" class="smaller">'.$lang['t31'].' '.$added.'</td>
<td style="width:50%; text-align:right">
<a href="gbook.php?a=delete&num='.$num.'"><img src="images/delete.gif" width="14" height="14" alt="'.$lang['t32'].'" style="border:none; vertical-align:text-bottom" /></a>
<a href="gbook.php?a=reply&num='.$num.'"><img src="images/reply.gif" width="14" height="14" alt="'.$lang['t33'].'" style="border:none; vertical-align:text-bottom" /></a>
<a href="gbook.php?a=viewIP&num='.$num.'"><img src="images/ip.gif" width="14" height="14" alt="'.$lang['t09'].'" style="border:none; vertical-align:text-bottom" /></a>
</td>
Lines 1015-1021 (the regular messages)
Code: Select all
<td style="width:50%" class="smaller">'.$lang['t31'].' '.$added.'</td>
<td style="width:50%; text-align:right">
<a href="gbook.php?a=delete&num='.$i.'"><img src="images/delete.gif" width="14" height="14" alt="'.$lang['t32'].'" style="border:none; vertical-align:text-bottom" /></a>
<a href="gbook.php?a=reply&num='.$i.'"><img src="images/reply.gif" width="14" height="14" alt="'.$lang['t33'].'" style="border:none; vertical-align:text-bottom" /></a>
<a href="gbook.php?a=viewIP&num='.$i.'"><img src="images/ip.gif" width="14" height="14" alt="'.$lang['t09'].'" style="border:none; vertical-align:text-bottom" /></a>
</td>
The first
<td style="width:50% ...> holds the added date.
The second
<td style="width:50% ...> holds the admin images.
My best bet would be to remove the second
td and only leave the first
td without the
width style.
I hope this helps.
Greetings,
Henrie