 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
December 5th, 2011, 04:07 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
| Lots of questions
1 - Everytime I post an item, the category avatar is changing for the new item image... how do i stop that?
2 - Can i remove the "best offer" ?
3 - Can i move the description at the bottom when reading an ad? To me, it would make sense to move this under all the "extra fields"
4 - Can i remove the "buy it now" option ?
5 - Can i remove the "number of ads" ?
6 - Can we make the description mandatory, i tought it was.
Thank you |
| |
December 5th, 2011, 04:48 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
1. If an avatar is already set it should not change everytime unless you have modified the code.
This is the code in image-inc.php you can clearly see only if the thumbnail row is 0 is the avatar updated Code: Content visible to verified customers only.
2. Not really without altering the code since price is not required. If a user does not enter a price that is how best offer appears
3,4,5. You can modify your templating however you deem fit.
6. I beleive it is already an option try it with the tinymce editor turned off. Maybe the advanced editor changes whether the java knows if description is empty of not.
|
| |
December 6th, 2011, 05:49 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
| Quote:
$row = ppmysql_query_one("SELECT thumbnail FROM {$Globals['pp_db_prefix']}categories where id=$thecat", $link);
$morestuff = "";
if ( $row['thumbnail'] == 0 )
{
$morestuff = ",thumbnail=$lastproductid";
}
| this is whats in my code, and i didnt change anything in my code, and it doesnt seems to work cause everytime i post a new item, the avatar changes
|
| |
December 6th, 2011, 01:38 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
That is strange does not happen for me. what is your thumbnail column set to in the database what are the entries?
|
| |
December 6th, 2011, 03:06 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
which table?
|
| |
December 6th, 2011, 05:32 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
cp_categories I would think by default.
|
| |
December 6th, 2011, 06:01 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
rename de file .pdf
thank you
|
| |
December 6th, 2011, 06:07 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
alot of yours are set to static avatars. I am not seeing anything out of place I need more of an explanation.
You can remove the code I noted if you want but from my testing nothing changes unless the avatar is empty set to 0.
|
| |
December 7th, 2011, 05:14 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
i would send you login/password for you to test, but i cannot send you a PM
|
| |
December 7th, 2011, 05:20 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
I just tried it again, its really a problem and i don't know why... every new item, the avatar is changing... it removes the path that i entered and replace it with a number...
|
| |
December 7th, 2011, 05:27 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
well the strange thing here like I said I have tried it it will only change the entry when the entry is equal to 0.
|
| |
December 7th, 2011, 05:43 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
Well, this is the original code and i didnt change anything, it happens everytime.
|
| |
December 7th, 2011, 05:53 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
It seems that its not for all the categories... this is strange
|
| |
December 7th, 2011, 05:55 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
It changes when the category doesnt have sub-category... like in "pièces audi" is the categorie and as soon as i upload something, the avatar is changing
But in ''MK1", im posting an ad in the sub-category, so it doesnt change the avatar on the index.
|
| |
December 7th, 2011, 06:23 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
| Quote: |
3,4,5. You can modify your templating however you deem fit.
| wich template? showproducts?
|
| |
December 7th, 2011, 08:02 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
Right your saying it changes the categories that you set static full url avatars for right. You can try making the if clause line this Code: Content visible to verified customers only.
The strange thing as I said the if clause itself is very specific meaning ONLY if thumbnail is 0 would the avatar change. I think by default if you have a url in there which you can in classifieds set a static url avatar then that if clause would not be 0 so it would not change so can not say why it would. It doesnt change for me at my site.
Now as far as the template you want to mod yeah showproduct.
|
| |
December 7th, 2011, 08:21 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
by the way thought I would share my test on my test site Main Index - PhotoPost Classifieds
I am running the default 4.21 code set a static avatar as you can see for the accessories category and uploaded to it the avatar did not change which is why I have no idea how yours would since that if clause is very specific.
|
| |
December 8th, 2011, 09:30 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
| Quote:
Originally Posted by Chuck S Right your saying it changes the categories that you set static full url avatars for right. You can try making the if clause line this Code: Content visible to verified customers only.
The strange thing as I said the if clause itself is very specific meaning ONLY if thumbnail is 0 would the avatar change. I think by default if you have a url in there which you can in classifieds set a static url avatar then that if clause would not be 0 so it would not change so can not say why it would. It doesnt change for me at my site.
Now as far as the template you want to mod yeah showproduct. | working now, and again, i didnt modify the code prior so i guess theres something different on both sides |
| |
December 9th, 2011, 07:52 AM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
glad that helped although logically as I have brought up no idea why that would help. The prior if clause is very specific.
|
| |
December 11th, 2011, 03:35 PM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 124
|
how do i translate this, the "choose file" and "no file choosen" Code: Content visible to verified customers only.
thank you
|
| | |
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:12 AM. | |