 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
June 25th, 2005, 05:52 AM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
| Hiding/showing categories
Hi, hope all these reports don't get me banned or something! My site has all the vb3 integration options turned on. When viewing the home page the user has the option to hide/show categories by clicking the + or - image to the far right of the category name. However, this returns a "error 404 not found" message. I've not investigated this bug as I took the easy route and removed the button from the template, but thought you might like to know. All the other options work so I can assume my system is configured correctly. I can revert the template if you need more info about this problem.
|
| |
June 25th, 2005, 08:03 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
LOL no these will not get you banned.
Well I think we would need to see a link to your install as I do not show any issues with this and I have visited about 5 vb3 classifieds installs to check.
|
| |
June 26th, 2005, 03:42 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
The link is http://www.mkivsupra.net/pp-classifieds. As stated I have removed the button from the template, but I can put it back in if needed.
|
| |
June 26th, 2005, 04:18 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
I would need unmodified files placed back to assist and see whats going on
|
| |
June 27th, 2005, 06:30 AM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
OK, having placed the original files back in I can the problem. The collapse/expand does work, however it is when it tries to reload the page afters that it goes wrong because it redirects the user to... http://www.mkivsupra.net/pp-classifieds/misc.php.php
Note the double .php at the end. Taking one of those off loads the page correctly with the category expanded or collapse as expected. You can test this using the logins I've PM'd you for the permissions problem.
|
| |
June 27th, 2005, 08:28 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
Here is the link http://www.mkivsupra.net/pp-classifi...4&script=index
In pp-inc.php replace in bold on the lines 839-842 Code: Content visible to verified customers only.
it should be catopts.php not misc.php
|
| |
June 27th, 2005, 08:57 AM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
Yep that change works perfectly.
Last edited by mawby; June 27th, 2005 at 09:20 AM.
|
| |
July 18th, 2005, 12:47 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 53
|
I encounter the same problem.
But after I change the code in pp-inc.php from misc.php to catopts.php it still shows a 404 error.
I scanned the source files and I can't find any files by the name of catopts.php.
Please help .................... http://www.singaporeexpats.com/classifieds/index.php |
| |
July 18th, 2005, 01:02 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
That would be because in the current download Michael has moved catopts into the misc.php file
I suggest you make sure you download and update your files.
|
| |
July 18th, 2005, 03:19 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 53
|
Updated the files, and it is now pointing to:
Expand: http://www.singaporeexpats.com/class...0&script=index
Implode: http://www.singaporeexpats.com/class...1&script=index
Still shows 404 error ..........
Found this inside misc.php, can you check for me?
if ( $action == "catopts" ) {
// Lets check the need to expand/collapse categories
if ( isset($expand) || isset($implode) ) {
if ( is_numeric($expand) ) {
if ( $expand > 0 && strstr($cpcollapse, ",$expand,") ) {
$cpcollapse = str_replace( ",$expand,", "", $cpcollapse );
setcookie( "cpcollapse", $cpcollapse, time()+2592000 );
}
}
if ( is_numeric($implode) ) {
if ( $implode > 0 && !strstr($cpcollapse, ",$implode,") ) {
$cpcollapse .= ",$implode,";
setcookie( "cpcollapse", $cpcollapse, time()+2592000 );
}
}
}
$more = ( isset($cat) ? "?cat=$cat" : "" );
header( "Location: $script.php$more" );
Please help ..............
}
|
| |
July 18th, 2005, 04:55 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
In misc.php add in bold
typecast($_REQUEST, array('script' => STRING,'do' => STRING, 'action' => STRING, 'product' => INT, 'cat' => STRING, 'report' => INT,
|
| |
July 20th, 2005, 12:59 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 53
|
Great! That works
One more question, howcome I can't implode/collapse all categories ?
For example: ALL the categories in the index page will always expanded except one and when I collaspe one of them, the original one will expand. That means no matter what I click (collapse or expand), there will be only ONE cat collapsed and ALL the rest expanded.
Is this a bug ? ...... Please advice |
| |
July 20th, 2005, 01:23 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
I suggest you download and update your files. any bugs reported and fixed have been updated in the build
|
| |
July 20th, 2005, 04:27 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 53
|
Updated to the latest.
Same problem, there is only ONE category that can be collapsed at ONE TIME and ALL the rest will be expanded if another category is collapsed.
Can take a look ??
Last edited by prodigy; July 20th, 2005 at 04:30 AM.
|
| |
July 20th, 2005, 09:20 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
I will try to do more testing but I cant replicate this issue using the latest code.
|
| |
July 20th, 2005, 01:05 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 53
|
Hi Omegatron,
Maybe you can take a look at my site: http://classifieds.singaporeexpats.com
Then perhaps you can know where the problem lies ...
All the files in the root dir are new, all the files in the template dir are new too of cos except the editproduct, showcat, showproduct and uploadproduct.
Thanks!
|
| |
July 20th, 2005, 01:58 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 53
|
Is this code working for mine ???
if ( $action == "catopts" ) {
// Lets check the need to expand/collapse categories
if ( isset($expand) || isset($implode) ) {
if ( is_numeric($expand) ) {
if ( $expand > 0 && strstr($cpcollapse, ",$expand,") ) {
$cpcollapse = str_replace( ",$expand,", "", $cpcollapse );
setcookie( "cpcollapse", $cpcollapse, time()+2592000 );
}
}
if ( is_numeric($implode) ) {
if ( $implode > 0 && !strstr($cpcollapse, ",$implode,") ) {
$cpcollapse .= ",$implode,";
setcookie( "cpcollapse", $cpcollapse, time()+2592000 );
}
}
}
$more = ( isset($cat) ? "?cat=$cat" : "" );
header( "Location: $script.php$more" );
}
|
| |
August 5th, 2005, 07:07 PM
|
#18 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005 Location: New York
Posts: 15
| Catagory Imploding not working
Can someone show me how to disable the expand feature?
Just like yours: http://classifieds.singaporeexpats.com/
I have the same problem with the PhotoPost Classifieds 2.41 product.
/misc.php?action=catopts&implode=3&script=index has some strange active content and wont work under ie 6.0. When you click back to the page it's imploded but it must be caching the page or session somehow ..
and you cant re-implode it afterwards:
My site is here: http://www.jersey-auctions.com/auction/
But my code for /pp-inc.php is located on line 864. Code: Content visible to verified customers only.
Is this what im suppose to change? also there is one under: /languages/english/pp-inc.php but i't does not have any of those varibles.
Thanks in advance if anyone can help.
Last edited by tcroft2683; August 5th, 2005 at 07:15 PM.
|
| |
August 6th, 2005, 07:10 AM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,660
|
this thread should help disable it How to disable collapse / expand feature?
Sounds to me like a cookie issue. I am still unable to replicate
|
| |
August 6th, 2005, 04:43 PM
|
#20 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005 Location: New York
Posts: 15
| Thanks
that worked like a charm.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 07:07 AM. | |