| View previous topic :: View next topic |
| Author |
Message |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Wed Aug 27, 2008 9:08 Post subject: [Widget] Latest posts |
|
|
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 |
|
 |
tilqicom Guru

Joined: 14 Nov 2007 Posts: 1624
       votes: 20
|
Posted: Fri Oct 31, 2008 1:01 Post subject: |
|
|
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  |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Fri Dec 12, 2008 21:00 Post subject: |
|
|
Widget updated to v0.2
It didn't display the latest posts before , but now it does  _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
abcd New Poster

Joined: 18 Apr 2010 Posts: 18
 
|
Posted: Sat May 15, 2010 13:38 Post subject: Re: [Widget] Latest posts |
|
|
| 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 |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sat May 15, 2010 13:50 Post subject: |
|
|
You need to create new widget container. Use this code
| PHP: |
skin_container( NT_('Container name'), array(
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
) );
|
_________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
abcd New Poster

Joined: 18 Apr 2010 Posts: 18
 
|
Posted: Sat May 15, 2010 14:47 Post subject: |
|
|
| sam2kb wrote: |
You need to create new widget container. Use this code
| PHP: |
skin_container( NT_('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  |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sat May 15, 2010 18:27 Post subject: |
|
|
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_container( NT_('Container name'), array(
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
) );
|
_________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
abcd New Poster

Joined: 18 Apr 2010 Posts: 18
 
|
Posted: Sat May 15, 2010 19:49 Post subject: |
|
|
| 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 |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sat May 15, 2010 19:59 Post subject: |
|
|
| 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 |
|
 |
|