php - Add 1 hit to article on click function joomla -


Hi guys, I have some trouble here.

  & lt; A class = "anything" Href = "other / website" & gt; Take me to this product & lt; / A & gt;   

This button or link has been added to every article in my Joomla site here and I have created every article to display different products, and link me to my webshop Will take in for the product.

My problem here needs to be a toplist on my site based on article article hits.

Basically, I want to add that link to a specific article in which onClick

You can display text in the module .

  • Article class module
  • Articles - NewsFlash module

    Both have the option of order results url part from

    module output by hit you have to open the module code and press Which is & lt; A & gt; ... & lt; / A & gt; part

    An example would be:

      & lt ;? Php $ pattern = "/<a.*? And gt; & lt (*.); \ / A & gt; /"; Preg_match ($ pattern, $ string, $ url); // $ string contains module output print_r ($ url); ? & Gt;   

    This tutorial can also help you:.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -