Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Do Panels load every time?

Asked Modified Viewed 1,222 times
L
Liliplanet
L
  • Member, joined since
  • Contributed 89 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
asked
Member

Hi!

On my old site (before fabulous PHPFusion) my banner advertising showed over 14 000 views per day in http://www.phpadsnew.com/. The javascript code was added on each page in html, not in a panel.

Now, with adding the code in panels (all pages) I find that even though I serve over 40 000 pages per day the views show only 4000.

Do panels not load every time? As advertiser pay-per-view I would sincerely like each view to count.

How can I add code to the system, if not in a panel .. then maybe in theme.php to count each view. Somehow for the page to load clean on every hit.

Look forward to any reply and thank you.
Lilian
0 replies

3 posts

M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

all panels are loaded on every page except admin panel and maintenance mode site.
php-fusion counts it's visits visit on a cookie basis.
if you want to count every load of the site, replace these lines in maincore.php:
if (!isset($_COOKIE['fusion_visited'])) {
   $result=dbquery("UPDATE ".$db_prefix."settings SET counter=counter+1");
   setcookie("fusion_visited", "yes", time() + 31536000, "/", "", "0");
}

by
dbquery("UPDATE ".$db_prefix."settings SET counter=counter+1");
Edited by Matonor on 07-05-2007 16:04,
0 replies
L
Liliplanet
L
  • Member, joined since
  • Contributed 89 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Matanor, thank you so much for your reply. I think the code you posted changes the unique visitors for PHPFusion.

What I want is the panel (or a specific panel) to reload on every hit. Honestly I don't think it does currently for some reason. Is it perhaps a cache of the panel or pages?

Something is up which I do not understand ..

Would appreciate any help so much.

Lilian
0 replies
M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

As I said in my previous post, every Panel is loaded for every Page except Admin and Maintenance Sites. And The Panels are reloaded on every site hit except your browser uses extreme caching methods.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet