vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   BB| Messenger 1.5 (https://vborg.vbsupport.ru/showthread.php?t=66989)

ranger2kxlt 07-09-2004 12:18 PM

I like Nex.... idea of only allowing to talk with admins or mods...gives the site a "live support" touch.

nexialys 07-09-2004 12:19 PM

Nuclion... it's working perfectly on a vB3... don't say it's not working just because your situation is not ok... yes the code may need some tweaks, but as C.Birch will not give more support, i suggest you wait and see if someone else have the same bug as you do... someone will have an answer.,

nexialys 07-09-2004 12:21 PM

btw Nuclion, did you filled this: $VAR["vbulletinlicenceid"] ?! the cookie will not work if you don't enter your license number in the proper file, because it is said so...

in sources/boardmodule/vb3.inc.php

...

M1th 07-09-2004 12:25 PM

The only problem I see with adding permissions to it is the fact that the index.php file is in the /messenger/ directory.

I tried to add a permission check by adding this to the bbmessenger/index.php file:


PHP Code:

 require_once('../global.php');
 
  
//permissions check
 
if (!($permissions['adminpermissions'] & ISMODERATOR))
 {
     
print_no_permission();
 } 

BUT, it wont work since the global.php file also needs an init.php but it's located in the includes/ dir.

So as you can see, we have a directory problem here.

nexialys 07-09-2004 12:29 PM

simple:
Code:

chdir('../');
require_once('global.php');

  //permissions check
if (!( $permissions['adminpermissions'] & ISMODERATOR))
{
    print_no_permission();
}

problem with this suggestion is that it will close the chat for non admin, so you can't chat with them. i may come with a suggestion later, where admins and mods are listed, but no other... users are not listed but can chat with shown persons...

M1th 07-09-2004 12:35 PM

True, but is there a way to end the "chdir('../');" call after the permission check? cuz it wil interfere with other calls later in the code.

NuclioN 07-09-2004 12:35 PM

Quote:

Originally Posted by nexialys
btw Nuclion, did you filled this: $VAR["vbulletinlicenceid"] ?! the cookie will not work if you don't enter your license number in the proper file, because it is said so...

in sources/boardmodule/vb3.inc.php

...

It appears twice in the file. Is this number that one on top of each php file or your actual vb licence number when you login in the vbulletin.com member area?

Polo 07-09-2004 12:39 PM

wow, this hack looks nice!

nexialys 07-09-2004 12:51 PM

Quote:

Originally Posted by NuclioN
It appears twice in the file. Is this number that one on top of each php file or your actual vb licence number when you login in the vbulletin.com member area?

no, it's the number of your license... usually is like: L000000. you see it on top of all your files, like:
Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.0.3 - Licence Number L000000

btw, the autodetect may work this out, but sometimes it's not working great... did you hacked your board in some way ?!

NuclioN 07-09-2004 01:01 PM

It's a clean installed vb 303 with only the vbadvanced portal. After entering that code the problem remains. :(


All times are GMT. The time now is 05:51 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.01385 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)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