Recent Topics

1 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 ( )

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.

2 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)

3 Oct 12, 2013 05:22

I might have asked this earlier but i cant remember the answer.. What happened to "" ?? 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.

4 Oct 12, 2013 15:24

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


5 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

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

6 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 (:

7 Oct 13, 2013 17:02

yup dbupdate() does the trick, thanks.

8 Jan 23, 2019 16:44

Flagged Item widget.
Clicking question mark next to it in widgets area leads to 404 page. Searching Docs for "flagged" brings only one result -
A page about notifications.

The Flagged Item widget is enabled in a fresh install but as far as I know, I haven't seen it displayed anywhere, even with demo content installed.

9 Jan 23, 2019 16:50

we'll add this shorty.

10 Jan 23, 2019 18:19

I figured out what it is. Handy little user feature similar to bookmarking. Will this help?

(can't do inline images here so some assembly required - attaching three images)

While viewing a post, either as an archive of posts or as an individual post, you should see a flag icon next to the post meta as shown below. Clicking that icon marks that post as Flagged by you and will show in the Flagged Items widget if it is displayed. (Flagging items is like bookmarking them.)

(image that shows user clicking flag)

Below is the Flagged Items widget placed on the main page/content area. Flagged Items are shown as a list and clicking the button shown, brings you to an archive view of all flagged items.

(flagged items widget on page)

Below is how the Flagged Items widget placed in a sidebar. In this case, only the button is shown and clicking it brings you to an archive view of all flagged items.

(flagged items widget in sidebar)

11 Jan 23, 2019 22:27

I'd like a list of all constants and variables so I can get data, and scopes, without having to access the database by table, fields and row when I have an idea to implement something.

This post has 3 feedbacks awaiting moderation...

Form is loading...

b2evolution CCMS – This forum is powered by b2evolution CMS, a complete engine for your website.