OSempire
Old 01-25-2009, 04:10 PM   #1
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Lightbulb Mod :: Pagination v2.0

New and updated Pagination Mod. Also known as Multiple Pages as Text Links.
Originally created by Jeremy Scheff (aardvark topsites creator)
Updated to the next level by OS-Mark and me, Basti

Packed with features and fast Installation
1) Your pages will display like | 1 | 2 | 3 | >> Css Design
2) Category integration.
2.1) It recognize what category you are on and alters the number of pages.
3) It has Next and Previous Page links.
3.1) Previous Page link disappear if you are on page 1.
3.2) Next Page link disappear if you view the last page.
4) Update 18.07.09 Only displays on the Ranking Pages
5) Update 18.07.09 The Page you currently view is simple bold text. Visitors like to see what Page they are on.
6) Update 18.07.09 No more double Content.
Page 1 is now your Main Page Url / Main Category Url instead of a different Url, which has caused double Content.
7) Update 29.10.09 Now works with the category dropdown box.
- If you do not use any of the dropdown boxes, post here, you will need to rip out some code in order to have it working

Known Bugs:
- Pls deactivate in admin control panel "Fill blank rows with a message saying - Your Site here"
Else the Category Stuff dont work 100%, just 80%
May be fixed if there comes a next Version.

--------------------------------------------------------------
Installation

Open sources/misc/skin.php and find:
Code:
// Build the multiple pages menu
    if ($TMPL['num_members'] > $CONF['num_list']) {
      $num = $TMPL['num_members'];
      $done = 0;
      $TMPL['multiple_pages_menu'] = "<select name=\"start\">\n";
      while ($num > 0) {
        $start = $done * $CONF['num_list'] + 1;
        $end = ($done + 1) * $CONF['num_list'];
        $FORM['start'] = isset($FORM['start']) ? $FORM['start'] : 1;
  
        if ($FORM['start'] == $start) {
          $TMPL['multiple_pages_menu'] .= "<option value=\"{$start}\" selected=\"selected\">{$start} - {$end}</option>\n";
        }
        else {
          $TMPL['multiple_pages_menu'] .= "<option value=\"{$start}\">{$start} - {$end}</option>\n";
        }
  
        $num = $num - $CONF['num_list'];
        $done++;
      }
      $TMPL['multiple_pages_menu'] .= '</select>';
    }
    else { $TMPL['multiple_pages_menu'] = ''; }
replace with:
Code:
// Build the multiple pages menu
if ($FORM['a']) {
$TMPL['multiple_pages_links'] .= "";
}

else {
// Diplay the Pagination
if (empty($FORM['cat']))
$sql = "SELECT title FROM {$CONF['sql_prefix']}_sites WHERE active = 1";
else
$sql = "SELECT title FROM {$CONF['sql_prefix']}_sites WHERE category = '{$FORM['cat']}' and active = 1";
$result = $DB->query($sql, __FILE__, __LINE__);
$num_members_cat = mysql_num_rows($result);

if (isset($FORM['method']) == 'pv' || isset($FORM['method']) == 'in' || isset($FORM['method']) == 'out') {
$method = "method={$FORM['method']}&";
$method1 = "index.php?method={$FORM['method']}";
}
if (isset($FORM['method']) != 'pv' || isset($FORM['method']) != 'in' || isset($FORM['method']) != 'out') {
$method = "";
$default_method = "method={$CONF['ranking_method']}&amp;";
}

    $TMPL['multiple_pages_links'] = '';
    $TMPL['multiple_pages_p'] = '';
    $TMPL['multiple_pages_n'] = '';
    if ($TMPL['num_members'] > $CONF['num_list']) {
      $num = $TMPL['num_members'];
      $done = 0;
      while ($num > 0) {
        $start = $done * $CONF['num_list'] + 1;
        $end = ($done + 1) * $CONF['num_list'];
        $multi = $done + 1;
        $FORM['start'] = isset($FORM['start']) ? $FORM['start'] : 1;

$prevpg=$FORM['start']-$CONF['num_list'];
if (isset($FORM['cat']) and !empty($FORM['cat']))
if ($prevpg < 2)
$prevpglink="<a href=\"index.php?{$method}cat={$TMPL['category_url']}\"><b><<</b></a>";
else
$prevpglink="<a href=\"index.php?{$method}cat={$TMPL['category_url']}&amp;start={$prevpg}\"><b><<</b></a>";
elseif ($prevpg < 2 && $FORM['method'])
$prevpglink="<a href=\"{$TMPL['list_url']}/{$method1}\"><b><<</b></a>";
else
$prevpglink="<a href=\"index.php?{$default_method}{$method}start={$prevpg}\"><b><<</b></a>";
if ($prevpg<1)$prevpglink='';
$nextpg=$FORM['start']+$CONF['num_list'];
if (isset($FORM['cat']) and !empty($FORM['cat'])) {
$nextpglink=" <a href=\"index.php?{$method}cat={$TMPL['category_url']}&amp;start={$nextpg}\"><b>>></b></a>";
if ($nextpg > mysql_num_rows($result))$nextpglink=' ';
}
else
$nextpglink=" <a href=\"index.php?{$default_method}{$method}start={$nextpg}\"><b>>></b></a>";
if ($nextpg>$TMPL['num_members'])$nextpglink=' ';
$TMPL['multiple_pages_n'] = "$nextpglink";
$TMPL['multiple_pages_p'] = "$prevpglink";

if (isset($FORM['cat']) and !empty($FORM['cat'])) {

if ($TMPL['category_url'] > $CONF['num_list']) {
      while ($num_members_cat > 0) {
        $start = $done * $CONF['num_list'] + 1;
        $end = ($done + 1) * $CONF['num_list'];
        $multi1 = $done + 1;
        $FORM['start'] = isset($FORM['start']) ? $FORM['start'] : 1;

if ($FORM['start'] == $start) {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><b>{$multi1}</b></font>\n";
}
else {
if ($start == 1) {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"index.php?{$method}cat={$TMPL['category_url']}\">{$multi1}</a></font>\n";
}
else {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"index.php?{$method}cat={$TMPL['category_url']}&amp;start={$start}\">{$multi1}</a></font>\n";
 }
}

       $num_members_cat = $num_members_cat - $CONF['num_list'];
        $done++;
      }
   }
}

elseif ($FORM['start'] == $start && !$FORM['a']) {
//Pagination for all sites
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><b>{$multi}</b></font>\n";
}  

else {
//Pagination for all sites
if ($start == 1) {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"{$TMPL['list_url']}/{$method1}\">{$multi}</a></font>\n";
}
else {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"index.php?{$default_method}{$method}start={$start}\">{$multi}</a></font>\n";
 }
}
  
        $num = $num - $CONF['num_list'];
        $done++;
      }
    }
//
}

