******************************************************************************
******************************************************************************
* HACK NAME: Custom User Text - Redoucmented for v5.46 *
******************************************************************************
* DESCRIPTION: Allows your users to have custom user text under their *
* usernames in threads. *
* *
******************************************************************************
* CREATED BY: DannyR dannyboy@xs4all.nl *
* DATE: 07/13/1999 *
* VERSION: version 1 *
******************************************************************************
* MODIFIED BY: Allen Ayres AllenAyres@ubbdev.com *
* MODIFY DATE: 08/28/2000 *
* VERSION: 1.5.46 *
******************************************************************************
* REQUIREMENTS: full license *
* COMPATABILITY: works with all v5.45x - 5.46, you will need to adapt it *
* if you are using a different version. *
******************************************************************************
* FILES ADDED: none *
* FILES MODIFIED: cpanel2.cgi, cpanel4.cgi, ubb_library.pl, ubb_library2.pl *
* ubbmisc.cgi *
******************************************************************************
* DISCLAIMER: By using this hack, 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 above 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 US AT VISIT: *
* *
* http://www.ubbdev.com/ *
* *
******************************************************************************
******************************************************************************
#############################
CPANEL2.CGI
#############################
## FIND:
elsif ($DaysPruneDefault == 1000) {
$Days1000 = "SELECTED";
} else {
$Days365 = "SELECTED";
}
## PASTE THIS UNDER:
if ($allowutext EQ "NO") {
$utextoff = "CHECKED";
}
elsif ($allowutext EQ "YES") {
$utexton = "CHECKED"; }
elsif ($allowutext EQ "NOSTATUS") {
$utextns = "CHECKED"; }
elsif ($allowutext EQ "REPLACE") {
$utextrp = "CHECKED"; }
else { $utexton = "CHECKED"; }
if ($allowutextedit EQ "YES") {
$utextediton = "CHECKED"; }
else { $utexteditoff = "CHECKED"; }
## FIND:
THIS8
## PASTE THIS UNDER:
&InputRadioRow("#f7f7f7", "Show specific user texts with each post ?", "(These texts can be customized for every user bij editing the user permissions from the control panel).", "
Yes, Show Them.
Do Not Show Them.
Show Them, but Don't Show User Status
Replace userstatus only if user text for that user exists");
&InputTextRow("#dedfdf", "Maximum Length of user text in number of characters", "" , "maxutext", "6", "3");
&InputRadioRow("#f7f7f7", "Allow users to edit their own user text ?", "You can allow users to edit their own user text here", "
Allow users to edit their user text
Do not allow users to edit their user text");
#############################
cpanel4.cgi
#############################
## FIND: