• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bancha, Open-source CMS

#21
[eluser]areesto[/eluser]
[quote author="Nicholas Valbusa" date="1327941874"][quote author="areesto" date="1327940189"]Hi Nicholsa,

Are you planing for some future versions of getbancha or some tutorials on it? it would be great if there is more users functions like adding the field creator on record table to know who create the post.

Thanks.[/quote]
Hello,
I'm planning to do some screencasts and written tutorials, more detailed than the introduction tutorial that you can find here:
http://docs.getbancha.com/firststeps/index.html

On the next release I also expect to add an "author" field on the records table. By the way, you can add it by yourself using an xml field like this:

Code:
<field id="author">
    <type>hidden</type>
    <default>eval:$this->user('id');</default>
</field>

Futher info about the fields: http://docs.getbancha.com/content-types/...ields.html

You can also use $this->user('full_name') or $this->user('username')

On the post, you get the value as follows:

Code:
$post->get('author');
[/quote]

Thank you very much, as i can see it's very flexible!!

#22
[eluser]Nicholas Valbusa[/eluser]
We just pushed a minor version: 1.0.8

- Strip tags added on the events log (title field)
- Triggers on publish/depublish now triggers the production tables instead of the stage ones
- Comments count fix (triggers added on publish)
- the tree() function now accept also the starting page record id

Full changelog here: http://docs.getbancha.com/basic/changelog.html

#23
[eluser]Nicholas Valbusa[/eluser]
Hello, the version 1.1 is out today!

Full changelog here below:

- Bugfix corrected on the Type tree scheme
- New Javascript application file by @domsmasher (html5 boilerplate)
- Custom feed template is now available on the core/views/type_templates folder
- Htaccess file now correctly supports subdirectories
- Some fixes on the rss+json feeds
- The tree() function now accepts also the starting page record id
- XSS clean added on user inputs (such as the comments script on the sandbox theme)
- Strip tags added on the event name when is displayed on the “Last events” page of the admin
- Merge of the development branch (security fixes)
- Some italian localizations
- Rendered views array reversed to reflect their real order (on the website profiler)
- Doc: 1.0.8 changelog list slightly changed

To update, just replace the "core" folder.

http://docs.getbancha.com/basic/changelog.html

#24
[eluser]areesto[/eluser]
Thank you Nicholas, i will test it ASAP... but im in real trouble i did a lot of modifications in the core folder but i think i can still updates cause i have tagged all of them.

#25
[eluser]Nicholas Valbusa[/eluser]
Hello, I just released a unix bash script with some utilities, such as "install" and "update".
You can find it here: https://github.com/squallstar/bancha-bash

It's very easy to install, as you can see on the readme file.

Code:
wget -q http://getbancha.com/utilities.txt -O _bnc.sh
chmod +x _bnc.sh
sudo mv _bnc.sh /usr/bin/bancha

And then,

Code:
bancha install

or

Code:
bancha update

More info and documentation here: https://github.com/squallstar/bancha-bash

#26
[eluser]victorche[/eluser]
Bancha is good and lightweight, I like it!
Anyway... There are some problems for me (I need Bancha as multilanguage). During install, I can choose from 3 languages (Endglish, German, Italian). But as far as I can see... There are no translations for German in the folders (there are some for Italian). So, if there are no translated files, why we have the option to select German?

And in app/config/website.php only 'en' is added to the lang array. So, these (half) installed languages are confusing. I am trying to add another language (not German or Italian) and this is not an easy job.

One more issue... When I am editting the homepage (in English, published), I have a big and nice WYSIWYG editor. No matter what I add there (as text, emoticons, etc.), nothing shows on the page. The text on the page remains the same:
Quote:This script is located here: themes/sandbox/views/templates/homepage.php

Note that this is also a Record of type Menu marked as website homepage on the settings.
I'm not telling that this is a bug, but I need some more info here. Should I manually edit this template? Or can I insert some text and images with this editor?
Because, as I said... Adding some text in this rich text editor does... simply nothing on the page itself :roll:

