PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   strange glitch (http://www.photopost.com/forum/classifieds-how-do-i/129419-strange-glitch.html)

openfire December 19th, 2006 04:47 AM

strange glitch
 
Whenever someone clicks on "my ads" or "ads from this renter", they are always redirected to "Home » Rentals by State/Province » Massachusettes » Users » ________", with the user's ads appearing beneath that category.

How can I fix ths?

Thanks

Chuck S December 19th, 2006 08:02 AM

Have you hacked code? You would definately need to post links cause using default code here is examples of what I see

http://www.reeftalk.com/classifieds/...t/500/ppuser/1

This is valide

http://www.reeftalk.com/classifieds/...t/500/ppuser/4

Now note nothing shows as it should here so everything appears to be fine

openfire December 19th, 2006 08:49 AM

If you go to ___________________ and click on any user, you will see that it always goes to massachusettes. I first noticed it months ago right after the clean install, but I was too busy at the time with other work on the site and forgot about it until yesterday when a user complained about it.

Chuck S December 19th, 2006 08:56 AM

Okay this looks like a hacked install our menubar does not appear as it should etc

Please reupload clean core files and templates and see if this issue is resolved as I do not even see a photopost menubar at all

openfire December 19th, 2006 04:57 PM

Chuck, I can tell you that it definitely has nothing to do with my menubar mod or any other hack, because it was doing the same thing when I had a clean install of 2.5, and also when I upgraded to 2.6 which where all fresh files.

I think I've figured out what's happened Chuck.

Upon a closer look, I notice that when people place an ad into Massachusettes, "User" becomes a part of the path to their ad. For example, when you click on the category "boston", here is the path:

Home » Rentals by State/Province » Massachusettes » Users » Boston

It SHOULD be Home » Rentals by State/Province » Massachusettes » Massachusettes Residential Rentals » Boston

When you click on "Massachusettes Residential Rentals", you get

Home » Rentals by State/Province » Massachusettes » Users

Massachusettes Residential Rentals is cat=500

So what's happened is that "Users" must have somehow been assigned cat=500 somewhere in the PP code.

I suspect that anyone who has 500 or more categories will run into the same problem. Is this correct?

Chuck S December 19th, 2006 08:55 PM

Yes category 500 is set for the members gallery and is only an issue cause you have over 500 categories. I suppose you could hack certain files like pp-inc.php showcat.php to set that to another number like 5000 or so and in any links where we call the showmembers script

openfire December 19th, 2006 08:57 PM

Quote:

Originally Posted by Chuck S (Post 1184049)
Yes category 500 is set for the members gallery and is only an issue cause you have over 500 categories. I suppose you could hack certain files like pp-inc.php showcat.php to set that to another number like 5000 or so and in any links where we call the showmembers script

Thanks Chuck, that's what I suspected....

What if I just delete Massachusettes Residetial Rentals (cat=500), and then simply recreate the category again?

Chuck S December 19th, 2006 08:59 PM

That will fix it as well ;)

openfire December 19th, 2006 09:00 PM

Awesome. I'll try that.

Thanks

openfire December 19th, 2006 10:21 PM

Yup that did the trick. :cool:


All times are GMT -5. The time now is 08:46 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97