The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Automatic group on register

View previous topic View next topic Go down

Solved Automatic group on register

Post by HogwartsAcademy on October 4th 2012, 10:44 pm

I'm in the process of completing my Harry Potter RPG forum, although I'm tired of editing the members groups to which house they earned after completing a quiz I put together to determine their standards. So, can I make it so that as soon as they register and login after confirmation, the forum automatically chooses one of the four houses/groups to put them in? If you want, I can also PICK which houses they can be in, however can I just set it myself?

On top of that, can I display like a pop up that says "Congratulations! You've put in _____ house/group! Here you will find many things etc etc"

This would be beyond fantastic, thank you!


Last edited by HogwartsAcademy on October 6th 2012, 3:26 am; edited 1 time in total

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 12:06 am

How can I do this?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 12:36 am

Oh I wouldn't want that.. it's okay I guess I can do it myself. However - can you help me with something very quickly before I edit this solved?

Please and thank you:

Q: How can I edit the link for the banner at the top? I know that it takes it to the Index page, can I edit this so it doesnt?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 4:07 am

Thank you, it still takes it to the forums page when they log in, how can I redirect them to a page of my choosing?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by nextlevelgaming on October 5th 2012, 4:27 am

If you are using phpbb2 go to the overall_header, and search logo. The code should be

Code:
<!-- BEGIN switch_logo_left -->
                  <td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
                  <!-- END switch_logo_left -->
                  <td align="center" width="100%" valign="middle">
                     <!-- BEGIN switch_logo_center -->
                     <a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
                     <br />
                     <!-- END switch_logo_center -->
                     <div class="maintitle">{MAIN_SITENAME}</div>
                     <br />
                     <span class="gen">{SITE_DESCRIPTION}<br /> </span>
                  </td>
                  <!-- BEGIN switch_logo_right -->
                  <td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
                  <!-- END switch_logo_right -->

change all the href="yoururlhere"...

to put it simple

ORIGINAL CODE
Code:
<!-- BEGIN switch_logo_center -->
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>

Code:
<!-- BEGIN switch_logo_center -->
<a href="/yoururlbase"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
where it says /yoururlbase is where you will link it. if it is an offsite page then you have to type in the url like so http://www.sitesname.com/

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 9:39 pm

@nextlevelgaming wrote:If you are using phpbb2 go to the overall_header, and search logo. The code should be

Code:
<!-- BEGIN switch_logo_left -->
                  <td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
                  <!-- END switch_logo_left -->
                  <td align="center" width="100%" valign="middle">
                     <!-- BEGIN switch_logo_center -->
                     <a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
                     <br />
                     <!-- END switch_logo_center -->
                     <div class="maintitle">{MAIN_SITENAME}</div>
                     <br />
                     <span class="gen">{SITE_DESCRIPTION}<br /> </span>
                  </td>
                  <!-- BEGIN switch_logo_right -->
                  <td><a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
                  <!-- END switch_logo_right -->

change all the href="yoururlhere"...

to put it simple

ORIGINAL CODE
Code:
<!-- BEGIN switch_logo_center -->
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>

Code:
<!-- BEGIN switch_logo_center -->
<a href="/yoururlbase"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
where it says /yoururlbase is where you will link it. if it is an offsite page then you have to type in the url like so http://www.sitesname.com/

thats to change the link for the logo correct? thanks I already got that from rideem but I need to figure out how to fix it so when they login or refresh the page or whatever it doesn't redirect them to the index page.

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by nextlevelgaming on October 5th 2012, 9:46 pm

Yeah I'm a little bit confused now as well. LOL. You asked when clicked on the logo it will go to the url of your choosing...Well me and rideem gave you the code, one JS way and another Generated HTML way.

To refresh a page by a href code is

Code:
<a href="javascript:history.go(0)">Click Here</a>

Other than that don't know exactly what you are looking for...

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 10:24 pm

You know when you login the forum? Yes, well when me and my members log in the forum itself it redirects them to the index page. Can I edit it so it redirects them to a respective page of my desire?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by nextlevelgaming on October 5th 2012, 11:14 pm

honestly not sure I've been trying to change the template with

Code:
onSubmit="javascript: location.href='.faq';"

though it does not seem be to working...ill keep you informed

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 11:25 pm



How can I take those buttons out? If I can do this then I will be completely set.

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by HogwartsAcademy on October 5th 2012, 11:36 pm

I just need you to tell me if it's possible or not so I don't go through to time to make it, it really would be helpful this is the last thing I promise.

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Solved Re: Automatic group on register

Post by Jophy on October 6th 2012, 12:04 pm

Topic Solved & Locked

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum