| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
binhaus Newbie


Anmeldungsdatum: Oct 10, 2006 Beiträge: 4
|
Verfasst am: Mi Okt 11, 2006 4:00 pm Titel: any one can help for shortent pages numbers mod?? urgent |
|
|
hi .
thanks for nice mod ( pages numbers for nuke 79 )
i have just install it and get it realy cool ..
love it
but i try to fix that work to make a shorter link to other pages not success !!!
the problems i have not only some articles on news .. i realy got thousands articles of each topic and categories so if i using this mod it show a long table with all the link to each pages of topic or categories ..
at moment i have use the function you created ( $limitpn = "limit 200"; # limit number of stories in categories ) to make the links pages downs to 20 ( 10 article for each pages) and other affter i can not see or get the links..
please any one can fix it up ..
i have use VB vbuletin board forums and the pages navigaion is great .. any one can make like that ..
eg
[ viewing page 2/600 ] [ 1 2 3 4 5 ... last page ] [ go to page ( the input box here ) ]
please urgent !!
mysite at Hinweis: Nur registrierte Benutzer haben die Möglichkeit in diesem Forum "Links" zu sehen! Bitte Registrieren oder Einloggen - Danke! | and Hinweis: Nur registrierte Benutzer haben die Möglichkeit in diesem Forum "Links" zu sehen! Bitte Registrieren oder Einloggen - Danke! | is out now then need to fix ..
thanks for any advices !!!!!!
[/b] |
|
| Nach oben |
|
 |
Coldcut Site Admin


Anmeldungsdatum: Jun 16, 2005 Beiträge: 875 Wohnort: Austria
|
Verfasst am: Do Okt 12, 2006 10:04 am Titel: Re: any one can help for shortent pages numbers mod?? urgent |
|
|
| binhaus hat folgendes geschrieben: | | at moment i have use the function you created ( $limitpn = "limit 200"; # limit number of stories in categories ) to make the links pages downs to 20 ( 10 article for each pages) and other affter i can not see or get the links.. |
Hi!
Have you set this in both files?
modules/News/index.php
modules/News/categories.php
Coldcut  _________________ CiroxX©™ Development Team
----------
"Dann klappts auch mit der Nachbarin!"
- - - - - - - - - - -
-> Hinweis: Nur registrierte Benutzer haben die Möglichkeit in diesem Forum "Links" zu sehen! Bitte Registrieren oder Einloggen - Danke! | <- |
|
| Nach oben |
|
 |
binhaus Newbie


Anmeldungsdatum: Oct 10, 2006 Beiträge: 4
|
Verfasst am: Do Okt 12, 2006 2:02 pm Titel: yes i did |
|
|
thanks for fast reply..
yes i did .. fist time i leave all as originla script but it make a very long of page numbers on bottom of categories ( i have thousand article on each categores and topics )
and now i turn it to 200 limited by uncomment out the variable:
| Zitat: | $limitpn = "limit 200";
|
i have set 10 articles on each pages
and it now showing 20 pages numbers in bottom and the user can not access the other article older than 200 !!!
you might have look at this one
Hinweis: Nur registrierte Benutzer haben die Möglichkeit in diesem Forum "Links" zu sehen! Bitte Registrieren oder Einloggen - Danke! |
that link at the page 20 of category and can view the hometext of the article at 200 as i set .. but no more link that i can jump to articles affter 201 ....
i've use manual patching in readme.txt included in your download file/..
any advices..
thanks |
|
| Nach oben |
|
 |
binhaus Newbie


Anmeldungsdatum: Oct 10, 2006 Beiträge: 4
|
Verfasst am: Do Okt 12, 2006 2:59 pm Titel: |
|
|
i just have mod litter bit then it working better ..
but still not as i need
find
if ($pagenum < $numpages ) {
$nextpage = $pagenum + 1 ;
then add | Zitat: | | || $limitpn < $numrow |
so it looklike :
| Zitat: | if ($pagenum < $numpages || $limitpn < $numrow) {
$nextpage = $pagenum + 1 ;
|
now i can see the link affter i reach the limited of pagenumbers by next images to the articles affters ..
the $numrow is total of record of article in category viewing
create this by add $numrow = $db->sql_numrows($result); affter ->>
$result = $db->sql_query("SELECT sid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings, images, imgtext FROM ".$prefix."_stories where catid='$catid' AND topic='$topic_id' AND sid!='$headline_sid' $querylang ORDER BY sid DESC limit $offset, 1");
but it still need work more for better script .. hope you guy find out to help me. thanks
nottice: you can try this one if you got small amount of articles by limited smaller:
eg: set limit 20 articles ( if you got 50 articles ) and 5 artiles on each pages.. so it will view 4 page and one more links to go to pages affter 20 ..
|
|
| Nach oben |
|
 |
|