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.

Combining Login box with some variable tags.

View previous topic View next topic Go down

Combining Login box with some variable tags.

Post by ribena_wrath on March 17th 2011, 4:32 am

Hi there.

I want to create a control panel type box to go on my forum widgets.

So basically I just want the login box, with some text, some variables and some basic html underneath. Shouldn't be too hard right? Any ideas? You can't edit the login box directly...


Smile

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

Back to top Go down

Re: Combining Login box with some variable tags.

Post by Sanket on March 17th 2011, 8:44 am

Yes its not difficult just add the basic html codes. Where are you stuck?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Combining Login box with some variable tags.

Post by ribena_wrath on March 17th 2011, 10:26 am

@Sanket wrote:Yes its not difficult just add the basic html codes. Where are you stuck?

I don't know how to get the code for the login box into a new widget which I can combine with the HTML.

Thanks for your reply.

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

Back to top Go down

Re: Combining Login box with some variable tags.

Post by Base on March 17th 2011, 6:20 pm

Hello ribena_wrath,

I believe that this is the HTML code that you're looking for:

Code:
<form method="post" action="/login"><p><label for="username"><strong>Username:</strong></label></p><p style="height: 2em;"><input type="text" class="inputbox autowidth" value="" maxlength="40" size="15" id="username" name="username"></p><p><label for="password"><strong>Password:</strong></label></p><p style="height: 2em;"><input type="password" class="inputbox autowidth" maxlength="25" size="15" name="password" id="password"></p><p align="center"><a rel="nofollow" href="/profile?mode=sendpassword">I forgot my password</a></p><p align="center"><input type="checkbox" checked="checked" class="checkbox" tabindex="4" id="autologin" name="autologin"><label for="autologin"> Log me on automatically at each visit</label></p><p align="center"><input type="submit" class="button" value="Log in" tabindex="6" name="login"></p></form>

Smile

Regards,

Base

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Re: Combining Login box with some variable tags.

Post by ribena_wrath on March 17th 2011, 8:41 pm

Hello Smile
Thanks for the reply!

That is not exactly what I am looking for, but you're on the right track.


I basically want the log in features, plus the code that recognises someone is online, and then shows the welcome message to the user and their avatar. I want to combine it with some variables and HTML to give them some useful links ect.

I can get the code to make a copy of the login box. I tested it with my mod username, and it shows the avatar and user name of the username I used to edit the site!

The code you supplied keeps no information of the user, and is simply a login box.

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

Back to top Go down

Re: Combining Login box with some variable tags.

Post by ribena_wrath on March 18th 2011, 2:29 pm

bump

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

Back to top Go down

Re: Combining Login box with some variable tags.

Post by Sanket on March 18th 2011, 6:33 pm

May I remind you that double/triple posting isn't tolerated unless separated by 24 hours (Use the edit button) Wink

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Re: Combining Login box with some variable tags.

Post by LGforum on March 19th 2011, 12:22 pm

Ah i get what you mean as i wanted the same.
I can't help you unfortunately but i'll help everyone else understand.

He wants, the log in box you provide, where when you log in, it changes to have your avatar and 'My Profile' link, but he also wants it to include other user CP links, like 'Preferences' and 'Friends' etc...

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Combining Login box with some variable tags.

Post by ribena_wrath on March 19th 2011, 7:44 pm

@LGforum wrote:Ah i get what you mean as i wanted the same.
I can't help you unfortunately but i'll help everyone else understand.

He wants, the log in box you provide, where when you log in, it changes to have your avatar and 'My Profile' link, but he also wants it to include other user CP links, like 'Preferences' and 'Friends' etc...

Yep! You truly are a saint Very Happy

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

Back to top Go down

Re: Combining Login box with some variable tags.

Post by LGforum on March 20th 2011, 2:12 am

Have you looked on er.. i think it was in 'Tricks and Tips' i dont know, i can't remember, but it basically has the code for a User CP widget?

If you haven't i'll try and find it for you, if you have... well then you know where it is lol.

It doesn't have the whole log in feature which you want, but its start on the other codes, and hopefully someone will provide a code for the log in thing here.


EDIT: okay here's the link: http://help.forumotion.com/t42100-control-panel-for-users

as i mentioned, it doesn't contain the log in feature but it may help.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Combining Login box with some variable tags.

Post by Darren1 on March 20th 2011, 2:19 am

Hi,

Also, for the login box/profile details (like here on the support forum) it's a widget Admin panel >> Modules > Widgets > Log in > 'Drag n drop' it and save, then have your control panel below it (link in above post)

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Combining Login box with some variable tags.

Post by ribena_wrath on March 22nd 2011, 3:00 am

@Darren1 wrote:Hi,

Also, for the login box/profile details (like here on the support forum) it's a widget Admin panel >> Modules > Widgets > Log in > 'Drag n drop' it and save, then have your control panel below it (link in above post)

I'm actually using this at the moment. It works fine, but I just wanted to streamline the whole thing really.

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

Back to top Go down

Re: Combining Login box with some variable tags.

Post by Darren1 on March 22nd 2011, 6:33 am

Ok, that sounds good Smile

Did you want something like our "Shortcuts" underneath the avatar/login box?

I don't know the code for the swapping login box & Avatar pending user status.

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Combining Login box with some variable tags.

Post by ribena_wrath on March 22nd 2011, 9:23 am

@Darren1 wrote:Ok, that sounds good Smile

Did you want something like our "Shortcuts" underneath the avatar/login box?

I don't know the code for the swapping login box & Avatar pending user status.

Well I want exactly what I have on my forum already, here

It's the 'control panel boxes on the top right. Obviously you won't be logged in, but I'm sure you'll recognise the coding.

Appreciate all the help btw guys.

ribena_wrath
Forumember

Male Posts : 66
Reputation : 0
Language : English

http://cb500club.co.uk

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