Page Index Toggle Pages: 1 ... 3 4 [5] 6 7  Send TopicPrint
Very Hot Topic (More than 25 Replies) Add new board on Registration (Read 50633 times)
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 #60 - Sep 3rd, 2007 at 12:32pm
Print Post  
thats cool.. no rush ... just thought it would be a nice option

Edited :
I seem to have a probem with the boards not being created... no errors ..but no boards..either...everything is uploaded..and seems in order... members category set up... fields in profil show up...and it has the registration fields for it... any ideas?
« Last Edit: Sep 3rd, 2007 at 2:54pm by LWS »  

LoneWebSurfer.com Nothing but YaBB templates
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 #61 - Sep 4th, 2007 at 3:01am
Print Post  
Hi,
The mod will not generate a board until the user requests it, in their profile or registers with "create blog" checked.

If your doing the above, check that boards/forum.control to see if the board is added there.
  

Study english, and have fun www.english-nikki.com
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 #62 - Sep 4th, 2007 at 1:52pm
Print Post  
Turns out it is working...but there is a problem...not sure if it is with your mod..or extended profiles the 2 fields i created for this..seems to be doubled up somehow.....one is where its supposed to be..but is none functioning...the other is at  first page when editing profile at top..no text next to them...just happened to put a check in it and viala...new board... i will get screen shots to better show what im talking about..
Edited:

here is the fields where there not supposed to be...but this is the one that makes it work...
www.lonewebsurfer.com/p_image/profile1.gif

And here is the fields where they should be..but none functional...altho..ionce checked the out of place ones..it also checks this one....very odd
www.lonewebsurfer.com/p_image/profile2.gif

and avatars not showing up on board index...seems the url to image stops at avatars...not going to UsersAvatar directory..am going to play with paths now i figure that is the prob there

« Last Edit: Sep 4th, 2007 at 5:02pm by LWS »  

LoneWebSurfer.com Nothing but YaBB templates
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 #63 - Sep 5th, 2007 at 6:42am
Print Post  
Have another look at step 6 of the install instructions

6.In the admin center, change the User Avatars Uploads's, Attachments URL from "./avatars/UsersAvatars" to "UsersAvatars"
  So  Attachments Dir: is still "./avatars/UsersAvatars", just change the URL.
  If you have an absolute link to the folder eg. http://myDomain.com/YaBB/avatars/UsersAvatars/ that is ok too, (don't have to change it).

About the input fields being placed in the wrong place. I remember now I had similar problems. I have no idea why you have two sets of inputs, but you have to replace the input tags that are in the correct place, with the ones that are being passed to the Register2 sub (outside the layout table.)

I just had another look at my Register.pl and compared it with v2.6 of the mod, and the HTML looks the same, so I think the mod is ok. In admin center for edit profile fields, make sure "Required on Registration" is set to optional for all fields related to the blogs.

I think you have to be carefull with the extended profiles mod, because often when you delete or rename fields it causes problems.
  

Study english, and have fun www.english-nikki.com
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 #64 - Sep 5th, 2007 at 11:03pm
Print Post  
double posted fields...was due to default settings in field options Editable By User:  (is set to edit profile page by default)

still no boards being created.. but extra fields are gone..i looked in admin center at boards..not showing up there... i did notice tho ..if you view profile of a user who tried to make one...it says yes next to user blog.. so it does somthing Smiley...any thoughts?
  

LoneWebSurfer.com Nothing but YaBB templates
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 #65 - Sep 6th, 2007 at 8:35am
Print Post  
Check in the boards directory to see if there are "*.txt" files there with the same name as the username you used to create the board.
Eg. You create a blog with a user name jasinner,
"Boards/jasinner.txt" should be created.
Then check forum.control and forum.master contain references to it.

Thanks for narrowing down the problem with duplicate fields. I will add that to the install instructions.
  

Study english, and have fun www.english-nikki.com
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 #66 - Sep 6th, 2007 at 3:30pm
Print Post  
No txts for member baords in board directory..no references in  forum.control or forum.master..... i did notice that in forum master..there was 3 references to the members category  

$mloaded = 1;
@categoryorder = qw(general staff Parenting spirituality books Writing members);
$cat{'general'} = qq~general,test~;
$cat{'staff'} = qq~announcements,recycle~;
$cat{'         members'} = qq~~;
$cat{'books'} = qq~Fiction,non-fiction~;
$cat{'Writing'} = qq~poem,short,anything~;
$cat{' members'} = qq~~;
$cat{'members'} = qq~kitty~;

so i cleaned it up to this

$mloaded = 1;
@categoryorder = qw(general staff Parenting spirituality books Writing members);
$cat{'general'} = qq~general,test~;
$cat{'staff'} = qq~announcements,recycle~;
$cat{'books'} = qq~Fiction,non-fiction~;
$cat{'Writing'} = qq~poem,short,anything~;
$cat{'members'} = qq~kitty~;

It made no change though...there was more on it..but those was the only thing out of place..you may notice the member name kitty... that is from when i had the double posted fields and got it to make a blog using the out of place fields
  

LoneWebSurfer.com Nothing but YaBB templates
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 #67 - Sep 6th, 2007 at 3:36pm
Print Post  
When I register I get this after refreshing from page cannot be displayed

