Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 01:59:37 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155476 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Poll
Question: Are you using Droplets?
Yes, I like the idea!
No, Why?
What are Droplets?

Pages: 1 [2] 3 4 ... 19   Go Down
Print
Author Topic: New Admin-Tool: Droplets  (Read 50441 times)
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #25 on: January 12, 2009, 05:36:49 PM »

Hi Ruud,

just tested the latest version, works like a charme.

Regards Christian

Pfff... it works...

No seriously.. All feedback is very much appreciated. Thanks for that.

Not many messages in this thread (or any other thread with new WB stuff) could mean two things.
A) It works fine, no need to complain.
B) Nobody likes it and nobody uses it. (and I am wasting my time)

Ruud


Logged

Professional WebsiteBaker Solutions
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #26 on: January 12, 2009, 06:29:52 PM »

Hoi Ruud.

I love the Droplets Idea.
And I am using it. But I am limited to the droplets provided in this thread and the AMASP.
I have a lot of ideas for single droplets, but I don't know how to generate them (as you know, I am not well-skilled with PHP).

Maybe it is worth to open a thread with the title "Droplet Suggestions", so the ideas can be discussed and if the coders have some time and fun with it, they can provide the droplets?

I have at least 2 Ideas which are simple and I think they're easy to "transform" into droplets smiley

1) The "Edit this Page" snippet. [[editThisPage]]
2) "Google Analytics" [[googleAnalytics]]

Kindly Regards,
Stefek



Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Hans

Offline Offline

Posts: 564


« Reply #27 on: January 12, 2009, 11:05:35 PM »

Hi Ruud, I don't think everybody who uses Droplets will post a message here that they do so  grin
But that doesn't mean that you are wasting your time. On the contrary. I have used Etomite to build more than 15 websites long ago and my customers where very happy with the Snippets as they are called there. In fact the Snippets where some of the most important features for them. The Droplets are much easier to use and to change to one's own preferences, so they must become an important part of WB, no doubt.
Unfortunately I don't have the skills to make Droplets and I think most normal users will depend on a library of Droplets to use. So it seems to me that the popularity of the Droplets depends on how much Droplets become available. I have seen the additions to the library and I must say: many very usable Dropplets are available untill now. Wished I would have the skills to make some to contributions. I really hope that there more people are willing and capable to contribute new additions to the library. They take WB to a still higher level of usefulness.
Thank you and pcwacht (John) for that!
(Sorry for my poor English wink)
Hans
Logged

Hans - Nijmegen - The Netherlands
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #28 on: January 12, 2009, 11:32:41 PM »

Hi Ruud,

I think the droplets are a great feature, and it would be nice to try to rebuild current snippets as much as possible to droplets. And of course other droplets are very welcome. Right now the number of droplets are small and I think many users have not discovered them yet. And of course you must have a use for them as well. And your hosting must support them (it took some effort for my hosting to support them, as you know). Personally I don't have use for most of them yet, but the idea and working of droplets are cool, and the more that will be available, the more people willl use and love them.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Vincent

Offline Offline

Posts: 360


WWW
« Reply #29 on: January 15, 2009, 10:57:52 AM »

Ruud (and John),

I think you did an awsome job! I haven't used many of them yet, but will certainly make use of them in the future. They are much easier and more flexible to use than snippets, so I think many people will use them as the library grows.
And when people can download them more easily: for on the droplets page (AMASP) there is no download link, so one has search for them in the admin-tools section. Consider putting a link in the droplets section as well.

I like the name, droplets. Personally I find the droplets icon resembling the Drupal too much, perhaps changing the color (non-blue) would do the job?

Anyway, thanks for your contribution, it is highly appreciated.

Vincent
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #30 on: January 15, 2009, 11:16:07 AM »

Hello.
Quote
for on the droplets page (AMASP) there is no download link, so one has search for them in the admin-tools section. Consider putting a link in the droplets section as well.
Yes, I agree.
There should be a shorter way to the download.

Regards,
Stefek


« Last Edit: January 19, 2009, 07:16:10 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
instantflorian
Betatester
*
Offline Offline

Posts: 802



WWW
« Reply #31 on: January 15, 2009, 08:00:36 PM »