//End multiple pages menu
Open skins/yourskin/screen.css (css file ) and add the following. Change colors, so it match your Layout
Code:
.pagination {
text-align: center;
}
.pag_links {
padding: 3px;
border: 1px solid #000000;
background-color: #FFFFFF;
color: #000000;
}
Open skins/YOURSKIN/wrapper.html

Place the following anywhere in wrapper.html where you would like to display the Pagination.
The first tag is the Previous Page Link, followed by the actual Page Links and the Next Page Link. *Full Control on where to place everything.
Code:
<div class="pagination">
{$multiple_pages_p} {$multiple_pages_links} {$multiple_pages_n}
</div>
delete
Code:
{$multiple_pages_menu}
Have fun This mod was tested on several Lists and worked 100% if instructions are followed.
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer

Last edited by Basti; 12-01-2009 at 02:59 AM.
Basti is offline   Reply With Quote
The Following User Says Thank You to Basti For This Useful Post:
OS-Mark (05-11-2010)
Old 01-25-2009, 09:40 PM   #2
Polymath
Senior Member
Full Access
Points: 8,171, Level: 1 Points: 8,171, Level: 1 Points: 8,171, Level: 1
Activity: 3% Activity: 3% Activity: 3%
 
Polymath's Avatar
 
Join Date: Mar 2007
Location: New Zealand
Posts: 506
Thanks: 3
Thanked 6 Times in 6 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Polymath is a glorious beacon of lightPolymath is a glorious beacon of light
Nice thanks. Works for me.
__________________
My Topsite
My Arcade
New Zealand
Polymath is offline   Reply With Quote
Old 02-04-2009, 05:33 PM   #3
arsenik
Junior Member
Level 2 Access
Points: 1,132, Level: 1 Points: 1,132, Level: 1 Points: 1,132, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
arsenik's Avatar
 
Join Date: Feb 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
arsenik is a jewel in the rough
Thanks for this mod! It works perfect.
arsenik is offline   Reply With Quote
Old 02-12-2009, 03:46 PM   #4
spiskata
Junior Member
Level 2 Access
Points: 1,837, Level: 1 Points: 1,837, Level: 1 Points: 1,837, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
spiskata's Avatar
 
Join Date: Sep 2008
Location: Poland
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
spiskata is a jewel in the rough
Thank you for your mod !
spiskata is offline   Reply With Quote
Old 02-18-2009, 11:10 AM   #5
glm
Junior Member
Level 2 Access
Points: 1,223, Level: 1 Points: 1,223, Level: 1 Points: 1,223, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
glm's Avatar
 
Join Date: Dec 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
glm is a jewel in the rough
perfect works a treat thanx
glm is offline   Reply With Quote
Old 02-21-2009, 01:20 PM   #6
spiskata
Junior Member
Level 2 Access
Points: 1,837, Level: 1 Points: 1,837, Level: 1 Points: 1,837, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
spiskata's Avatar
 
Join Date: Sep 2008
Location: Poland
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
spiskata is a jewel in the rough
Edit by Basti
Ranking Method is now included in my Post, thanks


Hi Basti

I have changed:

PHP Code:
index.php?cat={$TMPL['category_url']}&amp;start
On:

PHP Code:
index.php?method={$FORM['method']}&amp;cat={$FORM['cat']}&amp;start
And your Pagination work for me with all options
(Ranking method)...

Great Mod Basti

Last edited by Basti; 08-25-2009 at 10:44 AM.
spiskata is offline   Reply With Quote
Old 02-21-2009, 02:34 PM   #7
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Good find spiskata

havent thought of adding the ranking method :P as i only use 1 option.

Thanks for the update
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 03-18-2009, 03:10 AM   #8
radislav
Junior Member
Level 2 Access
Points: 3,049, Level: 1 Points: 3,049, Level: 1 Points: 3,049, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
radislav's Avatar
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
radislav is a jewel in the rough
hi , just installed this mode , working great but its displaying all the pages of my site at the footer from page 1 to page 700 any idea how to fix this please ?
radislav is offline   Reply With Quote
Old 03-18-2009, 03:47 AM   #9
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Hey dont know really know what you mean without any url to see it,
but i guess the pagination display all of your pages like 1|2|3| up to 700 ???

If yes all is correct, we havent modded the pagination that far that it display as 1 | 2 | 3 | 4 ...... 698 | 699 | 700
i guess thats what you want to do.
We may release an update in the near future, but for now i dont have time to extent this mod.
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 04-19-2009, 01:15 PM   #10
webMUDster
Junior Member
Level 1 Access
Points: 1,139, Level: 1 Points: 1,139, Level: 1 Points: 1,139, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
webMUDster's Avatar
 
Join Date: Feb 2009
Location: NC
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
webMUDster is a jewel in the rough
Sweet MOD! Thanks!
webMUDster is offline   Reply With Quote
Old 04-20-2009, 06:15 AM   #11
Zidane007nl
Member
Level 2 Access
Points: 2,175, Level: 1 Points: 2,175, Level: 1 Points: 2,175, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
Zidane007nl's Avatar
 
Join Date: Nov 2007
Location: The Netherlands
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Zidane007nl is a jewel in the rough
Send a message via MSN to Zidane007nl
Good mod, installed it and modified it a little.
Zidane007nl is offline   Reply With Quote
Old 04-20-2009, 06:43 AM   #12
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Looks sweet Zidane nice variation
Basti is offline   Reply With Quote
Old 05-06-2009, 12:27 PM   #13
OS-Mark
Administrator
designer
Full Access
Points: 49,642, Level: 1 Points: 49,642, Level: 1 Points: 49,642, Level: 1
Activity: 100% Activity: 100% Activity: 100%
 
OS-Mark's Avatar
 
Join Date: Dec 2005
Location: Creston BC, Canada
Posts: 5,822
Blog Entries: 24
Thanks: 54
Thanked 152 Times in 135 Posts
Groans: 7
Groaned at 0 Times in 0 Posts
OS-Mark has a brilliant futureOS-Mark has a brilliant futureOS-Mark has a brilliant futureOS-Mark has a brilliant futureOS-Mark has a brilliant futureOS-Mark has a brilliant futureOS-Mark has a brilliant futureOS-Mark has a brilliant future
Send a message via Skype™ to OS-Mark
finally installed http://www.animerankings.com

thanks!
__________________
-Mark

My Blog

Find OSempire useful? All mods and help are free, but you can help us by linking back! Click here

I've got a groan button, and I'm not afraid to use it!
OS-Mark is offline   Reply With Quote
Old 07-16-2009, 12:24 PM   #14
romaneczek
Junior Member
Level 2 Access
Points: 832, Level: 1 Points: 832, Level: 1 Points: 832, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
romaneczek's Avatar
 
Join Date: Jun 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
romaneczek is a jewel in the rough
Is there any chance to place that code in table_wrapper.html?
Code:
<center>{$multiple_pages_p} {$multiple_pages_links} {$multiple_pages_n}</center>
romaneczek is offline   Reply With Quote
Old 07-16-2009, 01:44 PM   #15
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
No, but i coded it allready to show only on the ranking pages.
But we had Data loss a few days back, seems this mod was involved -.-

Will update it again tomorrow or this weekend.
Basti is offline   Reply With Quote
Old 07-16-2009, 04:01 PM   #16
romaneczek
Junior Member
Level 2 Access
Points: 832, Level: 1 Points: 832, Level: 1 Points: 832, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
romaneczek's Avatar
 
Join Date: Jun 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
romaneczek is a jewel in the rough
I'm glad to hear that thanks for your reply.
romaneczek is offline   Reply With Quote
Old 07-17-2009, 07:42 PM   #17
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Ok Roman, simply add the mod again, it has been Updated with a few Functions.
Basti is offline   Reply With Quote
Old 08-10-2009, 03:14 AM   #18
baninet
Junior Member
Level 2 Access
Points: 903, Level: 1 Points: 903, Level: 1 Points: 903, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
baninet's Avatar
 
Join Date: Jul 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
baninet is a jewel in the rough
Question About pagination and showing the complete details of the members

Hello,

I have a problem with the pagination. I want to show the complete details of all the sites in my top, but the complete details are shown only on the first page.

What I did is to set in admin area the number of members with complete details (title, description, banner) to 100,
while I have set the number of members displayed on each page to 20.

So I should see complete details for the 21th member also, but starting from the 21th member I can't see the complete details

