WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: aldus on September 03, 2008, 03:45:17 PM

Title: Modul Addresses
Post by: aldus on September 03, 2008, 03:45:17 PM
A simple modul for managing addresses inside WB.
All started in this thread: https://forum.WebsiteBaker.org/index.php/topic,10887.0.html
As the result an alpha-version comes out, within some bugs, but the work is still in progress.

Notice: i started this new thread to keep the information/updates here, more or less easy to
find, instead of the x-posting of a long thread on page 12... So if there are any changes, updates
they will be posted/updated here and at AMASP ...

Current Version: 0.1.8.2.alpha - 2008-10-08

Requirements:

Changes on 0.1.8.2.alpha - 2008-10-08
As you can select multible groups in the backend you are in the
need to update "x_cForm" to 0.1.3 first; instead you will lost the multible selections
in the popup.

Changes on 0.1.6.alpha - 2008-09-15

e.g.
Code: (css) [Select]
@import url( WB_URL/modules/adresses/css/play.css);

Changes on 0.1.5.alpha - 2008-09-15

As for the "options"

Changes on 0.1.4.alpha - 2008-09-08

Changes on 0.1.3.alpha - 2008-09-07

Notice: Because of a typos-bug you are in the need to update the x_cForm modul 0.1.1! Sorry.
https://forum.WebsiteBaker.org/index.php/topic,10933.0.html

Changes on 0.1.2.alpha - 2008-09-04

Notice: As there are no DB-Changes you can simple change/remove the files inside the zip.

Known issues

ToDo - Roadmap

AMASP: http://www.wbmod.bplaced.net/pages/modules/listings/addresses.php

Any kind of improvment, critics, recomentations, code-cleanings, warnings and grumble
are always wellcome.

Regards
Aldus

[gelöscht durch Administrator]
Title: Re: Modul Addresses
Post by: Ralf Hertsch on September 03, 2008, 09:44:46 PM
Hello Aldus,

had a fast look at Modul Addresses ;-)

Nice modul. Question: must it be php 5.2? 5.1.x not enough and why?

I got some errors if no user is defined or if i wish to create a new user:

Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at /var/www/.../httpdocs/modules/adresses/edit_user.php:1) in /var/www/.../httpdocs/modules/adresses/edit_user.php on line 41
(Think rewrite header location must be first line in code...)

Code: [Select]
Notice: Undefined index: id in /var/www/.../httpdocs/modules/adresses/edit_user.php on line 160
$_REQUEST['id'] is set but empty...

It would be nice to have the group's editable...

Regards
Ralf
Title: Re: Modul Addresses
Post by: aldus on September 04, 2008, 07:14:17 AM
Quote
Nice modul. Question: must it be php 5.2? 5.1.x not enough and why?
Massive codechanges, see http://www.php.net/ChangeLog-5.php for details,
and also Version 5.2.0 comes up in nov 2006 - nearly two years ...
In PHP 5.1 we've got massive problems with abstract classes and private vars ...

As for the groups - the theme is top on my list ;-)

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 04, 2008, 12:39:10 PM
Hi,

It's a nice module. I've got no errors, everything works fine.
But I know it's an alpha version, a lot of work has to be done.
I hope we can select the rows and other info in the backend.
BTW: if you delete a person, maybe a popup to ask if you really want to delete the person...

I expect a lot of this module. Verry nice!

Grts,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 04, 2008, 01:05:02 PM
Hello LuckyLuke

Ok - delete something without any warning isn't a good idea at all, i agree to this point.
Let me try to implant it in the next alpha update. The latest version 0.1.2.alpha is above/top of this
thread.

Regards
Aldus
Title: Re: Modul Addresses
Post by: aldus on September 07, 2008, 03:13:30 PM
Hello

Current version 0.1.3 update is avaible - see first entry for details.

Regards
Aldus
Title: Re: Modul Addresses
Post by: aldus on September 08, 2008, 12:03:04 PM
Current version 0.1.4 update/bugfix is avaible - see first entry for details.

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 09, 2008, 03:19:32 PM
The tooltip flashes a lot in Firefox 2, IE 6 and in Google Chrome.
Somethimes I have to click a lot on a name to register a click when a tooltip is above the link.
Title: Re: Modul Addresses
Post by: Luckyluke on September 12, 2008, 01:47:46 PM
Hoi,

Is there a possibility we turn the tooltips off? If the extra wysiwyg info has some tons of info, the module can run into trouble.

Can't wait to see the next release...   :wink:

Grts,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 12, 2008, 01:57:55 PM
Hm ... i'm still thinking about an "option" page. e.g. to turn "tooltipps" on/off or
try to "only the first 50 chars/ 10 Words of Field xyz" ... but i'm still run in trouble with this
at now.

As for a vague roadmap i'm trying to get 0.1.5 released this weekend ...

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 12, 2008, 02:05:20 PM
Yeah, an option page would be good. We can change the CSS, columns, which group you want to see, which columns, tooltips on/off, how many rows on 1 page, ....
Title: Re: Modul Addresses
Post by: aldus on September 15, 2008, 01:07:47 PM
Version 0.1.5 is online

For some details see the posting no. one in this thread.

@LuckyLuke - you can now use the "Edit options ..." to adjust the ToolTipp for the links.
(Offset_x, Offset_y) ...

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 15, 2008, 03:07:58 PM
Hi,

I've got some troubles updating the module. WB told me the update was OK but it didn't show the master menu anymore. So, clear the buffer and back to the backend.

Can you give an example of a CSS for this module?

Grts,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 15, 2008, 03:32:55 PM
What do you mean with "master-menu" - got still trouble to understand.
As for the css i plan some "presets" in the package, e.g. "funky", "serious" - what ever.

Have you a working (?) example out there in the net so i can take a look at it ?

E.g. the "css_basename" is "play" then ...
Code: [Select]
.play_td_head_1,
.play_td_head_2,
.play_td_head_3,
.play_td_head_4,
.play_td_head_5 {
    background-color:#900;
}

.play_td_1 {
    background-color:#EEE;
    overflow:hidden;
    display:block;
    float:left;
    width:200px;
    height:20px;
}

table.play_table {
    display:block;
    background-color:#FF8;
    width:500px;
}

Edit: Have placed a 0.1.6 for download in the first one, so you can also use the @import derective now:
Code: [Select]
@import url( WB_URL/modules/adresses/css/play.css);

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 15, 2008, 03:43:17 PM
Master-menu... I mean the start-menu, the WB administrator menu.
I have a working example on my lamp server and that's on my usb stick. So, not a working example on the net.

The presets is a good idea!
The CSS is working here.

I test more later when I'm at home.
Title: Re: Modul Addresses
Post by: aldus on September 15, 2008, 07:31:02 PM
Maybe you will need the update of "x_cForm" at https://forum.WebsiteBaker.org/index.php/topic,10933.0.html

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 18, 2008, 04:12:57 PM
Hi,

I've got to take a look to the CSS. Can you give me an CSS like the 3 above examples?
The tooltip is nice when it isn't under the cursor. Use an offset of 10 pixels.

Grts,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 18, 2008, 04:30:31 PM
Hi,

I've got to take a look to the CSS. Can you give me an CSS like the 3 above examples?
The tooltip is nice when it isn't under the cursor. Use an offset of 10 pixels.

Grts,
Luc

Ups - pretty mutch to do these days, so i've no idea about the version of yours:
here comes a "hot" modification update to 0.1.6.1 within some css - examples in the subfolder "css"
to play a little bit around ...

As where are no DB changes you can simple rename the existing folder and place the zip content into
adresses (aplologize for the typo)

Edit
you can link to the example css like this:
Code: [Select]
@import url( WB_URL/modules/adresses/css/examples.css);
Then you only have to change the "basename" to "gray", "red" or "mixed" ...

Regards
Aldus

[gelöscht durch Administrator]
Title: Re: Modul Addresses
Post by: Luckyluke on September 18, 2008, 04:32:32 PM
Hi,

I think something is wrong withe the tooltips.
When I add a new address, everything is correct. But when I edit a name, specially the wysiwyg info. It displays some old info or nothing anymore   :?

I see there is a new version. I'll take a look later in the evening!

Luc
Title: Re: Modul Addresses
Post by: aldus on September 18, 2008, 04:38:19 PM
Hi,

I think something is wrong withe the tooltips.
When I add a new address, everything is correct. But when I edit a name, specially the wysiwyg info. It displays some old info or nothing anymore   :?

I see there is a new version. I'll take a look later in the evening!

Luc

There is still a problem with the tooltipps if there ist a starting "p" tag or a link "<a>" inside ...

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 19, 2008, 09:37:20 AM

There is still a problem with the tooltipps if there ist a starting "p" tag or a link "<a>" inside ...


Allright. If I delete the <p> tag on the start of the wysiwyg info, the tooltip is back again. Thats a bad thing in FCKEditor. It use much <p> tags.
But in the tooltip, the picture is gone.

Quote
here comes a "hot" modification update to 0.1.6.1 within some css - examples in the subfolder "css"
to play a little bit around ...

As where are no DB changes you can simple rename the existing folder and place the zip content into
adresses

I installed the new version and all my data was gone. For the moment no problem. It was test data  :lol:

Grts,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 19, 2008, 09:54:18 AM
Quote
But in the tooltip, the picture is gone.
There is a "max char" setting in the options: the default is set to 100, maybe you will
have to set it up to 500 to get the image to work?

As for the lost-data - i apologize and will hunt this bug ...  :-D

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 19, 2008, 10:15:48 AM
As for the lost-data - i apologize and will hunt this bug ...  :-D

No need to apologize... not now  :lol:

And... I add a new address. Everythings works fine until I press the "add" button. I don't see it in the list. So it isn't added. And when I look to the frontend, it won't show anything.

Is it OK when I delete the tables with phpadmin, uninstall the address module and start all over again? Or are the tables dropped when I uninstall the module?

Grts,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 19, 2008, 11:34:29 AM
As far as i can see you will have to de-install the modul, and
drop the tables with PhpMyAdmin ...

I will see to get one stable version/update within this weekend, but today
i've got nearly no time.

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 22, 2008, 01:14:18 PM
Hi,

- In the detail page. When you click on a webaddress, it gives an error. E-mail works.
- Is there a possibility in the backend to display only a specific group? Or, to display in the frontend a group with a selection combo box?

I will test more the following days.
Nice module, I like it allready...

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 22, 2008, 01:20:09 PM
you wil have to give the full web-address, e.g. http://www.drp-x-work.de, including
the leading "http://" (protocol ?).
Hm ... but i think i could also "take a look" for if_it_not_exists then add it ...

Regards
Aldus
as for the next update i plan to get 24/25 Sep. ...
Title: Re: Modul Addresses
Post by: zarathustra.at on September 22, 2008, 01:50:37 PM

- Is there a possibility in the backend to display only a specific group? Or, to display in the frontend a group with a selection combo box?


I think the best would be to write a snippet with parameters (which group to display, which fields, etc...) - then it should be possible to display adresses anywhere on the page (like anynews does it with news).

Aldus, do you think this would be possible?
Title: Re: Modul Addresses
Post by: Luckyluke on September 22, 2008, 02:00:47 PM
In the detail page. When you click on a webaddress, it gives an error. E-mail works.

Yes, that was the error. Now it works!

Is there a possibility in the backend to display only a specific group? Or, to display in the frontend a group with a selection combo box?

Let me give an example.
I make a page with traders. Here I use the module Address. In that module I have a groups with bakers, butchers, clothing, optics, pharmacy,  ...
The visitor of the site would have to select everything or a specified group.

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 22, 2008, 03:02:49 PM
As for the "groups" - i've on my paper for the next update ...
As for the "code-snipp" i've no idea about at this time, but it could be a nice think
to get more detailed controll for the output of the addresses ...

Regards
Aldus
Any ideas and suggestions welcome ...
Title: Re: Modul Addresses
Post by: seagull on September 22, 2008, 07:45:34 PM
I have installed this module.

Maybe i am wrong, in the info.php of the module "addresses" is the module_directory, but in the php files is the hardcoded directory "adresses"

double d and single d

Jan
Title: Re: Modul Addresses
Post by: aldus on September 22, 2008, 07:54:56 PM
Yes - i have to apologize: the folder-name have this typo ...
It will be corrected in the next update ...

Kind regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 26, 2008, 11:02:37 AM
Hoi,

Is there an update this weekend?    :roll:

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on September 26, 2008, 11:10:31 AM
Mess to do - got some clients out here - so saturday afternoon will be the next ...

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on September 29, 2008, 08:58:38 PM
Hi,

I like the listview in the amasp control. I hope this address module will have something simular.

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on October 07, 2008, 03:04:06 PM
Hi,

I like the listview in the amasp control. I hope this address module will have something simular.

Grtz,
Luc

Ok - small update to 0.1.8, but the list-view isn't touched yet. Also, please update x_cForm first.
And i also recomented to de-install addresses first, as i don't know in this minutes how the "update.php"
script will work proper ... sorry ...

Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on October 07, 2008, 07:03:42 PM
Hi,

I uninstall the module and delete everything from the database.
And I delete everything from the module map wit FTP.

So, I start from zero with the new module.
I get now the following error:

Code: [Select]
Not Found
The requested URL /anais/modules/adresses/edit_group.php was not found on this server.
Maybe the module is adresses and the name of the map is addresses. I think this is not correct typed.
seagull (Jan) also made a note of this error some posts above.

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on October 08, 2008, 09:50:08 AM
Autsch  :roll:

Apologize for the typo(-s) ...

as for a quick one here is 0.1.8.2 with the correct paths ...

Kind regards
Aldus

[gelöscht durch Administrator]
Title: Re: Modul Addresses
Post by: Luckyluke on October 09, 2008, 01:29:09 PM
Yeah, it running like a train! And the CSS examples are fine, even with the @import!
This is gonne be a very nice module!

If I put some text in the wysiwyg, the tooltip will show it. But when I made some changes in the wysiwyg, the tooltip would't show again. This is strange.

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on October 09, 2008, 03:07:25 PM
Yeah, it running like a train! And the CSS examples are fine, even with the @import!
This is gonne be a very nice module!

If I put some text in the wysiwyg, the tooltip will show it. But when I made some changes in the wysiwyg, the tooltip would't show again. This is strange.

Grtz,
Luc

Ok - the problem is the starting "<p>" from the WYSIWYG ... i nail the problem ...
Regards
Aldus
Title: Re: Modul Addresses
Post by: Luckyluke on October 09, 2008, 03:21:43 PM
Ok - the problem is the starting "<p>" from the WYSIWYG ... i nail the problem ...

Sorry, nothing to do with the <p> tag. I did a test. First, write something in the wysiwyg and after some edits of this field, with no <p> and <a> tags, the tooltip won't show. But the info is correct in the "details" page. It's strange.

Luc
Title: Re: Modul Addresses
Post by: Luckyluke on October 24, 2008, 05:54:44 PM
Hi,

You can use the fancy-box instead of a new window for the wysiwyg info?
When is the next update?

Grtz,
Luc
Title: Re: Modul Addresses
Post by: aldus on October 26, 2008, 07:09:26 AM
Hi,

You can use the fancy-box instead of a new window for the wysiwyg info?
When is the next update?

Grtz,
Luc

Hello Luke
sorry for the vacation the last days - but my work in the office messed up to evil ...
As for the fancybox i will take a look to it, as for a next update i will see if 28/29 october afternoon
i can place the new files here and/or at AMASP ...

Kind regards
Aldus
Title: Re: Modul Addresses
Post by: Northerner56 on December 27, 2008, 10:12:50 PM
Hi, I have run into a serious problem after installing Adresses module. The module did not work, Interface seemed OK, but I could not get anything out of it, only delivered a white screen when previewed.

What is worse is that my whole site now produces only white pages when displayed. I have tried to delete the page where Adresses was installed, but it is not possible to delete it by using the standard WB tools, and then I am not able to remove the module either. Hope someone can help me with this..


regards

LeifB
Title: Re: Modul Addresses
Post by: aldus on December 28, 2008, 08:12:26 AM
Hello

WB-Version is 2.7 (from here) and x_CForm modul is installed?
Could you please set the error level to "E_ALL" in the backend in 'options' to get
more detailes in the messages what is going wrong.

you can also take a look here:
https://forum.WebsiteBaker.org/index.php/topic,10822.0.html

If nothing helps feel free to send a pm to me

Kind regards
Aldus
Title: Re: Modul Addresses
Post by: JasonB on May 13, 2009, 09:35:40 AM
Hi, I have run into a serious problem after installing Adresses module. The module did not work, Interface seemed OK, but I could not get anything out of it, only delivered a white screen when previewed.

I had the same problem at first, but the fix is simple. Sometimes, shortcuts are not recognized. At the bottom of view.php, you'll find the following code:

Code: [Select]
<table class="<? echo $options['css_basename']; ?>_table">
    <? echo $table_head_tr.$table_content; ?>
</table>

Replace it with this:

Code: [Select]
<table class="<?php echo $options[&#39;css_basename&#39;]; ?>_table" width="100%">
    <?php echo $table_head_tr.$table_content?>
</table>

That did the trick for me.
Title: Re: Modul Addresses
Post by: oeh on March 12, 2010, 08:44:23 AM
The Norwegian Language file.

[gelöscht durch Administrator]
Title: Re: Modul Addresses
Post by: JackJTP on May 31, 2010, 04:36:19 PM
Hey, maybe I am a lil blind or missed something during the installation of the module... but in backend it works fine and in frontend i get following error:

Code: [Select]
Fatal error: Call to a member function fetchRow() on a non-object in /srv/www/vhosts/spr-design.de/subdomains/a/httpdocs/modules/addresses/view.php on line 165

If there is already a known fix, let me knoiw please. if there IS, a would say sorry for this useless post, but my skills in using searchengines are not the highest ;) I tried many searches- no helping stuff found.

Thanks and greetings from Germany: Alex