Only fill this in if you're a spammer huh? Your name :
Your email :
Your message :
Nov
22nd
2007

Playing with relations

Posted in : Plugins & Widgets

Hey cuzz :D

Of course, all the relations were of adult age and consent was given :| .... so, I've come back to a plugin that I was playing with months ago, but put on hold because I couldn't be arsed coding in all the tag stuff that it needed. However the latest version of b2evolution has tag support, so I can just do the lazy arsed bit and code the related posts component of it ;)

What does it do?

Well, apart from molesting your relations, it adds a list of related posts to each of your posts based on the tags that you've used for your posts, in a kinda "nearest cuzzin" way. This is all automated ( although I might make it a skintag thing at a later date ), so you just need to upload and install ..... and yer cuzzins are mine ;)

As always, this plugin is supplied as is .... and if it molests yer granny then .... well, hell, she deserves a tad of excitement at her age huh? ... anyway, you can download it here .... let me know if it fails huh? ;)

¥

Swift update 23rd Oct
After a tad of testing by John the plugin has had a couple of glitches ironed out. It's also had a shedload of parameters added to it so that you can play with the layout directly from admin. The zip has been updated.

Update 24th Oct ( zip updated )
The plugin has now been "widgetised" which allows you to have individual settings per blog, and a new setting has been added to the plugin settings to turn widget support on/off

Note : To use the widget abilities you need a container in your post loop where you want the related posts to appear. Obviously you also need to install the widget in the container as well ;)

Another update 24th Oct ( zip updated )
Thanks to Gary a couple of bugs with rss feeds and "only post with tags" have been cured ;)

Trackback URL (right click and copy shortcut/link location)

Trackback url for this post
Note : This trackback url is time limited so use it within 30 minutes or the SpamHound will snarl at you.

http://waffleson.co.uk/z/?k=36822172633103238e9b998d1efc4d708893bb4dbf4e6f26f

Replied on : 10/22/07 @ 05:27 pm #1

From the crash test dummy..
Apart from weird extras in the download pack that could bite me on the arse at anytime, this plugin does what it says on the tin, it pulls in and lists related posts. Give it a go and enjoy the consequences :)
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14392 by ¥åßßå

Replied on : 10/22/07 @ 05:29 pm #2

lol, you know you enjoyed the ride ;)

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 10/23/07 @ 11:09 am #3

Nice clean update mate. More end user flexible for layouts and styles etc etc. Slick as.... I do feel that my "tad" is now more like a miniscule "dot" compared to your efforts. :)
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14394 by ¥åßßå

Replied on : 10/23/07 @ 11:46 am #4

Without dots the web would be a nightmare to navigate ;)

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 10/23/07 @ 02:29 pm #5

I have installed the plugin and look forward to using it - oh potential parent of the ginger one. ;)

Gz
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14396 by ¥åßßå

Replied on : 10/23/07 @ 02:35 pm #6

I'm gonna ban yer IP :P

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14398 by Gary

Replied on : 10/23/07 @ 02:55 pm #7

:) Lol , Its a good job you can take a joke mate.
Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14399 by ¥åßßå

Replied on : 10/23/07 @ 04:35 pm #8

I need an <offtopic> tag ;)

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14400 by Gary

Replied on : 10/23/07 @ 04:41 pm #9

... You have lost me !

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14401 by ¥åßßå

Replied on : 10/23/07 @ 05:02 pm #10

I thought you got yer GPS system back from yer sis? |-|

¥

Off topic

note to self : sort the smilies out :roll:

I may have opened the door, but you entered of your own free will

 
 

Replied on : 10/23/07 @ 05:31 pm #11

Lol, I did but I can't find it :)

Gz
 
 

Replied on : 10/24/07 @ 09:53 pm #12

« Note : To use the widget abilities you need a container in your post loop where you want the related posts to appear. Obviously you also need to install the widget in the container as well »
Could you expand on this "Set a container in the post loop" bit..
I realise I have to edit index.main.php and place something like the existing containers, but what should it be called... eg: skin_container( NT_('Related Posts')) and what blocks need to be used?
In other words, this lazy bloke would love an example "container" :)
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14404 by ¥åßßå

Replied on : 10/25/07 @ 07:32 am #13

