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 vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=132996)

ShadyB 05-22-2007 02:33 PM

One more thing... How can I get it to say something like Welcome Back "username" when its is in the

PHP Code:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
echo
"

Tag? It doesnt seem to work for me..

Also, when designing it in Dreamweaver, everything disappears from the design view.. Is that because it is restricted to a usergroup and Dreamweaver cannot access it?

ShadyB 05-22-2007 03:54 PM

Is there a way to get users to redirect to a different page when they login?
E.g if they logged in on your home page, it would redirect them to the members area home page?

ShadyB 05-22-2007 08:15 PM

No probs done it myself =]

Billspaintball 05-22-2007 11:19 PM

Quote:

Originally Posted by ShadyB (Post 1252706)
One more thing... How can I get it to say something like Welcome Back "username" when its is in the

PHP Code:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
echo
"

Tag? It doesnt seem to work for me..

Also, when designing it in Dreamweaver, everything disappears from the design view.. Is that because it is restricted to a usergroup and Dreamweaver cannot access it?

PHP Code:

if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
echo 
"Welcome Back, <b>";
echo 
$vbulletin->userinfo['username'];
echo 
" !</b><br />";


As for Dreamweaver, I think you will need to use it in code view for this part.

ShadyB 05-23-2007 07:33 PM

Thankyou so much Bill.. Excellent hack, and awesome support!

Osterling 05-25-2007 05:45 PM

Is there a way I can plug a user name in a if statement to see if that user is online?

gforce75 06-02-2007 12:29 AM

Thanks for the hack. I'll try this out on my front network page when it's completed.

Billspaintball 06-04-2007 01:32 PM

Quote:

Originally Posted by Osterling (Post 1254581)
Is there a way I can plug a user name in a if statement to see if that user is online?

Not as it stands at the moment.
You would need to include vBs useronline system.
I havent looked at that, so Im not sure whats involved.

sidbradberry 06-14-2007 04:16 PM

Hi does anyone know how to remove the login box from the page once the user has logged in?

i have the <?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>

at the very top of the page, html code underneath and then the <?php
require_once('/path/to/your/login_inc.php');
?>
below that.

When i use conditionals to display content to users who are logged in it works fine but the login box still remains at the top, is this suppose to happen?
Sorry i'm new to all this.

machethier 06-18-2007 11:43 PM

anyone can tell if this mod work under vbulletin 3.6.7PL? because I got a blank page everytime I try to load my php page. I delete the code and everything is working again!


All times are GMT. The time now is 04:01 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.01292 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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