Recent Topics

What documentation do you need right now?

Started by on Nov 22, 2012 – Contents updated: Jul 22, 2014

Nov 22, 2012 15:45    

I am creating this thread so everyone can say what topics they would like to see covered first in the new manual ( http://b2evolution.net/man/ )

tilqicom wrote:

i'd appreciate better docs especially on plugin hooks and skin functions.A list of available hooks & functions would be perfect for starters.The skeleton plugin explains hooks pretty much.

But i'd like to point a few issues that gave me hard time in the past;
For example i do not know how to get my plugin's url or path. i know there are globals for common /plugins folder and url.But do i have to type in $plugins_folder.'myplugin_name' manually ? I mean it's a very tiny issue but it's not the best practice i think.

The hardest part is dealing with plugins & themes in the backend.Since 3.x the skins esp. came a long way with skin options.I've added many options in my last skin (chita) in the backend.I got around with some jQuery plugins & hacks, like on of switch for checkboxes etc.

But the list grew long and i didnt know even how to make a collapsible <fieldset> they had no id whatsoever.It's a pain to throw in something in there in the backend.For example if i am to implement a file uploader in the settings for the user to upload his custom logo in the skin, how can i throw in some html in there ?
I've added color picker for changing various skin colors by prepending / appending options (thank god they had id's).

I mean i hope you understand what i am getting at.The backoffice doesnt seem to be very flexible and easy to get into.Even if it is, there is no doc or forum thread that explains how to.

I understand this to be mostly a tech doc request for plugin and skin developers.

Sep 09, 2013 20:14

@fplanque wrote earlier:

I understand this to be mostly a tech doc request for plugin and skin developers.

This. It took me a long time the other day to figure out how to get at custom fields from my plugin. Most of the docs seemed out of date or skipped over important details (like $field_index is just my custom fields string not a database id I need some other method to get at)

Oct 12, 2013 05:22

I might have asked this earlier but i cant remember the answer.. What happened to "docs.b2evo.net" ?? It did a pretty good job for me together with google site:search.. Is it still accessible somewhere else, will it come back ?

OT: How do we set a plugin setting ? I did "$this->Settings->set('plg_setting',$val);" it gets the setting in the cache but nothing is written in _pluginsettings table.

Oct 12, 2013 15:24

You need to write settings with dbupdate(), this applies to all settings like User, Item, Collection etc.

PHP

$this->Settings->dbupdate();

Oct 12, 2013 15:26

There's a chance that you can use set_setting() method, in that case it's automatically saved to DB

PHP

$this->set_setting('name''value');

Oct 13, 2013 01:45

as far as i remember $this->set_setting did not work.. it's only available for $Blog, $Item and $Skins i think. But i will give dbupdate() a try. Thanks.

PS: @sam2kb couldnt catch you online on skype lately :P i had a few jobs to ask you, mostly seo. I hope you are finished with that android app of yours meantime (:

Oct 13, 2013 17:02

yup dbupdate() does the trick, thanks.


Form is loading...

open source blog software – This forum is powered by b2evolution CMS, a complete engine for your website.