Bugger, now I'm gonna have to play with the code_highlighter so I can post code in comments :P

All I did was nick another container, renamed it and slapped it below the post tags in the post loop. It looks a tad like this

Code:

<?php
        // List all tags attached to this post:
        $Item->tags( array(
            'before' =>         '<div class="bSmallPrint">'.T_('Tags').': ',
            'after' =>          '</div>',
            'separator' =>      ', ',
          ) );
      ?>
<?php
    skin_container( NT_('Post bottom'), array(
        // The following params will be used as defaults for widgets included in this container:
        'block_start'         => '<div class="$wi_class$">',
        'block_end'           => '</div>',
        'list_start'          => '<ul>',
        'list_end'            => '</ul>',
      ) );
?>

¥

I may have opened the door, but you entered of your own free will

 
 
John users avatar

Posts : 33

Joined : 10/24/07

Reply to comment 14405 by John

Replied on : 10/25/07 @ 07:47 am #14

Thanks... I'll see how easily I can bugger it up :)
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14406 by ¥åßßå

Replied on : 10/25/07 @ 08:14 am #15

Don't forget that you need to reload your skin before the container becomes available. You also need to wander over to the plugin settings and tick the "widget" box ;)

¥

I may have opened the door, but you entered of your own free will

 
 
John users avatar

Posts : 33

Joined : 10/24/07

Reply to comment 14407 by John

Replied on : 10/25/07 @ 09:06 am #16

¥åßßå, A question about containers and their content. What drives the output format and styling? The container or the plugin?
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14408 by ¥åßßå

Replied on : 10/25/07 @ 09:21 am #17

I think it's a mixture of both, the skin "suggests" the formatting but it can be overridden by the widget settings.

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 10/25/07 @ 04:55 pm #18

That's like the code saying, "please, sir, may I have some more," and the widget saying ... "Nope, somewhere I've written down ... you've had all the peas you need".
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14412 by ¥åßßå

Replied on : 10/25/07 @ 05:19 pm #19

That'd be a Dickens of a widget ;)

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14422 by Gary

Replied on : 11/02/07 @ 11:47 am #20

........ Any day soon you will make a new post, I am sure of it !

Gz :p

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 

Replied on : 04/04/08 @ 11:12 am #21

This works with b2evo 2.x, right?
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14627 by ¥åßßå

Replied on : 04/04/08 @ 04:39 pm #22

It does ;)

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/04/08 @ 12:10 pm #23

Ey Yabba, question, I installed it but the related posts bit shows twice.

1st instance: before the <!--more--> tag
2nd instance: before the post-tags

How to remove the 1st instance?

You can check from my gameshogun.ws which I just upgraded... tnx for the help!
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14628 by ¥åßßå

Replied on : 04/04/08 @ 04:40 pm #24

Ahhh, I forgot about that problem :p

The way I have it setup is I have a skin container at the bottom of my post and I slap it in that ( and then enable it as a widget in the plugin settings )

I really need to sort the double showing though :p

¥

I may have opened the door, but you entered of your own free will

 
 
tilqicom users avatar

Posts : 7

Joined : 06/02/08

Location : teh lonely country

Reply to comment 14931 by tilqicom

Replied on : 06/29/08 @ 04:11 am #25

Labicoms: why dont you use it in a container as widget and insert the container only in single post mode ? then it wont show before -more-
 
 
tilqicom users avatar

Posts : 7

Joined : 06/02/08

Location : teh lonely country

Reply to comment 14932 by tilqicom

Replied on : 06/29/08 @ 04:12 am #26

aah, it's great that i can edit my post now.. maybe i ll edit this later on


Note: the smileys are not working in comments :O

actually nothing works in those above buttons :/
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14933 by ¥åßßå

Replied on : 06/29/08 @ 07:43 am #27

The buttons work for me, do you have js enabled? ;)

¥

I may have opened the door, but you entered of your own free will

 
 

Leave a comment

Your email address will not be displayed on this site.
Your URL will be displayed.
About you

Just fill in the bits you want, none of it is required



Your email address will only be used to send you adverts for viagra and rolex watches.



(Line breaks become <br />)
Leave a comment
Code:
=> :!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( >:( :'( |-| :>> ;D :)) 88| :lalala: :crazy: >:XX :o