Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:48:09 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155535 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Guestbook Backend Question  (Read 306 times)
andyeswecan

Offline Offline

Posts: 6


« on: March 18, 2010, 02:51:47 PM »

Hey guys....

In the guestbook module, is there any way to limit the amount of entries which appear in the admin area page?

For example, If I could only show 'non-approved' entries in the admin?

I have over 1,000 entries and it makes loading the admin page impossible, as it tries to load every entry into that one area

thanks in advance


Andrew
Logged
deb01

Offline Offline

Posts: 75


« Reply #1 on: March 18, 2010, 03:24:18 PM »

Hello,

I have checked this in options of guestbook and could not find any option. I think there is no such possibility except fiddling around in PHP code of guestbook module.
Logged
andyeswecan

Offline Offline

Posts: 6


« Reply #2 on: March 18, 2010, 03:31:46 PM »

Hi thanks for the reply.... I've actually figured it out by changing the SQL query in the modify.php to only display unapproved items...

$query_entries = $database->query("SELECT *, INET_NTOA(`ip_addr`) AS `user_ip` FROM `".TABLE_PREFIX."mod_guestbook` WHERE `section_id` = '$section_id' AND `approved` = '0' ORDER BY position $order ");


Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!