A very useful addon, it's just great. Thanks a lot!
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #32 on: January 19, 2009, 03:09:21 PM »

Today I created a new fun Droplet. >> AutoPlay

The AutoPlay Droplet is used in the template of your site and will automatically "play" all the pages in your website.
Very useful if you want to have a website displayed on a public monitor.
The time a page will display is set with the parameter timeout=nn.

Initially a button will be displayed (where your Droplet tag in the template is placed) that will start the autoplay mode. Pressing the button again will stop autoplay.

You can find the dropletcode on the Official Droplet Library

Ruud
Logged

Professional WebsiteBaker Solutions
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #33 on: January 19, 2009, 03:11:41 PM »

Cool! Very inventive!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
proglot

Offline Offline

Posts: 13


« Reply #34 on: January 19, 2009, 07:07:15 PM »


@All Droplet users.
Just noticed I left some debugging information activated.  shocked
It will show the droplet code when viewing the source of your webpage.
You can disable that info by just removing line 58 in the file droplets.php
Code:
echo "<!-- Droplet Debug (".$functionName.")\n".$content."\n-->\n\n";
It is not a big risk to show the code, the droplet code is publicly available anyway. It just shouldn't show.

Ruud
I propose that you better add global debug settings (on/off) on droplet management page
or even per droplet debug switch.
It can be very handy while debugging droplet on hidden page on production site actually using hosting provider environment without affect production site
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #35 on: January 20, 2009, 12:48:28 PM »

hi,

thx ruud for adding my droplet!

here is the [[SiteMap]] - Droplet!

http://www.websitebakers.com/pages/droplets/official-library/navigation/sitemap.php

Decription: This Droplet will show a sitemap using the Show_Menu2 snippet.
                          (The show_menu2 snippet is standard installed in WB2.7 and higher)

Note:
You can modify the output of the sitemap like on the examplepage from Showmenu2

link: http://code.jellycan.com/sm2test/pages/site-map.php

add the content you need in your sitemap like keywords or menu_title...

here is the full code of the example from showmenu2 page

Code:
'[li]<span class="sitemapcontent">[a][page_title]</a> (menu: [a][menu_title]</a>)<br /><i>[description]</i><br />([keywords])</span>'

have fun

martin
Logged

 
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #36 on: January 27, 2009, 05:03:34 PM »

Today I added a new Droplet to the library.

I named it ShowAd and it can be used to display a sliding DHTML advertisement on your website.

The advertisement itself is created in a hidden WYSIWYG page.
The section-id of the WYSIWYG part is given as a parameter to the droplet.

Find the ShowAd code and a live example here:
http://www.websitebakers.com/pages/droplets/official-library/content/showad.php


Ruud

[edit: renamed to showad  cool]
« Last Edit: January 27, 2009, 05:22:41 PM by Ruud » Logged

Professional WebsiteBaker Solutions
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #37 on: January 27, 2009, 05:17:18 PM »

Nice one  grin

But you'd better call it ShowAd with 1 d to prevent confusion.

ShowAdd = Show Addition
ShowAd = Show Advertisement
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #38 on: January 27, 2009, 05:26:22 PM »

You're right.

Quickly renamed it to ShowAd.  cool

Ruud
Logged

Professional WebsiteBaker Solutions
roedental

Offline Offline

Posts: 80



WWW
« Reply #39 on: January 28, 2009, 12:02:36 PM »

Hey Ruud,
very nice droplet!

But I think, the IE has some problems with "max-width" and "max-hight".
Is it possible to show this advertisment only once, not at every reload of the page? huh
And must it be a WYSIWYG secition, or may I use a CODE section as well? huh

Sven
Logged
saiborg

Offline Offline

Posts: 101


WWW
« Reply #40 on: January 28, 2009, 07:11:11 PM »

Hi Ruud,

i love your Module, but the RandomImgae does not work. I only get a little square with nothing in it....but i think i make everything right. do you have any idea??

Thanks
Saiborg
Logged

schaut doch mal vorbei

http://www.microott.de
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #41 on: January 29, 2009, 09:32:00 AM »

Hi Ruud,

i love your Module, but the RandomImgae does not work. I only get a little square with nothing in it....but i think i make everything right. do you have any idea??

Thanks
Saiborg
Can you show how you insterted the droplet?

It should be something like: [[randomimage?dir=cars&width=160&height=100]]

Note that the images directory must be a subdirectory of the /media folder, but without adding the /media/ part in the parameter.

Ruud
Logged

Professional WebsiteBaker Solutions
roedental

Offline Offline

Posts: 80



WWW
« Reply #42 on: January 29, 2009, 10:52:34 AM »

Now you can define a start and end date:

You must add the following code at the beginning:
Code:
global $database, $wb;
$today_showad = date("Ymd");
if (($today_showad >= $start_showad) && ($end_showad >= $today_showad)) {
and at the end of course a
Code:
}

Now you can define the start and the end date like this:

[[showad?section=1234&start_showad=20090101&end_showad=20091231]]

this will show the advertisement from the 01.01.2009 until the 31.12.2009

Sven
Logged
saiborg

Offline Offline

Posts: 101


WWW
« Reply #43 on: January 29, 2009, 04:27:43 PM »

Thank you Ruud,

sorry i (the dow) did something wrong, thank you for your help. But with you all im getting a little better every day.

Greeting from munich
Saiborg
Logged

schaut doch mal vorbei

http://www.microott.de
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #44 on: January 29, 2009, 10:13:17 PM »

Is it possible to show this advertisment only once, not at every reload of the page? huh
And must it be a WYSIWYG secition, or may I use a CODE section as well? huh

The simple way of showing it once is by starting the droplet code with:
Code:
if (isset($_SESSION['showad']))
  return ' '; // return a whitespace. Droplets need to return something.
$_SESSION['showad'] = '1';
The next visit (in a new browser session) will show the advertisement again one time.
If you want do do this realy once, something similar could be done using a cookie.

To use a droplet in a code section just echo the droplet.
Code:
echo '[[lorem?blocks=2]]';

Ruud
Logged

Professional WebsiteBaker Solutions
roedental

Offline Offline

Posts: 80



WWW
« Reply #45 on: January 30, 2009, 09:38:22 AM »

Hey Ruud,
thanks for your answer, it works fine rolleyes

And referens my posting above, about the start and end date, you have to remember this:
Quote
// return a whitespace. Droplets need to return something.

otherwise you will get an error-message!

 wink
Thanks Sven
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #46 on: January 30, 2009, 09:45:48 AM »

And referens my posting above, about the start and end date, you have to remember this:
Quote
// return a whitespace. Droplets need to return something.

otherwise you will get an error-message!

The next version of the Droplets module will also allow a "return true;"
I hope to have it available this weekend.

Ruud
Logged

Professional WebsiteBaker Solutions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #47 on: January 31, 2009, 09:49:29 PM »

Today I uploaded a new version to the AMASP website.

Version 0.3.0 - 31 jan 2009
- Checks the Droplet code for valid PHP code. If the code is invalid there will be a flashing red icon in the overview page.
- Checks if the Droplet name is already in use. Saving is allowed, a warning is shown in the overview page.
- Allows changing full page content by modifying the reserved variable $wb_page_data.
- Allows return true; instead of returning data.

Download it now on the AMASP site.

Have fun with it.

Ruud
Logged

Professional WebsiteBaker Solutions
saiborg

Offline Offline

Posts: 101


WWW
« Reply #48 on: February 01, 2009, 11:53:31 AM »

Hi Ruud,

is there any section for unofficial droplets?? like snipes.....
Im looking for some imagegallerys to put in the topics modul / news modul...

Is it possible to modifie the randomimage droplet that it changes the picture ervery 30 seconds....
Thank you

Saiborg
Logged

schaut doch mal vorbei

http://www.microott.de
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #49 on: February 01, 2009, 09:48:23 PM »

is there any section for unofficial droplets?? like snipes.....
If you have any, just post them here in this thread.

Im looking for some imagegallerys to put in the topics modul / news modul...
Is it possible to modifie the randomimage droplet that it changes the picture ervery 30 seconds....
That should be done using a javascript. Droplets can do javascripts just fine.

Maybe someone has built something like this already and would like to share it.

Ruud
Logged

Professional WebsiteBaker Solutions
Pages: 1 [2] 3 4 ... 19   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!