Previous Thread
Next Thread
Print Thread
Rate Thread
#148680 11/23/2001 6:47 PM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Original Author: CopyCat
Note: Almost totally untested, ported it quickly yesterday (LoadTemplate, WriteFileAsArray, WriteFileAsString, AppendFileAsString, LoadStyleTemplate, RequireCode and RequireVars are the only differences but it was modified in 1000 places so there might be a problem)... If you had the 6.05 version, rename vars_addbook_canuse.cgi and vars_addbook_cantuse.cgi to var_addbook_canuse.cgi and var_addbook_cantuse.cgi because it caused problems with the UBB upgrading system that checks for vars_*.cgi, and I was too tired to think of a creative solution

Description: This will add an Address Book in the "my profile", that can be used by all members, and/or mods/admins etc. Has integration with the Control Panel, with options for minimum posts required to use, maximum entries per user and more. MultiHack file included. See for yourself in the demo (portuguese speaking board; english wordlets included in the zip).
Download: https://www.ubbdev.com/lk/download.cgi?f=addressbook.zip

Demo: http://banco.jogosonline.com.br/forum
user test
pass test

[ 12-26-2001 06:14 AM: Message edited by: LK ]

Sponsored Links
#148681 11/23/2001 7:33 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Nice hack LK. I'll try it soon.

#148682 11/23/2001 7:38 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Syntax error! But very nice in the demo!

cp_addbook.cgi: syntax error at cp_addbook.cgi line 36, near "};"

[ 11-23-2001: Message edited by: Variables ]

#148683 11/23/2001 7:41 PM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Variables: Where? (If it's not written, check the error log. If you can't find it, do you have ICQ/AIM/MSN/Yahoo?)

#148684 11/23/2001 7:48 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
I renamed the var in vars but that was not the reason of the error i guess.

Sponsored Links
#148685 11/24/2001 1:08 AM
Joined: Oct 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 33
link is down

#148686 11/24/2001 4:45 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Fixed

#148687 11/24/2001 10:53 AM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
LK, here's the error i think:

&WriteHashToFile("$vars_config{VariablesPath}/vars_addbook.cgi", "vars_addbook",
%new_vars_addbook);

#148688 11/24/2001 11:07 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Variables: it's already fixed Tried the updated cp_addbook.cgi?

[ 11-24-2001: Message edited by: LK ]

#148689 11/24/2001 11:48 AM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
LK, the following things show up in the control panel:

The settings are not updated after pushing the update button.

Also these lines in the image sections in the CP:

$in{separator} in the separator iconfield

$in{edit_image} in the edit image field

$in{delete_image} in the delete image field

Sponsored Links
#148690 11/24/2001 11:50 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I added you to the ICQ list...

#148691 11/24/2001 12:05 PM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Fixed Get the updated cp_vars_addbook.pl and cp_addbook.cgi...

#148692 11/24/2001 12:15 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
That did it. Working great now. Tnx LK.

#148693 11/24/2001 12:52 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Ow... there is another wait.......

>>>>>>> find

if ($in{type} eq 'wordlets') {
%update_wordlets = %vars_wordlets;

>>>>>>> insert after

elsif ($in{type} eq 'wordlets_addbook') {
%update_wordlets = %vars_wordlets_addbook;


Must be:

>>>>>>> insert after

} elsif ($in{type} eq 'wordlets_addbook') {
%update_wordlets = %vars_wordlets_addbook;


And all new templates chmod 755? I tried without chmod but then a member can not see or enter the address book.

[ 11-24-2001: Message edited by: Variables ]

#148694 11/24/2001 2:29 PM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Fixed, and I see the cp_vars_addbook.pl works, so use the same CHMOD as this file...

#148695 11/24/2001 4:11 PM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
working smooth now

[ 11-24-2001: Message edited by: Variables ]

#148696 11/26/2001 6:37 AM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
When you edit the name of a group it shows up twice one as the original name and then once as the new name and then when you go to delete one it deleted both of them.

#148697 11/26/2001 6:40 AM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Also it locks you from doing anything else. Adding users and or groups. LK Pleese fix this. Oh to give the users back there use of the addbook just go into the Members/addbook dir and delete all the file that have there member number.

[ 11-26-2001 05:47 AM: Message edited by: eXtremeTim ]

#148698 11/26/2001 7:06 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Probably fixed, upload the new ubb_lib_addbook.cgi and public_addbook_group_edit_now.pl

#148699 12/01/2001 10:59 AM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
oh i forgot to tell you it works perfectly now.

#148700 12/02/2001 10:33 PM
Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
It appears to work perfectly upon first install.

I was hoping that this would be a community address book where users could add their address if they wanted it available to the other members.

It would seem such an address book would be much more useful than just a personal address book.

What do you think?

#148701 01/07/2002 1:08 PM
Joined: Jul 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 11
Error after trying to install the MyStyle-Hack:

BEGIN not safe after errors--compilation aborted at ultimatebb.cgi line 504.

Lines 503 - 519: (same in install.txt)

if ($ubb eq 'address_book') {
use vars qw(%vars_addbook %vars_wordlets_addbook);
&RequireVars("$vars_config{VariablesPath}/vars_addbook.cgi");
&RequireVars("$vars_config{VariablesPath}/vars_wordlets_addbook.cgi");
if ($vars_addbook{who_can_use} eq '') {
&StandardHTML("$vars_wordlets_addbook{addbook_off}");
} else {
&RequireCode("$vars_config{CGIPath}/ubb_lib_addbook.cgi");
my $ab_show = &addbook_permission;
if ($ab_show eq 'y') {
&addbook_main;
exit(0);
} else {
&StandardHTML("$vars_wordlets_err{no_access}");
}
}
}#end address book

[ 01-07-2002 12:18 PM: Message edited by: Sam1504 ]

#148702 01/08/2002 12:08 AM
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Sure you hacked it in correctly? I think you may have posted code before a } when you shouldn't have.

qasic


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)