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


Bonsai!

Posts: 49
Joined: May 31st, 2007
Gender: Male
Re: Add new board on Registration
Reply #45 - Jul 5th, 2007 at 11:35pm
Print Post  
I left one line out of the mod, thanks Carr

<search for>
if (-e "$vardir/gmodsettings.txt") { require "$vardir/gmodsettings.txt"; }
</search for>

<add after>
require "$sourcedir/BlogCategory.pl";
</add after>

I have updated the mod. That should fix your problem. Give it a go, and let me know how it goes.

Also about the UsersAvatars URL, if you have an absolute link (that includes http://) you don't have to change the URL in the Users Avatars section of admin center, I think. Yabb looks at your userpic everytime it is displayed and it will add /avatars/ to the path, only if http:// is not present.
  

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 #46 - Jul 6th, 2007 at 12:59am
Print Post  
Ok, I have left it installed in case you need to see anything. I have to go get some sleep now. You are administrator on the board.

Here is what is now happening. There are almost no error messages now but some things don't appear right.

* When you register, no picture is appearing on the new board. The picture is appearing in the profile. The self introduction is added to both the new board and the profile.

* If you change the picture in the profile settings the picture changes in the profile but still doesn't appear in the board. If you change the text it changes in the profile but not the board.

* If you change the image to an external image the image still doesn't appear in the board but also doesn't appear in the profile but it does appear in the 'Recent Visitors' bar.

If you try and upload an image then for the avatar you only get an error message.

I kept the image url as: http://www.eulogia.co.uk/yabbfiles/avatars/UsersAvatars.

I'm sorry it's not working and my messages are so long
  
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 #47 - Jul 6th, 2007 at 8:27am
Print Post  
Thanks for helping me iron out the bugs.

The way I had added the Users Avatars code to the Register.pl was a little strange. I have streamlined it in v2.2

so if you have 2.1 installed
Quote:
<search for>
         #this is a uploaded file
         if (($FORM{'file'} =~ m/\.gif\Z/i || $FORM{'file'} =~ m/\.jpg\Z/i || $FORM{'file'} =~ m/\.jpeg\Z/i || $FORM{'file'} =~ m/\.png\Z/i)) {
           my ($fixname);
           &UsersAvatarsUP($reguser);
                 if ($okatt) {
                       &UsersAvatarsLOG($reguser,$valueupic2,1);
                               $fixname=$valueupic;
                       #get the file extendsion
                           $fixname =~ m/\.(.*)/;
                           $fixext = $1;
                           ${$uid.$reguser}{'userpic'} = '/UsersAvatars/'.$reguser.'.'.$fixext;
                 }
                 if ($okdelatt) {
                       &UsersAvatarsLOG($reguser,0,0);
                       ${$uid.$reguser}{'userpic'} = "";
                       $checked = "";
                 }
           &clear_temp;
         }
       }
</search for>

<replace>
       }
     #this is a uploaded file
     if (($FORM{'file'} =~ m/\.gif\Z/i || $FORM{'file'} =~ m/\.jpg\Z/i || $FORM{'file'} =~ m/\.jpeg\Z/i || $FORM{'file'} =~ m/\.png\Z/i)) {
           my ($fixname);
           &UsersAvatarsUP($reguser);
                 if ($okatt) {
                       &UsersAvatarsLOG($reguser,$valueupic2,1);
                       ${$uid.$reguser}{'userpic'} = $valueupic;
                 }
                 if ($okdelatt) {
                       &UsersAvatarsLOG($reguser,0,0);
                       ${$uid.$reguser}{'userpic'} = "";
                       $checked = "";
                 }
           &clear_temp;
     }
</replace>


I have updated the mod and attached it to the first post. I think this should solve all the above issues, but if it doesn't, be sure to let me know  Wink
  

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 #48 - Jul 6th, 2007 at 12:09pm
Print Post  
Jassiner. I appreciate your patience with this.

I'm really sorry, I have made the changes but almost everything is just the same. I added the changed registry file and added a new board. There was no board created but that's because I had over written my own changes. I put it back to this again and my board was created the next time.

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

---------------------------------------

The board is created but without an image again. When I check the board in admin centre the image link has been created but it misses out the image name. It has put this for the image:

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

As for changing the users self introduction, this still doesn't change on the board. The images still don't update on the board and only update on the profile page if you select a default image. If you select a link for the image, the image is not seen on the profile page (just spotted that this bit is only in Opera - I can see it in IE on the profile page).

Uploading an image doesn't produce an error message now and uploads an image but not to the new board.

I hope that the changes that I made and posted here on : 24.06.07 are not the cause?

Thanks again
  
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 #49 - Jul 6th, 2007 at 1:13pm
Print Post  
Whoops Lips Sealed, I made a silly mistake.

In the Register.pl, I forgot to pass one variable when calling createBoard subroutine.

So in your Register.pl

<search for>
&createBoard($reguser, ${$reguser}{'ext_1'});
</search for>

<replace>
&createBoard($reguser, ${$reguser}{'ext_1'}, ${$reguser}{'userpic'});
</replace>

This change is reflected in BlogCategory_v2_3.mod attached to the first post.

In regards to the self intro not updating. In the profile section. I have the self intro on the options page, just above the user pic. This seems logical on my forum, because my blog is optional.

I recommend you move the self intro field into the options section of profiles, using the Extended Profiles admin center, click options, next to the self intro field and you can choose to add this field to the Options section of the Profile page.

I will add a step into the install instructions to add self intro into the options section of Profiles. Or did you think another section is better?

BTW, I sent you a private message carr - re FTP
  

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 #50 - Jul 6th, 2007 at 3:48pm
Print Post  
Hi Jassiner

We're getting there.8) The image and introduction text is still not changing on the board but at least we are back to a usable system. I'll send you FTP info if that's what your looking for?

I didn't get your message? Was it here or on my forum ???

Moving the self intro text box to the options page, just above the user pic is logical and I have now done that. How do I move it to just above the pic box? Which file do I edit thanks?

Thanks again 8)
  
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 #51 - Jul 7th, 2007 at 3:09am
Print Post  
carr,

It didn't work because the way you had changed the mod on your forum. You had switched the isBlog option to 0, which means off, 1 means on. So it normally checks for if the member has isBlog=1 then checks for updates, so it would never find an update because your's is always set to 0 (off).

I know you don't have any choice, because you can't set a default value using the Extended Profiles mod.
In the next version I will have to seperate this mod from Extended Profiles so that we can set a default option for isBlog.

Anyway I got it to work on your forum by taking out the isBlog if statement.

I have made some alterations to the mod attached to the first post.
  

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 #52 - Jul 7th, 2007 at 8:14am
Print Post  
Jasinner

It's Working

Well done, you worked out how to fix my mess. I'm impressed and very grateful that you stuck with it. And best of all - It's SubBoards Compatible  Smiley

To begin with I didn't think it was working Cry but then realised that sometimes the changes don't work right if you make both changes to the text and the avatar at the same time. I think Opera is worse than I.E here. If the changes are made individually it is perfect.

For me that's the finishing touch that my board really neaded.

Now I am definitely going to have to learn perl so that I can really break my board  Grin
  
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 #53 - Jul 7th, 2007 at 2:05pm
Print Post  
will existing members be able to create a blog board from profile options?  after reading through this thread it would appear that they should be able to with no problems ... though I'm not expert and wanted to know if someone tested it out already ... thanx
  

soundcloud.com/chimohe
Back to top
IP Logged
 
ccarr
Ex Member


Re: Add new board on Registration
Reply #54 - Jul 7th, 2007 at 2:11pm
Print Post  
Hi ChiMoHe

I would say yes possibly, in theory this is supposed to be a feature of the mod but unfortunately I can't confirm this as I have disabled that option.

Jasinner will need to confirm this for you. Sorry.
  
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 #55 - Jul 7th, 2007 at 2:56pm
Print Post  
carr:
I fixed the problem, so now users can update both pic and self intro at the same time.

Please replace the Sources/BlogCategory.pl with the new one, found in the zip attached to the first post.

ChiMoHe:
That's right existing users can create a blog board from their profile options page.
  

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 #56 - Jul 7th, 2007 at 3:23pm
Print Post  
Jasinner

Your on a roll. That is working just fine. Thanks again
  
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 #57 - Jul 8th, 2007 at 11:31am
Print Post  
Fixed up some html in the Profile section

If you have v2_5 installed do the following:

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

<search for>
         <td>
            <b>$blog_txt{'2'}</b>
       </td>
       <td>
             $useBlogFieldInput<br/><small>$blog_txt{'3'}</small>
       </td>
  </tr><tr class="windowbg">
       <td>
             <b>$blog_txt{'4'}</b>
       </td>
       <td>
             $selfIntroFieldInput
       </td>
</search for>

<replace>
          <td width="320" align="left"><b>$blog_txt{'2'}</b></td>
         <td align="left">
             $useBlogFieldInput<br/><small>$blog_txt{'3'}</small>
       </td>
  </tr><tr class="windowbg">
       <td width="320" align="left"><b>$blog_txt{'4'}</b></td>
       <td align="left">
             $selfIntroFieldInput
       </td>
</replace>

Updated the first post with v2_5_1 to reflect these changes
  

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 #58 - Jul 26th, 2007 at 12:08am
Print Post  
is it an option to where only select member groups can have the blog feature?
  

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 #59 - Jul 26th, 2007 at 1:20am
Print Post  
There is no option now.

I just need to add if statement to register and profile sources files to check members group right?

When I have time I will have a look at it. I am a little busy now.
  

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