vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=228089)

RDx321 03-09-2010 01:29 PM

Quick question, when a user is not logged in, I get the default vbulletin forum login page instead of w/e php echo i set. How can i fix this?

reteep 04-01-2010 06:36 PM

I'm trying to get this working on www.mynintendo.de. It works if I put it on a testpage, outside of wordpress. However, whenever I try to use it within wordpress it's not working. The Login process works, but it's not showing me as logged in.

I think it's related to the header code, I got this in header.php in wordpress:
Code:

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

All paths are correct. Does anyone have an idea why this is not working with wordpress? Did anyone have success with wordpress so far?

Thanks a lot.

Gursimran 04-05-2010 12:24 PM

thanks very much.... i needed it badly!

Gursimran 04-08-2010 04:03 PM

not working with wordpress.
i am logged in my forums but it is not showing
Welcome Username.... showing login forum

please help

steveneff 04-20-2010 08:13 AM

Thanks for this updated mod.

Is it possible to have the text input fields the same as on the forum login, with "user name" and "password" disappearing when you click in the text input?

pertanyaan 05-11-2010 06:09 AM

how to integrate with wordpress ??

pertanyaan 05-11-2010 06:29 AM

OK, found solution here, its working

Centrix 06-25-2010 08:15 AM

Thanks for this mod! I love it. I can make pages on my main site that requires users to be logged in, and even better: the coding is really easy to understand, no 3490859345 lines of coding that confuses the hell outa me.

Works perfectly on my site ^^

Quote:

Originally Posted by Cface (Post 1975367)
I thought i'd throw out there that i'm getting the old "no such file or directory" error for
PHP Code:

<?php
$curdir 
getcwd ();
chdir('/forum');
require_once(
'/forum/global.php');
chdir ($curdir);
?>
// also tried
require_once('/global.php');

which does exist... I've also tried with full url
PHP Code:

Warningchdir() [function.chdir]: No such file or directory (errno 2in /home/wonderna/public_html/index.php  on line 3

Warning
: require_once(/global.php) [function.require-once]: failed to open streamNo such file or directory in /home/wonderna/public_html/index.php on line 4

Fatal error
: require_once() [function.require]: Failed opening required '/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/wonderna/public_html/index.php on line 4 

EDIT: nevermind got it fixed, i'm such a dumbass :P

I got the same thing first too, but you need to put the full path to your forum, not just /forums/.

So /home/username/public_html/forums/ for an example. It will work

Gero50 06-27-2010 10:39 PM

Tagged for use latter.

bugsie 07-07-2010 12:59 AM

thanks very much, but is it possible to add the facebook connect button too?


All times are GMT. The time now is 10:52 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.01024 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (2)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