PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Lots of questions (http://www.photopost.com/forum/classifieds-how-do-i/147093-lots-questions.html)

KrUsTyX December 5th, 2011 04:07 PM

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 :)

Chuck S December 5th, 2011 04:48 PM

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.

KrUsTyX December 6th, 2011 05:49 AM

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

Chuck S December 6th, 2011 01:38 PM

That is strange does not happen for me. what is your thumbnail column set to in the database what are the entries?

KrUsTyX December 6th, 2011 03:06 PM

which table?

Chuck S December 6th, 2011 05:32 PM

cp_categories I would think by default.

KrUsTyX December 6th, 2011 06:01 PM

1 Attachment(s)
rename de file .pdf

thank you

Chuck S December 6th, 2011 06:07 PM

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.

KrUsTyX December 7th, 2011 05:14 PM

i would send you login/password for you to test, but i cannot send you a PM

KrUsTyX December 7th, 2011 05:20 PM

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...

Chuck S December 7th, 2011 05:27 PM

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.

KrUsTyX December 7th, 2011 05:43 PM

Well, this is the original code and i didnt change anything, it happens everytime.

KrUsTyX December 7th, 2011 05:53 PM

It seems that its not for all the categories... this is strange

KrUsTyX December 7th, 2011 05:55 PM

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.

KrUsTyX December 7th, 2011 06:23 PM

Quote:

3,4,5. You can modify your templating however you deem fit.
wich template? showproducts?

Chuck S December 7th, 2011 08:02 PM

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.

Chuck S December 7th, 2011 08:21 PM

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.

KrUsTyX December 8th, 2011 09:30 PM

Quote:

Originally Posted by Chuck S (Post 1294272)
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 :)

Chuck S December 9th, 2011 07:52 AM

glad that helped although logically as I have brought up no idea why that would help. The prior if clause is very specific.

KrUsTyX December 11th, 2011 03:35 PM

how do i translate this, the "choose file" and "no file choosen"

Code:

Content visible to verified customers only.
thank you


All times are GMT -5. The time now is 05:53 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