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.

How can I add more fields to my Login widget?

View previous topic View next topic Go down

How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 10th 2012, 10:49 pm

I want to edit my login widget, which I can't because the modify button doesn't appear on it because it's premade.. I want to edit it to display more than just "posts" and the avatar and such. I have other personalized profile fields, how can I add them to the login widget?


My forum, if you need it for some reason is: http://hogwartsheights.canadian-forum.com

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 10th 2012, 10:51 pm

You can create your own version of the log in widget. I am currently working on this for my site but need to figure out the code for showing when a new pm comes in.

Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 11th 2012, 12:07 am

Can you give me the code of your login widget when you are finished? That would be amazing, and also help me with how I can add my own personalized profile fields in there?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 11th 2012, 11:23 pm

Bump

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 12th 2012, 12:01 am

hmm.. are you sure I can't? I've seen HTML coding of login widgets, is it not possible to instead of the posts field, replace it with something else and or add more?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 12th 2012, 1:13 am

How can I do that?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 12th 2012, 4:48 pm

. This one below will give you a log in widget without an avatar with links to certain things making it easier to navigate the site. I have an avatar on mine, but my avatars are hosted by someone else's server, there is things you can do to display an avatar but it can slow down your sites loading time.

First go to the forum widgets and make the log in widget viewable to only guests, then create a new widget and title it what ever you want.

replace Your Sites URL with whatever your site url is and remove the * before the username at the view wall part.

Code:

 
 
<Center><STRONG>{USERLINK}</STRONG><p></p>
<STRONG> New PM's</STRONG><div id="number_pms">0</div>
    <script type="text/javascript">
    if (document.getElementById('i_icon_mini_new_message')) document.getElementById('number_pms').innerHTML = document.getElementById('i_icon_mini_new_message').title.split(" ")[2];</script>
<p></p>
<STRONG>Post Count </STRONG><p></p>
{USERCOUNTPOST}
<p></p><div class="rounded">
<STRONG> User Info</STRONG></p><p>
<A href="HTTP://Your Sites URL/profile?mode=editprofile"> Edit Profile</A></p><p>
<A href="HTTP://Your Sites URL/profile.forum?mode=editprofile&amp;page_profil=preferences" target=_blank>Preference</A></p><p>
<A
href="HTTP://Your Sites URL/profile.forum?mode=editprofile&amp;page_profil=signature" target=_blank>Signature</A></p><p>
<A
href="HTTP://Your Sites URL/profile.forum?mode=editprofile&amp;page_profil=avatars" target=_blank>Avatar</A>
<A href="HTTP://Your Sites UR /profile?mode=viewprofile&page_profil=messages&u={*USERNAME}" target=_blank>View Wall</A>
</p></TD></TR><TR><TD align=left>

<p><p>
<STRONG> Private messages</STRONG></p><p>
<A href="HTTP://Your Sites URL/msg.forum?folder=inbox" target=_blank>Inbox</A></p><p>
<A href="HTTP://Your Sites URL/msg.forum?mode=post" target=_blank>Send PM</A></p><p>
<A href="HTTP://Your Sites URL/msg.forum?folder=sentbox" target=_blank>Sent Items</A></p></TD></TR><TR><TD align=left>
<p></p>
<STRONG>Misc</STRONG></p><p><A href="HTTP://Your Sites URL/search.forum?search_id=watchsearch" target=_blank>Topic's being watched</A></center>

You can easily add more links in but linking to custom profile fields is a bit out of my reach sorry. I am also sure the above code could be improved upon Below is a screen shot of what it should look like without the avatar. If you want to see it in action pop over to my site
www.lastworldrpg.com


Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 12th 2012, 10:43 pm

For some reason this is what I ended up with after using your method, Arrow.




HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 12th 2012, 11:18 pm

Sorry on my phone, but I see what the problem is and will give you the correct code when am at the computer.

Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 12th 2012, 11:26 pm

Okay try this, forgot to say make this only visible to Admin, Mods and Users.

Code:
 
<STRONG>{USERLINK}</STRONG><p></p>

<center><STRONG> New PM's</STRONG><div id="number_pms">0</div></center>
    <script type="text/javascript">
    if (document.getElementById('i_icon_mini_new_message')) document.getElementById('number_pms').innerHTML = document.getElementById('i_icon_mini_new_message').title.split(" ")[2];</script>
<p></p>


 


<center><STRONG>Post Count </STRONG></center><p></p>
<center>{USERCOUNTPOST}</center>
<p></p><div class="rounded">

<center><STRONG> User Info</STRONG></center></p><p>
<center><A href="http://Your URL/profile?mode=editprofile"> Edit Profile</A></p><p>
<A href="HTTP://Your URL/profile.forum?mode=editprofile&amp;page_profil=preferences" target=_blank>Preference</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&amp;page_profil=signature" target=_blank>Signature</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&amp;page_profil=avatars" target=_blank>Avatar</A></p></TD></TR><TR><TD align=left>
<A href="HTTP://Your URL/profile?mode=viewprofile&page_profil=messages&u={*USERNAME}" target=_blank>View Wall</A></center>

<p><p>

<center><STRONG> Private messages</STRONG></center></p><p>

<center><A href="HTTP://Your URL/msg.forum?folder=inbox" target=_blank>Inbox</A></p><p>
<A href="HTTP://Your URL/msg.forum?mode=post" target=_blank>Send PM</A></p><p>
<A href="HTTP://Your URL/msg.forum?folder=sentbox" target=_blank>Sent Items</A></p></TD></TR><TR><TD align=left>



<p></p>

<STRONG>Misc</STRONG></p><p><A href="HTTP://Your URL/search.forum?search_id=watchsearch" target=_blank>Topic's being watched</A></center>

Remember to remove the * next to username for view wall and to place your URL in to the code.

Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 13th 2012, 12:19 am

Oh my gosh.. I'm still getting the exact same results..

If I give you my forums url can you reupdate the code for me by putting in the links yourself?

My forums link is: http://hogwartsheights.canadian-forum.com

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by nextlevelgaming on September 13th 2012, 12:52 am

sometimes I have problems if I place divs in, try using <span id="number_pms">0</div>

Also Arrow does this only work in phpbb3 and invision? Cuz I would love to have an inbox count on my phpbb2 website

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

Re: How can I add more fields to my Login widget?

Post by SLGray on September 13th 2012, 1:35 am

@Arrow wrote:Sorry on my phone, but I see what the problem is and will give you the correct code when am at the computer.

@Arrow wrote:Okay try this, forgot to say make this only visible to Admin, Mods and Users.

Code:
 
<STRONG>{USERLINK}</STRONG><p></p>

<center><STRONG> New PM's</STRONG><div id="number_pms">0</div></center>
    <script type="text/javascript">
    if (document.getElementById('i_icon_mini_new_message')) document.getElementById('number_pms').innerHTML = document.getElementById('i_icon_mini_new_message').title.split(" ")[2];</script>
<p></p>


 


<center><STRONG>Post Count </STRONG></center><p></p>
<center>{USERCOUNTPOST}</center>
<p></p><div class="rounded">

<center><STRONG> User Info</STRONG></center></p><p>
<center><A href="http://Your URL/profile?mode=editprofile"> Edit Profile</A></p><p>
<A href="HTTP://Your URL/profile.forum?mode=editprofile&amp;page_profil=preferences" target=_blank>Preference</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&amp;page_profil=signature" target=_blank>Signature</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&amp;page_profil=avatars" target=_blank>Avatar</A></p></TD></TR><TR><TD align=left>
<A href="HTTP://Your URL/profile?mode=viewprofile&page_profil=messages&u={*USERNAME}" target=_blank>View Wall</A></center>

<p><p>

<center><STRONG> Private messages</STRONG></center></p><p>

<center><A href="HTTP://Your URL/msg.forum?folder=inbox" target=_blank>Inbox</A></p><p>
<A href="HTTP://Your URL/msg.forum?mode=post" target=_blank>Send PM</A></p><p>
<A href="HTTP://Your URL/msg.forum?folder=sentbox" target=_blank>Sent Items</A></p></TD></TR><TR><TD align=left>



<p></p>

<STRONG>Misc</STRONG></p><p><A href="HTTP://Your URL/search.forum?search_id=watchsearch" target=_blank>Topic's being watched</A></center>

Remember to remove the * next to username for view wall and to place your URL in to the code.
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!

Since this is your third reminder about double posting, you will receive a warning.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 13th 2012, 3:34 am

Wtf. That's the problem.. I'm only on PHPbb2.. I'm not using invision or phpbb3.. lol. Is it possible for you to recode this and make it PHPbb2?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 13th 2012, 10:34 am

Edited


Last edited by Arrow on September 14th 2012, 7:37 am; edited 5 times in total

Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 13th 2012, 10:51 pm

