A simple modul for managing addresses inside WB.
All started in this thread: https://forum.WebsiteBaker.org/index.php/topic,10887.0.htmlAs 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:
- WebsiteBaker 2.7
- PHP 5.2.x
- WebsiteBaker Modul: x_cForm 0.1.3
Changes on 0.1.8.2.alpha - 2008-10-08
- Bugfix for typos in paths to the modul-folder
- Selecting group(-s) for the frontend-view
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
- Minor changes in View.php to make the @import derective inside the css to work.
e.g.
@import url( WB_URL/modules/adresses/css/play.css);
Changes on 0.1.5.alpha - 2008-09-15
- Add new table for individual option settings for each section
- Add new page for the optionsettings - also wb-languagesupport for the labels on the left.
- Some bugfixes, minor cosmetic changes and some typos-erasing.
As for the "options"
- checkbox for "display tooltipp" y/n
- value for the offset_x display for the tooltipp
- value for the offset_y display for the tooltipp
- max. Chars in the tooltipp, as we sometimes got a lage "info"-block.
- css_basename settings
- css (-info): you can place your own css insite the textarea for individual css-layout for each section, like you can see in the attachment. The rule is (fairly) simple: {{ css_basename }}_td_[number_of_the_collumn]. e.g. the basename is "school" then you can form the roule like ".school_td_1 { background-color:#890; }"
Changes on 0.1.4.alpha - 2008-09-08
- bugfix in the "view.php" to display "all" items, even "web" and "e-mail"
Changes on 0.1.3.alpha - 2008-09-07
- Add warning message for delete. "Are you sure?"
- Add rudimental managing the front-end-table for the order (see attachment)
- Multi-Sections are now supported.(See attachment)
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
- Simple listing of the groups at the bottom of the userslist (m.f.i)
- Testing if the group is in use by a user, and if so, you can direct "jump"(link) to him and change the settings.
- Alphabetical order of the groups (also in the popup).
- Add groupname for the frontend-output in details
Notice: As there are no DB-Changes you can simple change/remove the files inside the zip.
Known issues
- The modul make use of "overLib" JS; this will not work if a "link" is inside the info-block.
The groups can't be edit at this time; exept inside phpMyAdminMissing (very rudimental) language-support for EN, NL, DE ...- If you delete a page within this modul, the entries are still in the db; so deleting the users first is recomented! (sorry - no idea why it is so ...
ToDo - Roadmap
Editing/Add/Delete groups- Second page for the groups
Backend-Edit for the frontend.css- Validate Web and E-Mail
- Required fields, e.g. Name, City, E-Mail
- Optional export of the Addresses in csv/tsv
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]
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:
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...)
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
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
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
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
Hello
Current version 0.1.3 update is avaible - see first entry for details.
Regards
Aldus
Current version 0.1.4 update/bugfix is avaible - see first entry for details.
Regards
Aldus
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.
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
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
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, ....
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
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
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 ...
.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:
@import url( WB_URL/modules/adresses/css/play.css);
Regards
Aldus
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.
Maybe you will need the update of "x_cForm" at https://forum.WebsiteBaker.org/index.php/topic,10933.0.html
Regards
Aldus
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
Quote from: 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
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)
Edityou can link to the example css like this:
@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]
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
Quote from: 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
There is still a problem with the tooltipps if there ist a starting "p" tag or a link "<a>" inside ...
Regards
Aldus
Quote from: aldus on September 18, 2008, 04:38:19 PM
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.
Quotehere 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
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
Quote from: aldus on September 19, 2008, 09:54:18 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
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
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
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. ...
Quote from: Luckyluke on September 22, 2008, 01:14:18 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?
Quote from: Luckyluke on September 22, 2008, 01:14:18 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!
Quote from: Luckyluke on September 22, 2008, 01:14:18 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?
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
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 ...
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
Yes - i have to apologize: the folder-name have this typo ...
It will be corrected in the next update ...
Kind regards
Aldus
Hoi,
Is there an update this weekend? :roll:
Grtz,
Luc
Mess to do - got some clients out here - so saturday afternoon will be the next ...
Regards
Aldus
Hi,
I like the listview in the amasp control. I hope this address module will have something simular.
Grtz,
Luc
Quote from: 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
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
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:
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
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]
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
Quote from: 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
Ok - the problem is the starting "<p>" from the WYSIWYG ... i nail the problem ...
Regards
Aldus
Quote from: aldus on October 09, 2008, 03:07:25 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
Hi,
You can use the fancy-box instead of a new window for the wysiwyg info?
When is the next update?
Grtz,
Luc
Quote from: 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
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
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
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
Quote from: 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.
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:
<table class="<? echo $options['css_basename']; ?>_table">
<? echo $table_head_tr.$table_content; ?>
</table>
Replace it with this:
<table class="<?php echo $options['css_basename']; ?>_table" width="100%">
<?php echo $table_head_tr.$table_content; ?>
</table>
That did the trick for me.
The Norwegian Language file.
[gelöscht durch Administrator]
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:
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