vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=100992)

Billspaintball 02-05-2006 06:41 PM

Quote:

Originally Posted by tuanluu
Is it possible for us to hook 4image using this hack?

Not really.
You would need to hack 4image quite extensively.

tuanluu 02-05-2006 07:00 PM

okay thanks

Lynk Former 02-06-2006 06:21 PM

I have another mod installed (vBExternal 1.6) and keep getting

Quote:

Fatal error: Cannot redeclare class vbulletinhook in /forums/includes/class_hook.php on line 29
Why do I get this and how can I make these two mods coexist on the same page?


EDIT: Nevermind, I've figured it out :p

Barteken 02-08-2006 02:13 PM

hmm i'm just getting nothing :s
I used the path given by the path file...
uploaded the login_inc file + edited

This is the beginning of my code (till where i edited)
Quote:

<?php
chdir('/customers/swalus-productions.be/swalus-productions.be/httpd.www');
require_once('/customers/swalus-productions.be/swalus-productions.be/httpd.www/global.php');
?>
<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "Have stuff for here";
} else {
echo "You do not have permission for this page"; }

?>
<?php
$v="2 r16 17.03.2005";
include('include/version.inc.php');

require_once( 'include/Config.class.php');
<?php
require_once('/customers/swalus-productions.be/swalus-productions.be/httpd.www/login_inc.php');
?>
$globalpath='';
$config='config.ini';
I want to make sure that only logged in people can see the page...

Grtz

Billspaintball 02-08-2006 10:25 PM

Weird looking path...

but one thing I noticed is that your missing a closing tag which may or may not be the problem.

Try changing
PHP Code:

<?php
$v
="2 r16 17.03.2005";
include(
'include/version.inc.php');

require_once( 
'include/Config.class.php');
<?
php
require_once('/customers/swalus-productions.be/swalus-productions.be/httpd.www/login_inc.php');
?>

to

PHP Code:

<?php
$v
="2 r16 17.03.2005";
include(
'include/version.inc.php');

require_once( 
'include/Config.class.php');
?>

<?php
require_once('/customers/swalus-productions.be/swalus-productions.be/httpd.www/login_inc.php');
?>


Realm of Horror Comics 02-09-2006 05:49 AM

Is it possible to add the user's avatar yet?
Does anyone know how to do this?

eByte 02-09-2006 08:43 AM

Quote:

Originally Posted by Lynk Former
I have another mod installed (vBExternal 1.6) and keep getting



Why do I get this and how can I make these two mods coexist on the same page?


EDIT: Nevermind, I've figured it out :p

Hey, I'm using vBExternal also and getting the same error. What did you do to fix the problem? Thanks.

Barteken 02-09-2006 02:43 PM

Quote:

Originally Posted by Billspaintball
Weird looking path...

but one thing I noticed is that your missing a closing tag which may or may not be the problem.

Try changing
PHP Code:

<?php
$v
="2 r16 17.03.2005";
include(
'include/version.inc.php');

require_once( 
'include/Config.class.php');
<?
php
require_once('/customers/swalus-productions.be/swalus-productions.be/httpd.www/login_inc.php');
?>

to

PHP Code:

<?php
$v
="2 r16 17.03.2005";
include(
'include/version.inc.php');

require_once( 
'include/Config.class.php');
?>

<?php
require_once('/customers/swalus-productions.be/swalus-productions.be/httpd.www/login_inc.php');
?>


Ok this helped page is now showing up but doesn't load (it's an imagevue page btw) second problem is that if i login i'm just redirected to the vbb page which would be good if someone that isn't logged in won't be able to view the page at all.

Thx in advance
Barteken

Billspaintball 02-09-2006 10:24 PM

Quote:

Originally Posted by Barteken
Ok this helped page is now showing up but doesn't load (it's an imagevue page btw) second problem is that if i login i'm just redirected to the vbb page which would be good if someone that isn't logged in won't be able to view the page at all.

Thx in advance
Barteken

To rule out anything else on the page conflicting, do the test page listed right at the end of the troubleshooting section.
See https://vborg.vbsupport.ru/showpost....98&postcount=2

Billspaintball 02-09-2006 10:26 PM

Quote:

Originally Posted by Realm of Horror Comics
Is it possible to add the user's avatar yet?
Does anyone know how to do this?

Not possible with this simple version.

If I havent released the full version with avatars and the rest by this wednesday, PM me a reminder.


All times are GMT. The time now is 10:46 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.01405 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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