|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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 ]
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Nice hack LK. I'll try it soon.
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
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 ]
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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?)
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
I renamed the var in vars but that was not the reason of the error i guess.
|
|
|
|
Joined: Oct 2001
Posts: 33
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 33 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
LK, here's the error i think:
&WriteHashToFile("$vars_config{VariablesPath}/vars_addbook.cgi", "vars_addbook", %new_vars_addbook);
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Variables: it's already fixed Tried the updated cp_addbook.cgi? [ 11-24-2001: Message edited by: LK ]
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I added you to the ICQ list...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed Get the updated cp_vars_addbook.pl and cp_addbook.cgi...
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
That did it. Working great now. Tnx LK.
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
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 ]
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed, and I see the cp_vars_addbook.pl works, so use the same CHMOD as this file...
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
working smooth now [ 11-24-2001: Message edited by: Variables ]
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
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.
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
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 ]
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Probably fixed, upload the new ubb_lib_addbook.cgi and public_addbook_group_edit_now.pl
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
Joined: Oct 2001
Posts: 572 |
oh i forgot to tell you it works perfectly now.
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
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?
|
|
|
|
Joined: Jul 2001
Posts: 11
Junior Member
|
Junior Member
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 ]
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
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
|
|
|
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.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|