vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

Gohan 09-01-2002 06:24 PM

no into vbindex.php but other files..

i'll post soon

NTLDR 09-01-2002 06:26 PM

I would guess that its a change in the usergroup.php file.

Hopefully I will be able to test v2.1 on 2.2.7 before I release it.

Gohan 09-01-2002 06:34 PM

Addon usergroup permission for vBindex

usergroup.php and find:
PHP Code:

  makeyesnocode("Can view board","canview",1); 


Change to:
PHP Code:

  makeyesnocode("Can view home","canviewvbindex",1);
  
makeyesnocode("Can view forums","canview",1); 


Find:
PHP Code:

  $DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,showgroup,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm,canwhosonline,canwhosonlineip,cangetattachment)
    VALUES (NULL,'"
.addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$showgroup,$cansearch,$canemail,$canpostnew,$canmove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$caneditpost,$candeletepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpublicevent,$canpublicedit,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$canwhosonline,$canwhosonlineip,$cangetattachment)"); 


Chaneg to:
PHP Code:

  $DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,showgroup,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm,canwhosonline,canwhosonlineip,cangetattachment,canviewvbindex)
    VALUES (NULL,'"
.addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$showgroup,$cansearch,$canemail,$canpostnew,$canmove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$caneditpost,$candeletepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpublicevent,$canpublicedit,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$canwhosonline,$canwhosonlineip,$cangetattachment,$canviewvbindex)"); 


Find:
PHP Code:

  makeyesnocode("Can view board","canview",$usergroup[canview]); 


Change to:
PHP Code:

  makeyesnocode("Can view home","canviewvbindex",$usergroup[canviewvbindex]);
  
makeyesnocode("Can view forums","canview",$usergroup[canview]); 


Find:
PHP Code:

$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,canwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid"); 


Change to:
PHP Code:

$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,canwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip,cangetattachment=$cangetattachment,canviewvbindex=$canviewvbindex WHERE usergroupid=$usergroupid"); 

Good luck :)

Gohan 09-01-2002 06:39 PM

Quote:

Originally posted by NTLDR
I would guess that its a change in the usergroup.php file.
lolz.. you are rigth, m8.. btw i post already see above :)

standard a usergroup work fine but not for addon new usergroup than they get error message about permission..

I was said to my members what strange, i check awhole and fine working and few days later found i from MySQL server..

canviewvbindex = NULL therefor change i into usergroup.php :)

Buddha 09-01-2002 06:55 PM

thanks gohan.
changing my usergroup file now.
appreciate the help!

Gohan 09-01-2002 07:03 PM

Quote:

Originally posted by Buddha
thanks gohan.
changing my usergroup file now.
appreciate the help!

NP mate, i'm glad i could helped :D

SuB_ZeR0 09-01-2002 07:38 PM

I notice that the templates that vbindex created are in the database only, and there is no access to them from the admin cp ... is there away to make them appear in the admin cp so that I can modify them more easily .... instead of going to the database every single time? Thanks.

NTLDR 09-01-2002 07:55 PM

They are all in the admin cp allready, if you have installed the entire hack correctly they appear under vBindex Templates in the Admin CP.

SuB_ZeR0 09-02-2002 12:01 AM

oh yeah ... I didn't notice it before ... ;)

I have another question I want to ask ...about the poll option ... I created a poll forum and enter some test questions in a new thread ... but nothing show up in the vbindex page ...all it shows is the Vote button, and nothing else do I need to modify the forum in some way to make it work? Thanks

Also, can the forums (the news and the poll) be made invisible so that noone can post to it but the moderators? I check out the test forum and can't see those forums anywhere ..so I assume this could be done... :) ..

Gohan 09-02-2002 02:10 AM

Quote:

I have another question I want to ask ...about the poll option ... I created a poll forum and enter some test questions in a new thread ... but nothing show up in the vbindex page ...all it shows is the Vote button, and nothing else do I need to modify the forum in some way to make it work? Thanks
You did change $pollforum from your poll forum id?

example my poll forum id is 5

// polls forumid
$pollsforum=5;

Quote:


Also, can the forums (the news and the poll) be made invisible so that noone can post to it but the moderators? I check out the test forum and can't see those forums anywhere ..so I assume this could be done... :) ..

make forum permission for admins and mods only (new thread)
that mean ya?


All times are GMT. The time now is 04:12 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.02274 seconds
  • Memory Usage 1,792KB
  • 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
  • (8)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
  • (4)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