Here is where I have all the codes:
<?php $wplastvisit_output = "javascript"; require('wp-content/plugins/wp-last-visit.php'); ?>
</head>
=========
<div class="post">
<h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?> <script type="text/javascript">slvShowNewIndicator(<?php print(mysql2timestamp($post->post_date)); ?>);</script></h3>
==========
And in ‘wp-comments.php’
<li id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<script type="text/javascript">slvShowNewIndicator(<?php print(mysql2timestamp($comment->comment_date)); ?>);</script>
Does this help at all ?
And in index.php again;
<div id="menu">
-
<script type="text/javascript">slvBanner();</script>
Thread Starter
jbent
(@jbent)
Don’t know if this will help, but here’s my server config:
FreeBSD 4.8 / PHP 4.3.4 / Apache 1.3.29 / MySQL 4.0.18 / WP 1.2
Thread Starter
jbent
(@jbent)
Just an update. I installed a fresh WordPress 1.2 with a fresh SLV plugin on my Mac OS X server here at home (w/o any tweeks or mod_rewrite) and got the same results. I hope I am wrong, but the plugin simply seems to be broken.
I am having the same problem to the tee. I am using rewrite also, though I am unsure of the importance of that common trait.
I did notice that one of the people helping has a different line added to their index file that doesn’t include the js argument. but that argument is in the readme file.
I would like to get last visit working, but I am unsure how to at this point, perhaps something needs to be changed in the code.
Thanks
Yup, same problem here. As I posted in the Entry to Alex’s WP 1.2 plugins (http://wordpress.org/support/?action=vthread&forum=10&topic=5231&page=2#post-7). Nothing I did worked, and the server host people don’t know or say what to do either.
Podz tried to help me too, but unfortunatley it still didn’t work.
It’s not working here neither. 🙁
Well here goes…
I have attempted the install of this plugin to no avail. I first tried to make sense of the instructions in the txt file that comes with the latest download. That did not work. Then after reading pages and pages of try this and do that, I found this page and follow exactly what “podz” has done with the code.
However, it still seems to be “bugy”
http://somethin-tropical.epaulv.com
My guess is that the template that I am using is causing conflict or could be that WP is installed on a sub domain or I have completely messed it up. lol I am an Aquaculurist with limited knowlege of web design so even my logical thinking does not apply here.
I must say to the WordPress Team – well done! The best and most user friendly blog application I have used. Thank you for thinking of us non techie peeps.
Any assistance in resolving this issue is greatly appreciated and I am sure that our members will be grateful to Alex for the plugin when it works so they can tell where is what and when lol, as will I.
I have bookmarked this page in the hopes of a reply, alternatively you may contact me via email or msn @ vanderwerf11 AT hotmail.com.
I look forward to hearing from you.
cheers
Paul V
// var slvIndicator = 'New';
var slvIndicator = '<img src="http://www.tamba2.org.uk/T2/images/new_3.gif" alt="New" title="New since your last visit." />';
Close to something like that ?
That is some fast response!
Not sure how to find the line numbers as I am editing through the cpannel.
My best guess it is the following
if (!empty($_GET[“type”]) && $_GET[“type”] == “js”) {
$wplastvisit_output = “javascript”;
}
if (isset($wplastvisit_output)) { // will output stuff for the HTML source
switch ($wplastvisit_output) {
case “javascript”:
include(“../../wp-blog-header.php”);
header(“Content-type: text/javascript”);
?>
// var slvIndicator = ‘New’;
var slvIndicator = ‘<img src=”<?php bloginfo(‘siteurl’); ?>/ak-img/new.gif” alt=”New” title=”New since your last visit.” />’;
‘<img src=”<?php bloginfo(‘siteurl’); ?>/ak-img/new.gif” alt=”New” title=”New since y
that bit.......make it like this:
<img src=”http://somethin-tropical.epaulv.com/ak-img/new.gif”` and the rest .. that bloginfo stuff could be causing the error
Well in there somewhere – it is calling for the ../../wp-blog-header.php where it seems to get lost in the loop. The header.php is in the main directory
Ah so it is having trouble locating the subdomain?
It could be …. the above might be wrong, but giving a full url will not stop it working and does cut out one potential error area.