Welcome, Guest
Username Password: Remember me

How to add click counter to list properties page?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to add click counter to list properties page?

How to add click counter to list properties page? 1 year, 7 months ago #448

  • IngusA
  • OFFLINE
  • Junior Boarder
  • Posts: 23
Hi Piranha,

I want to add click counter to list properties page. I want allow customers to see the numbers of views of the properties.

I trie to add {CLICKCOUNTER} to list_properties.html but nothing happens.

What can I do?

{CLICKCOUNTER} works very well with jomres backend template toolbar_reception.html

Regards,
Ingus

Re: How to add click counter to list properties page? 1 year, 7 months ago #449

  • piranha
  • OFFLINE
  • Jomres Extras Developer
  • Posts: 532
That`s not something I offer support for but anyway, the idea is that property clicks counters are stored in the _jomres_pcounter table. You have to extract the info from here using an sql query by property uid and display it in the property list. You can find some instructions on how to create output in a template on the jomres forum (old forum or new forum...should be there somewhere, i posted it )
Become our fan on Facebook and be the first to find out about new releases, updates and discounts Jomres Extras Facebook Page

Re: How to add click counter to list properties page? 1 year, 6 months ago #471

  • IngusA
  • OFFLINE
  • Junior Boarder
  • Posts: 23
Hi,

I tried to add sql query but something is wrong. I'll get the result that every properties are viewed 1 time.. Something is wrong in my sql query.

I added this code to j01010listproperties.class.php:

$query="SELECT count FROM #__jomres_pcounter WHERE `p_uid` = '".(int)$property_uid."' LIMIT 1 ";
$clickList= doSelectSql($query);
$b1=count($clickList);
$property_deets['CLICKCOUNT']=$b1;
$property_deets['HCLICKCOUNT']=jr_gettext('_JOMRES_PROPERTYLIST_COUNTER_LABEL',_JOMRES_PROPERTYLIST_COUNTER_LABEL);

$output[] =jr_gettext('_JOMRES_PROPERTYLIST_COUNTER_LABEL',_JOMRES_PROPERTYLIST_COUNTER_LABEL);

Where I'm wrong???

Regards,
Ingus
Last Edit: 1 year, 6 months ago by IngusA. Reason: previously added wrong database field

Re: How to add click counter to list properties page? 1 year, 6 months ago #473

  • piranha
  • OFFLINE
  • Jomres Extras Developer
  • Posts: 532
You should have a look at the jomres_pp module and see how it`s done there.
Become our fan on Facebook and be the first to find out about new releases, updates and discounts Jomres Extras Facebook Page

Re: How to add click counter to list properties page? 1 year, 6 months ago #476

  • IngusA
  • OFFLINE
  • Junior Boarder
  • Posts: 23
Thank you!

I trie this
  • Page:
  • 1
Time to create page: 0.33 seconds