Topic RSS
I've been using SPF for several months now on my site and I use both Analytics and HiStats to track page views on my site. It's been awesome haveing such an easily integrated forum solution. So thank you!
However, I've noticed that HiStats doesn't see any of my forum page views.
Analytics seems to see my forum page views and lists them under the content section as "/forum/" but I don't remember ever adding the analytics tracking code to SPF.
For both Analytics and HiStats I put my tracking code in the footer.php section of my site. However, my footer doesn't show up in the forum view (I have a copywrite notice and a disclaimer in my footer that shows up on all my wordpress pages, but it doesn't show up at the bottom of my SPF pages – I wish it did).
So, how do I get the tracking code working for HiStats? And why does Analytics appear to be working while HiStats does not, even though the code for both is in the footer.php section?
Thanks in advance!
well, spf shows on a standard wp page, so anything you add in the footer should appear on the bottom of all forum pages… no reason it shouldnt show on the forum pages, we certainly dont stop it from doing so… did you create a custom wp page template for the forum and forget to call the wp footer?
however, both of those plugins will just think its a single wp page (which it technically is)… we just dynamically change the page content on every view… the appearance of the forum having many pages is simply url rewrite black magic…
Yes actually, that's exactly what I did. How did you know that? Geez!
I remember now that I wanted my forum to exclude the sidebars, so I used the same custom page that I created for my google searchbox search results because I had removed the sidebars for it as well. Turns out the search results page is also missing the footer info – something I never noticed before (I don't really search my own site).
So I pasted
at the bottom of the searchresults.php page (which is the same page I'm using to display the forum, instead of the forum.php page) and for some reason my footer shows up at the top of the page, not at the bottom. Am I missing a
somewhere maybe?
Here's the code for the template I'm using to display SPF and my google search results.
When I put the footer code at the end it ends up displaying at the top of the forum page. I'm not a PHP whiz, I just started removing things until the page displayed correctly (like the R and L sidebar code). It looks like I left the post code in, but it still works fine w/o removing it.
/*
Template Name: Custom Search Results
*/
?>
<?php get_header(); ?>
<div class="contentLayout">
<div class="searchcontent">
<div class="Block">
<div class="Block-body">
<div class="BlockContent">
<div class="BlockContent-body">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
</div>
</div>
<div class="Block-tl"></div>
<div class="Block-tr"><div></div></div>
<div class="Block-bl"><div></div></div>
<div class="Block-br"><div></div></div>
<div class="Block-tc"><div></div></div>
<div class="Block-bc"><div></div></div>
<div class="Block-cl"><div></div></div>
<div class="Block-cr"><div></div></div>
<div class="Block-cc"></div>
</div>
</div>
</div>
</div>
There isn't right now because it messes up the forum. But I tried pasting
below the last /div tag at the bottom of the page. When I pasted it and saved the code my footer showed up at the top of the forum page instead of the bottom, and it covered up part of the forum navigation. Is there additional code that I need to include besides get_footer? Am I putting the code in the wrong spot?
what does the default page.php template look like??? you have way too many unbalanced closing div tags in there…
maybe something like this???
<div class="contentLayout">
<div class="searchcontent">
<div class="Block">
<div class="Block-body">
<div class="BlockContent">
<div class="BlockContent-body">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
</div>
</div>
</div>
</div>
</div>
hard to tell without seeing what a real page looks like…
would experiment with the get_footer() BEFORE one of the last 4 closing divs
Finally had a chance to swap my code for the code you suggested – and it worked like a charm! Now my footer displays properly at the bottom of my forum page. As always, I'm amazed at how helpful you guys are.
While we're on the subject, I have noticed one other problem which might be related.
Google doesn't seem to index any of my forum pages. If I google my site name and the word "forum" only 2 things pop up – out of over 20 forum posts. I'm wondering why 2 would show and not all or none. Is there something I need to be doing to make sure that google can properly crawl the forum? Or was it possibly because I didn't have the footer code on the forum page template (my google code is located within my footer.php page)?
It's a shame that all those posts haven't been providing any extra google search traffic.
Most Users Ever Online: 444
Currently Online: steve.engelking, irlandes1
54 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2626
Members: 7363
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10898
Posts: 79583
Newest Members: Rick Thomas, joelrob, ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22240), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline

Quote



Visit 
Privacy Policy



