WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

categories pages not working

Version: 4.1.3
Example URL: http://www.gamevilla.com/8/
printPrint


categories pages not working
fuee
Forum Regular

Usergroup: Customer
Joined: Nov 01, 2004
Total Topics: 55
Total Posts: 120
Posted 09/30/07 - 08:44 PM:
quote post
#1
Hi Paul,
Since the update the below code doesnt work for additional pages in my categories anymore.

<IF {MULTIPAGE}>

<br>Page: {PREVIOUS} <b>[{CURRENTPAGE}]</b> {NEXT}

</IF>

I changed it to {PAGINATION} but when i click on the additional pages it brings me back to the original category page and not the next one. The number of multipages are correct execpt they all link back to the main category only. If i enter the next category page manually in the web address it will show up with the proper page and links. I have included one of my site links in the example url for you to look at.

My map.xml is also messed up and is just generating the same category page over and over again, i guess it is feeding off the same multipages problem that's being regenerated for my categories.

My search page and album page pagination is working fine when i switched to {PAGINATION}


Below is my .htaccess if that may be the issue :

RewriteEngine on



# If not working, uncomment and correctly fill the line below:

# RewriteBase /

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]

RewriteRule ^games/([a-z]+)/([0-9]+)$ link.php?action=$1&id=$2
RewriteRule ^games/([a-z]+)/([0-9]+)/$ link.php?action=$1&id=$2
RewriteRule ^games/([0-9]+)$ link.php?id=$1
RewriteRule ^games/([0-9]+)/$ link.php?id=$1

RewriteRule ^thread/([0-9]+)$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)$ comments.php?id=$1&page=$2
RewriteRule ^thread/([0-9]+)/([0-9]+)/$ comments.php?id=$1&page=$2

RewriteRule ^([0-9]+)$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/$ index.php?action=displaycat&catid=$1&page=$2

RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1



ErrorDocument 404 /404.php

<Files php.ini>

order allow,deny

deny from all

</Files>

Let me know if you need anymore info. Ill try to leave my site as is for now so you can look at it. Really dont want to uninstall everything to go back down to version 4.0.39. I totally forgot to back up my database before the upgrade sad

Thanks,
Fuee

Edited by fuee on 09/30/07 - 10:41 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 10/01/07 - 12:58 AM:
quote post
#2
At Admin -> Settings -> SEO your rewrite format for categories probably doesn't contain {PAGE}. The default is
{CATREWRITEPATH}/{PAGE}.html
. If you want to keep it numeric you can use
{CATID}/{PAGE}/
.

Make sure your threads format has {PAGE} too. Here's what they have by default in 4.1: http://www.webmastersite.net/screenshots/13236.jpg

Looks like the 4.0->4.1 upgrade is leaving off the {PAGE}. Fixing.

Edited by Paul on 10/01/07 - 01:10 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
fuee
Forum Regular

Usergroup: Customer
Joined: Nov 01, 2004
Total Topics: 55
Total Posts: 120
Posted 10/01/07 - 06:14 AM:
quote post
#3
great paul it worked smiling face

Thanks
Fuee
Rik
Forum Regular
Avatar

Usergroup: Customer
Joined: Sep 22, 2004
Location: Wake Forest, NC
Total Topics: 32
Total Posts: 160
Posted 10/04/07 - 02:47 PM:
quote post
#4
Paul,

I am on 4.1.4 and have the same problem. When an additional page is selected, an error occurs.

BTW, I love the auto update feature.


admin>SEO has:

{CATREWRITEPATH}/{PAGE}/



Edited by Rik on 10/04/07 - 03:05 PM

Rik Rasmussen
Two Way Radio Directory
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 10/04/07 - 04:09 PM:
quote post
#5
Then it's not the same problem, I'll need to see the URL.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Rik
Forum Regular
Avatar

Usergroup: Customer
Joined: Sep 22, 2004
Location: Wake Forest, NC
Total Topics: 32
Total Posts: 160
Posted 10/04/07 - 05:45 PM:
quote post
#6
Try one of the page links at the bottom of this page:

http://www.twowayradiodirectory.com/directory/Dea...

Rik Rasmussen
Two Way Radio Directory
Rik
Forum Regular
Avatar

Usergroup: Customer
Joined: Sep 22, 2004
Location: Wake Forest, NC
Total Topics: 32
Total Posts: 160
Posted 10/05/07 - 10:52 AM:
quote post
#7
Paul,

Did that url show you what you need?


admin>SEO has:

{CATREWRITEPATH}/{PAGE}/ (note there is no .html on the end)

Edited by Rik on 10/05/07 - 11:06 AM

Rik Rasmussen
Two Way Radio Directory
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 10/06/07 - 05:43 AM:
quote post
#8
Your link shows me "Internal Server Error". Altering the URL to go around your site though I find the problem is the pagination.tpl template, a brief issue I saw in a version not long ago. Overwrite /templates/default/pagination.tpl with the one in 4.1.4 (or if you upgrade it'll probably automatically fix it).

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Rik
Forum Regular
Avatar

Usergroup: Customer
Joined: Sep 22, 2004
Location: Wake Forest, NC
Total Topics: 32
Total Posts: 160
Posted 10/06/07 - 07:48 AM:
quote post
#9
Must have been a temporary problem with my host service, the link is working OK for me now.

On my admin page I see: "Your WSN Links 4.1.4 is up to date.".

I will try a manual upload of that tpl file.

Rik Rasmussen
Two Way Radio Directory
Rik
Forum Regular
Avatar

Usergroup: Customer
Joined: Sep 22, 2004
Location: Wake Forest, NC
Total Topics: 32
Total Posts: 160
Posted 10/06/07 - 07:56 AM:
quote post
#10
Paul,

Uploading the pagination.tpl file did fix it.

Thanks

Rik Rasmussen
Two Way Radio Directory
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 10/07/07 - 02:10 AM:
quote post
#11
I suppose it wouldn't trigger an automatic update since the incorrect {ITEM} is the same number of characters as the fixed {LINK}... annoying.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.