Page Index Toggle Pages: 1 ... 4 5 [6] 7  Send TopicPrint
Very Hot Topic (More than 25 Replies) Add new board on Registration (Read 50631 times)
jasnner
New Member
*
Offline


Bonsai!

Posts: 49
Joined: May 31st, 2007
Gender: Male
Re: Add new board on Registration
Reply #75 - Sep 10th, 2007 at 2:00am
Print Post  
I have the same issue with the self intro and size of the pic, so it's not where you put it. I will have to investigate that. It works fine when you make a blog on registration, just not from profile, right?

I'll get back to you soon

  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Add new board on Registration
Reply #76 - Sep 10th, 2007 at 4:13pm
Print Post  
awesome job guys ... FYI ... I've been able to install this with liittle issues ... It was not working until I replaced my Profile.pl with the one provided by driven

Quote:
It works fine when you make a blog on registration, just not from profile, right?


This is Correct with my install

Thankyou again ...

ps ... mods installed on my test-board are

Quote:
Name  Author  Version 
YaBB Media Center  Ron  V1.8 
Extended Profiles  Michael Prager  2.2 
Custom Page Mod  James Andrews (jam3z)  0.2 
Users Avatars Upload  Boris Tjuvanov (MF-B)  1.7
 
  

soundcloud.com/chimohe
Back to top
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Add new board on Registration
Reply #77 - Sep 10th, 2007 at 4:41pm
Print Post  
Here are some screen shots of this mod in action

profile view


message index view


In profile view ... do You think that You could change "useBlog: yes" to a link to the BlogBoard?

Thankyou
  

soundcloud.com/chimohe
Back to top
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: Add new board on Registration
Reply #78 - Sep 10th, 2007 at 11:44pm
Print Post  
i will have make a new test name to see if it is working for new registers...i just noticed though...it is making blog board in gen category..aswell as members cat.
  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #79 - Sep 11th, 2007 at 12:52am
Print Post  
This mod is finally getting the attention that it deserves. Good to see it's getting even better.  8)

I have that problem also when I edit an existing board it also gets duplicated in another category but it is easy to delete in the forum.master. I didn't realise that it was this mod that may have something to do with that happening.
  
Back to top
 
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Add new board on Registration
Reply #80 - Sep 12th, 2007 at 2:35am
Print Post  
I don't have the duplicate issue on mine ...
  

soundcloud.com/chimohe
Back to top
IP Logged
 
jasnner
New Member
*
Offline


Bonsai!

Posts: 49
Joined: May 31st, 2007
Gender: Male
Re: Add new board on Registration
Reply #81 - Sep 12th, 2007 at 3:47pm
Print Post  
I found the bugs previously mentioned by Driven

The problem with the self introduction not being added was a typo in the Profile.pl file.

please find the following line:
Code
Select All
			    &createBoard($INFO{'username'}, $member{'ext_01'}, $member{'userpic'});
 


and replace it with this one:
Code
Select All
			    &createBoard($INFO{'username'}, $member{'ext_1'}, $member{'userpic'});
 



And to make sure oversized avatars are resized in the blog categories, I needed to add the following line to the the start of the BoardIndex.pl

search for
Code
Select All
require "$templatesdir/$useboard/BoardIndex.template";
 



Add after:
Code
Select All
require "$vardir/BlogCategory.txt";
 



I will take a look at the boards being added to the extra categories after some sleep.

I updated the mod attached to the first post to reflect these changes.
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
jasnner
New Member
*
Offline


Bonsai!

Posts: 49
Joined: May 31st, 2007
Gender: Male
Re: Add new board on Registration
Reply #82 - Sep 12th, 2007 at 3:49pm
Print Post  
ChiMoHe, I like your link to the blog idea. Maybe it's possible. I'll have a crack
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ChiMoHe
Full Member
***
Offline


I love YaBB 2.2

Posts: 197
Joined: Apr 4th, 2007
Re: Add new board on Registration
Reply #83 - Sep 12th, 2007 at 6:25pm
Print Post  
here ... I think this is right for that

     $yymain .= qq~<tr><td class="windowbg2" align="left" valign="middle"><a href="$scripturl?board=$INFO{'username'}"><b>View $user Blog</b></a></td></tr>
~;
  

soundcloud.com/chimohe
Back to top
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: Add new board on Registration
Reply #84 - Sep 13th, 2007 at 1:50am
Print Post  
code fixes seem to have worked...and i cleaned up the forum.master again..it had double cats ...dont know how that happened..but once i deleted them from there..seems to work fine..will continue testing ...
great work..wife loves the option your mod provides
  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Add new board on Registration
Reply #85 - Nov 4th, 2007 at 2:57pm
Print Post  
I love the sound of this mod (will have to test it a bit to see how it works out in practice, however.)

Am trying to install it, but on step 7, search and add before in Profile.pl, I don't have the required code to add before.

It wants:
Code
Select All
 		&ToHTML($member{'userpic'});
		&ToHTML($member{'usertimeoffset'});
		&ToHTML($member{'usertimeselect'});
		&ToHTML($member{'usertemplate'});
		&ToHTML($member{'userlanguage'});
		&ToHTML($member{'timeformat'}); 



and I don't have more than one &ToHTML anywhere in the file. Below is the closest thing I could find (soemthing that refers to all the bits in about the same order) ... can I just place it before this and have it work?

Code
Select All
		# let's restore the name now
		&ToHTML($tempname);
		$member{'name'} = $tempname;

		# Time to print the changes to the username.vars file
		${$uid.$user}{'usertext'}      = "$member{'usertext'}";
		${$uid.$user}{'userpic'}       = "$member{'userpic'}";
		${$uid.$user}{'signature'}     = "$member{'signature'}";
		${$uid.$user}{'timeoffset'}    = "$member{'usertimeoffset'}";
		${$uid.$user}{'dsttimeoffset'} = "$dsttimeoffset";
		${$uid.$user}{'timeselect'}    = "$member{'usertimeselect'}";
		${$uid.$user}{'template'}      = "$member{'usertemplate'}";
		${$uid.$user}{'language'}      = "$member{'userlanguage'}";
		${$uid.$user}{'irc_nick'}      = "$member{'irc_nick'}";	## Added for ChatIRC Mod
		${$uid.$user}{'irc_pass'}     = "$member{'irc_pass'}";	## Added for ChatIRC Mod 



I'm really confused, too ... I have gone through every mod that I have installed, checking all their steps, and I can't find any that have changed this code.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Add new board on Registration
Reply #86 - Nov 4th, 2007 at 3:45pm
Print Post  
All right, I have two gone in an cleaned up two of the subroutines in my Profile.pl file, the one that is mentioned as the place to put step 7, and the one that seems to have the general kind of code (AFAIK) that I'm being told to replace.

