[Widget] Latest posts

 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Aug 27, 2008 9:08    Post subject: [Widget] Latest posts Reply with quote

This widget displays the latest posts sorted by main category.

Download v0.2


_________________
Russian b2evolution | Download


Last edited by sam2kb on Tue Apr 28, 2009 1:04; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Fri Oct 31, 2008 1:01    Post subject: Reply with quote

cool, i ve just noticed this one browsing BOPIT, otherwise i d possibly miss it forever may be... will test/use this one and be back with further feedback, thanks for the plugin sam2kb..
_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Dec 12, 2008 21:00    Post subject: Reply with quote

Widget updated to v0.2
It didn't display the latest posts before Embarassed , but now it does Wink

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
abcd
New Poster
New Poster

Joined: 18 Apr 2010
Posts: 18
Reputation: 1.3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sat May 15, 2010 13:38    Post subject: Re: [Widget] Latest posts Reply with quote

sam2kb wrote:
This widget displays the latest posts sorted by main category.

Download v0.2



Hi Sam2kb,

I think widget can be add anywhere in blog (not necessary on sidebars) . If I'm not wrong, I would like to put this widget in the main content (not on sidebar) . What I have to do ?

Thank you in advance .
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat May 15, 2010 13:50    Post subject: Reply with quote

You need to create new widget container. Use this code

PHP:
skin_containerNT_('Container name'), array(
        
'block_start'  => '<div class="$wi_class$">',
        
'block_end'   => '</div>',
    ) ); 

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
abcd
New Poster
New Poster

Joined: 18 Apr 2010
Posts: 18
Reputation: 1.3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sat May 15, 2010 14:47    Post subject: Reply with quote

sam2kb wrote:
You need to create new widget container. Use this code

PHP:
skin_containerNT_('Container name'), array(
        
'block_start'  => '<div class="$wi_class$">',
        
'block_end'   => '</div>',
    ) ); 


Thanks . But I need to know the above code should be added in which file or I've to create a new php file ? Sorry for my dumb question Embarassed
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat May 15, 2010 18:27    Post subject: Reply with quote

It depends on where you want to display the widget.

Generally you should put the above code after the post list in index.main.php and posts.main.php

Find the following block and add new code below

PHP:
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include'$disp$', array(
        
'disp_posts'  => '',        // We already handled this case above
        
'disp_single' => '',        // We already handled this case above
        
'disp_page'   => '',        // We already handled this case above
    
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------



// Widget container
skin_containerNT_('Container name'), array(
        
'block_start'  => '<div class="$wi_class$">',
        
'block_end'   => '</div>',
    ) ); 

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
abcd
New Poster
New Poster

Joined: 18 Apr 2010
Posts: 18
Reputation: 1.3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sat May 15, 2010 19:49    Post subject: Reply with quote

sam2kb wrote:
Generally you should put the above code after the post list in index.main.php and posts.main.php

Find the following block and add new code below


I only found the above block in index.main.php .I've already added the widget container code in it as you mentionned . Surely it doesn't fix my problem . I think I missed something .

Again thanks for your time .
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat May 15, 2010 19:59    Post subject: Reply with quote

abcd wrote:
I only found the above block in index.main.php

It's ok

Quote:
Surely it doesn't fix my problem . I think I missed something .

You need to reload containers in the skin on General settings > Skins tab.

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board