Halfagain IM Forums
February 10, 2012, 04:15 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Update templates for new pagination system.  (Read 3454 times)
0 Members and 1 Guest are viewing this topic.
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« on: August 29, 2008, 06:46 »

The new version of the script use a diffrent code in templates for pagination. If you make new installs and use new templates, is nothing for you to do.

If you want to update the script core though, and you already use own/modified template, tehre is a code to be edited. That is same code, existing in the category.tpl and home.tpl files

The full old paignation code is included in some {if} statement

  {if sizeof($pages)>1}


 
   
 
Pages:
   
   {foreach from=$pages item=p}
     {$p.title} 
   {/foreach}

   


   {/if}


You also need to remover the open and closing ifs, and use a new code, so the pagination part will be somthing like this:




 
   
 

   
   {if $paginate.page_current != 1} {paginate_first text="First" } {paginate_prev text="<<" } {/if}
{paginate_middle page_limit="5" format="page" prefix=" " suffix=" "}
{if $paginate.page_current != $paginate.page_total} {paginate_next text=">>"} {paginate_last text="Last"}{/if}

   

Logged
ebiznet
Newbie
*

Karma: 11
Offline Offline

Posts: 40


« Reply #1 on: September 19, 2008, 15:36 »

I put in the new codes in the Power template's category.tpl file as you described, but the Category page refused to load. :confused:

I tried the new code in both the Default and Power themes with the same blank page result.

What do you think could be the problem here?
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #2 on: September 19, 2008, 15:58 »

I am not sure, but i think is the best to just download the templates from delivery area, since they are already modified to use the new pagination.
Logged
ebiznet
Newbie
*

Karma: 11
Offline Offline

Posts: 40


« Reply #3 on: September 19, 2008, 18:21 »

Omar, I have downloaded the new templates and uploaded them to my site.

Unfortunately, these are not working for me. I am getting a blank white screen.

Only when I change them back to the July 25 templates do they work again.

Is anyone else having these problems with the recently released templates, or just me?
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #4 on: September 19, 2008, 19:53 »

Have you also updated your script files? If you just upload templates but you still have old script core, it won't work.
Logged
ebiznet
Newbie
*

Karma: 11
Offline Offline

Posts: 40


« Reply #5 on: September 20, 2008, 06:20 »

Hi Omar, it works now! After updating the SS script, as you mentioned.

The new pagination system is exactly what I needed. It really helps keep the page numbers tidy now.

Smiley Thanks!
Logged
successtrax
Newbie
*

Karma: 10
Offline Offline

Posts: 60


« Reply #6 on: September 20, 2008, 13:36 »

Omar:

Where can the new templates be found.  Am I correct in the fact that if you have not updated the SS files then you cannot use the new templates?  Also is the SS update you are speaking about have the new ebay functionality?

Thanks,

Rick
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #7 on: September 20, 2008, 18:16 »

Quote
Where can the new templates be found.


In the delivery area.

Quote
Am I correct in the fact that if you have not updated the SS files then you cannot use the new templates?


The only new thing about those templates is the new pagination system, is not some additional templates. You are correct though, you need latest SS core to use them

Quote
Also is the SS update you are speaking about have the new ebay functionality?


Yes
Logged
flashdiva
Jr. Member
**

Karma: 11
Offline Offline

Posts: 119


WWW
« Reply #8 on: September 26, 2008, 22:00 »

Just to confirm what Omar is saying. I found out the hard way. I added the coding he gave, above, and that also worked. But what I did not realize with the new NEW templates of last week, was that they had changed/added/updated since the July initial new templates.

Download the current script install. Download the NEW new templates of the other day. And it all should work great.

Omar... in future, if you could post a short note stating that something has updates in it, this would really help. If you did that, I missed it, and sorry :confused:

Overall, I am so pleased with where SS has come, since May!

Leanne
Logged

Leanne Carson Boyd
Waybill To Adventure LLC. Ebook Gallery. Gallery of Works.
Extraordinary Flash. And more...[1] [2] [3]...Credentials. :eek:
"You do not really understand something unless you can
explain it to your grandmother" - Albert Einstein
lewco
Newbie
*

Karma: 10
Offline Offline

Posts: 9


« Reply #9 on: December 07, 2008, 14:22 »

Omar, I have tried to follow the threads about the page numbers and pagination codes and script files, but I am lost.
I am using the the latest install version of SS and when I populate the category page with products I do not have any page numbers.

go to my site:  www.aecstores.com/golf and tell me what is wrong.

Lew
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!