Here is my sub ModifyProfileOptions:
Code
Select All
sub ModifyProfileOptions {
	&SidCheck;

	&PrepareProfile;
	LoadLanguage("ChatIRC"); ## Added for ChatIRC Mod
	my $user = $INFO{'username'};
	if (!${$uid.$user}{'password'}) { &LoadUser($user); }
$menucolors[3] = "titlebg";
$modsection = qq~- $profile_txt{'818'}~;
&ProfileMenu;
&ToChars(${$uid.$user}{'usertext'});
$yymain .= qq~
<div class="bordercolor" style="padding: 0px; padding-top: 0px; padding-bottom: 0px; width: 100%;">
<form sid'}" method="post" name="creator" enctype="multipart/form-data">
<table class="bordercolor" cellspacing="1" cellpadding="4" width="100%" align="center" border="0">
  <tr class="windowbg">~;

	if ($allowpics) {
		opendir(DIR, "$facesdir") || fatal_error("$profile_txt{'230'} ($facesdir)!<br />$profile_txt{'681'}", 1);
		@contents = readdir(DIR);
		closedir(DIR);
		$images = "";
		foreach $line (sort @contents) {
			($name, $extension) = split(/\./, $line);
			$checked = "";
			if ($line eq ${$uid.$user}{'userpic'}) { $checked = ' selected="selected"'; }
			if (${$uid.$user}{'userpic'} =~ m~\Ahttp://~ && $line eq 'blank.gif') { $checked = ' selected="selected" '; }
			if ($extension =~ /gif/i || $extension =~ /jpg/i || $extension =~ /jpeg/i || $extension =~ /png/i) {
				if ($line eq 'blank.gif') {
					$images = qq~              <option value="$line"$checked>$profile_txt{'422'}</option>\n$images~;
				} else {
					$images .= qq~              <option value="$line"$checked>$name</option>\n~;
				}
			}
		}
		if (${$uid.$user}{'userpic'} =~ m~\Ahttp://~) {
			$pic     = 'blank.gif';
			$checked = ' checked="checked" ';
			$tmp     = ${$uid.$user}{'userpic'};
		} else {
			$pic = ${$uid.$user}{'userpic'};
			$tmp = 'http://';
		}

		if(${$uid.$user}{'dsttimeoffset'}) { $dsttimechecked = qq~ checked="checked"~; }

		$yymain .= qq~
          <td width="320" align="left"><b>$profile_txt{'229'}:</b><br /><span class="small">$lang_uapav{'38'}</span></td>
          <td align="left">
            <script language="JavaScript1.2" type="text/javascript">
            function showimage()
            {
              if (!document.images) return;
              document.images.icons.src="$facesurl/"+document.creator.userpic.options[document.creator.userpic.selectedIndex].value;
            }
            </script>
            <select name="userpic" size="6" onchange="showimage()">
$images            </select>
            &nbsp;&nbsp;<img src="$facesurl/$pic" name="icons" border="0" hspace="15" alt="" />
          </td>
          </tr>~;
		if ($en_useravatars == 1) {
			unless (!$memgrupuav) {
				$memgrupuavok = 0;
				foreach my $element (split(/\,/, $memgrupuav)) {
					chomp $element;
					if ($element eq ${$uid.$user}{'position'} || $element eq $memberunfo{$user}) { $memgrupuavok = 1; last; }
					foreach my $memberaddgroups (split(/\, /, ${$uid.$user}{'addgroups'})) {
						chomp $memberaddgroups;
						if ($element eq $memberaddgroups) { $memgrupuavok = 1; last; }
					}
				if ($memgrupuavok == 1) { last; }
				}
			} else {
				$memgrupuavok = 1;
			}
		}
         &UsersAvatarsHTML($useraccount{$user}, ${$uid.$user}{'userpic'});
	}

	$yymain .= qq~<tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'228'}: </b></td>
          <td align="left"><input type="text" name="usertext" size="50" value="${$uid.$user}{'usertext'}" maxlength="50" /></td>
        </tr><tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'85'}:</b><br /><span class="small">$profile_txt{'606'}</span></td>
          <td align="left"><textarea name="signature" rows="4" cols="50">$signature</textarea><br />
            <span class="small">$profile_txt{'664'} <input value="$MaxSigLen" size="3" name="msgCL" disabled="disabled" /></span><br /><br />
            <script type="text/javascript" language="JavaScript">
            <!--
            var supportsKeys = false
            function tick() {
              calcCharLeft(document.forms[0])
              if (!supportsKeys) timerID = setTimeout("tick()",$MaxSigLen)
            }

            function calcCharLeft(sig) {
              clipped = false
              maxLength = $MaxSigLen
              if (document.creator.signature.value.length > maxLength) {
                document.creator.signature.value = document.creator.signature.value.substring(0,maxLength)
                charleft = 0
                clipped = true
              } else {
                charleft = maxLength - document.creator.signature.value.length
              }
              document.creator.msgCL.value = charleft
              return clipped
            }

            tick();
            //-->
            </script>
          </td>
<!-- ChatIRC Mod Begin -->
      </tr><tr class="windowbg">
          <td width="320" align="left"><b>$ChatIRC{'irc_nick'}:</b><br />
            <span class="small">$ChatIRC{'irc_nick1'}</span></td>
           <td align="left"><input type="text" name="irc_nick" size="40" value="${$uid.$user}{'irc_nick'}" /></td>
       </tr><tr class="windowbg">
          <td width="320" align="left"><b>$ChatIRC{'irc_pass'}:</b><br />
            <span class="small">$ChatIRC{'irc_pass1'}</span></td>
           <td align="left"><input type="text" name="irc_pass" size="40" value="${$uid.$user}{'irc_pass'}" /></td>
