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)

Dr.osamA 11-22-2009 05:43 AM

i ll try it

thanxxx
________
Lamborghini Jalpa

djr 11-29-2009 11:40 PM

Hiya Bill,

Do you think this could work as a wrapper in WordPress, where we use your authentication system to require people to authenticate against vB before they're allowed to post comments?

I can easily extend WordPress' comment section and would like to do something like (pseudo code obviously):
Code:

<?php
if (!not_vb_authenticated) {
echo 'Please login with your forum username and password first';
} else {
comments_template('', true);
?>

Would it display the forum's username (if echoed correctly) or do we need the deluxe version for that? (which sounds like a better solution anyway, since I'd like to use the avatars as well). I don't care so much about all the other vB stuff, but would love to have this as a simple vB powered authentication system inside WordPress.

bluerob 11-30-2009 12:49 AM

Works on a standalone file, but won't work properly on my wordpress site.

The login boxes and what not appear, but after I am directed to the login.php file I am sent back to my wordpress page with the login boxes still showing.

I tried all the steps with the cookie settings and login.php file.

Moviecrematorium.com is my site. Any help would be appreciated.


Great plugin btw ;)

BlackJacket 12-05-2009 02:50 AM

Quote:

Originally Posted by NittoMOD (Post 1918321)
Im getting this error -

Code:

Unable to add cookies, header already sent.
File: /home/content/v/e/n/mydir/html/mywebsite.com/staging/index.php
Line: 2
 Community

My file paths are correct and there is no white space. Any idea's?

Any help with this?

David Regimbal 12-06-2009 11:49 PM

Quote:

Originally Posted by NittoMOD (Post 1925561)
Any help with this?

I too have the same issue as you =[

My Fix:

well, I'm using this in the root of the site for a custom html page. I feel like a dumbass because i looked at the source and it had "<html>" twice. So my "custom.php" file that I made all I included in it was:

PHP Code:

<?php
$curdir 
getcwd ();
chdir('/home/bstackn/public_html/vbtest');
require_once(
'global.php');
chdir ($curdir);
?>
<?php
   
require_once('login_inc.php');
?>

That seemed to work for me and fixed my issue. Hope this helps someone else.

Breakpoint 01-03-2010 08:07 PM

You should make yur file XHTML compliant, it causes over 100 errors when trying to validate at W3C Schools

MOGmartin 01-04-2010 07:15 AM

Quote:

Originally Posted by djr (Post 1922809)
Hiya Bill,

Do you think this could work as a wrapper in WordPress, where we use your authentication system to require people to authenticate against vB before they're allowed to post comments?

I can easily extend WordPress' comment section and would like to do something like (pseudo code obviously):
Code:

<?php
if (!not_vb_authenticated) {
echo 'Please login with your forum username and password first';
} else {
comments_template('', true);
?>

Would it display the forum's username (if echoed correctly) or do we need the deluxe version for that? (which sounds like a better solution anyway, since I'd like to use the avatars as well). I don't care so much about all the other vB stuff, but would love to have this as a simple vB powered authentication system inside WordPress.

Im interested in incorporating this on WP as well, comments would be handy but not totally needed, but what I am looking to do is use the wordpress usergroup permission settings to restrict access to certain articles, has anyone tried this yet?

thanks!

MOGmartin

TheJordan 01-05-2010 01:48 PM

Quote:

Originally Posted by NittoMOD (Post 1918321)
Im getting this error -

Code:

Unable to add cookies, header already sent.
File: /home/content/v/e/n/mydir/html/mywebsite.com/staging/index.php
Line: 2
 Community

My file paths are correct and there is no white space. Any idea's?

Quote:

Originally Posted by NittoMOD (Post 1925561)
Any help with this?

Quote:

Originally Posted by David Regimbal (Post 1926562)
I too have the same issue as you =[

My Fix:

well, I'm using this in the root of the site for a custom html page. I feel like a dumbass because i looked at the source and it had "<html>" twice. So my "custom.php" file that I made all I included in it was:

PHP Code:

<?php
$curdir 
getcwd ();
chdir('/home/bstackn/public_html/vbtest');
require_once(
'global.php');
chdir ($curdir);
?>
<?php
   
require_once('login_inc.php');
?>

That seemed to work for me and fixed my issue. Hope this helps someone else.

From the included instructions file:
If you get a message saying headers already sent or cookies already sent, chances are that there is something, even just a space before the 4 lines of code in part 1. Edit this and ensure that there are no spaces before it.

Cface 01-07-2010 06:44 AM

This is pretty damn useful. Tagged for later.
I'm guessing once the Deluxe version comes out we gotta pay? :P
It'd be nice if it had option to show newest threads, users postcount, etc.

Billspaintball 01-08-2010 12:28 PM

Quote:

Originally Posted by Cface (Post 1949357)
I'm guessing once the Deluxe version comes out we gotta pay? :P

No it will be free, because otherwise that would mean that I whould have to provide an acceptable level of support, and currently I dont have time to do that.


All times are GMT. The time now is 09:58 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.01203 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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