Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
new indicator (1 viewing) (1) Guest
TOPIC: new indicator
#11361
new indicator 1 Year, 7 Months ago  
i tried all module to put in home page with last post .... noone has new indicator to show users if they already have read messages...

Somebody can help me to add it ?
tc001mt (User)
Junior Boarder
Posts: 32
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#11374
Re:new indicator 1 Year, 7 Months ago  
yes there is. it is called mod_fblatest and by default they have a >> characters which you can change to make it whatever you like. i have it saying unread, though im not sure if you can put an image there instead.
peetree21 (User)
Senior Boarder
Posts: 116
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Australia
Logged Logged
 
Such is Life
 
 
#11408
Re:new indicator 1 Year, 7 Months ago  
yes its what i'm using
it show lates posts and this is ok but it don't show what posts you already have read.
This because maybe somebody post 2 time , how do you know if is new or old answer without read thread?
tc001mt (User)
Junior Boarder
Posts: 32
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#45532
Re:new indicator 10 Months, 2 Weeks ago  
Hi there..

I have been working on a rewrite of this module..
final step is to get this new indicator working properly..
(View in action www.balsfjord.com)
extensions.joomla.org/component/option,c...k_id,4227/Itemid,35/

The thing is,, When a new post is posted, the new indicator shows up.. When a user reads the topic/post, it disappears.. but then, after some time, it suddenly are unread again.. (next login or something)... I do not know why this is? Could it be a cookie or db thing?

If there are some developers that could help me out with this, I would be grateful..

[code:1]// Loads the latest posts from the Fireboard database
//
function fblatest_loadposts( $num_posts, $only_categories, $child_categories, $within_thread, $show_public, $show_registered, $show_special )
{
global $database, $my;

$fbcookie = $_COOKIE['fboard_settings'];
$prevvisit = 0;
$readtopics = null;

// If a registered user is logged in, look for their last board session
if ($my->id != 0) {
$database->setQuery( "SELECT * FROM #__fb_sessions WHERE userid = ".$my->id );
$sessions = $database->loadObjectList();
if ($sessions && $sessions[0]->userid) {
$prevvisit = $sessions[0]->lasttime;
$readtopics = $sessions[0]->readtopics;
}
else
$prevvisit = time() - 1314000; // One year ago

// If there is a valid value in the cookie, use it instead
if ($fbcookie['prevvisit'])
$prevvisit = $fbcookie['prevvisit'];
}

//echo date("d-m-y H:i", $prevvisit)."";

// Select latest posts / topics from database
$sqlselect = "SELECT a.id, a.name, a.userid, a.subject, a.catid, a.time AS posttime, c.name AS catname";

// Categorize as unread depending on last visit and list of read topics
if ($readtopics && $prevvisit)
$sqlselect .= ", (a.time > $prevvisit AND a.thread NOT IN ($readtopics)) AS unread";
else if ($prevvisit)
$sqlselect .= ", (a.time > $prevvisit) AS unread";
else
$sqlselect .= ", 0 AS unread"; [/code:1]
MetZ (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#46241
Re:new indicator 10 Months, 1 Week ago  
Have you ever tried to delete the "fboard_settings[prevvisit]" cookie?

I had the same problem after a fboard update.
xrt (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top