Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Hacks and Modifications (http://www.pixelpost.org/forum/forumdisplay.php?f=16)
-   -   paged archives (http://www.pixelpost.org/forum/showthread.php?t=8054)

fredxeric 03-08-2008 08:26 PM

paged archives
 
Is there a way to hack or modified the addon paged archive to instead of having numbers of page to show only next and previous if there some more page?

Thanks

kevincrafts 03-08-2008 10:43 PM

I think the easiest way would be to add a class name to all the links for the page numbers - then you can just hide them with css. In looking at the addon, I think it starts around line 453 and outputs the variable $pagecounter for the text link.

Dennis 03-08-2008 10:49 PM

there is a reason why it is called PAGED archive....

fredxeric 03-09-2008 04:05 PM

Quote:

Originally Posted by Dennis (Post 55999)
there is a reason why it is called PAGED archive....


Lol, of course but can when have paged archive without the number showing, just to have the next page or previous page if there some page to show.

I will check kevincrafts's suggestion

fredxeric 03-09-2008 04:07 PM

Quote:

Originally Posted by kevincrafts (Post 55997)
I think the easiest way would be to add a class name to all the links for the page numbers - then you can just hide them with css. In looking at the addon, I think it starts around line 453 and outputs the variable $pagecounter for the text link.

I dont understand what your are suggest, I found the output but dont know what to do with that!

kevincrafts 03-09-2008 07:14 PM

On each line that outputs a page number, you need to change the output to also output a class name associated with the tag, such as: <a href="index.php?x=browse&pagenum=1" class="pagenumber">$pagenumber</a>

then in your css file you can set .pagenumber { display:none; }

fredxeric 03-09-2008 07:26 PM

Quote:

Originally Posted by kevincrafts (Post 56035)
On each line that outputs a page number, you need to change the output to also output a class name associated with the tag, such as: <a href="index.php?x=browse&pagenum=1" class="pagenumber">$pagenumber</a>

then in your css file you can set .pagenumber { display:none; }

Ok thanks I have done the hack and it is working fine now....

Frida 04-02-2008 12:15 PM

Question
 
Quote:

Originally Posted by Dennis (Post 55999)
there is a reason why it is called PAGED archive....

Hi Dennis I have been trying to make the paged archive show pictures in a descending way when "ALL" pictures are shown but I can't make it work. All the different categories an tags shows in descending as they should. I have it set as sort by date and time /descending in my admin. panel. Can you help me with this?

My website is at http://www.pixelbloggen.se/

duncani 06-02-2008 05:59 PM

Hi, fredxeric (or anyone else!!) Please can you help me with this mod.
I have tried to change the paged archive file as suggested above, but what ever I do my local site seems to totally break. (nothing is displayed at all) I have changed all the $pagecounter link tags to as below from lines 453 to 501 adding the class="pagenumber" but this seems to screw things up. What am I doing wrong?
PHP Code:

<span class="archive_page_number\"><a href='index.php?x=browse&amp;category=$cat_id&amp;pagenum=$pagecounter' class="pagenumber">$pagecounter</a></span> 

Any help is much appreciated
Thanks
Duncan

Ps I would love to see this mod featured in main addon so we can have just prev/next links or full page counter links or both (which is what i want!) Any chances of that pixelposters?!

Dennis 06-03-2008 05:52 AM

use single quotes instead of double.


All times are GMT. The time now is 07:03 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.