*********************************************************************************
* MOD NAME: Gallery Link *
*********************************************************************************
* DESCRIPTION: Adds user's photo link to their post (uses custom profile #4) *
* DEMO: http://forums.gr-outdoors.com/cgi-bin/ultimatebb.cgi *
* *
*********************************************************************************
* CREATED BY: AllenAyres with bugfixing by LK *
* DATE:04/30/2005 *
* VERSION: version 1.0 *
* *
*********************************************************************************
*********************************************************************************
* REQUIREMENTS: Full License, album.pl installed *
* COMPATABILITY: works with v6.7x *
*********************************************************************************
* FILES ADDED: none *
* FILES MODIFIED: cp2_membermanage.cgi, cp2_editprofile.pl, ubb_lib_posting.cgi *
* public_topic_page.pl *
*********************************************************************************
* DISCLAIMER: By using this modification, the user implicitly agrees *
* that they are willingly modifying any and all files at *
* their own risk. Should any errors occur either as a *
* direct or indirect result of said modifications the user *
* agrees not to hold Infopop Corporation or any of the *
individuals listed accountable. *
* *
* *
* IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO *
* MODIFY PRIOR TO MODIFICATION!! *
* *
* *
* FOR MORE TIPS AND TRICKS FOR USE WITH THE ULTIMATE BULLETIN BOARD *
* PLEASE VISIT US AT: *
* *
* http://www.ubbdev.com/ *
* *
*********************************************************************************
*********************************************************************************
##
## OPEN: cp2_editprofile.pl
##
##
## FIND:
##
{
type => "checkbox",
name => "is_pollok",
value => 1,
checked => $profile[36] ? 0 : 1,
title => $vars_wordlets_cp2{editprofile_is_pollok},
class => "autobottom",
},
##
## ADD BELOW:
##
{
type => "checkbox",
name => "is_gallery",
value => 1,
checked => $profile[19] ? 1 : 0,
title => "Does user have photo gallery?",
class => "autobottom",
},
##
## OPEN: cp2_membermanage.cgi
##
##
## FIND:
##
$profile->[36] = $perms->{is_pollok} ? 0 : 1; # pollok -> !pollbanned
##
## ADD BELOW:
##
$profile->[19] = $perms->{is_gallery} ? 1 : 0;
##
## FIND:
##
$profile->[19] = &strip_lead_trail_whitespace($core->{custom4});
##
## REPLACE WITH:
##
# $profile->[19] = &strip_lead_trail_whitespace($core->{custom4});
##
## OPEN: ubb_lib_posting.cgi
##
##
## FIND:
##
$profile_link, $email_link,
##
## REPLACE WITH:
##
$profile_link, $email_link, $gallery_link,
##
## FIND:
##
undef($profile_link);
##
## ADD BELOW:
##
undef($gallery_link);
##
## FIND:
##
$profile_link = $homepage_link =
##
## REPLACE WITH:
##
$profile_link = $gallery_link = $homepage_link =
##
## FIND:
##
$profile_link = qq(
);
##
## ADD BELOW:
##
if ($user_profile[19] eq '1') {
$gallery_link = qq(
);
} else {
$gallery_link = qq( );
}
##
## OPEN: public_topic_page.pl
##
##
## FIND:
##
$profile_link
##
## ADD BELOW:
##
$gallery_link