Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:04:01 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.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: WB and PHP address Book  (Read 3150 times)
vinny84

Offline Offline

Posts: 5


« on: April 27, 2008, 05:59:39 AM »

http://sourceforge.net/project/screenshots.php?group_id=157964

hi there i am building A website for our community n i need a directory. address book.

i have found this simple address book n i was wondering if we could some how embed into the web baker so it could only be accessed by there members of the web site.

i really need some thing of this sort please help.

cheers and thanks in advance

Vinny
Logged
Innocence

Offline Offline

Posts: 11


« Reply #1 on: April 27, 2008, 09:06:00 PM »

Hi Vinny !
I suggest to use the Event Calendar module for websitebaker, and adapt it to your needs. Can be found in the addons section.

Paul.-
Logged
webfuzzy

Offline Offline

Posts: 4


« Reply #2 on: May 13, 2008, 11:05:29 PM »

Hi Vinny,

I can provide you my simple address book implementation.
It should be pretty much self-explanatory if you are familiar with the common wb backend concept:

Just install it and create a page.
You can create chapters to arrange your addresses.
Then fill out the address form and assign the information to a section.
There is an option page which lets you change the layout for display and there are language files for English and German.

I provide it "as is" without any support but with a little PHP knowhow you can easily modify or extend it yourself. e.g. adding more fields if needed.

Hope this helps,
Hubert
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #3 on: May 13, 2008, 11:51:26 PM »

Hi Hubert,

sorry, your attched zip-file is not correct packed and cannot be installed.
You must zip only the content of the folder and not the whole folder with the content.
See the attached one for the difference.

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
erpe

Offline Offline

Posts: 2077


WWW
« Reply #4 on: May 14, 2008, 12:39:10 PM »

Hi Hubert,

I  got the following error-messages (installation with the zip-file from BerndJM) in the frontend:
Code:
Notice: Undefined variable: dlsearch in /opt/lampp/htdocs/rptest/modtest/modules/addressbook/view.php on line 88

Notice: Undefined variable: prechapter in /opt/lampp/htdocs/rptest/modtest/modules/addressbook/view.php on line 147

Notice: Undefined variable: settings_chapterheader in /opt/lampp/htdocs/rptest/modtest/modules/addressbook/view.php on line 162

Notice: Undefined variable: settings_chapterfooter in /opt/lampp/htdocs/rptest/modtest/modules/addressbook/view.php on line 164

and these messages in the backend:
Code:
Notice: Undefined variable: settings in /opt/lampp/htdocs/rptest/modtest/modules/addressbook/modify.php on line 79
Notice: Undefined variable: settings in /opt/lampp/htdocs/rptest/modtest/modules/addressbook/modify.php on line 163

Any ideas to prevent them?

Regards
erpe


Logged

ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #5 on: May 14, 2008, 01:19:30 PM »

Hello,

@erpe
these are only notices when you set in WB Options PHP Error messages to E_ALL. If you set it to E_NONE the notices disapper.

@webfuzzy
you should rework your code and fix these notices. For modul developper it is recommanded to use E_ALL. this way they can fix possible coding issues.

Matthias
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #6 on: May 14, 2008, 01:47:37 PM »

Thanks for information
Logged

webfuzzy

Offline Offline

Posts: 4


« Reply #7 on: May 14, 2008, 09:58:20 PM »

Hi all,

sorry for the botched zip file; apparently it was already too late last night.
@ruebenwurzel: unfortunately I cannot reproduce these notices in my local environment.

In exchange for the inconvenience I provide an improved version 0.8 with a birth date field.

Have fun,
Hubert
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #8 on: May 14, 2008, 10:12:09 PM »

Hi Hubert,

if you can't reproduce the notices even with errorlevel set to E_ALL I think you use a WB Version < 2.7
I would strongly recommend to upgrade at least your local test installation to Version 2.7
It makes (module developers) life much more easier wink

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Bramus
Forum Team
*****
Offline Offline

Posts: 601


WWW
« Reply #9 on: May 14, 2008, 10:21:03 PM »

Hi this module is not working here with WB 2.7, i installed it (succes fully) made a new page called Test made a chapter and 1 address but when i go check the page i cant see anything except the page title (called from the Template)
Logged

BRAMUS Internet Services
erpe

Offline Offline

Posts: 2077


WWW
« Reply #10 on: May 15, 2008, 10:44:08 AM »

Hi Bramus,

that is right, but the version from Bernd works with WB 2.7

regards

erpe
Logged

webfuzzy

Offline Offline

Posts: 4


« Reply #11 on: May 15, 2008, 09:50:49 PM »

Okay, guys!

Thanks to Bernd I spend some research with the different wb versions 2.6.7 and 2.7 and I could see and clean up the notices now. Also I found another little incompatibility which I hope I have resolved now.

@Bramus: I have no idea what your problem is. I could not reproduce that effect.
I am using windows XP, SP2 and tested with PHP 4.4.2 and PHP 5.1.2, Apache 2.0.55.
All my combinations work fine now.

Find fixed version attached. Again without further support wink
Regards, Hubert
« Last Edit: May 15, 2008, 10:27:31 PM by webfuzzy » Logged
snark
Guest
« Reply #12 on: November 04, 2009, 02:29:32 PM »

the value submitted with the radio buttons 

man / woman / company

is not displayed in the addresslist,, any suggestions how this can be achieved

Logged
aldus

Offline Offline

Posts: 1238


« Reply #13 on: November 04, 2009, 02:54:25 PM »

Seems to me that it is simple forgotten in the view.php...

a) Add "anrede" to the select query in line 81.
b) Add "[ANREDE]" to the $var -array in line 169.
c) Add "$address['anrede']" to the array in line 171
d) Add "[ANREDE]" in the loop-address field of the settings where you want to display it.

That's it ...

Regards
Aldus
Logged
webfuzzy

Offline Offline

Posts: 4


« Reply #14 on: November 06, 2009, 01:10:45 PM »

Perfect Response.

Thanks, Aldus
Logged
Pages: [1]   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!