admin by editing the txt-files

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
p_newton
Posts: 5
Joined: Tue Jun 23, 2009 10:33 am

admin by editing the txt-files

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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>
&nbsp;<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>
&nbsp;<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>
&nbsp;
</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>
    &nbsp;<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>
    &nbsp;<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>
    &nbsp;
    </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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply