Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 11th, 2011, 08:59 AM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default Can I add a directional button to pagination?

Hi,

I would like to replace the arrows in the pagination (<< previous 1, 2, 3, next >>) with a custom button. Is this possible?

You can see the pagination on this page

Thank you!

Store ID 6719
www.forbabygifts.com
  #2  
Old May 11th, 2011, 09:06 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Yes, you can replace the image URLs with your own image urls:

HTML Code:
<div class="pgr">
  Pages:
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='<img src="[server.plugin_url]/first_off.gif" alt="first page" />']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='<img src="[server.plugin_url]/prev_off.gif" alt="prev page" />']
  [pager.pages]
  [pager.next text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='<img src="[server.plugin_url]/next_off.gif" alt="next page" />']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='<img src="[server.plugin_url]/last_off.gif" alt="last page" />']
</div>
That code contains an enabled and disabled image.

Eric
  #3  
Old May 11th, 2011, 10:33 AM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

Quote:
[server.plugin_url]
Do I find this on my server? If so, where is the file that contains the current images?

And...

Quote:
That code contains an enabled and disabled image.
Can you explain this more? I'm
  #4  
Old May 11th, 2011, 10:39 AM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

Found the folder.
  #5  
Old May 11th, 2011, 10:41 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

You want to set it up like so:

HTML Code:
<img src="http://www.forbabygifts.com/images/my_first_image.jpg" alt="first page" />
<img src="http://www.forbabygifts.com/images/my_prev_image.jpg" alt="previous page" />
<img src="http://www.forbabygifts.com/images/my_next_image.jpg" alt="next page" />
<img src="http://www.forbabygifts.com/images/my_last_image.jpg" alt="last page" />
Replace image names with you custom images.

The OFF images is when the image is not clickable (disabled because you are already on that page).

Eric
  #6  
Old May 11th, 2011, 10:47 AM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

ahhhhh! (lightbulb)

I'll do it your way. I was going to replace the images here:

/wp-content/plugins/datafeedr/

Thank you!!
  #7  
Old May 11th, 2011, 10:52 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

If you replaced the images, they would just revert back to default after an update.
  #8  
Old May 11th, 2011, 10:55 AM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

Ahhh!! (brighter lightbulb)

Thank you
  #9  
Old May 11th, 2011, 11:32 AM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

I have two problems:

The next page image is not graying out when on the last page.

The alt text is not showing when I hover.

You can see example here

How can I fix. My code is this:

HTML Code:
[pager.prev text='<img src="http://www.forbabygifts.com/images/previous.png" alt="previous page" />
' alt='<img src="http://www.forbabygifts.com/images/previous.png" alt="previous page" />']
  [pager.next text='<img src="http://www.forbabygifts.com/images/next.png" alt="next page" />' alt='<img src="http://www.forbabygifts.com/images/next.png" alt="next page" />']
  #10  
Old May 11th, 2011, 11:45 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

You must provide a grayed out image yourself. And then link to it in the alt code. I only see this: http://www.forbabygifts.com/images/next.png
  #11  
Old May 11th, 2011, 12:46 PM
cashnow cashnow is offline
 
Join Date: Sep 2009
Posts: 362
Default

Okay, that makes sense.

Thanks again!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB 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 Links macfink Questions 1 March 28th, 2011 09:12 AM


All times are GMT -5. The time now is 12:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.