#27
[eluser]Nicholas Valbusa[/eluser]
[quote author="victorche" date="1335001824"]Bancha is good and lightweight, I like it!
Anyway... There are some problems for me (I need Bancha as multilanguage). During install, I can choose from 3 languages (Endglish, German, Italian). But as far as I can see... There are no translations for German in the folders (there are some for Italian). So, if there are no translated files, why we have the option to select German?

And in app/config/website.php only 'en' is added to the lang array. So, these (half) installed languages are confusing. I am trying to add another language (not German or Italian) and this is not an easy job.

One more issue... When I am editting the homepage (in English, published), I have a big and nice WYSIWYG editor. No matter what I add there (as text, emoticons, etc.), nothing shows on the page. The text on the page remains the same:
Quote:This script is located here: themes/sandbox/views/templates/homepage.php

Note that this is also a Record of type Menu marked as website homepage on the settings.
I'm not telling that this is a bug, but I need some more info here. Should I manually edit this template? Or can I insert some text and images with this editor?
Because, as I said... Adding some text in this rich text editor does... simply nothing on the page itself :roll:[/quote]

Hi Victorche,
the german translations are contained inside the core/languages/de_DE folder, as you can see here:
https://github.com/squallstar/bancha/tre...C_MESSAGES

Bancha uses two different files for the admin and the website translation. By default, the german translation is available (and enabled) on the administration, and you can test it editing your user and changing the language from the select.

The app/config/website.php file refers to the website available languages, and they can differ from the administration ones. To add a new language on the website frontend, just follow the documentation here:
http://docs.getbancha.com/languages/add.html

Homepage: the text that you see "This script is located bla bla bla..." it's just an example. You have to remove it inside the view template (homepage.php).
If you wish to display the text that you entered on the textarea in the "Homepage" record of type "Menu", just put an echo in the homepage template as follows:
Code:
&lt;?php echo page('content'); ?&gt;

Just tell me if you have any other doubt Smile I'm here for this.

Nicholas

#28
[eluser]kkzhi[/eluser]
thats a nice cms, i hope u will keep a good work Big Grin and thx
and i want to ask u something about how we can add some jquery (slide,effect,etc) like the one in www.getbancha.com or www.mint-sugar.com? can u please explain? i really interested to customize it

#29
[eluser]Nicholas Valbusa[/eluser]
[quote author="kkzhi" date="1335173903"]thats a nice cms, i hope u will keep a good work Big Grin and thx
and i want to ask u something about how we can add some jquery (slide,effect,etc) like the one in www.getbancha.com or www.mint-sugar.com? can u please explain? i really interested to customize it[/quote]
Hello,
I used NivoSlider, it's really easy to use: http://nivo.dev7studios.com/

To extract the contents, just create a content type with an images field and extract it on the homepage view as follows:

Code:
$teasers = find('Teasers')->limit(10)->order_by('date_update', 'DESC')->get();

foreach ($teasers as $teaser) {
    $imgs = $teaser->get('teaser_image'); //images field
    $path = $imgs[0]->path; //the first image
    echo '<img src="' . $path . '" />'; //prints the image
}

Nicholas

#30
[eluser]kkzhi[/eluser]
[quote author="Nicholas Valbusa" date="1335177922"]
Hello,
I used NivoSlider, it's really easy to use: http://nivo.dev7studios.com/

To extract the contents, just create a content type with an images field and extract it on the homepage view as follows:

Code:
$teasers = find('Teasers')->limit(10)->order_by('date_update', 'DESC')->get();

foreach ($teasers as $teaser) {
    $imgs = $teaser->get('teaser_image'); //images field
    $path = $imgs[0]->path; //the first image
    echo '<img src="' . $path . '" />'; //prints the image
}

Nicholas[/quote]

Hello Nicholas, thx for the explanation, but its seems like i missunderstood or just dont get it cause it give a warning message like this
Code:
A PHP Error was encountered

Severity: Notice

Message: Uninitialized string offset: 0

Filename: templates/homepage.php

Line Number: 25
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: templates/homepage.php

Line Number: 25

can u tell me why? thanks Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.