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)

MaSs ZeRo 03-10-2008 11:32 AM

Hey,

The script seems to be working just fine, although I am having a problem with it. Apperantly a session string is needed in the URL and if you remove that, you're not logged in anymore. Problem is, whenever someone clicks an internal link on my site, the session string has to go, since the links lead to index.php?example=example and I can't change that into anything else, since my site wouldn't function properly anymore if I did. Is there any solution to this?

Thanks.

Kalina 03-30-2008 07:05 AM

I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.

I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.

I made a test page and it works, so it's not a subdomain issue. http://blogfeeds.webtalkforums.com/test.php

I've tried placing the following code at the top of wp-blog-header.php but it causes the blog to not work, it simply displays a "not found" error:
Code:

$curdir = getcwd ();
chdir('/home/myname/public_html');
require_once('/home/myname/public_html/global.php');
chdir ($curdir);

It appears to clash with the code already in wp-blog-header.php, here's the code in it's entirety.

Code:

<?php
$curdir = getcwd ();
chdir('/home/myname/public_html');
require_once('/home/myname/public_html/global.php');
chdir ($curdir);
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
        if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
        else $path = 'wp-admin/';
        require_once( dirname(__FILE__) . '/wp-includes/classes.php');
        require_once( dirname(__FILE__) . '/wp-includes/functions.php');
        require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
        wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
}

$wp_did_header = true;

require_once( dirname(__FILE__) . '/wp-config.php');

wp();
gzip_compression();

require_once(ABSPATH . WPINC . '/template-loader.php');

endif;
?>


SVTCobraLTD 03-30-2008 12:51 PM

So does anyone successfully have this running on 3.6.8? Seems like a lot of people are having problems with this.

SVT

Triky 04-04-2008 11:36 AM

I would like to use this, but it has a lot of problems.

maitaijim 04-11-2008 09:38 PM

Quote:

Originally Posted by Kalina (Post 1478148)
I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.

I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.

I made a test page and it works, so it's not a subdomain issue. http://blogfeeds.webtalkforums.com/test.php

I've tried placing the following code at the top of wp-blog-header.php but it causes the blog to not work, it simply displays a "not found" error:

It appears to clash with the code already in wp-blog-header.php, here's the code in it's entirety.

I would love to know how you solved this.
Thanks,
Jim

lawina 04-14-2008 08:43 PM

Anyone knows if its possible to show a POLL outside the forum using this mod ?

Medina 04-24-2008 07:04 AM

Is it working with vb 3.6.8?

Billspaintball 04-27-2008 06:04 AM

Quote:

Originally Posted by HKothari (Post 1446132)
Hi, I used this hack, and I'm having a lot of trouble, I set it up, just like the instructions said to, my code for including the global.php was:
PHP Code:

<?php    
$curdir 
getcwd();
chdir('/usr/local/pem/vhosts/133519/webspace/httpdocs/forums/');
require_once(
'/usr/local/pem/vhosts/133519/webspace/httpdocs/forums/global.php');
chdir($curdir);
?>

The first problem is that when you go to the page, you get this error:
Code:

Unable to add cookies, header already sent.
Is there a way to fix this? Thanks.

That would be because you have whitespace or something before the code.
It MUST be the first thing on the page.
Even a single space will cause this error.
See item one in the troubleshooting guide.


Quote:

Originally Posted by Cajun (Post 1447001)
Anyone know if this mod works with vb 3.7

It did when I tested it on beta 1.
There is s dedicated version for 3.7 in the 3.7 mods section.

Quote:

Originally Posted by Kalina (Post 1478148)
I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.

I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.

This mod code and a couple of others such as vB External and Wordpress have conflicts.
Perhaps they user the same variable names or something similar.
As I don't use word press I have not been able to check on a cause or solution.

Quote:

Originally Posted by SVTCobraLTD (Post 1478276)
So does anyone successfully have this running on 3.6.8? Seems like a lot of people are having problems with this.

SVT

It should run on 3.6.8 (it still works with 3.7) but I haven't tested it.

Medina 04-28-2008 09:49 AM

Can you also let member who`re logged in, posting on a non vb page?

DocOf Dan 06-02-2008 02:00 PM

I had a version of this working succesfully on my site. However, I recently had to move hosting company and now I'm having some problems with this mod. Even when I'm logged in at the forum, the page on my site doesn't recognise that, and treats me as being unregistered/not logged in.

I haven't changed the code in any way so I presume I need to tweak it (the code) or the vbulletin settings to get it to work with whatever settings on this new server (could it be a problem related to the move from PHP4 to PHP5?), but I don't know where to begin!


All times are GMT. The time now is 03:37 AM.

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.01870 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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