An Error Has Occurred!

There is an invalid character in the Username field. Valid Characters are Letters(a-z), Numbers (0-9), and ( # + - . @ ^ _ )


my test board is ... http://anamericanevolution.org/trip2blog/yabb2/YaBB.pl?action=register

Mods installed

YaBB Media Center V1.8  
Extended Profiles 2.2  
Users Avatars Upload 1.0  
Custom Page Mod 0.2  
Add new board on Registration

Thankyou for your time and assistance
  

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 #68 - Sep 6th, 2007 at 3:54pm
Print Post  
ok ... my error is a great example of making sure I've followed direction Completely ... My error was do to not having UserAvatars not enabled ... and not having a Cat called members

THankyou This is Great ...
  

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 #69 - Sep 6th, 2007 at 3:58pm
Print Post  
ok new development... blog boards are created with new register. :2thumbsup:..but existing members can not make new board. :confused:.. so the issue i am having appears to be in that area...
  

LoneWebSurfer.com Nothing but YaBB templates
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 #70 - Sep 7th, 2007 at 1:16pm
Print Post  
I suggest looking for extra html input fields in strange places outside the display table. They could be on the first page of 'edit profile' page or 'edit profile options' page. On my forum I have them on the 'edit profile options' page. This is where they should be created.

This again, would be a result of which options you have for the extended profiles mod.

I checked http://lonewebsurfer.com/forum/YaBB.pl?action=register looking for how your edit profiles look. But I guess you haven't installed the mod there, because I couldn't find anything. Is there another URL I can test the problem?
  

Study english, and have fun www.english-nikki.com
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 #71 - Sep 8th, 2007 at 12:45am
Print Post  
html input fields are as you described ...it is in edit profile options page...ive already got rid of the extera fields..
the forum i installed it on is my wifes..http://www.lonewebsurfer.com/parentingtoday
also ..she noticed today..for the new registers that can make a blog board...if they edit there profile in any manor..the board dissapears.
  

LoneWebSurfer.com Nothing but YaBB templates
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 #72 - Sep 9th, 2007 at 12:37am
Print Post  
The board disappears? That's no good. Could have to do with the default value for the isBlog field. Maybe when you load up the profile page the default value is set to false. Gotta make sure it's set to whatever their current setting is so:
If they have a board, the box is checked.
If not, is it unchecked.

I will try a test user on her boards later today, gotta go out of a bit.
  

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 #73 - Sep 9th, 2007 at 11:13am
Print Post  
Ok, narrowed down the problem. In the Profile.pl the code that updates the board was being inserted into the wrong sub. It was in ModifyProfile2 instead of ModifyProfileOptions2 so I moved it, and it works as designed.

Here is the code in question:
Code
Select All
			 #find out which parts, related to boards, have changed
		     if(${$uid.$user}{'ext_0'} && ($member{'ext_0'} eq "")){
			   #delete from control file
		     @forumControl = &loadBoards('forum.control');
			   #don't pass 3rd argument if deleting from an array (only pass it for a file)
		     &deleteBlog($INFO{'username'}, \@forumControl, 'forum.control');

		     #delete from global array
		     &deleteBlog($INFO{'username'}, \@allBoards);

		     #delete from forum.master
		     &updateForumMaster($INFO{'username'}, 'delete');
		    }
		    elsif(!(${$uid.$user}{'ext_0'}) && ($member{'ext_0'} =~m/on/)){
			    #create a new board
			    &createBoard($INFO{'username'}, $member{'ext_01'}, $member{'userpic'});
		    }

		    #this member has a blog
		    elsif(${$uid.$user}{'ext_0'}){
			   &checkUpdateBoard(${$uid.$user}{'ext_1'}, $member{'ext_1'}, ${$uid.$user}{'userpic'}, $member{'userpic'}, $INFO{'username'});
		    }
 



In Profile.pl remove it from it's current location and put it before:
Code
Select All
 		&ToHTML($member{'userpic'});
		&ToHTML($member{'usertimeoffset'});
		&ToHTML($member{'usertimeselect'});
		&ToHTML($member{'usertemplate'});
		&ToHTML($member{'userlanguage'});
		&ToHTML($member{'timeformat'});
 


In the ModifyProfileOptions subroutine.

I have updated the mod attached to the first post.
Cheers for pointing that out to me.
  

Study english, and have fun www.english-nikki.com
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 #74 - Sep 10th, 2007 at 1:21am
Print Post  
hey  it worked..boards are being created from profiles now...and deleted when unchecked good work Smiley 
I did not have the same &ToHTML codes in my profile.pl though..but i found the ModifyProfileOptions sub and put the first code in where i found a &ToHTML line..seems to work..
There is 2 minor bugs..nothing major ...1 the Self introduction now does not go to the descriptions of board. is it where i did not put the code in the correct place? and 2 the user uploaded avatars..are not resized to what she has specified in admin settings..ive instructed her how to manually resize with photoshop  Grin
ive attached a copy of my profile.pl  so you can note the differences in &ToHTML codes
  

myProfile.zip (Attachment deleted)

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 6 7 
Send TopicPrint