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


Bonsai!

Posts: 49
Joined: May 31st, 2007
Gender: Male
Re: Add new board on Registration
Reply #30 - Jun 14th, 2007 at 3:27am
Print Post  
I had the mod set to only allow moderator functions to admin. I have adjusted the Sources/BlogCategory.pl and Variables/BlogCategory.txt file. Please find them in the mod.zip attached to the first post.

Now blog owners have moderator abilities on their boards.
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #31 - Jun 14th, 2007 at 7:06am
Print Post  
Thanks Jasinner

I installed the update and checked the chmod's but there is no change that I can see. Cry

Do I have to create a new user to see the changes?

Thanks
  
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 #32 - Jun 14th, 2007 at 7:54am
Print Post  
Yes, you have to create a new member.

I tried it and on the board index page (your main page) you can see, under the self intro. Moderators:admin, jasinner4
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #33 - Jun 14th, 2007 at 5:35pm
Print Post  
It's looking good. I'm playing about with sub boards and moving new boards into alphabetically arranged sub boards. This is cool.

Keep up the good work. 8)
  
Back to top
 
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #34 - Jun 14th, 2007 at 10:19pm
Print Post  
jasnner wrote on Jun 14th, 2007 at 2:33am:
I'm not sure about the security update. Only way to find out is to try and it. Let me know if it works.

I want to make this mod as compatable as possible so let me know if it doesn't work after you install the new mod.
oops sorry, just spotted this request. I installed the security update about 24 hours ago and everything appears to be working ok. Smiley

Wish list request for future versions: The ability for existing members to have a board created when they select the blog option in their profiles.  Wink
  
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 #35 - Jun 15th, 2007 at 8:12am
Print Post  
I'm glad the Security Update mod works ok.

I had a look at your forum and I see the picture's sizes are a little strange. Ensure you have allow user's avatars set in the User's avatars admin section and try adjusting the BoardIndex.pl as follows

replace

if ($bdpic =~ /\//i) { $bdpic = qq~ <img src="$bdpic" alt="" border="0" align="middle" /> ~; }
elsif ($bdpic) { $bdpic = qq~ <img src="$imagesdir/$bdpic" alt="" border="0" align="middle" /> ~; }

with

if ($bdpic =~ /\//i) { $bdpic = qq~ <img src="$bdpic" alt="" border="0" align="middle" style="max-width: 65px;"/> ~; }
elsif ($bdpic) { $bdpic = qq~ <img src="$imagesdir/$bdpic" alt="" border="0" align="middle" style="max-width: 65px;"/> ~; }
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #36 - Jun 15th, 2007 at 8:48am
Print Post  
Thanks Jasinner

I have auto resize switched off because it stopped the recent visitors images from showing (a known compatibility issue with an other mod), so I have uploaded all my images for the general boards as 22px high and the user avatars blog avatars as 65px.

My thinking is that the new members boards will automatically appear on the index page and then I move them to their relevant A-Z board so generally all the images on the index page will be will be the same size for most of the time.

Was it this that you were seeing or was it some other image related problem? I viewed the forum in four different browsers and they all looked as I would have expected?

Thanks for your help.
  
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 #37 - Jun 15th, 2007 at 8:54am
Print Post  
That's what I was talking about. I thought you must have been resizing them manually.

As long it's a compatibilty issue with some other mod and not mine, that's cool  8)
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #38 - Jun 15th, 2007 at 10:23am
Print Post  
Quick question I hope. What would I change to make the blog tick box selected by default at registration? Thanks.
  
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 #39 - Jun 15th, 2007 at 1:53pm
Print Post  
That variable is one created by the Extended Profiles mod, so I don't have an easy way to set the default for it. Undecided

I would be asking in the extended profiles thread about a way to set defaults for variables created by that mod.
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #40 - Jun 15th, 2007 at 1:56pm
Print Post  
Thanks again Wink
  
Back to top
 
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #41 - Jun 23rd, 2007 at 11:01pm
Print Post  
OK, I got it to work and having played about with everything it turned out to be simpler than I thought. Smiley

I wanted a new board to always be created automatically and this is how I did it:


In the register.pl find and delete this line.

        $useBlogFieldInput<br/><small>$blog_txt{'3'}</small>

Find:
 
       require "$sourcedir/BlogCategory.pl";
                            my $isBlog = ${$reguser}{'ext_0'};
          if($isBlog == 1){


Change to:
 
       require "$sourcedir/BlogCategory.pl";
                            my $isBlog = ${$reguser}{'ext_0'};
          if($isBlog == 0){


Then in the Edit Profile Fields settings:
 
Change the setting for (Field Name: useBlog) to Not Required.

Change the setting for (Field Name: self introduction) to Required.


With the 'self introduction' field being set to Required, the new member will have to fill in the field before it will complete registration. This also makes registration less vulnerable to bots etc.

It's a bit crude but it works.  Wink

« Last Edit: Jun 24th, 2007 at 12:38am by »  
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 #42 - Jul 5th, 2007 at 2:21pm
Print Post  
OK,

Version 2 is complete. Please give it a try!

I added a description of new features and the sources files to the first post.

jasinner
  

Study english, and have fun www.english-nikki.com
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #43 - Jul 5th, 2007 at 6:44pm
Print Post  
Hi Jasinner

Good to see you back onto this. I'm probably not the best person to test this as I have edited my files as per my last post. Im pushing the blogs option on my forum where I would like everyone that joins to have a board. They don't have to use it though. I don't want the board to disappear so I will disable this option.

However, I would still like to have the new update avatar and introduction features so have had a go at moding the files manually.

Only change that I could see in your mod file was in the first two edits.

Sources/UsersAvatars.pl
&
Sources/Profile.pl

I added these changes.

I also uploaded the BlogCategory.pl as that had changed.

Where you have said to change the URL my url is a full link:

http://www.eulogia.co.uk/yabbfiles/avatars/UsersAvatars

So I am not sure what I should put here. I just replaced the whole link with: UsersAvatars

I logged in as a random user and tried to change the users text and then save but I got this error:

Untrapped Error:
Undefined subroutine &main::loadBoards called at ./Sources/Profile.pl line 1395.


I checked out line 1395 and it was:

      @forumControl = &loadBoards('forum.control');

I have restored my files for just now. Have you any idea what the problem might be here?

Feel free to hop onto my server. I think you may still have the details? I have backed up the forum.

I Love the mod even without this option.  8)
  
Back to top
 
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #44 - Jul 5th, 2007 at 11:31pm
Print Post  
Jasinner

Step Two doesn't work because there is a slight spelling mistake.

<edit fle>
Sources/Profile.pl
</edit file>

The letter  i  is missing from the word 'file'

I tried it again tonight and found that only my own admin account lets me get past the save profile. I created a new account and that one let me past the save profile but the new board name didn't get updated. I have restored the original files again.

Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 ... 7
Send TopicPrint