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)
-   -   Deluxe vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=108026)

xKillswitchx 11-28-2006 03:24 AM

Thanks Bill, got it working, and I use 3.6.4 :D Didn't need to modify any code for it to work, so I think its safe to assume it will work with 3.6.4 out of the box. I did, however, modify it to fit my site better and fixed some validation issues! :P

Hornstar 11-28-2006 11:18 AM

Quote:

Originally Posted by Billspaintball (Post 1126828)
Sorry, with family life at the moment I really just dont have any spare time. :(

I have another project sitting stalled from lack of time as it is :(

Thats fair enough, family should always come first. however if you ever do get a chance, please let me know, because anyone else wants to charge me an arm and a leg to get something that shouldnt cost that much IMO but I guess I will keep trying and hopefully get it myself eventually.

Thanks.

ocmca 12-05-2006 05:02 AM

Quote:

Originally Posted by delive (Post 1060963)
What is the code that evaluates the users additional usergroups. Is it possible to check and see if they are part of an additional usergroup?

What should i change
$vbulletin->userinfo['usergroupid'] == '5'
to?

another bump as I am a install-ee who could really use that little bit of info to simplify my life <3 thanks out for anyone that knows.

unit3029 12-05-2006 01:49 PM

Hi, thanks for this great hack :)

I have one small problem i am using vb 3.6.4 everything works fine except for dispay avatar.

If i add my own avatar through usercp it will diplay, but if i choose a forum avatar it wont :( any workaround for this ?

Billspaintball 12-07-2006 03:46 AM

Quote:

Originally Posted by unit3029 (Post 1132436)
If i add my own avatar through usercp it will diplay, but if i choose a forum avatar it wont :( any workaround for this ?

Sorry, It only seems to work with database held avatars.
Ive tried a few different things but havent been able to get around it. :(

Billspaintball 12-07-2006 04:01 AM

Quote:

Originally Posted by ocmca (Post 1132218)
another bump as I am a install-ee who could really use that little bit of info to simplify my life <3 thanks out for anyone that knows.

Try something like

PHP Code:

<?php 
if ($vbulletin->userinfo['usergroupid'is_member_of(n,n,n)) 
    { 
    echo 
"This is only visible to people in usergroups n,n,n";} 
    
?>

where n = the groups you want to check.

I havent tried this yet, it may or may not work.
Look here for more info https://vborg.vbsupport.ru/showthread.php?t=132024

erinys 12-11-2006 06:55 AM

You should release this as a 3.6 pluging so it shows up in the 3.6 listing :) its working perfectly fine with it anyway ;)

jedipro88 12-12-2006 06:19 AM

i've a big problem....my website has a template php (template.inc.php) that is included into index.php

Code:

include("template.inc.php");
top();
include("config.inc.php");
$mod = @$_GET['mod'];
$iniz = @$_GET['iniz'];

if ($iniz != "")
{.....

my template.inc.php has a function top that begin the html page

Code:

function top() {
chdir('/home/albertac/public_html/a-cube/forum');
require_once('/home/albertac/public_html/a-cube/forum/global.php');
include("config.inc.php");
  ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Against All Authority Multigaming Clan - www.a-cube.it -</title>
<link href="css.css" rel="stylesheet" type="text/css" />

then....if i put

Code:

<?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>

into index.php and i put the login script into template.php it give me line 150 error, if i put global.php into template.inc.php it give a function.php error....

i don't know what to do.....i know that it go because if i create a normal page login script go well!!!!

Aur-Phala.Com 12-15-2006 05:08 PM

hey any idea how i could make it show on whosonline page
so people who are using my page www.aur-phala.com/hotmail
will show up on whos online so i can see whos checking that page out

for version 3.6.x

Yukino_AE 12-19-2006 02:19 AM

ok, i have the cms postnuke, i want the login to appear in a postnuke block. i understand that the:

<?php
require_once('/path/to/your/login_inc.php');
?>

should be in the block, but it won't appear cuz i don't know how to tweak the rest of it. can anyone help me get this to work in a postnuke block?


All times are GMT. The time now is 09:05 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.01376 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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