vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Simple login page/box/code for external pages (https://vborg.vbsupport.ru/showthread.php?t=174073)

gusfune 03-24-2008 10:00 PM

Simple login page/box/code for external pages
 
Ever wondered how you could add your own login box or fully customized login page outside your VB forums?
Ever had problems with other solutions that require a lot of files, PHP coding that in the end need a lot of tweaks or can give you a big headache? :mad:

Well, the problem is now solved. :D
100% Reliable
100% Bug Free*
No Uneeded codes running

No PHP knowledge required



*if you use the code properly

By just using the same piece of code used in every Vbulletin pages I've managed to create login pages, boxes in any page I wanted outside my forums. Works 100% and by just following the instructions (2 simple steps) you'll be able to add and customize your login page wherever you want.

There is a screenshot of an example page built with this code that it's fully customized and logins to the forums on another domain. Just an example of what you can do.

The ZIP file contain the code instructions and 2 HTML pages with the code inside.
There are two versions of the code: With or Without "Remember me?" checkbox.

Hope it helps.
If you've found this useful, had problems with other methods of external login, etc, consider donating a small amount, I'd appreciate :)

gusfune 03-24-2008 11:03 PM

To-do list (what to expect in future releases):
Currently the login box when you log will redirect you to your main boards page, if you go back to where the login page, you'll see the login box again. I plan soon to upgrade the code and show a logged in stat.

Can you put a register button?
You can do it yourself by just adding the following line on the code wherever you want the register line to be:
Code:

<a href="pathtoyourforums/register.php">Not a member? Register now</a>

dilbert 03-24-2008 11:49 PM

Interesting.
My site is primarily cold fusion, with a vB forum.
Can i use this in a CF page?

gusfune 03-25-2008 02:21 AM

Quote:

Originally Posted by dilbert (Post 1473734)
Interesting.
My site is primarily cold fusion, with a vB forum.
Can i use this in a CF page?

I don't have experience with cold fusion, but being this code only HTML tags, I don't think you'll have problems implemnenting it on your page.

NeuroLancer 03-25-2008 03:59 AM

Quite a bit different to the other mod like this, in that it doesnt need to connect to your site, it just posts the values. It's a bit easier to use in that sense, and as described this will work on a html page, doesnt have to be php.

Nice one. Works good.

jeddah_eyes 03-28-2008 08:54 PM

i faced a problem with it

after logging in the code return me to another addres end with /path

for example

www.dm3ty.net/path

this addrese appears after logging in

note i change the path in the page as http://www.dm3ty.net/vb

TF-TM 03-29-2008 04:03 PM

Very Very Thanks

smooth-c 03-29-2008 04:18 PM

wow! thank you soo much!

smooth-c 03-30-2008 03:43 PM

I know you're probably working on other things aswell, but do you think you could ad the ability to display a persons username? so like - say they log in - once they do - it says their username at the top with thier avatar next to it? That'd be absolutely awesome!

gusfune 03-30-2008 07:08 PM

Quote:

Originally Posted by jeddah_eyes (Post 1477129)
i faced a problem with it

after logging in the code return me to another addres end with /path

for example

www.dm3ty.net/path

this addrese appears after logging in

note i change the path in the page as http://www.dm3ty.net/vb

You probably haven't changed all the needed places to make it work on your webpage, make sure (being the code directly on the .net page, in your case, it is dm3ty.net) the code is (using the 'remember me' checkbox code):

*the places to modify the code are highlighted


Code:

<form action="vb/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <input type="hidden" name="do" value="login" />
        <input type="hidden" name="url" value="/vb" />
        <input type="hidden" name="vb_login_md5password" />
        <input type="hidden" name="vb_login_md5password_utf" />
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label>
        <label>Password:<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label>
      <label>Remember me?<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" /></label>
        <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />
</form>

Quote:

Originally Posted by smooth-c (Post 1478401)
I know you're probably working on other things aswell, but do you think you could ad the ability to display a persons username? so like - say they log in - once they do - it says their username at the top with thier avatar next to it? That'd be absolutely awesome!

This would require php coding, and the objective of this addon is avoid at any costs using php. I could work on a bigger release of this code (with simple php calls), but this isn't something I'm planning to do too soon.


All times are GMT. The time now is 01:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01291 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete