(06-07-2016, 10:19 AM)Dynamo Wrote: Well, I had revised this:
foreach($html->find('table[class="tborder"] tr[class="inline_row"]') as $element)
and removed those ignore 2 rows codes,added some more substr() and it started counting posts correctly,(i had tested it for other forums too [including freevps] and it was working fine). i really wonder what you change to fix its postcount (if you can release your version of postcount then it can be easy to see that in which manner you have changed the postcount script, and i might suggest something so it can work for every forum).
"i really can't understand which problem it can be as if you have fixed transfusion's script and its simply matter of sec in replacing the URL, might u have changed something more than that?"
How did you find that path? By analyzing the structure of the website right?
You said that it's easy as changing the URL and I said it's not as easy as that as you need to change the paths used in the script. And to change the paths you need to analyze the structure of your forum.
If you changed more than just changing the links when you said that you only need to replace the link, you contradicted yourself.
Also I don't use simple_html_dom in the image post counter I made. So it isn't easy as changing that. I only used the image generation part of Transfusion's code. I didn't use simple_html_dom because having a huge class file that isn't needed now would be more confusing when debugging.
I discarded my code now and I'm using S.L.C.'s code as a base because it is more efficient. The source is on my github account.