How can I add more fields to my Login widget?
4 posters
Page 1 of 1
How can I add more fields to my Login widget?
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
My forum, if you need it for some reason is: http://hogwartsheights.canadian-forum.com
HogwartsAcademy- Forumember
- Posts : 474
Reputation : 1
Language : English
Re: How can I add more fields to my Login widget?
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.
Re: How can I add more fields to my Login widget?
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
HogwartsAcademy- Forumember
- Posts : 474
Reputation : 1
Language : English
Re: How can I add more fields to my Login widget?
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
Re: How can I add more fields to my Login widget?
How can I do that?
HogwartsAcademy- Forumember
- Posts : 474
Reputation : 1
Language : English
Re: How can I add more fields to my Login widget?
. 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.
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
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&page_profil=preferences" target=_blank>Preference</A></p><p>
<A
href="HTTP://Your Sites URL/profile.forum?mode=editprofile&page_profil=signature" target=_blank>Signature</A></p><p>
<A
href="HTTP://Your Sites URL/profile.forum?mode=editprofile&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
Re: How can I add more fields to my Login widget?
For some reason this is what I ended up with after using your method, Arrow.
HogwartsAcademy- Forumember
- Posts : 474
Reputation : 1
Language : English
Re: How can I add more fields to my Login widget?
Sorry on my phone, but I see what the problem is and will give you the correct code when am at the computer.
Re: How can I add more fields to my Login widget?
Okay try this, forgot to say make this only visible to Admin, Mods and Users.
Remember to remove the * next to username for view wall and to place your URL in to the code.
- 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&page_profil=preferences" target=_blank>Preference</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&page_profil=signature" target=_blank>Signature</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&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.
Re: How can I add more fields to my Login widget?
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
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
Re: How can I add more fields to my Login widget?
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
Also Arrow does this only work in phpbb3 and invision? Cuz I would love to have an inbox count on my phpbb2 website
Re: How can I add more fields to my Login widget?
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&page_profil=preferences" target=_blank>Preference</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&page_profil=signature" target=_blank>Signature</A></p><p><A
href="HTTP://Your URL/profile.forum?mode=editprofile&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. |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: How can I add more fields to my Login widget?
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
Re: How can I add more fields to my Login widget?
Edited
Last edited by Arrow on September 14th 2012, 7:37 am; edited 5 times in total
Re: How can I add more fields to my Login widget?
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
Re: How can I add more fields to my Login widget?
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
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.
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
- <span class="AVATAR"></span>
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&page_profil=preferences"
target=_blank>Preference</A></p><p><A
href="HTTP://Your
URL/profile.forum?mode=editprofile&page_profil=signature"
target=_blank>Signature</A></p><p><A
href="HTTP://Your
URL/profile.forum?mode=editprofile&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>
Re: How can I add more fields to my Login widget?
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
Re: How can I add more fields to my Login widget?
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.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?
Re: How can I add more fields to my Login widget?
Okay.. thanks then mate.
HogwartsAcademy- Forumember
- Posts : 474
Reputation : 1
Language : English
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum