vb.org Archive

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

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

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:10 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>
This mod is no longer supported. I'll be only working further on the 3.7 version of it that can be found here. Thanks.

Awjvail 03-25-2008 01:22 AM

What does it show after you've logged in?

gusfune 03-25-2008 02:20 AM

Quote:

Originally Posted by Awjvail (Post 1473772)
What does it show after you've logged in?

It doesn't show any message, but it redirects automatically to your boards.
The purpose it's a login box that will take you to the boards.
Later I might work on an update that will show the logged in stats.

Defkalion 03-25-2008 08:54 AM

This is a very nice idea. In a future release can you also put a "not a member? register here" link for those who are not registered in the vb yet? :)

amirlol 03-25-2008 09:33 AM

thanks a lot

gusfune 03-25-2008 06:31 PM

Quote:

Originally Posted by Defkalion (Post 1473998)
This is a very nice idea. In a future release can you also put a "not a member? register here" link for those who are not registered in the vb yet? :)

Yes, but you can easily do it by adding a link to your forums redirect page, just try something like:

Code:

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

Defkalion 03-25-2008 08:22 PM

LOL so silly of me, sorry about that :)

Thanks. I'm gonna need this in the future.

zmmmzz 03-26-2008 04:10 PM

thanks for this, it is really nice


All times are GMT. The time now is 02:30 PM.

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.01092 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete