Using this plugin, you can display new stories since last visit.
| General Plugin info |
| Author: | anand, admun (Edmond Hui) |
| Current Version: | 0.3 |
| Download: | - |
| Code: | newcode |
| Demo: | - |
| Forum Thread: | - |
-
Upload/put the file in your plugins directory.
Install the plugin
Edit options to suit your taste and language.
Go to general settings in the nucleus management page and make sure the last visit settings in the cookie area are turned on.
Edit skin ( see usage below ).
Thats it!
The options are simple and self explanatory:
What should be the message prefix ? (default: Welcome back)
What do we call the guest ? (default: Guest)
What should be the message suffix ? (default: You last visited on)
What should be the date format ? (default: Y-m-d, H:i:s)
What should be the message when there are no new posts ? (default: No new posts since your last visit.)
What should be the new post message ? (default: new posts since your last visit :)
Title for entry which has no title ? (default: Untitled)
Number of entries ? (default: 10)
Put <%New%> in your skin at the place you want the display.
v0.1 (February 10, 2003)
v0.2
v0.3
use sql_table
add supportsFeature
In order to prevent that, I've added a simple if statement in the plugin doSkinVar method :
(php)
function doSkinVar($skinType) {
if ( ! is_null( cookieVar('lastVisit') ) && ! cookieVar('lastVisit') == 0 ) {
// ...
// Original method content
// ...
}
}