View Full Version : Wow, What a problem.
ellan
09-11-2007, 02:51 AM
Hey, guys did you ever try to lock the category? Yeas, I know you did. But then try to suggest a catery as if you were a customer to this category, and you will get a message that this category is locked. But what should I do if I want to lock this category for listings but not for the subcategory suggestion.???:sos:
Slava B.
09-13-2007, 07:13 AM
Hi ellan
Open the following file: /suggest-category.php
and add this code:
unset($category['locked']);
before code (line #100):
if($category['locked'])
{
$error = true;
$msg = $gDirLang['error_category_locked'];
}
That all, now you users may add subcategories in to locked category.
Support team
ellan
09-15-2007, 03:52 AM
Ok, this problem we resolved. But here I found another pretty interesting bug. Ok, Look for example you wanna to sybmit a link. you try to do this and get a message that this category is locked. You choose subcategory and then you get to the submission page. Here the problem is. Why do you need to choose category again? When you get to submission page you can see the category selection field, but why do there is a ROOT categore selected? Could you do so, that user could add a software from any page of the directory, but he should choose this category on the submission page? Thank you.
Slava B.
09-17-2007, 07:15 AM
Hi ellan
Here solution for you:
Open file: /templates/"current_template"/Layout.php
find following code (line #296):
$menu['suggest-link']['url'] = $url."suggest-link.php?id=".$aCategory;
and change to:
$menu['suggest-link']['url'] = $url."suggest-link.php?id_category=".$aCategory;
That all.
Support
ellan
09-17-2007, 09:44 PM
Thgank you. I hope these two questions will also be usefull for most of us=D Don't think they were stupid=D Thank you again=D
ellan
09-18-2007, 09:11 AM
Mmmm, this solution doesn't work=(
I don't know why. I changed this code in both of layout.php and /css/layout.php, still I have the same situation...waiting for help. Thanks.
ellan
09-18-2007, 09:16 AM
Wow, again new problem...I am so sorry that I am so problemous, but I just check my site and find new and new problems. Now When user adds link tto my catalog, he has to choose category twice, more of that, if he chooses any other category he gets message that this category is locked...yes it is, but to choose subcategory he has to choose category, and he can't....waht to do? If you didn't understand me, just try to add anithing to my catalog....
ellan
09-18-2007, 09:28 AM
OK, little bit more facts. Actually, now I have unlocked all categories beside root but still have this problem...when you choose other category on the suggestion page you get locked message. I don't know why...I also noticed that if you will not touch category selection during submission but just leave it as it is(ROOT) you will submit and everything will be OK...but I don't think that customer, when he sees ROOT in the category selection field()but he knows that he choose category before by surfing thru my catalog) will leave it as it is,,, he will try to change to category he selected before...so what I want.
I want to change this stuff so that when you have chosen category by surfing you will see it on the submission page but not the ROOT over there, or another way just let customers add software where they want and just choose category directly during submission but not before....is that possible?
P.S> I will write there to customers that they don't need to change this ROOT to anything else because they've chosen category before...but if you want to see the bug just try to change the category on the submission page. And also, all categories are unlocked...so it's really bug...
Slava B.
09-18-2007, 11:06 AM
Hi ellan
About my solution, it is correct, please try empty cash.
Please let me know your site URL, I will try to check your problems.
Thanks
Support
ellan
09-18-2007, 09:41 PM
The URL is www.64xsoft.com
ellan
09-18-2007, 10:42 PM
yep, you are right, your solution works, but again, now user sees there the category he have choosen before, but if he decided that this category is not appropriate for his listing, what would he do? Right, he will try to choose another one, but then he will get message about the locked category...and I again mention this - all categories are unlocked beside root category and I have emptied the cache. Thank you
PS. some easy question...how to set {if} option so, that ads were shown at the homepage only? I forgot. I should type something like {if $category_id==0}{/if}, shouldn't I?
Slava B.
09-19-2007, 05:36 AM
Hi ellan
About your question, yes you should type like:
{if $var == 'value'}
...
{/if}
About your problem, I visited your site and tried to add the subcategory it is possible but adding the listing in not.
Is this site policy you want?
Support
ellan
09-19-2007, 06:08 AM
Ok, here is a problem....when I lock only root all my categories lock too and also I can't add software from any page=) when I unlocked it all worked perfectly, but then question... hoiw can I do, that when user adds his link to my catalog and he didn't choose the lowest subcategory, script returns him the message and all content he typed in the form and suggests to choose the lowest category? Are you able to do so?
Slava B.
09-19-2007, 08:58 AM
Hi ellan
Yes I'm able do it.
Let specify your idea:
1. If the user try to add new listing in ROOT category, he get message: "Please select lowest category"
2. After he redirect to form with selected him category and his data content.
Am I right?
Support
ellan
09-19-2007, 09:44 PM
Number One...exactly...but he shouldn't go home>chese category>choose subcategory and then push add link button. I just want he tryes to add a software but in category selection he leaves ROOT and he gets the same page but with highlited CATEGORY SELECTION FIELD...
Number two, in this point I just meaned that he sholdn't loose all the data he typed before pushing the submit button in case he didn't specify category=)
Slava B.
09-25-2007, 10:02 AM
Hi ellan
Here link to solution for you
http://www.esyndicat.com/forum/showthread.php?t=9884&page=2&highlight=dropdown
This solution consist second part or your idea, and the solution for first part I will post when you done modification.
Good lack
Support
Slava B.
09-25-2007, 11:53 AM
This link better:
http://www.esyndicat.com/forum/post64939-13.html
ellan
09-25-2007, 09:47 PM
Uff, again this links to Pro area. Ok...what should I do to prove that I bought my version?
Dave Baker
09-28-2007, 10:40 AM
Hello ellan,
Please contact with our sales department via email sale[at]esyndicat[dot]com.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.