PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 28th, 2005, 08:11 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Wierd subcat link bug(FIXED)

If I go to a subcategory, the links on the images correclty link to the product listed, however:

Click the link tot he cubcategory you are in on that page and it'll redirect you from reviewpost/showcat.php/cat/16 to this page /reviewpost/showcat.php?cat=16&page=1 (for example)

Now some images next to each product link to: /reviewpost/showcat.php/cat/-1/ppuser/

Any ideas?

Last edited by Arnie; August 28th, 2005 at 08:27 PM.
Arnie is offline   Reply With Quote
Old August 28th, 2005, 08:33 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Okay just to make this even wierder, different images get that broken link upon a refresh.
Arnie is offline   Reply With Quote
Old August 28th, 2005, 09:05 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Okay looking into this further:

445/447 of showcat.php are:

Code:
Content visible to verified customers only.
But the a-href tags are already supplied by$catimage as it's the output from the function get_thumbtpl (in pp-inc) which is defaulting because of the code:

function get_thumbtmpl( $id, $imgtag, $height, $width, $thumbtag, $whichcat = -1, $thislink = "" ) {

$whichcat seems to be set to -1 no matter what? muh?

As a result we get an href tag around a table with a junked href tag inside that.

I think the -1 and null setting for $thislink are junk and debug gumf? I removed the ="-1" bit and the $thislink preset and it all worked for me.

Last edited by Arnie; August 28th, 2005 at 09:07 PM.
Arnie is offline   Reply With Quote
Old August 29th, 2005, 08:55 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
I beleive the fix here is real simple. THANKS

$catimage = get_thumbtmpl( $id, $thumbrc, $height, $width, $thumbtag, $pcat );
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 29th, 2005, 09:02 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
How's about reducing this line (~447 showcat.php):

Code:
Content visible to verified customers only.
.. to this?

Code:
Content visible to verified customers only.
Otherwise you get some very wierd effects in FireFox plus there's a needless link within a link otherwise.
Arnie is offline   Reply With Quote
Old August 29th, 2005, 09:13 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
Arnie

I dont know what you mean by needless link

If you set the line that I note to add the $pcat variable the link then also becomes a perfect link to the actual product just like the title next to it

I use Firefox by the way
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 29th, 2005, 09:15 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,943
If I go to the page your talking about example below the links are product links

http://www.reeftalk.com/reviews/showcat.php?cat=36
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 29th, 2005, 09:51 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Doesn't function get_thumbtmpl always return a string with the correct ahref tags in it?

If so, why the need to enclose the returned string ($catimage) in showcat.php inside another ahref link?
Arnie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kind of wierd problem after VB 3.5 upgrade coloradok5 Photopost Pro Installation & Upgrades 2 November 2nd, 2005 09:27 AM
5.12 Edit SubCat sort order - not working(NOT A BUG) mjm Photopost Pro Bug Reports 3 July 10th, 2005 05:33 PM
Wierd templating problem in upgrade crazy4bass Installs and Upgrade - vBulletin 3.0.X 2 May 24th, 2005 04:45 PM
Disable SubCat List in Description greenhybrid How Do I? - vBulletin 3.0.X 1 April 3rd, 2005 12:53 PM
I have a few wierd problems Delw Installs and Upgrade - vBulletin 3.0.X 5 February 13th, 2005 02:18 PM


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

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0