Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 03-08-2008, 08:26 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
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
Reply With Quote
  #2  
Old 03-08-2008, 10:43 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
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.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #3  
Old 03-08-2008, 10:49 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
there is a reason why it is called PAGED archive....
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #4  
Old 03-09-2008, 04:05 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Quote:
Originally Posted by Dennis View Post
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
Reply With Quote
  #5  
Old 03-09-2008, 04:07 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Quote:
Originally Posted by kevincrafts View Post
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!
Reply With Quote
  #6  
Old 03-09-2008, 07:14 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
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; }
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #7  
Old 03-09-2008, 07:26 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Quote:
Originally Posted by kevincrafts View Post
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....
Reply With Quote
  #8  
Old 04-02-2008, 12:15 PM
Frida Offline
forum loafer
 
Join Date: Jan 2008
Posts: 17
Question

Quote:
Originally Posted by Dennis View Post
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/
Reply With Quote
  #9  
Old 06-02-2008, 05:59 PM
duncani Offline
forum loafer
 
Join Date: Nov 2007
Location: England
Posts: 12
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?!
Reply With Quote
  #10  
Old 06-03-2008, 05:52 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
use single quotes instead of double.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:54 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs