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)

johan204 05-15-2008 06:10 AM

Is it possible to secure pages that are fysical on a different server?

Billspaintball 05-15-2008 12:17 PM

Quote:

Originally Posted by Ryan Ashbrook (Post 1503004)
I got file based avatars to work.


Individual users may need to tweak the avatar paths based on their settings, however this will probably work for most.


Nice :)

I had not quite worked that one out.

Will update the next version with this fix.

Billspaintball 05-15-2008 12:19 PM

Quote:

Originally Posted by ramsayeg (Post 1513021)
I have using different domains for the site/forums, will it cause me problems to log in in the forums, if I enter a custom Cookie Domain of my website's domain?

Most likely.
See the troubleshooting guide - 2nd post in this thread, for things to try, that may help.

Billspaintball 05-15-2008 12:19 PM

Quote:

Originally Posted by steveheinsch (Post 1517562)
How does this work with vb 3.7 GOLD? I assume fine, but just wanted to check.

Sure does :)

davide101 05-16-2008 04:37 PM

First, I adore this mod and have been using it for years to control advertising and have universal site banner that displays avatars, pms, and other goodies to logged in members.

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).

Is this possible? I've searched extensively on multiple occasions but have never come across code that does this. If not, are there other mods, code tidbits, or pointers that could get me going in the right direction? I have a feeling that putting this type of information on the site would increase our stickiness for search engine traffic.

crippon 06-20-2008 06:06 AM

I get a error Fatal error: Call to a member function query_first_slave() on a non-object in /home/wonderfu/public_html/animesuteki.com/forum/includes/functions.php on line 1270
This is on wordpress header.php

fariborz 08-12-2008 09:07 PM

This error for what?
Fatal error: Call to a member function query_first_slave() on a non-object in /home/*Censored*/public_html/forum/includes/functions.php on line 1928
Yes, I'm use wordpress too

snunhuck 08-25-2008 10:06 PM

Fatal error: Call to a member function query_read() on a non-object in /home/services/public_html/login_inc.php on line 151

I get that :S

nic_net 09-10-2008 08:55 AM

Installed. Thanks!

nic_net 09-10-2008 09:20 AM

Is possible to show the number user and guest online?

Thanks

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.

ViciousCode 11-29-2008 12:32 AM

i get the same error

Code:

Fatal error: Call to a member function query_read() on a non-object in /home/services/public_html/login_inc.php on line 151

ptiteuf 12-17-2008 10:27 AM

Hello,
grieve for English but it was translated with google, voila I have a vBulletin license and your script "vB Deluxe User login and access control on non vB pages" because I'm interested me was that the root of my site there I have a system that manages the login. could you tell me if your latest version works for vBulletin 3.7.4 pl1. and say the modifications because I'm new to php.

Thank you in advance

reimic 01-03-2009 04:00 PM

I always get

Quote:

Fatal error: Call to a member function query_read() on a non-object in /var/www/******/blog/login_inc.php on line 152
If someone could fix that for me, i am willing to pay! Please consider me! apfelphone @mac.com

Vaupell 01-08-2009 11:00 PM

just testing and helping a guy out, cause im a asp guy..
but i got it working on a test page..

http://www.evisystems.org/test.php

running on a win2k box with php 5 something..

dont use all those ///// on a windows server.
apache perhaps,, baah who uses that.. (Just kidding. ) :p

Code:

<?php
$curdir = getcwd ();
chdir('yourforumfolder');
require_once('yourforumfolder/global.php');
chdir ($curdir);
?>

edit yourfolder url.

Howewer its only really usefull when u add your profile img and such..
missing a few pointers in the readme, but it works.. Nice job..

Works on 3.8 gold - MArked as installed cause i love the mod!

Wstar 01-19-2009 03:55 PM

I am having trouble with this. I have added the following code

Code:

$curdir = getcwd ();
chdir('/nfs/c02/h04/mnt/40498/domains/dev.scotthermanfitness.com/html/forum');
require_once('/nfs/c02/h04/mnt/40498/domains/dev.scotthermanfitness.com/html/forum/global.php');
chdir ($curdir);

When I load the page up, it goes right to the forum page telling me im not logged in. Its like its forwarding me to the forum.

Any ideas?

AzzX 01-23-2009 07:12 AM

Quote:

Originally Posted by ViciousCode (Post 1674862)
i get the same error

Code:

Fatal error: Call to a member function query_read() on a non-object in /home/services/public_html/login_inc.php on line 151

Replace $db with $vbulletin->db on line 151 and 152

BlackJacket 01-28-2009 01:43 AM

I need help. I have been at this for hours and i still have not figured it out.

I want this page to only be displayed to moderators and administrators. But its not working when i try to input ANY of the php scripts included with this hack.

PLEASE HELP! :D:D

AzzX 01-29-2009 12:05 PM

Edit : It Does seem to work with Vb 3.8

Aresetyr 03-16-2009 01:56 PM

Is there any way to get this working under joomla 1.5? I am sitting here, trying to get it work with the jumi component, but won't really work :(

ps: with vb 3.8!

Davey-UK 03-24-2009 06:46 PM

This has worked fantastically for me for months now, but am now trying to add newest members etc via another mod called vBexternal.

Everything works fin apart from when i have both scripts on the same page, the login form shows up on my page instead of the welcome message, even though i am logged in on the forum page.

If i remove the vBexternal include from the page, it all works fine..

I have to add
Code:

require_once('./vBExternal.php');
to the top of the page, and wondered if you can only use "include_once" a certain number of times in one page, but i am thinking its more likely to be a set cookie problem

Any ideas please?

steveheinsch 03-31-2009 11:48 PM

Hi Bill, thanks for the great hack. Ive managed to get vb working from within the codeigniter framework, so the possibilities are endless :)

Just thought I'd throw a little simpler code for you to get threadcount/postcount.

This:
PHP Code:

$getstats $db->query_read('SELECT threadcount, replycount FROM ' TABLE_PREFIX 'forum');
while (
$forum $db->fetch_array($getstats))
{
    
$totthreads += $forum['threadcount'];
    
$totposts += $forum['replycount'];
}
$totthreads vb_number_format($totthreads);
$totposts vb_number_format($totposts); 

Can be replaced with:
PHP Code:

$getstats $db->query_read('SELECT SUM(replycount) AS replies, SUM(threadcount) as threads FROM ' TABLE_PREFIX 'forum');
$forum $db->fetch_array($getstats);
$totthreads vb_number_format($forum['threads']);
$totposts vb_number_format($forum['replies']); 

and let mysql do the calculations instead of php.

larabagguley 06-17-2009 10:28 AM

Hi, is it possible to add the forgotten password link in here?

Many thanks,
Lara

nicooo 07-11-2009 06:43 AM

Hi, is there a way to show also how total members are online like in the picture example?
Thanks

Davey-UK 07-11-2009 08:28 AM

Quote:

Originally Posted by nicooo (Post 1846804)
Hi, is there a way to show also how total members are online like in the picture example?
Thanks

That just shows the total forum members, not who is actually online.

nicooo 07-13-2009 02:49 AM

but online the number, like in the picture

NinjaKiwi 04-05-2011 08:42 PM

Hi Bill,
Thx so much for your work on this.
Just wondering if there is any chance you will be making this compatible with VB4?
I've tried to integrate your script with our VB4 forum:
http://ninjakiwi.com/index-login-test.php
It almost works, but is not pulling the user info.
Cheers

wraggster 06-06-2011 08:44 PM

just like to say this works fine with the latest VB3 :)


All times are GMT. The time now is 06:59 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.01273 seconds
  • Memory Usage 1,836KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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