How could I show the complete details for members that are not shown on the first page?

Thank you!
baninet is offline   Reply With Quote
Old 08-10-2009, 04:22 AM   #19
THRiLLCEEKAH
Moderator
designer
Full Access
Points: 9,593, Level: 1 Points: 9,593, Level: 1 Points: 9,593, Level: 1
Activity: 90% Activity: 90% Activity: 90%
 
THRiLLCEEKAH's Avatar
 
Join Date: Jun 2007
Location: THRiLLBURG
Posts: 1,021
Thanks: 18
Thanked 18 Times in 17 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
THRiLLCEEKAH has much to be proud ofTHRiLLCEEKAH has much to be proud ofTHRiLLCEEKAH has much to be proud ofTHRiLLCEEKAH has much to be proud ofTHRiLLCEEKAH has much to be proud ofTHRiLLCEEKAH has much to be proud of
Send a message via MSN to THRiLLCEEKAH
Quote:
Originally Posted by baninet View Post
Hello,

I have a problem with the pagination. I want to show the complete details of all the sites in my top, but the complete details are shown only on the first page.

What I did is to set in admin area the number of members with complete details (title, description, banner) to 100,
while I have set the number of members displayed on each page to 20.

So I should see complete details for the 21th member also, but starting from the 21th member I can't see the complete details

How could I show the complete details for members that are not shown on the first page?

Thank you!
Its only possible to show the table_top_row on the first page ... u can make the table_row the same as table_top_row but then all tables will be the same .......

open skins/table_top_row.html and copy/paste its content into skins/table_row.html overwriting the original content then upload to server overwriting the old file ...... hope this helps anything
__________________
RandOm siGnature:


Latest Work: Banner WEB 2.0 STYLE
THRiLLCEEKAH is offline   Reply With Quote
Old 08-16-2009, 09:30 AM   #20
baninet
Junior Member
Level 2 Access
Points: 903, Level: 1 Points: 903, Level: 1 Points: 903, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
baninet's Avatar
 
Join Date: Jul 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
baninet is a jewel in the rough
What I needed

Yes, Basti, this is exactly what I needed.

Thanks!
baninet is offline   Reply With Quote
Old 08-16-2009, 12:25 PM   #21
MrLOLs
Junior Member
Level 1 Access
Points: 1,276, Level: 1 Points: 1,276, Level: 1 Points: 1,276, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
MrLOLs's Avatar
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
MrLOLs is a jewel in the rough
Thank
MrLOLs is offline   Reply With Quote
Old 08-25-2009, 09:20 AM   #22
baninet
Junior Member
Level 2 Access
Points: 903, Level: 1 Points: 903, Level: 1 Points: 903, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
baninet's Avatar
 
Join Date: Jul 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
baninet is a jewel in the rough
Question No pagination when changing the ranking method

I have a problem when changing the ranking method while all the categories are selected.
I tryed to modify that line:
Code:
index.php?method={$FORM['method']}&amp;cat={$FORM['cat']}&amp;start=
but all I see is the | sign. Any ideea how to fix this?
baninet is offline   Reply With Quote
Old 08-25-2009, 10:39 AM   #23
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Baninet i think you made something wrong.

When you look at the Pagination code. i think you pasted the code posted by another user right? if so no wonder it aint work its missing the end tags ( {$nextpg} etc etc.

I updated the code to finally include the method, just replace the complete code again.
Let me know if it works
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer

Last edited by Basti; 08-25-2009 at 10:44 AM.
Basti is offline   Reply With Quote
Old 08-25-2009, 11:16 AM   #24
baninet
Junior Member
Level 2 Access
Points: 903, Level: 1 Points: 903, Level: 1 Points: 903, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
baninet's Avatar
 
Join Date: Jul 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
baninet is a jewel in the rough
Unhappy Details about the error on pagination

I have used your code, but a change that I made was to delete the dropdown with th pagenumbers, so I only have drop downs for rankings method and category.

So when I choose another ranking method than the defaul with all the categories selected I only see the | sign.

baninet is offline   Reply With Quote
Old 08-25-2009, 12:27 PM   #25
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Hmm i will test this out on my test list. I tested this hole thing on my list where i dont have the dropdown menus.

Will get back to ya all
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 08-25-2009, 01:54 PM   #26
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
Ok, ive found the problem. This problem occur when no category ( all sites ) is selected through the drop down boxes. Will post a fix soon
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 10-18-2009, 01:39 PM   #27
esarie
Junior Member
Level 1 Access
Points: 1,395, Level: 1 Points: 1,395, Level: 1 Points: 1,395, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
esarie's Avatar
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
esarie is a jewel in the rough
good woork nice
esarie is offline   Reply With Quote
Old 10-29-2009, 02:32 PM   #28
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
okay there have been an update again to this Mod. It now works when th category dropdown box is still intact, before it did not.
If you use this allready, please install again

If you have a chance to test it, please let us know if it fully works.
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 11-15-2009, 10:13 AM   #29
maxchen
Junior Member
Level 1 Access
Points: 518, Level: 1 Points: 518, Level: 1 Points: 518, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
maxchen's Avatar
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
maxchen is a jewel in the rough
it does not work for me (Pagination v2.0)

i tryed it with 3 diffenert Styles and everytime
Quote:
<div class="pagination">

</div>
can please somebody post a style and the skin.php that i can download it and test it?

i use the 5.2.1 version.


Antwort in deutsch wäre nett.
maxchen is offline   Reply With Quote
Old 11-15-2009, 10:57 AM   #30
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
wo genau liegt denn dein problem? was du da in qoutes geschrieben hast fehlt ja auch was, wenn das nicht da ist erscheint auch nix.
Außerdem, der mod erscheint nur sobald du mehr als 1 seite mit membern hast
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 11-15-2009, 11:46 AM   #31
maxchen
Junior Member
Level 1 Access
Points: 518, Level: 1 Points: 518, Level: 1 Points: 518, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
maxchen's Avatar
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
maxchen is a jewel in the rough
XD

klar das wars danke
maxchen is offline   Reply With Quote
Old 11-15-2009, 11:56 AM   #32
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
kein problem, sag bescheid falls mehr probleme auftauchen.

Seb
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 11-17-2009, 10:41 AM   #33
sextronnics
Junior Member
Level 2 Access
Points: 2,130, Level: 1 Points: 2,130, Level: 1 Points: 2,130, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
sextronnics's Avatar
 
Join Date: Sep 2007
Location: Musselkanaal, Netherlands
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
sextronnics is a jewel in the rough
Send a message via MSN to sextronnics Send a message via Yahoo to sextronnics
Where did I go wrong in my skin.php file?
I use Aardvark topsites 5.2.1
fill with message saying "Your site here" is off
if I list all members on a single page nothing is wrong
but after I insert the pagination mod and change to 10 members a page I run into problems.
(I changed the members per page to 26 and I removed the pagination code from wrapper.html because I don't want to show errors)

I think the error is somwhere in the skin.php file, or maybe wrapper.html please help me in finding the error. I'll post wrapper.html if you need the code...
If I split the list multiple pages the errors appear, if I use only 1 page there are no errors.

I can't post URL's on this forum...
Hope you're able to help

Thank you for your support

Willem
My skin.php full file - url's are replaced with: URL REMOVED
Code:
<?php
//===========================================================================\\
// Aardvark Topsites PHP 5.2                                                 \\
// Copyright (c) 2000-2009 Jeremy Scheff.  All rights reserved.              \\
//---------------------------------------------------------------------------\\
// URL REMOVED/              \\
//---------------------------------------------------------------------------\\
// This program is free software; you can redistribute it and/or modify it   \\
// under the terms of the GNU General Public License as published by the     \\
// Free Software Foundation; either version 2 of the License, or (at your    \\
// option) any later version.                                                \\
//                                                                           \\
// This program is distributed in the hope that it will be useful, but       \\
// WITHOUT ANY WARRANTY; without even the implied warranty of                \\
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General \\
// Public License for more details.                                          \\
//===========================================================================\\

if (!defined('ATSPHP')) {
  die("This file cannot be accessed directly.");
}

class skin {
  var $filename;

  function skin($filename) {
    $this->filename = $filename;
  }

  function make() {
    global $CONF, $TMPL;

    $file = "{$CONF['skins_path']}/{$TMPL['skin_name']}/{$this->filename}.html";
    $fh_skin = fopen($file, 'r');
    $skin = @fread($fh_skin, filesize($file));
    fclose($fh_skin);

    $parse = 1;

    if ($this->filename == 'wrapper') {
      $powered_by_check = strpos($skin, '{$powered_by}') ? 1 : 0;
  
      if ($powered_by_check) {
        $return = $skin;
      }
      else {
        $return = 'You cannot delete {$powered_by} from wrapper.html.';
        $parse = 0;
      }
    }
    elseif ($this->filename == 'admin' || $this->filename == 'ssi_top' || $this->filename == 'ssi_members') {
      $return = $skin;
    }
    else {
      $return = "<!-- Begin {$this->filename}.html -->\n{$skin}<!-- End {$this->filename}.html -->\n\n";
    }

    if ($parse) {
      return $this->parse($return);
    }
    else {
      return $return;
    }
  }

  function send_email($email) {
    global $CONF, $TMPL;

    $file = "{$CONF['skins_path']}/{$TMPL['skin_name']}/{$this->filename}.html";
    $fh_skin = fopen($file, "r");
    $skin = @fread($fh_skin, filesize($file));
    fclose($fh_skin);

    $skin_array = explode("\n", $skin);

    $subject = array_shift($skin_array);
    $subject = str_replace('Subject: ', '', $subject);
    $body = implode("\n", $skin_array);

    $subject = $this->parse($subject);
    $body = $this->parse($body);

    mail($email, $subject, $body, "From: {$CONF['your_email']}\r\n");
  }
  
  function parse($skin) {
    global $LNG, $TMPL, $n, $parse_time;

    $skin = preg_replace_callback('/{\$lng->(.+?)}/i', create_function('$matches', 'global $LNG; return $LNG[$matches[1]];'), $skin);
    $skin = preg_replace_callback('/{\$(.+?)}/i', create_function('$matches', 'global $TMPL; return $TMPL[$matches[1]];'), $skin);
    $skin = preg_replace_callback('/{include \"(.+?)\"}/i', create_function('$matches', 'return file_get_contents($matches[1]);'), $skin);

    return $skin;
  }

  function callback($matches) {
    return $matches[1];
  }
}

class main_skin extends skin {
  function main_skin($filename) {
    global $CONF, $DB, $FORM, $LNG, $TIMER, $TMPL;

    $this->filename = $filename;

    // Number of members
    list($TMPL['num_members']) = $DB->fetch("SELECT COUNT(*) FROM {$CONF['sql_prefix']}_sites WHERE active = 1", __FILE__, __LINE__);

// Build the multiple pages menu
if ($FORM['a']) {
$TMPL['multiple_pages_links'] .= "";
}

else {
// Diplay the Pagination
if (empty($FORM['cat']))
$sql = "SELECT title FROM {$CONF['sql_prefix']}_sites WHERE active = 1";
else
$sql = "SELECT title FROM {$CONF['sql_prefix']}_sites WHERE category = '{$FORM['cat']}' and active = 1";
$result = $DB->query($sql, __FILE__, __LINE__);
$num_members_cat = mysql_num_rows($result);

if (isset($FORM['method']) == 'pv' || isset($FORM['method']) == 'in' || isset($FORM['method']) == 'out') {
$method = "method={$FORM['method']}&";
$method1 = "index.php?method={$FORM['method']}";
}
if (isset($FORM['method']) != 'pv' || isset($FORM['method']) != 'in' || isset($FORM['method']) != 'out') {
$method = "";
$default_method = "method={$CONF['ranking_method']}&amp;";
}

    $TMPL['multiple_pages_links'] = '';
    $TMPL['multiple_pages_p'] = '';
    $TMPL['multiple_pages_n'] = '';
    if ($TMPL['num_members'] > $CONF['num_list']) {
      $num = $TMPL['num_members'];
      $done = 0;
      while ($num > 0) {
        $start = $done * $CONF['num_list'] + 1;
        $end = ($done + 1) * $CONF['num_list'];
        $multi = $done + 1;
        $FORM['start'] = isset($FORM['start']) ? $FORM['start'] : 1;

$prevpg=$FORM['start']-$CONF['num_list'];
if (isset($FORM['cat']) and !empty($FORM['cat']))
if ($prevpg < 2)
$prevpglink="<a href=\"index.php?{$method}cat={$TMPL['category_url']}\"><b><<</b></a>";
else
$prevpglink="<a href=\"index.php?{$method}cat={$TMPL['category_url']}&amp;start={$prevpg}\"><b><<</b></a>";
elseif ($prevpg < 2 && $FORM['method'])
$prevpglink="<a href=\"{$TMPL['list_url']}/{$method1}\"><b><<</b></a>";
else
$prevpglink="<a href=\"index.php?{$default_method}{$method}start={$prevpg}\"><b><<</b></a>";
if ($prevpg<1)$prevpglink='';
$nextpg=$FORM['start']+$CONF['num_list'];
if (isset($FORM['cat']) and !empty($FORM['cat'])) {
$nextpglink=" <a href=\"index.php?{$method}cat={$TMPL['category_url']}&amp;start={$nextpg}\"><b>>></b></a>";
if ($nextpg > mysql_num_rows($result))$nextpglink=' ';
}
else
$nextpglink=" <a href=\"index.php?{$default_method}{$method}start={$nextpg}\"><b>>></b></a>";
if ($nextpg>$TMPL['num_members'])$nextpglink=' ';
$TMPL['multiple_pages_n'] = "$nextpglink";
$TMPL['multiple_pages_p'] = "$prevpglink";

if (isset($FORM['cat']) and !empty($FORM['cat'])) {

if ($TMPL['category_url'] > $CONF['num_list']) {
      while ($num_members_cat > 0) {
        $start = $done * $CONF['num_list'] + 1;
        $end = ($done + 1) * $CONF['num_list'];
        $multi1 = $done + 1;
        $FORM['start'] = isset($FORM['start']) ? $FORM['start'] : 1;

if ($FORM['start'] == $start) {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><b>{$multi1}</b></font>\n";
}
else {
if ($start == 1) {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"index.php?{$method}cat={$TMPL['category_url']}\">{$multi1}</a></font>\n";
}
else {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"index.php?{$method}cat={$TMPL['category_url']}&amp;start={$start}\">{$multi1}</a></font>\n";
 }
}

       $num_members_cat = $num_members_cat - $CONF['num_list'];
        $done++;
      }
   }
}

elseif ($FORM['start'] == $start && !$FORM['a']) {
//Pagination for all sites
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><b>{$multi}</b></font>\n";
}  

else {
//Pagination for all sites
if ($start == 1) {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"{$TMPL['list_url']}/{$method1}\">{$multi}</a></font>\n";
}
else {
$TMPL['multiple_pages_links'] .= "<font class=\"pag_links\"><a href=\"index.php?{$default_method}{$method}start={$start}\">{$multi}</a></font>\n";
 }
}
  
        $num = $num - $CONF['num_list'];
        $done++;
      }
    }
//
}

//End multiple pages menu
  
    // Build the ranking method menu
    $ranking_method = isset($FORM['method']) ? $FORM['method'] : $CONF['ranking_method'];
    $TMPL['ranking_methods_menu'] = '<select name="method">'."\n";
    if ($ranking_method == 'pv') { $TMPL['ranking_methods_menu'] .= "<option value=\"pv\" selected=\"selected\">{$LNG['g_pv']}</option>\n"; }
    else { $TMPL['ranking_methods_menu'] .= "<option value=\"pv\">{$LNG['g_pv']}</option>\n"; }
    if ($ranking_method == 'in') { $TMPL['ranking_methods_menu'] .= "<option value=\"in\" selected=\"selected\">{$LNG['g_in']}</option>\n"; }
    else { $TMPL['ranking_methods_menu'] .= "<option value=\"in\">{$LNG['g_in']}</option>\n"; }
    if ($ranking_method == 'out') { $TMPL['ranking_methods_menu'] .= "<option value=\"out\" selected=\"selected\">{$LNG['g_out']}</option>\n"; }
    else { $TMPL['ranking_methods_menu'] .= "<option value=\"out\">{$LNG['g_out']}</option>\n"; }
    $TMPL['ranking_methods_menu'] .= '</select>';
  
    // Build the categories menu and feed.php link
    $TMPL['feed'] = 'feed.php';
    $current_cat = isset($FORM['cat']) ? $FORM['cat'] : $LNG['main_all'];
    $TMPL['categories_menu'] = "<select name=\"cat\">\n";
    if ($current_cat == $LNG['main_all']) {
      $TMPL['categories_menu'] .= "<option value=\"\" selected=\"selected\">{$LNG['main_all']}</option>\n";
    }
    else {
      $TMPL['categories_menu'] .= "<option value=\"\">{$LNG['main_all']}</option>\n";
    }
    foreach ($CONF['categories'] as $cat => $skin) {
      if ($current_cat == $cat) {
        $TMPL['categories_menu'] .= "<option value=\"{$cat}\" selected=\"selected\">{$cat}</option>\n";
        $TMPL['feed'] .= "?cat={$cat}";
      }
      else {
        $TMPL['categories_menu'] .= "<option value=\"{$cat}\">{$cat}</option>\n";
      }
    }
    $TMPL['categories_menu'] .= '</select>';

    // Featured member
    if ($CONF['featured_member'] && $TMPL['num_members']) {
      $result = $DB->select_limit("SELECT username, url, title, description, banner_url FROM {$CONF['sql_prefix']}_sites WHERE active = 1 ORDER BY RAND()", 1, 0, __FILE__, __LINE__);
      $row = $DB->fetch_array($result);
      $TMPL = array_merge($TMPL, $row);

      $TMPL['featured_member'] = base::do_skin('featured_member');
    }

    $TMPL['query'] = isset($TMPL['query']) ? $TMPL['query'] : '';

    // Please do not remove the link to URL REMOVED/.
    // This is a free script, all I ask for is a link back.
    $TMPL['powered_by'] = $LNG['main_powered'].' <a href="URL REMOVED/"><b>Aardvark Topsites PHP</b></a> '.$TMPL['version'];

    // If you want to remove these links, you can; however, I would appreciate
    // it if you left them there.
    $TMPL['powered_by'] .= '<br /><a href="URL REMOVED/">Online Degree Programs</a>';

    if (!isset($TMPL['content'])) { $TMPL['content'] = ''; }

    $TMPL['num_queries'] = $DB->num_queries;
    $TMPL['execution_time'] = $TIMER->get_time();
  }
}
?>
sextronnics is offline   Reply With Quote
Old 11-17-2009, 01:07 PM   #34
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
hey i the error mesg would help to solve it, but i guess you dont use category or method dropdown boxes?
if so that is the cause of that error.

the code would need to be slightly modified then

let me know.
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 11-17-2009, 04:18 PM   #35
sextronnics
Junior Member
Level 2 Access
Points: 2,130, Level: 1 Points: 2,130, Level: 1 Points: 2,130, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
sextronnics's Avatar
 
Join Date: Sep 2007
Location: Musselkanaal, Netherlands
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
sextronnics is a jewel in the rough
Send a message via MSN to sextronnics Send a message via Yahoo to sextronnics
There is no message but the bottom content shows up in the top of the page outsite the wrapper. there is also a table row displayed I don't use on my topsite. Please view the example. Please, remove spaces and past in any browser:

h t t p : / / t o p l i s t . m a f i a w a r s . v y e n t . e u / i n d e x . p h p ? m e t h o d = p v & s t a r t = 1 1

I have only one Catagory at this moment...
sextronnics is offline   Reply With Quote
Old 11-18-2009, 02:40 AM   #36
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
I see this happen when you just type start=11 does it also happen when you actually set the member per page in admin?

Out of the head i cant imagine its the fault of the mod, more likely because above or a wrong coded file somewhere
it looks like you use the content of table_top_row also in table_row.html
i think you havent clearned table_open and table_close.html , there must be something left in the files which cause this.
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 11-18-2009, 01:54 PM   #37
sextronnics
Junior Member
Level 2 Access
Points: 2,130, Level: 1 Points: 2,130, Level: 1 Points: 2,130, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
sextronnics's Avatar
 
Join Date: Sep 2007
Location: Musselkanaal, Netherlands
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
sextronnics is a jewel in the rough
Send a message via MSN to sextronnics Send a message via Yahoo to sextronnics
Yes it does, I tried the mod 10 members a page. What do I have to change in table_open.html and table_row.html? I posted the source code of both files below

table_open.html:
Code:
<div class="table_border">
<table cellpadding="2" cellspacing="1">
	<tr>
		<th class="table_title">&nbsp;</th>
		<th class="table_title table_description">{$lng->table_title} - {$lng->table_description}</th>
		<th class="table_title">{$lng->g_this_period}</th>
		<th class="table_title">{$lng->g_average}</th>
		<th class="table_title">{$lng->table_stats}</th>
	</tr>
table_row.html:
Code:
<div class="table_border">
   
<table width="737" border="0" cellpadding="1" cellspacing="1">
		<tr>
		  <td class="table_top_title" colspan="4"><a href="{$url}" onclick="out('{$username}');" target="_blank" class="table_top">{$title}</a> - <a href="{$list_url}/index.php?a=stats&amp;u={$username}" class="table_top">{$lng->table_stats}</a></td>
		</tr>
		<tr>
		<td rowspan="4" class="table_top_rank" width="50">{$trophy}</td>
			<td class="table_top_stats" width="146"><b>{$lng->g_this_period}</b></td>
			<td class="table_top_stats" width="151">{$this_period}</td>
			<td rowspan="4" class="table_description" width="373"><a href="{$url}" onclick="out('{$username}');" target="_blank"><img src="{$banner_url}" alt="{$title}" /></a><br />
		  {$description}<br /><b>{$lng->g_category}:</b> <a href="{$list_url}/index.php?cat={$category_url}">{$category}</a> | <b>{$lng->table_movement}:</b> <img src="{$skins_url}/{$skin_name}/{$up_down}.png" alt="{$lng-&gt;up_down}" />		  </td>
		</tr>
		<tr>
		  <td class="table_top_stats" width="146"><b>{$lng->g_average}</b></td>
			<td class="table_top_stats" width="151">{$average}</td>
		</tr>
		<tr>
		  <td heigh="10" colspan="2" class="table_top_rating">Report Abuse</td>
		</tr>
		<tr>
		   <td colspan="2" class="table_top_rating"><img src="{$skins_url}/{$skin_name}/rate_{$average_rating}.png" alt="{$average_rating}/5" /></td>			
		</tr>
</table>
</div>
sextronnics is offline   Reply With Quote
Old 11-19-2009, 01:18 AM   #38
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
okay since it looks like you use same content for table_row and table_top_row, simply open

table_open
table_close
and delete all of it ( make a backup of the files to be on the safe side )

my guess is that that is the cause of your displaying errors.

p.s the mod only show once you have more then 1 page
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Old 11-19-2009, 04:38 AM   #39
sextronnics
Junior Member
Level 2 Access
Points: 2,130, Level: 1 Points: 2,130, Level: 1 Points: 2,130, Level: 1
Activity: 0% Activity: 0% Activity: 0%
 
sextronnics's Avatar
 
Join Date: Sep 2007
Location: Musselkanaal, Netherlands
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
sextronnics is a jewel in the rough
Send a message via MSN to sextronnics Send a message via Yahoo to sextronnics
Thank you Basti,

I deleted the content of both files (table_open.html and table_close.html) and added the pagination code to wrapper.html, Pagination is working great without errors!!

I have 3 pages, 10 members per page.
sextronnics is offline   Reply With Quote
Old 11-19-2009, 06:21 AM   #40
Basti
Moderator
Full Access
Points: 22,817, Level: 1 Points: 22,817, Level: 1 Points: 22,817, Level: 1
Activity: 16% Activity: 16% Activity: 16%
 
Basti's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 2,935
Blog Entries: 1
Thanks: 15
Thanked 61 Times in 49 Posts
Groans: 1
Groaned at 0 Times in 0 Posts
Basti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud ofBasti has much to be proud of
Send a message via MSN to Basti Send a message via Skype™ to Basti
glad it works
__________________
Like OSempire and the help we provide? You can help us as well and make OS a better place - Link to us
Follow us and step away from Internet Explorer
Basti is offline   Reply With Quote
Reply

Tags
pagination

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pagination for category bbmihai Mod Requests 1 01-26-2009 02:44 AM
Pagination - Official Mod OS-Mark Skins and mods for v5.2.x 31 11-08-2008 12:25 AM
Help with pagination mode. crazy Aardvark Topsites PHP 1 04-01-2008 05:24 AM
pagination radislav Aardvark Topsites PHP 2 06-28-2006 10:37 PM



Powered by vBulletin Copyright ©2000 - 2010, , Jelsoft Enterprises Ltd