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

Technical shit

It's shit that's technical ...... technicality may vary with your ability to be baffled by bullshit

BOPIT : current thoughts

Ok, lets hope this makes sense by the time I finish.

Is this to "FG" ?

I'm thinking of making the submissions process for plugins/widgets a bit more automated/easier, and at the same time it would encourage plugins to be shipped with a readme which is a good thing right?

Ok, here's what I'm "thinking" of doing. Instead of you filling in shedloads of boxes when you create/update a plugin entry, I can make it so you only need to enter the url to the download zip and it can fill in the rest pretty much automatically ( see readme.html notes below ), although you'd still need to select the correct evo version for your plugin.

An expansion of this is, I can then also offer automatic creation of po files for translations, fancy little flags for all the translations your plugin currently supports and, hopefully, at a later date have some method of showing language updates without having to update the plugin version ( still requires thought though ).

README.html

To make some of the magic above happen the easiest way is to extract the relevant bits from your plugins README.html, but for that to happen we need to have some form of standardisation of README's. This basically means, I'd need you to add some comments/id's to the relevant bits so they can be extracted easily.

Html ( Sample README.html ) :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-UK" lang="en-UK">
<head>
  <title>Foo Bar Widget</title>
  <style type="text/css">
    body{
      margin:0;
      padding:0;
      font:94% sans-serif;
    }
 
    #wrapper{
      width:700px;
      margin:1em auto;
    }
 
    h1{
      font-size:140%;
    }
 
    h2, dt{
      font-size:120%;
    }
 
    h1, h2, h3, dt{
      margin:0;
      padding:0;
      font-weight:bold;
      font-family:serif;
    }
 
    dl{
      margin:1em 2em;
    }
 
    dt{
      padding:0 .5em;
      background:#eee;
      border:solid #ccc;
      border-width:1px 1px 0 1px;
    }
 
    dd{
      margin:0 0 1em 0;
      padding:0 1em 1em 1em;
      background:#eee;
      border:solid #ccc;
      border-width:0 1px 1px 1px;
    }
 
    .setting{
      color:#2b2;
      font-weight:bold;
      font-family:serif;
    }
 
  </style>
</head>
<body>
 
</body>
</html>
<body>
<div id="wrapper">
  <h1><!−−name−−>Foo Bar Widget<!−−/name−−> from HelloWorld inc</h1>
 
  <div id="intro">
  <!−−description−−>
  <p>HelloWorld Inc brings you the Foo Bar Widget, the widget of all widgets, the one that you truly cannot do without!</p>
  <p>This widget is so awesomely cool that it needs no introduction, just install it and then stand back in amazement</p>
  <!−−/description−−>
  </div>
 
  <div id="instructions">
    <h2>Instructions</h2>
    <dl>
      <dt>Installation :</dt>
      <dd>
        <ol>
          <li>Upload the "foo_bar_plugin" folder, the one that this file is in, to your "plugins" folder.</li>
          <li>In your admin panel, go to the "Global Settings->Plugins install" sub-tab.</li>
          <li>Click on "Install new" (right side, near top).</li>
          <li>Locate the Foo Bar Widget plugin and click "Install" in the "actions" column.</li>
        </ol>
      </dd>
      <dt>Usage :</dt>
      <dd>
        <ul>
          <li>Some witty usage instuctions here</li>
        </ul>
      </dd>
      <dt>Settings :</dt>
      <dd>
        <ul>
          <li><span class="setting">Awe me</span> : Check this to be totally awed</li>
          <li><span class="setting">Inspire me</span> : Check this to be taken to a level of inspiration normally only obtained via high class drugs</li>
        </ul>
      </dd>
    </dl>
  </div>
 
  <div id="credits">
    <h2>Credits</h2>
    <p>This README file was inspired by EdB, if you wish to show total appreciation for his genius then stop using mydomain.com on the forums, it gets fucking annoying really fast and is about as helpful as an ashtray on a bloody motorbike huh?</p>
  </div>
 
  <div id="links">
    <h2>Links :</h2>
    <ul>
      <li><a id="home" href="http://wonderwinds.com" title=" better than mydomain huh? ">Authors home page</a></li>
      <li><a id="support" href="http://forums.b2evolution.net" title=" need more help? ">Plugin support page</a></li>
      <li><a id="donations" href="http://kiva.org" title=" show your appreciation ">Donations</a></li>
    </ul>
  </div>
 
  <div id="log">
    <h2>Log :</h2>
    <dl>
      <dt>Version 1.0 - 1<sup>st</sup> Jan 1970</dt>
      <dd>Released widget to the eagerly awaiting world</dd>
    </dl>
  </div>
</div>
</body>
</html>

The different bits

<--name-->Your widget name<--/name-->
This will be used for the posts title and will be shown in admin > tools
<--description-->Your widget description<--/description-->
This will be shown on http://b2evo.astonishme.co.uk/plugins.php
id="home||support||donations"
These links will be used for the appropriate old boxes, except for donations, that's a new one and should ideally lead to a page for your donations.
id="log"
This one's a tad more specific as it has to use a standard html as well, at the moment it'll use the first <dd></dd> as the "reason for update" which is shown on the users admin > tools tab.

Translations

I'm still a bit lost as to how to best proceed with this one. I'd like to encourage translations of plugins, hence the po file creation stuff ( which I *might* be able to convert to a plugin if your server has the required tools, ohhh and suphp because it needs to write the file ), but I still haven't worked out how to version/maintain language files independent of the plugin/widget version. Anyone got any bright ideas ?

Stats

Seeing as how I'd be grabbing all your zips anyway, I could serve them up from astonishme and provide download stats, or I could redirect all download links via AstonishMe and keep the same stats. Not that I know what the hell I'd do with the stats except to maybe show a list of all known widgets in order of popularity? Anyway, it can be done if you want.

Finally

Seeing as you all appear to be mostly happy with the rest of it ( apart from separating installed / not-installed in admin > tools ) I'll probably leave it as it is, although that may change with 3.0 when I get a chance to test it.

¥

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

 
 
waltercruz

Posts : 3

Joined : 12/29/08

Location : Brazil

Replied on : 03/23/09 @ 04:44 pm #1

Great, I like this.

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 03/23/09 @ 05:44 pm #2

When I read through the sample and got to the description part I thought "I must have written this one" ;)

Got some questions/thoughts though, of course. Like are the styles absolutely required? Should just be the IDs and hidden comments right? Along that thought it'd be kinda neat if there was a generic 'readme.css' file, but only if it did it the way I do :) On the download thing, no thanks. I'd prefer to see 'download' added to the

" line=:


id="home||support||donations"

bit. My silly little tracker works for me is the thing. Oh and it doesn't mean popularity. It only means downloaded. I guess it *implies* popularity though. Anyway what I do with 'em works for me, so why would I bother with another system? That's part of why I don't waste my time figuring out how to host them on sourceforge or whatever it is that peeps can put plugins on.

I was just about to touch my private bits for fun, then hack in float:right and float:left for images in addition to the standard div block thing (which is an aside to keeping the file name as the file name when images are resized because using dimensions is still totally fucking wrong), but I'll go ahead and update all my readme files to include these various ids and classes. Except downloads. Now I gotta think about that bit again...

So the person with the plugin (reader of the readme eh?) doesn't need a download link, but BOPIT does. So yeah never mind rethinking. A download link for BOPIT makes sense, and can be hidden with style if for some reason a plugin author didn't want a download link cluttering up their beautifully crafted readme.html file.

AND DAMMIT IT TOTALLY SUCKS THAT YOU CAN'T PUT A HELP LINK NEXT TO A SETTING THAT POINTS TO DOMAIN.COM/PLUGINS/MYPLUGIN_PLUGIN/README.HTML#SETTING_NAME AND LAUNCHES IT IN A POPUP! Was that OT? So was watering my dead grass but hey I did that too. Right after I mowed it. So now I got nicely manicured almost-dead weeds glistening as if there is morning dew here in the freakin desert.

Anyway I'll try to have freshly crafted readme files in my zips by the end of the day (where "day" might not mean the same to you as it does to me).

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 03/24/09 @ 05:11 pm #3

The only bits that are "required" are the <--description--> block, the appropriate link id's ( home / support / donations ) [delete as appropriate ] and the log id. although the log *must* contain a dl of which the top/latest dd will be used as the "reason for update".

You can miss any/all of them out as they're only used to pre-fill the boxes when you submit/update a plugin ;)

¥

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

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 03/24/09 @ 04:59 pm #4

Stats just mean "how creative can I be with these numbers" ;) Personally I never look at mine, it was just an option if y'all wanted it.

I've now implemented most of what I posted above on the blopit blog on AM, *if* you have a readme with the above details ( apart from the <"--name--> bit, that's now taken from your plugin ), anyway, if you have one and it's all zipped up, then you *should* be able to edit/create ( whichever is appropriate ) a post, slap in the zip url, click "autofill", wait for my server and your server to have a quick grope of each other, and then all the details should be auto-magically filled in ( apart from the categories, only you know which are appropriate ), you're able to edit all the details, apart for locales, before you press save. Hopefully that'll make new/upgrade submissions a damn sight easier.

It'll also have a quick rifle through the languages that you support ( more plans for that at a later date ), and slap some cool looking flags in your bopit entry in the users admin.

I've also added a donations link if you want to use that, personally ours just points to kiva.org until I can get round to writing an explanatory post, up to you what you do with yours ;)

Anyway, for now, that's as far as I'm gonna go with the AM side of bopit, still got a few more plans for the user end of the tool though, and I want to expand the translations stuff into it's own area/tool.

¥

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

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 03/28/09 @ 12:53 am #5

