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

arakasi 09-13-2008 05:16 PM

Hm why "if ($vbulletin->userinfo['usergroupid'] == '6,2' )" doesn't work?

jonah1892 09-24-2008 12:38 PM

was wondering is it possible to get this to automatically redirect the user to the forums once they have logged in on this page

been trying alsorts but can not figure it out at all

lsatblu 10-16-2008 08:45 PM

Is anyone able to tell me if they are using with script with a cms? I wanted to use it with Expression Engine but this script and that script don't get along.

Can anyone point me in the direction of a good cms that works with this login script?

Thanks.

steveneff 10-17-2008 01:46 PM

Great mod, my fav so far.

I have this almost working with wordpress, the only problem being when it redirects back to wordpress it doesn't seem to check login status. Works great on my other pages.

Quote:

Originally Posted by davide101 (Post 1521775)
I would be a ecstatic if I can find a way to show users browsing non-vb pages in Who's Online. I don't care if it says "Unknown Location", although ideally I will write a plugin that says "Browsing the rest of the site" or something generic. Then I can add a blurb to my universal header that says "x people browsing the site, x chatting live" (updated via cron to reduce load, of course).

Try this, It works but shows all pages that are named index.php as "Viewing Index" in the forum root. This may be a vb thing, if anyone has a fix it would be perfect.

PHP Code:

<?php
$curdir 
getcwd ();
chdir('/path/to/forums');
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once(
'/path/to/forums/global.php');
chdir ($curdir);
exec_shut_down();
?>


psychotica 10-28-2008 04:40 AM

For some reason, after trying the troubleshooting steps, the mod still shows that I'm logged in even if I'm not and it won't log me in through the php page on the website even after I've logged out on the forums.

coinwash 11-05-2008 01:27 AM

Fixed

steveneff 11-12-2008 06:14 PM

I haven't fully tested this and I'm no vbulletin expert but so far it works.

In the login box code find
PHP Code:

if ($vbulletin->userinfo['userid']!=0) { 

change to
PHP Code:

global $vbulletin;
if (
$vbulletin->userinfo['userid']!=0) { 


It works the same for the other code snippets like no ads for members below.

PHP Code:

<?php
global $vbulletin;
if (
$vbulletin->userinfo['userid'] <1) {
?>
your ad code here
<?php
}
?>

note: I have Wordpress/Vbulletin Bridge installed so global.php is already called. if you dont and this doesn't work for you try adding the requre once code to the top of the wordpress index.php

AzzX 11-22-2008 10:56 AM

Thanks for that steveneff.

I might try making a widget for this.

MadsK 11-27-2008 07:40 PM

This might be a stupid question, but where do i put all this code in this file?

FanJournal 11-27-2008 08:36 PM

This is a great mod I've been looking for a while now. I'll be sure to tell you how smoothly I configure it.


All times are GMT. The time now is 05:43 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.01306 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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