I'm not sure that this sort of feature yet exists with LGSL although I would like to add that we need to have more navigational control over LGSL display and layout such as back, next or forward links to view certain things or return to the list itself.
Our organization is getting back into using LGSL for Joomla and having a little more control on the administration side of things would be kind of nice for customization of LGSL through Joomla without directly editing LGSL itself. I would recommend what to try, but honestly I don't have the PHP experience to suggest such a method. However, someone else may be able to help with this so hang around and be patient.
Posts: 33 Joined: Sun Apr 11 2010, 11:50AM Registered Member #5960
open lgsl_class.php and find:
$mysql_query = "SELECT `id` FROM `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` WHERE ".implode(" AND ", $mysql_where)." ORDER BY {$mysql_order}";
$mysql_result = mysql_query($mysql_query) or die(mysql_error());
replace with this:
if(!isset($_GET['pg'])) { $page = 1; } else { $page = $_GET['pg']; }
$select = (($page * 20) - 20);
$mysql_result = mysql_query("SELECT `id` FROM `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` WHERE ".implode(" AND ", $mysql_where)." ORDER BY id ASC LIMIT $select, 20") or die(mysql_error());
and if you want to change your page type index.php?pg=2 or index.php?pg=3
Posts: 6 Joined: Fri Jun 10 2011, 10:53AM Registered Member #6765
AGENTUL wrote ...
open lgsl_class.php and find:
$mysql_query = "SELECT `id` FROM `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` WHERE ".implode(" AND ", $mysql_where)." ORDER BY {$mysql_order}";
$mysql_result = mysql_query($mysql_query) or die(mysql_error());
replace with this:
if(!isset($_GET['pg'])) { $page = 1; } else { $page = $_GET['pg']; }
$select = (($page * 20) - 20);
$mysql_result = mysql_query("SELECT `id` FROM `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` WHERE ".implode(" AND ", $mysql_where)." ORDER BY id ASC LIMIT $select, 20") or die(mysql_error());
and if you want to change your page type index.php?pg=2 or index.php?pg=3
other question?
I dont have this code in my lgsl_class.php, i use the version 5.7 of LGSL, please help me, i have more than 2000 Servers and loads very slowly..