Third party plugins

Third party plugins, a forum discussion on Jojo CMS. Join us for more discussions on Third party plugins on our Plugin Support forum.

Back to Forum Index : Back to Plugin Support   RSS
Rick Rick

22 Apr 2008
Posts: 336

Is the Jojo team interested in third party plugins? I've written a couple of basic ones that others might find useful. If you're interested, I could tidy them up and post them? I'm eager to get any pointers or tips on how I could better use the Jojo API.

Blocks: Manage blocks of html or bbcode and insert them into your pages via {{block: name here}} (Square brackets). Useful if you've got a chunk of content to show in a few places, eg a contact badge. Has permissions support too.

Hold Page: Closes off the site except for the login page and displays a configurable hold page unless you're a logged in Admin. Admins can access everything as normal on both the front and back ends.

Tokens: Various little additions to make life easier...
  • {turl=terms/ nofollow Our terms and conditions}terms{/turl}
    allowing title attributes on links, without sacrificing New and Nofollow support.
  • {tthumb=s200 800 The easier way}images/my-image.jpg{/tthumb}
    easily adding of thumbnails that will enlarge using the Jojo_Lightbox plugin, with optional specifying of thumbnail size, enlarged size, and title text
  • {{youtube: a0qMe7Z3EYg Design Coding Rap}}
    Easy adding of YouTube urls, with a variety of formats (including just the unique video code) and an optional comment to remind you exactly what the video is


You are, of course, welcome to just integrate the first two from Tokens into the custom bbcode parser.
Harvey

Core Developer

Harvey

22 Apr 2008
Posts: 327

Nice.

The hold page idea I gather is for development sites where you don't want spiders/customers getting in and making a mess of things? Sounds like a good idea.

Blocks is also a good idea, worth making adding to the plugin library. There is also the ((whatever.tpl)) syntax (replace round brackets with square) to insert the content of a template - allows some dynamic content to be used, and keeps the HTML squarely away from the end-user, which is good for Paypal buttons and the like.

These would both make worthy additions - probably best if we hook you up with SVN access to the plugin repository so you can add the plugins in there, we can help maintain them and keep the code looking consistent with other Jojo plugins.

Did you see our Youtube plugin? This does basically what you have mentioned, though without the comment (which is a nice idea).

Cheers, definitely keen to see the user contributions happening :)
Rick Rick

22 Apr 2008
Posts: 336

That's right, that's what the hold page was for displaying a nice friendly page while the site is under development.

Sounds great, if you sling me some details I'll add the Blocks and Hold Page plugins... I'm open to any and all suggestions and improvements.
Rick Rick

30 Apr 2008
Posts: 336

Oh, and in regards to the API... how would I go about getting the content thrown to my Tokens plugin before being output by the Jojo_Plugin_Jojo_article::getArticles()?

When the Tokens plugin doesn't get a chance to parse the custom tags before articles are shown on the articles index or the rss feed, the raw custom tags are shown instead.
Harvey

Core Developer

Harvey

1 May 2008
Posts: 327

There is an optional argument on the Jojo::addFilter() function. The fourth argument is the priority, so try values of 0, 1, or 100 to see if this does what you need it to do (I can't remember the priority of the articles call off hand).

This controls the order in which the hooks/filters are applied.

If that doesn't answer the question, perhaps email us a copy of the plugin so we can have a look?
Rick Rick

14 May 2008
Posts: 336

Hi Harvey, have you had a chance to look at the plugin I emailed to you? I apologise for the code being a bit messy.
Harvey

Core Developer

Harvey

15 May 2008
Posts: 327

Hi Rick, been a busy couple of weeks, will take a look this afternoon.

Thanks,

Harvey.
Rick Rick

15 May 2008
Posts: 336

No worries, take your time, I just wasn't sure if the email has made it through :)

Thanks again
raulandres

9 Jun 2010
Posts: 35

Hello Im interest on Hold Page plugin is in plugin pack already or are you possible send me please? thx.
Rick Rick

10 Jun 2010
Posts: 336

Here's the hold page plugin... it's branded to my company, but if there's enough interest in it I'll throw it into the Jojo plugin repository.

Once installed and enabled it'll lock down a website and show the specified message. You can edit the content for the hold page via the "Hold Page" page under the "Not on Menu" in Edit Pages.

Options...
  • Enable/disable
  • Enable Google Analytics for the hold page
  • Allow login (shows a login link. With this disabled you can still get to a login page by going to /login/)
  • Allowed asset extensions (so you can block or allow images, css files etc)
  • Choosing of status code, 200 OK or 503 Service Unavailable (eg for maintenance)


It's pretty much a quick hack of a plugin that I've tweaked as needed. Haven't spent any significant time planning/building it so let me know if you find any issues.

Edit: I'll re-brand it and add it to the repo... Would you guys like it in Jojo's repo instead of the Plugin one? Makes sense to me as it's always the first one I install. Let me know.

Attached Files

Rick Rick

10 Jun 2010
Posts: 336

Oh, and it needs a new usergroup (owner). Anyone in this group can log in past the hold page and view the website but not access the admin area. I'll add this to setup before adding to a repo.
Rick Rick

13 Sep 2010
Posts: 336

I finally got round to tweaking and committing the hold page plugin (jojo_hold_page) to the Plugins repo. It got a quick revamp from the version posted above.

Comments/improvements are welcome :)
Back to Forum Index : Back to Plugin Support   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.