Topic Closed
rif
4 Posts
1.3K Downloads
4 Plugins

Haloo! and sorry my english

I modifyed "Simpl Event Calendar" plugin for "Simple Blog", it show plog entries in calendar by selected plog categoryes or all posts in calendar admin (also now is possible multiple calendars on page and calendars remember last selected month).


My client needs Event plog for contcerts. 
Is thear a way to add some feature to "Simple Blog" to allow show future posts for public?

At the moment, my changes in "Simple Blog" is (it working): 

file text.php
adding ... $texts[] = 'Pending'; 

file SimpleBlogCommon.php, function WhichPosts... lines is closed

                //exclude future posts
                //$time = SimpleBlogCommon::AStrGet('post_times',$post_id);
                //if( $time > time() ){
                //    continue;
                //}
                
file SimpleBlogCategories.php, function WhichCatPosts ... lines is closed
                //if( $time > time() ){
                //    continue;
                //}
                
file SimpleBlog.php, function SimilarPost ... lines is closed
            //if( $post_times[$post_id] > time() ){
            //    continue;
            //}
            
Do not arhive future posts
file StaticGenerator.php, function GenArchiveGadget after ... echo strftime('%B',$time) My changes in code
            $echo = "";
            foreach($posts as $post_id ){                                
                $time = SimpleBlogCommon::AStrGet('post_times',$post_id);
                if( $time > time() ){
                    $sum = $sum-1;
                    continue;
                }
                
                $post_title = SimpleBlogCommon::AStrGet('titles',$post_id);
                $echo .=  '<li>';
                $echo .= SimpleBlogCommon::PostLink($post_id, $post_title );
                $echo .= '</li>';
            }
            echo ' ('.$sum.')</a>';
            echo '<ul class="simple_blog_category_posts nodisplay">';
            echo $echo;            
Thanks
rif    

 

PS!

Is possible view ( in "Simple Blog" admin page  -> Posts table )  what category post entry is?

And what ui thinks about opening the gpabox window on place to add a new blogpost and stay on page to see it (and mayby alsow edit date on place and displacement post to another category on place)?  Or this is to complicated to do? :-)

Edited: 3 years ago#10025

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register