Yeah, it's not showing the image of an avatar, if it's supposed to. Also, I added a text size code wrapped around it to keep it a little smaller, because when I put the updated one above that you made for me i stillg et the same results. So it's smaller now, but can you also teach me how to add the avatar + add my own personalized profile fields?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 14th 2012, 7:51 am

That because I said this was it without an avatar, I get my Avatars from an
external server which is a lot easier but you can get it.I should have
said that if you widget is smaller then 180px then you may need to edit
the text size, but since you've done that already no worries. So I take
it this works bar the extra things you want?


To get the avatar follow the instruction here I am not posting his code without his permission: http://www.avacweb.com/t129-user-avatar-variable

Make sure to hide the fourmotion log in widget (It's in the instructions) now place


  1. <span class="AVATAR"></span>
At
the top of the code and it should show the avatar of the user logged
in. As for the personal profile fields, that's a lot harder and to be
honest, I don't even know where to start.

Thats the best I can do for you.

So to recap

The
below code will display a log in widget without an avatar, first make
the built in log in widget and make it viewable to just guests. Then use
the code below to make a new widget that is viewable to Admin, Mods and
Users. Name and title it whatever you want and place the code in
replacing the "Your URL" with your sites own one and then also removing
the * from username at the view wall area.

If you wish to add an
avatar you have to make the built in log in widget viewable to all user
including guest and follow the instructions here: http://www.avacweb.com/t129-user-avatar-variable

You
can hide the Built in login widget it is in the instructions and I
suggest you do it as you don't want two. You then add the Span class
code to the top of the widget you made and you should have a widget with
all the info you need.


Code:
<center><STRONG>{USERLINK}</STRONG></center><p></p>

<center><STRONG> New PM's</STRONG><div id="number_pms">0</div></center>
    <script type="text/javascript">
 
  if (document.getElementById('i_icon_mini_new_message'))
document.getElementById('number_pms').innerHTML =
document.getElementById('i_icon_mini_new_message').title.split("
")[2];</script>
<p></p>


 


<center><STRONG>Post Count </STRONG></center><p></p>
<center>{USERCOUNTPOST}</center>
<p></p><div class="rounded">

<center><STRONG> User Info</STRONG></center></p><p>
<center><A href="http://Your URL/profile?mode=editprofile"> Edit Profile</A></p><p>
<A
 href="HTTP://Your
URL/profile.forum?mode=editprofile&amp;page_profil=preferences"
target=_blank>Preference</A></p><p><A
href="HTTP://Your
 URL/profile.forum?mode=editprofile&amp;page_profil=signature"
target=_blank>Signature</A></p><p><A
href="HTTP://Your
 URL/profile.forum?mode=editprofile&amp;page_profil=avatars"
target=_blank>Avatar</A></p></TD></TR><TR><TD
 align=left>
<center><A href="HTTP://Your
URL/profile?mode=viewprofile&page_profil=messages&u={*USERNAME}"
 target=_blank>View Wall</A></center>

<p><p>

<center><STRONG> Private messages</STRONG></center></p><p>

<center><A href="HTTP://Your URL/msg.forum?folder=inbox" target=_blank>Inbox</A></p><p>
<A href="HTTP://Your URL/msg.forum?mode=post" target=_blank>Send PM</A></p><p>
<A
 href="HTTP://Your URL/msg.forum?folder=sentbox" target=_blank>Sent
Items</A></p></TD></TR><TR><TD
align=left>



<p></p>

<center><STRONG>Misc</STRONG></center></p><p>
<center><A
 href="HTTP://Your URL/search.forum?search_id=watchsearch"
target=_blank>Topic's being watched</A></center>


Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 14th 2012, 1:29 pm

Very descriptive but can you show me how to add my own fields to it? Like I made a "money" field where it displays their money in a personalized profile field. How cna I display it on the bar?

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by Arrow on September 14th 2012, 2:02 pm

@HogwartsAcademy wrote:Very descriptive but can you show me how to add my own fields to it? Like I made a "money" field where it displays their money in a personalized profile field. How cna I display it on the bar?
As I have said a few times this is beyoned me, I do not know how to get custom profile fields into the log in I have made, I have moved onto another project which I may have just solved and if I have I will come back to this one.

Arrow
Forumember

Male Posts : 121
Reputation : 4
Language : English

http://www.lastworldrpg.com

Back to top Go down

Re: How can I add more fields to my Login widget?

Post by HogwartsAcademy on September 14th 2012, 9:19 pm

Okay.. thanks then mate.

HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

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