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?

SuB_ZeR0 09-02-2002 03:31 AM

yup ... I did both ... I changed the forumid to match my poll forum and it is set to private ...so only mods and admins can see it .. :) .. but I still have this problem

NTLDR 09-02-2002 10:33 AM

Quote:

Originally posted by SuB_ZeR0
...all it shows is the Vote button, and nothing else do I need to modify the forum in some way to make it work?
You need to update the home_poll template as has been said many many times now.

Quote:

I check out the test forum and can't see those forums anywhere ..so I assume this could be done... :)
Both forums are there, neither of them are private or invisible.

Cinderous 09-02-2002 07:30 PM

WooT w00t!
Nice hack! <install>
Is there a way I can stick the get newest member, total posts, total threads, ect in it?
Any support would be nice

SuB_ZeR0 09-02-2002 08:13 PM

Thanks .... it working now ... ;)

I think that the direction to replace the home_poll is missing from the instruction, that's why I ran into the problem ... Thanks again!

BluSmurf 09-02-2002 08:25 PM

I cant seem to go into my Modify templates page in my admin control panel

I got the following errors
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/virtual/site5/fst/var/www/html/forums/admin/template.php on line 362

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/virtual/site5/fst/var/www/html/forums/admin/template.php on line 368

NTLDR 09-02-2002 08:35 PM

Please READ the thread before posting problems which have been covered many, many times.

Problems with the poll?

Update the home_poll template with that in the zip

Problems with template.php?

You have edited template.php incorrectly, you need to remove the \ 's in the line you add.

NTLDR 09-03-2002 04:10 PM

Quote:

Originally posted by Cinderous
Is there a way I can stick the get newest member, total posts, total threads, ect in it?
Add the following in under posts info in the vbindex.php file:

PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=number_format($countposts['posts']);

$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=number_format($countthreads['threads']);

// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid']; 

This will add 3 queries, also add $totalposts, $totalthreads, $numbermembers and $newusername into the templates as required.

Buddha 09-03-2002 09:57 PM

hey cool. thanks for that info!
wanted the total members feature.

SuB_ZeR0 09-03-2002 10:43 PM

I was just wondering ... is there away to make a new poll question without making a new thread ... it seems that whenever a new poll is needed ... a new thread has to be created first ... it seems unessary because the whole forums is for polls only ... Thanks.

NTLDR 09-04-2002 09:52 AM

The only way to create a poll in vB is to create a new thread with a poll.

FleaBag 09-04-2002 10:41 AM

Working like a dream with 2.2.7! :D Thanks again for the GREAT hack!

evilholli 09-05-2002 01:13 AM

Hi! This is by far my favorite portal type of hack! Thanks so much.

I solved my problem... I feel like an idiot now... great hack! :P

NTLDR 09-05-2002 08:55 PM

LOL, I'm glad you like it :D

SuB_ZeR0 09-09-2002 04:36 AM

Hi, I'm not sure if this question been asked before ... but I want to add calendar block on the right side of the screen, under the latest threads. This block would list the private events for each users. I believe that this has been done for other portal-type hacks ... and I was just wondering what do I need to do to add this feature to vbindex. Thanks.

NTLDR 09-09-2002 11:52 AM

Instructions on how to do this have already been posted in this thread ;)

lemarsu 09-09-2002 04:05 PM

Hi,

When looking at Who's Online, if someone is in vbindex you get something like :

Unknown Location: /monster/vbindex.php?

is there a way to fix that ?

Gohan 09-09-2002 04:10 PM

NTLDR, Congrats.. now over 100 users use your vBindex hack :D

1stTrade 09-09-2002 04:54 PM

First, thanx NTLDR for this great hack, but can someone help me ?

I need to exclude some forums from the last 10 posts on the home page. Is that possible to modify ?

Gohan 09-09-2002 06:02 PM

Yeah, find vbindex.php:
PHP Code:

// number of news posts
$newsposts=xx;

// number of active threads
$maxthreads=xx

there could you modify to your wish limit :)

example my:
PHP Code:

// number of news posts
$newsposts=10;

// number of active threads
$maxthreads=10


1stTrade 09-09-2002 06:10 PM

no Gohan, you didn´t understand me:

I don´t want to limit the number of posts, I want to exclude some specific forums not to show up in the last Posts.

clangrounds.com 09-09-2002 07:53 PM

I don't know if this has been addressed yet, and I can't spend 1/2 a hour to a hour reading through 30 pages of posts to see if it has been.

I have custom user groups in my forums for VIP, Donator, etc etc. They can login ok to the forum itself, but get a permission error messages when they go to the main site which is a vbindex (renamed index.php) page.

Please help kind sir, this is an awesome hack for vbulletin indeed! I have not upgraded to 2.2.7 because I'm afraid I'll lose all the customizations I made to the board. :(

NTLDR 09-09-2002 09:32 PM

Quote:

Originally posted by clangrounds.com
I have custom user groups in my forums for VIP, Donator, etc etc. They can login ok to the forum itself, but get a permission error messages when they go to the main site which is a vbindex (renamed index.php) page.
Check that the usergroup can access vBindex, access is done on a per usergroup basis.

NTLDR 09-09-2002 09:34 PM

Quote:

Originally posted by 1stTrade
I don't want to limit the number of posts, I want to exclude some specific forums not to show up in the last Posts.
It should exclude the posts for people who cannot view them, however due to the way vB works it doesn't allways do this.

clangrounds.com 09-09-2002 09:54 PM

Quote:

Originally posted by NTLDR


Check that the usergroup can access vBindex, access is done on a per usergroup basis.

And where is that located in the admin cp?

Gohan 09-09-2002 10:36 PM

If you added new usergroup.. that just problem.. (no bug!)
you need small modify..

see other topic: https://vborg.vbsupport.ru/showthrea...065#post294065

NTLDR 09-09-2002 10:47 PM

To change the usergroup settings in the Admin CP go to Usergroups -> Modify and click edit next to the ones you want to change :)

SuB_ZeR0 09-09-2002 11:21 PM

Quote:

Originally posted by NTLDR
Instructions on how to do this have already been posted in this thread ;)
actually I don't think this has been done ... at least, in this thread anyway ...

I read other posts in this thread but they seems to be talking about the mini-calendar hack that add a mimimized version of the calendar ... it's not really what I wanted ...

What I wanted is not a calendar ... but more like a to-do list /datebook ... that list (personal) upcoming event that you added into the forum calendar ... so when you logged into the vbindex ... it will list the events that are personal to you ... you know what I'm talking about? :p ...

1stTrade 09-10-2002 07:48 AM

I´m sorry, but my problem is a bit more complicated. I cannot define Usergroups, who shall not see a specific forum (they should still have access to these forums).

I just want to exclude the posts of 3 forums out of the vbindex. All members should have access to these 3 forums, you can access them as always, but the posts should not show up in the last 10 posts on vbindex.

NTLDR 09-10-2002 01:33 PM

Quote:

Originally posted by SuB_ZeR0
but more like a to-do list /datebook ... that list (personal) upcoming event that you added into the forum calendar ... so when you logged into the vbindex ... it will list the events that are personal to you ... you know what I'm talking about? :p ...
You would need to add the PHP from that hack to the vbindex.php file and any HTML to the relevent template.

NTLDR 09-10-2002 01:36 PM

Quote:

Originally posted by 1stTrade
I just want to exclude the posts of 3 forums out of the vbindex.
I thought you meant private forums ;)

Change this line:

PHP Code:

$threadsquery $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads"); 

To: (replacing X with the forum ids to exclude)

PHP Code:

$threadsquery $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=X AND forumid!=X AND forumid!=X AND forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads"); 



All times are GMT. The time now is 05:04 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.02576 seconds
  • Memory Usage 1,890KB
  • 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
  • (13)bbcode_php_printable
  • (13)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
  • (40)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