entries and page #

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

entries and page #

Post by mirnot »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Is it possible to delete the line where you see
how many entries and how many pages
there are in the guestbook

thanks
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Yes it is possible.

In GBook version 1.43 find this line

Code: Select all

echo '<p>We have '.$total.' entries displayed on '.$pages.' pages.<br>';
(it is line number 171).
To not display it you can delete it.
Or if you maybe want to put it back in the future you can comment it out by putting // at the start of the line, like this

Code: Select all

// echo '<p>We have '.$total.' entries displayed on '.$pages.' pages.<br>';
Greetings,
Henrie
cAdams
Posts: 40
Joined: Thu Sep 15, 2011 10:52 pm

Re: entries and page #

Post by cAdams »

and what line for Gbook 1.7?
To All UALs (Unreliable Arrogant Liars), Go Play On The Motorway
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: entries and page #

Post by Henrie »

In Gbook 1.7 find the file overall_header.php , with standard install it is located in \templates\default\
Find the line (line number 39)

Code: Select all

<span class="gbook_entries_top"><?php echo $settings['number_of_entries']; ?> <?php echo $settings['number_of_pages']; ?></span>
To not display it, you can delete it.
Or if you maybe want to put it back in the future you can comment it out by putting <!-- at the start of the line and --> at the end of the line, like this

Code: Select all

<!-- <span class="gbook_entries_top"><?php echo $settings['number_of_entries']; ?> <?php echo $settings['number_of_pages']; ?></span> -->
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