Hi there, Last question (I hope).. I have the private messages turned off, and so I am using the contact seller form on their advert details page for viewers to contact the advertisers. My question is there a way to show my advertisers, who has contacted them and the date they were contacted to show up within their account section somewhere (IE: userbrowselistings page). As this may be a useful way for them to see at a glance how many times they were contacted and when. So it would end up looking something like this:- Contacted By Date Contacted [email protected] 21 / 3/ 2014 [email protected] 25 / 3 / 2014 [email protected] 15 / 4 / 2014 etc.... Or if this were not possible could there be a way to just show the number of times they were contacted ? Hope my ramblings make sense, and REALLY hope there is some way to achieve this. Cheers Jason
Jason, My standard response... "Yes, it is possible, but..." You're alternative method however is actually much simpler. There has been (for years) a column in the listings table called, repliedcount. This tracks how many times someone has contacted the seller about the listing, however as far as I've seen it hasn't been used anywhere. This is something that I did before for a client, but can't find it so I just recreated it sort of. I made another smarty plugin, just like the total_pics plugin I made for you earlier and I'm calling it <insert drum roll here>... total_contacts! I know, very, very original! As usual, put the plugin in the plugins folder. Call the plugin from within the foreach statement in the user/userbrowselistings.tpl As an example (used for my testing), I used the following in the first <td> of the user's listings table: Code: <td class="{cycle values="row1,row2" advance=false}"> {$entry.title}<br /> You have {total_contacts lid=$entry.id} contacts for this listing. </td>
Mike I don't know what to say don't know about drum roll it should be a fanfare. Worked like a charm !!!!!!!!!!!!!!!!!!! I do believe I'm now out of questions Seriously thanks very much Mike, very much appreciated jason