The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP code inside template
Iam trying to get this code inside the template
So it will track my adsense ads clicks and only show every 24 hours etc. Iv tryed doing this but i get a prase error Does anyone now how to do this? Thanks heaps PHP Code:
Code:
http://www.adlogger.org/ Introduction AdLogger is an open source AdSense tracker designed for web publishers and website owners. AdLogger monitors and records all AdSense activity on your page in real time and compiles the data for you to review. AdLogger is the result of numerous website publishers developing code to better monitor their AdSense accounts. This script contains a powerful backend to process all the data and configure various settings to make administration simple and easy. Thanks to the help of other developers, AdLogger has become a powerful processing script which you might find indespensible for your websites. It's become a surprisingly powerful program that helps AdSense publishers monitor their accounts with the primary purpose to combat click fraud before it becomes a problem. The last thing anybody wants is to have his or her account banned due to invalid clicks. AdLogger greatly reduces the chance of this happening by giving you advanced monitoring features and automatic disabling of ads for a particular visitor if he is clicking too many. ^ TOP Features Detailed visitor data gives you much more information than your Google account page. For each user that clicks an ad, you can view visitor IP, hostname, operating system/web browser information, date/time of click, outgoing url clicked, ad format data, channel info, and more. Primary security features allow you to combat click fraud by automatically disabling AdSense ads for visitors who are clicking too many within a certain time period. You can view all activity logs and get key statistics that your Google account page never will. Sort by date, visitor, channel data, ad url clicked, and more. Custom channels help you monitor your best and worst performing pages in terms of both page views and clicks. Optionally, you can set up automatic email alerts. The script can send you an email every time a visitor clicks an ad. Also, AdLogger recognizes potential click attacks and can send you an email after mulitple clicks. ^ TOP How does AdLogger work? AdLogger uses a short javascript code placed on all of your AdSense pages that records page views and click information for all AdSense ads. It then processes that information to a PHP page where a large amount of information regarding that click is stored into a MySQL database. Unlike competing commercial products, AdLogger runs on your own server, giving you complete control over all aspects of the script. Commercial tracking sites have access to your sensitive click statistics and confidential business information. Running both the frontend (javascript) and backend (PHP and MySQL) is the most secure and stable way to run your tracking script. Data is compiled right at the source and you are able to view the statistics through an administration page on your own site. AdLogger's click-fraud defense sets a cookie everytime a Google ad is clicked. When a visitor clicks a certain number of ads within a set time period, AdSense ads will be disabled for that visitor and an optional email can be sent to you warning you of the possible click attack so you can investigate further. |
#2
|
|||
|
|||
vBulletin doesn't allow standard PHP coding within the templates, you'll need to use the vBulletin conditional system to enter the coding into the template.
Try using: PHP Code:
|
#3
|
|||
|
|||
thank you very much, i will try and give it a go, ill let u know how i got
Update: i tryed it but the ads are not now showing up bit unsure why now any ideas? thanks |
#4
|
|||
|
|||
Not sure right off hand, the conditional I provided is a mimick of the standard PHP conditional you provided in the first thread.
You could try removing the else clause and simply try using: PHP Code:
|
#5
|
|||
|
|||
Well great news, it works and its awsome, thanks for this
|
#6
|
|||
|
|||
No problem, glad it worked out for you .
|
#7
|
|||
|
|||
I know this is an old post but could the same thing be used for the adlogger php rapper?
eg: Quote:
Quote:
|
#8
|
||||
|
||||
Quote:
|
#9
|
||||
|
||||
This thread has been around for about 2 years. Most likely the content is for a version you are not using. There was no need to bump this thread.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|