<!-- ChatIRC Mod End -->
        </tr><tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'486'}:</b><br />
            <span class="small">$profile_txt{'479'}</span></td>
          <td width="50" align="left">
            <select name="usertimeselect" size="1">
              <option value="1"$tsl1>$profile_txt{'480'}</option>
              <option value="5"$tsl5>$profile_txt{'484'}</option>
              <option value="4"$tsl4>$profile_txt{'483'}</option>
              <option value="2"$tsl2>$profile_txt{'481'}</option>
              <option value="3"$tsl3>$profile_txt{'482'}</option>
              <option value="6"$tsl6>$profile_txt{'485'}</option>
              <option value="7"$tsl7>$profile_txt{'480a'}</option>
            </select>
          </td>
       </tr><tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'486a'}:</b><br />
            <span class="small">$profile_txt{'479a'}</span></td>
           <td align="left"><input type="text" name="timeformat" size="40" value="${$uid.$user}{'timeformat'}" /></td>
        </tr><tr class="windowbg">
         <td width="320" align="left"><b>$profile_txt{'371'}:</b><br /><span class="small">$profile_txt{'519'}</span></td>
          <td align="left"><span class="small"><select name="usertimeoffset">
		<option value="">$time_zone_txt{'1'}</option>
		<option value="12"$pdel{'240'}>$time_zone_txt{'2'}</option>
		<option value="11"$pdel{'230'}>$time_zone_txt{'3'}</option>
		<option value="10"$pdel{'220'}>$time_zone_txt{'4'}</option>
		<option value="9.5"$pdel{'215'}>$time_zone_txt{'5'}</option>
		<option value="9"$pdel{'210'}>$time_zone_txt{'6'}</option>
		<option value="8"$pdel{'200'}>$time_zone_txt{'7'}</option>
		<option value="6.5"$pdel{'185'}>$time_zone_txt{'9'}</option>
		<option value="6"$pdel{'180'}>$time_zone_txt{'10'}</option>
		<option value="5.5"$pdel{'175'}>$time_zone_txt{'11'}</option>
		<option value="5"$pdel{'170'}>$time_zone_txt{'12'}</option>
		<option value="4"$pdel{'160'}>$time_zone_txt{'13'}</option>
		<option value="3.5"$pdel{'155'}>$time_zone_txt{'14'}</option>
		<option value="3"$pdel{'150'}>$time_zone_txt{'15'}</option>
		<option value="2"$pdel{'140'}>$time_zone_txt{'16'}</option>
		<option value="1"$pdel{'130'}>$time_zone_txt{'17'}</option>
		<option value="0"$pdel{'120'}>$time_zone_txt{'18'}</option>
		<option value="-1"$pdel{'110'}>$time_zone_txt{'19'}</option>
		<option value="-2"$pdel{'100'}>$time_zone_txt{'20'}</option>
		<option value="-3"$pdel{'90'}>$time_zone_txt{'21'}</option>
		<option value="-3.5"$pdel{'85'}>$time_zone_txt{'22'}</option>
		<option value="-4"$pdel{'80'}>$time_zone_txt{'23'}</option>
		<option value="-5"$pdel{'70'}>$time_zone_txt{'24'}</option>
		<option value="-6"$pdel{'60'}>$time_zone_txt{'25'}</option>
		<option value="-7"$pdel{'50'}>$time_zone_txt{'26'}</option>
		<option value="-8"$pdel{'40'}>$time_zone_txt{'27'}</option>
		<option value="-9"$pdel{'30'}>$time_zone_txt{'28'}</option>
		<option value="-10"$pdel{'20'}>$time_zone_txt{'29'}</option>
		<option value="-11"$pdel{'10'}>$time_zone_txt{'30'}</option>
		</select><br />$profile_txt{'741'}: <i>$proftime</i></span></td>
       </tr><tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'519a'}</b></td>
          <td align="left"><input type="checkbox" name="dsttimeoffset"$dsttimechecked /></td>
        </tr>
~;
	&CheckNewTemplates;

	unless ($templatesloaded == 1) { require "$vardir/template.cfg"; }

	while (($curtemplate, $value) = each(%templateset)) {
		$selected = "";
		if ($curtemplate eq ${$uid.$user}{'template'}) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		$drawndirs .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	}

	$yymain .= qq~<tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'814'}</b></td>
          <td align="left"><select name="usertemplate">$drawndirs</select></td>
        </tr>~;

	opendir(dir, $langdir);
	my @lfilesanddirs = readdir(dir);
	close(dir);
	foreach $fld (@lfilesanddirs) {
		if (-d "$langdir/$fld" && $fld =~ m^\A[0-9a-zA-Z_\#\%\-\:\+\?\$\&\~\,\@/]+\Z^ && -e "$langdir/$fld/Main.lng") {
			if (${$uid.$user}{'language'} eq $fld) { $drawnldirs .= qq~<option value="$fld" selected="selected">$fld</option>~; }
			else { $drawnldirs .= qq~<option value="$fld">$fld</option>~; }
		}
	}

	### Reverse Posts Order mod ###
	LoadLanguage("Reverse_Post_Order");
	if (${$uid.$username}{'reverse_posts'} eq "on") {$reverse_posts = 'checked';}
       	$yymain .= qq~
       	<tr class="windowbg">
        		<td width="320" align="left"><b>$rpo_txt{'1'}:</b><br />
	          	<span class="small">$rpo_txt{'2'}</span></td>
          		<td align="left"><input type="checkbox" name="reverse_posts" $reverse_posts /></td>
	</tr>~;
	### Reverse Posts Order end ###

	### Return To mod ###
	LoadLanguage("Return_To");
	my ($rts, $rt, $return_to_select, $return_to);
	$rts = ${$uid.$user}{'return_to'};
	for ($rt = 1; $rt <= 3; $rt++) {
		$return_to_select .= $rts == $rt ? qq~<option value="$rt" selected>$return_to_txt{$rt}</option>~ : qq~<option value="$rt">$return_to_txt{$rt}</option>~;
	}
	$yymain .= qq~      
       	<tr class="windowbg">
        		<td width="320" align="left"><b>$return_to_txt{'99'}:</b><br />
	          	<span class="small">$return_to_txt{'97'}</span></td>
          		<td align="left"><select name="return_to">$return_to_select</select></td>
	</tr>~;
	### Return To mod end ###


	$yymain .= qq~<tr class="windowbg">
          <td width="320" align="left"><b>$profile_txt{'817'}</b></td>
          <td align="left"><select name="userlanguage">$drawnldirs</select></td>
	</tr>~;
	if($location_posts) {
		my $loctxtcheck = "";
		my $locflagcheck = "";
		($loctxt, $locflag) = split (/\|/, ${$uid.$user}{'viewlocation'});
		if($loctxt) {$loctxtcheck = qq~ checked="checked"~;}
		if($locflag) {$locflagcheck = qq~ checked="checked"~;}
		$yymain .= qq~
		<tr class="windowbg">
	          <td width="320" align="left"><b>$maptxt{'51'}:</b></td>
        	  <td align="left"> $maptxt{'52'} <input type="checkbox" name="loctxt" style="margin: 0px;"$loctxtcheck /> $maptxt{'53'} <input type="checkbox" name="locflag" style="margin: 0px;"$locflagcheck /></td>
		</tr>
		~;
	}
	require "$sourcedir/ExtendedProfiles.pl";
	$yymain .= ext_editprofile($user,"options") . qq~
	<tr class="catbg">
          <td height="30" valign="middle" align="center" colspan="2"><input type="submit" name="moda" value="$profile_txt{'88'}" /></td>
        </tr>
      </table>
</form>
</div>
~;
	$yytitle = qq~$maptxt{'37'} $user - $profile_txt{'818'}~;
	&template;
	exit;
}

 



And here is my Sub ModifyProfileOptions2
Code
Select All
sub ModifyProfileOptions2 {
	&SidCheck;

	my @onoff = qw/dsttimeoffset/;
	my $fi;
	map { $fi = lc $_; ${$_} = $FORM{$fi} eq 'on' ? 1 : 0; } @onoff;
	my (%member, $key, $value, $newpassemail, @memberlist, $a, @check_settings, @reserve, $matchword, $matchcase, $matchuser, $matchname, $namecheck, $reserved, $reservecheck, @dirdata, $filename, @entries, $entry, $umail, @members, $tempname);
	$FORM{'signature'} =~ s~\&\&~\&amp\;\&amp\;~g;
	$FORM{'signature'} =~ s~\n~\&\&~g;
	while (($key, $value) = each(%FORM)) {
		$value =~ s~\A\s+~~;
		$value =~ s~\s+\Z~~;
		$value =~ s~[\n\r]~~g;
		$member{$key} = $value;
	}
	my $user = $INFO{'username'};
	$member{'username'} = $user;
	if (!${$uid.$user}{'password'}) { &LoadUser($user); }

	# make sure this person has access to this profile
	if ($user ne $username && !$iamadmin && (!$iamgmod || !$allow_gmod_profile)) { &fatal_error($profile_txt{'80'}); }
	if (!$iamadmin) {
		$member{'settings6'} = ${$uid.$user}{'postcount'};
		$member{'settings7'} = ${$uid.$user}{'position'};
		$member{'addgroup'}  = ${$uid.$user}{'addgroups'};
	}

	if ($member{'username'} =~ /\//) { &fatal_error($profile_txt{'224'}); }
	if ($member{'username'} =~ /\\/) { &fatal_error($profile_txt{'225'}); }
	$INFO{'username'} = $member{'username'};

	&FromChars($member{'usertext'});
	$convertstr = $member{'usertext'};
	$convertcut = 51;
	&CountChars;
	$member{'usertext'} = $convertstr;

	if ($member{'userpicpersonalcheck'} && ($member{'userpicpersonal'} =~ m/\.gif\Z/i || $member{'userpicpersonal'} =~ m/\.jpg\Z/i || $member{'userpicpersonal'} =~ m/\.jpeg\Z/i || $member{'userpicpersonal'} =~ m/\.png\Z/i)) {
		$member{'userpic'} = $member{'userpicpersonal'};
	}
	if ($member{'userpicpersonalcheck'} && ($FORM{'file'} ne "") || $member{'userpicpersonaldel'}) {
		&UsersAvatarsUP($useraccount{$user});
			if ($okatt) {
				&UsersAvatarsLOG($member{'username'},$valueupic2,1);
				$member{'userpic'} = $valueupic;
			}
			if ($okdelatt) {
				&UsersAvatarsLOG($member{'username'},0,0);
				$member{'userpic'} = "";
				$checked = "";
			}
		&clear_temp;
	}

	if (!$member{'userpicpersonalcheck'}) {
		&UsersAvatarsDEL($member{'username'});
		&UsersAvatarsLOG($member{'username'},0,0);
		&clear_temp;
	}
	if ($member{'userpic'} eq "") { $member{'userpic'} = "blank.gif"; }
	&fatal_error("$profile_txt{'592'}") if ($member{'userpic'} !~ m^\A[0-9a-zA-Z_\.\#\%\-\:\+\?\$\&\~\.\,\@/]+\Z^);
	if (!$allowpics) { $member{'userpic'} = "blank.gif"; }

	if ($member{'loctxt'}) { $loctext = 1; } else { $loctext = 0; }
	if ($member{'locflag'}) { $locflag = 1; } else { $locflag = 0; }


	if ($member{'moda'} eq $profile_txt{'88'}) {

		&FromChars($member{'signature'});
		$convertstr = $member{'signature'};
		$convertcut = $MaxSigLen;
		&CountChars;
		$member{'signature'} = $convertstr;

		$member{'signature'} =~ s/</&lt;/g;
		$member{'signature'} =~ s/>/&gt;/g;

		# store the name temorarily so we can restore any _'s later
		$tempname = $member{'name'};
		$member{'name'} =~ s/\_/ /g;
		if ($member{'usertemplate'} !~ m^\A[0-9a-zA-Z_\(\)\´\ \.\#\%\-\:\+\?\$\&\~\.\,\@/]+\Z^ && $member{'usertemplate'} ne "") { &fatal_error($profile_txt{'815'}); }
		if ($member{'usertemplate'} eq "") { $member{'usertemplate'} = "$template"; }
		if ($member{'userlanguage'} !~ m^\A[0-9a-zA-Z_\.\#\%\-\:\+\?\$\&\~\.\,\@/]+\Z^ && $member{'userlanguage'} ne "") { &fatal_error($profile_txt{'815'}); }
		if (!$member{'userlanguage'}) { $member{'userlanguage'} = "$language"; }

		# update notifications if users language is changed
		if (${$uid.$user}{'language'} ne "$member{'userlanguage'}") {
			&getMailFiles;
			require "$sourcedir/Notify.pl";
			&updateLanguage($user, $member{'userlanguage'});
		}

		&ToHTML($member{'usertext'});

		if (length $member{'signature'} > 1000) { $member{'signature'} = substr($member{'signature'}, 0, 1000); }
		&ToHTML($member{'signature'});

		$member{'usertimeoffset'} =~ tr/,/./;
		$member{'usertimeoffset'} =~ s/[^\d*|\.|\-|w*]//g;
		if (($member{'usertimeoffset'} < -23.5) || ($member{'usertimeoffset'} > 23.5)) { &fatal_error($profile_txt{'487'}); }

		# let's restore the name now
		&ToHTML($tempname);
		$member{'name'} = $tempname;

		# Time to print the changes to the username.vars file
		${$uid.$user}{'usertext'}      = "$member{'usertext'}";
		${$uid.$user}{'userpic'}       = "$member{'userpic'}";
		${$uid.$user}{'signature'}     = "$member{'signature'}";
		${$uid.$user}{'timeoffset'}    = "$member{'usertimeoffset'}";
		${$uid.$user}{'dsttimeoffset'} = "$dsttimeoffset";
		${$uid.$user}{'timeselect'}    = "$member{'usertimeselect'}";
		${$uid.$user}{'template'}      = "$member{'usertemplate'}";
		${$uid.$user}{'language'}      = "$member{'userlanguage'}";
		${$uid.$user}{'irc_nick'}      = "$member{'irc_nick'}";	## Added for ChatIRC Mod
		${$uid.$user}{'irc_pass'}     = "$member{'irc_pass'}";	## Added for ChatIRC Mod
		${$uid.$user}{'timeformat'}    = "$member{'timeformat'}";
		${$uid.$user}{'reverse_posts'} = "$member{'reverse_posts'}"; ### Reverse Post Order mod ###
		${$uid.$user}{'viewlocation'}  = "$loctext|$locflag";
		require "$sourcedir/ExtendedProfiles.pl";
		my $error = ext_validate_submition($username,$user);
		if ($error ne "") { &fatal_error($error); } else { &ext_saveprofile($user); }

		${$uid.$user}{'return_to'} = "$member{'return_to'}"; ### Return To mod ###
		&UserAccount($user, "update");

		$yySetLocation = qq~$scripturl?action=profileIM;username=$INFO{'username'};sid=$INFO{'sid'}~;
		&redirectexit;
	} else {
		&fatal_error("$polltxt{'13'}");
	}
	exit;
}
 




As far as I can tell, the ModifyProfileOptions2 subroutine seems to be more similar to what step 7 is asking for ... but can anybody suggest where in one of these two subroutines would probably be a good place for this step?
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: Add new board on Registration
Reply #87 - Nov 4th, 2007 at 6:38pm
Print Post  
Your correct ...or atleast thats where i have it.. seems to work ok  on the forum im using it on..added bfore:

# let's restore the name now
           &ToHTML($tempname);
           $member{'name'} = $tempname;

  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #88 - Nov 19th, 2007 at 8:01pm
Print Post  
Hi Jasnner

Do you think that this mod could easily be adapted for YaBB2.2?

This is one of my favourite mods  Smiley

I would be more than willing to beta test or what ever is required?
  
Back to top
 
IP Logged
 
jasnner
New Member
*
Offline


Bonsai!

Posts: 49
Joined: May 31st, 2007
Gender: Male
Re: Add new board on Registration
Reply #89 - Jan 2nd, 2008 at 9:27am
Print Post  
Hi everyone,

Haven't visited boardmod in months, YaBB sort of dropped off the radar for me.

Haven't try to install 2.2 yet, the thought of upgrading this mod for 2.2 is a bit of a headache and since I've been having trouble integrating YaBB with my Java Application recently I am thinking to look for a another solution to my blogging needs.

Perhaps write my own blog application that uses my existing MySQL member database as the user engine.

With fear of going off topic in this thread, I better sign off on this mod. Sorry for an inconvience.

  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 4 5 [6] 7 
Send TopicPrint