Whilst looking at the e107 related news plugin it occured to me that this would be an easy addition to the tagcloud plugin too. The tagcloud plugin already links together news items via the tagging process so this seems an ideal way to link up posts that might interest readers.
At the time of writing it is up and running here.
I also fixed a couple of minor bugs in the tagcloud plugin and am taking a look at a problem that has been reported a couple of times where the auto generation of tags using Yahoo term extraction fails.
Once this is sorted I will push out a new version with these little tweaks!
Tagclouds in e107 0.8
Having loaded up the CVS version of e107 0.8 I was interested to investigate the new tagwords plugin. On first look it seems like a welcome addition but slightly more limited than my own version. It is still early days and maybe it will be improved but it is likely there may still be a place for my own version – we’ll see!
Sounds great! I use both plugins on Xen Themes so it would be awesome if they were merged together.
I think there will definately be a place for your plugin in 0.8, the core tagwords plugin wont have cumulus for a start ๐
I am split over whether the tag based related news is “better” that the original plugin or not. The tag one allows you more control in that you can manually link news posts together by giving them the same tags.
The original plugin does this automatically but is potentially less accurate – although actually it works well.
I will probably include my new shortcode but it is hard to recommend it over and above the other version!
And I have also just noticed the original related news plugin does not honour userclass settings on news posts – oops!
I might re-write the shortcode, the search query could join to news perhaps, it can honour the news userclass and valid time settings and also return the ID and Title thus saving the second title lookup.
You’ve lost me now!! ๐ I’m sure it’s good stuff though ๐
hehe don’t worry about the detail, but there is a bug in the original related news plugin that will show a link to a news post that your user class doesn’t have the rights to read, or is not yet published.
That said, e107 won’t actually display the news post if you click through so it is not a huge security issue.
How are you getting it to show up only on the individual news items?
And can you send me my login details please? I’ve had to re-install windows and completely forgotten them!!
Sure, I’ll see if I can dig out your user/email!
You can pick up particular news pages with something like:
if ((e_PAGE == "news.php") and (strpos(e_QUERY, "extend") !== false or strpos(e_QUERY, "item") !== false ))
{
}
Is that what you are asking?
Cheers Jezza
Clicked the link to resend password but not had the email yet…
Would I just add anything I wanted to only appear on the news item pages in between the {} then? and then carry on the code for every other news related page under it?
So
{NEWSTITLE}
{NEWSSUMMARY}
if ((e_PAGE == “news.php”) and (strpos(e_QUERY, “extend”) !== false or strpos(e_QUERY, “item”) !== false ))
{
Something goes here
}
{NEWSDATE}
Like that?
Yep so the code between {} in the above example will only show on the “item” and “extend” pages, but not on comment news.
My new affiliate plugin has an example in, I’m trying to tidy it up for a first release asap!
I use this idea to inject adsense directly into a news post. Unfortunately I can’t work out a way of doing it between the summary and extended parts of a news post as this is handled all in one shortcode {NEWSBODY}.