Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
Hi!

I need to change the function that gives the number of new posts since last visit in cms dynamic menu.
How can I find it?
 



 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
includes/functions_cms_menu.php
 




____________
Driving me and my PC crazy, trying to create some pluggins
Icy-Mods.com ( IP 2.0 RC-1)
 
spydie - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
I saw it, but I need to find the function that gives the number of new posts...
I think a SELECT in topics_table or posts_table...
 



 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
have a look in includes/functions_post about line 737

has something to do with site_history_table

i think, thats where you´re looking for

i supose, we´re talking IP 1.3.0.53
 




____________
Driving me and my PC crazy, trying to create some pluggins
Icy-Mods.com ( IP 2.0 RC-1)
 
spydie - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
Code: [Download] [Hide] [Select]
if ($board_config['site_history'])
    {
        $current_time=time();
        $minutes = date('is', $current_time);
        $hour_now = $current_time - (60 * ($minutes[0] . $minutes[1])) - ($minutes[2] . $minutes[3]);
        $sql='UPDATE ' . SITE_HISTORY_TABLE . ' SET '. (($mode == 'newtopic' || $post_data['first_post']) ? 'new_topics=new_topics' : 'new_posts=new_posts') . $sign . ' WHERE date=' . $hour_now;
        if ( !$db->sql_query($sql) || !$db->sql_affectedrows() )
        {
            $sql = 'INSERT IGNORE INTO ' . SITE_HISTORY_TABLE . ' (date, '.(($mode == 'newtopic' || $post_data['first_post']) ? 'new_topics' : 'new_posts').')
                VALUES (' . $hour_now . ', "1")';
            if ( !($db->sql_query($sql)) )
            {
                message_die(CRITICAL_ERROR, 'Error createing new site_hitory'.$sql, '', __LINE__, __FILE__, $sql);
            }
        }
    }



is this? if so, it's not what I'm searching for
 



 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
Are you sure you are not thinking of this setting in the forum adm.

 veiw_unread_posts
 



 
Hans - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
Yes, I need that mysql select query
 



 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Can I Modify "View Posts Since Last Visit ()" In Cms Dyn Menu 
 
I don't know if anyone can understand what I need

I want to change the number in the red circle

Immagine.png
Description:  
Filesize: 87.1 KB
Viewed: 19 Time(s)

Immagine.png


 



 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events