Okay cool. Finally making good progress on updating the readme and the plugin :) I'm also considering making a readme writer that would basically build a readme in this format so's my readmes don't get all sloppy like they always do. It will assume an external style sheet named readme.css that will look pretty much exactly like the style sheet above, with one or two minor additions. Like #more_info dt gets font-weight:lighter so that the whole thing can nicely use the dl dt dd thingie.

Any interest out there in making it (the readme writer) for a wider audience than just me?

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 04/01/09 @ 05:46 pm #6

Making a readme writer would help with the consistency, go for it ;)

¥

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

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 04/04/09 @ 02:26 am #7

I can't believe that after beating my head against javascript to get a readme_writer cranked out it dawns on me it should be a plugin so each plugin author can install it and set some defaults of their very own and call up a previously created readme for either editing or updating or just for the thrill of using a plugin plugin.

Oh well. I'm kinda not happy with it anyway. But wow my readmes are gonna be totally hot. Like, collapse everything down to where the headers are the only thing showing in the tiny little popup that pops up with the readme within. Then you'd be like oh my I can click on stuff and then, you know, stuff will do stuff.

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 04/04/09 @ 08:08 am #8

I await the awesome improvements to your readmes with bated breath :D

¥

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

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 04/05/09 @ 09:02 am #9

Wow this was really nice! The "adding to bopit" part I mean. The "updating all my crap because I updated the readme" part sucked diseased monkey balls. May I suggest moving the "where is your zip" field and the "autofill" button up to the top even though I know you said you're done with it?

If you really want to dig on my shiny new readme format have a peek at http://wonderwinds.com/plugins/countdown_plugin/README.html and there you go! I erred slightly before zipping because the tiny little popup you get from the (?) link in the back office doesn't show the "show/hide all" button, but so what: it's a pretty cool format I think. Obviously most of the styles came from the sample above ... with a few tweaks to satisfy my idea of groovy and cool.

Ah well. Now to FINALLY make a publicly available videoplug plugin that blows the doors off the crap that came out with the crapapp known as v310...

Hey I considered adding a reference to stopping footer spam in each of my zips. It is total crap that ever since it's been there it hasn't changed ... other than the change that made it so ONLY the freaking spambot commonly called 'the core' can play with it. Other than killing it via hacks.php I mean. Oh and you can apply nofollow to it via hacks.php, so I do :)

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 04/11/09 @ 08:13 am #10

Just noticed something I didn't notice during the first wave of using the new deal: it didn't autofill the reason for the update. I had manually typed the version then remembered autofill, so I gave it the download link and clicked. Got everything but the reason. So I removed the version and clicked autofill again and it had the version again. So I manually entered the reason for the release.

v10.2.0 :) 10 embeddables, 2 with extra settings, 0 bug fixes to the 10/2 combo I'm willing to admit to ;)

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 04/13/09 @ 08:15 am #11

Glad you like the new way, must remember to move zip/autofill to the top.
Your id="revlog" needs to be id="log" before it can be picked up ;)

¥

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

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 04/13/09 @ 06:06 pm #12

Aw crap that was a last-minute thing due to how "log" changed to red in my file editor. I figured it must mean something official for some reason, so changed it to something that didn't change colors. I've been tweaking the files a wee bit after publication and rezipping, so I'll do that again ... and this time autofill bopit.

There is another odd thing I'm seeing, but I won't go into it unless it is still there after converting revlog to rev and updating bopit. Cheers!

 
 
formica users avatar

Posts : 21

Joined : 06/05/08

Replied on : 04/13/09 @ 10:50 pm #13

Okay so here's my latest confusion. I updated all the zips and re-autofilled just to make sure it wasn't something from that angle. Might still be something in my zips, but maybe not...

I guess really the issue is I don't understand the diff between "installed" and "other" and "new". For example I have my 'comment tags' plugin installed, but it shows up under "other". I don't have my 'killer bees' installed because I don't want it, but it too shows up under "other". I'm also seeing the same plugin (my countdown thingie) listed in both "installed" and "other". I'm presuming this is because I changed the name? Or maybe it's got something to do with what b2evolution stores in tables about plugins and how bopit interacts with that info?

Anyway it's sort of confusing to me. I'll do a screen cap if you like, or get an admin login for ya.

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 04/14/09 @ 09:40 am #14

There's probably only you and me that are using the readme so I'm happy enough to change it to id="revlog" if it stops your editor being colourful ?

The difference is *meant* to be :
installed : uploaded, installed ... and (possibly) enabled
other : uploaded, not installed ... and (possibly) disabled
new : not on your servers hdd

An admin login would probably be more useful than a screen shot, but either would be a good start

¥

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

 
 
¥åßßå users avatar

Posts : 1110

Joined : 10/05/05

Location : 127.0.0.1

Replied on : 04/16/09 @ 09:12 am #15

Nice password ;)

You're right about the problems being caused by renaming plugins, it's actually the plugins $code that gets used. I've killed the extra files on AM so it should all now work like you expect but I need to make a couple more changes ( on AM ) to stop it happening in the future.

¥

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

 
 

Who's Online?

  • Guests ( 3 )
 
 
 

X