vBulletin Modifications

Mini Mods - Group Access Control By Day(s) (request by Vas)

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Supported
[vB 3.6.0 RC 2] Mini Mods - Group Access Control By Day(s) (request by Vas) (15)
Released: 07-29-2006, 08:34 PM
Modification Information:
Author: xyz
Last Online: 06-12-2007
Hack Version: 1.0 Installer Included: 0 Additional queries added to database: 0
New Templates: 0 Template Edits: 0 File Edits: 1
New Files: 1 New Phrases: 10 Installation Time (In Minutes): 5

Plugin
This was requested by Vas, it blocks access to any given Group by a selected day or group of selected days!

Follow me!

1. './admincp/usergroup.php'


FIND

You must first be a registered member to view any code.
UNDER THAT, ADD

You must first be a registered member to view any code.
FIND

You must first be a registered member to view any code.
ABOVE THAT, ADD

You must first be a registered member to view any code.
FIND

You must first be a registered member to view any code.
REPLACE WITH

You must first be a registered member to view any code.

// end code edits './admincp/usergroup.php'


2. './global.php'


FIND

You must first be a registered member to view any code.
BELOW THAT, ADD

You must first be a registered member to view any code.
FIND

You must first be a registered member to view any code.
ABOVE THAT, ADD

You must first be a registered member to view any code.

// end of code edits for './global.php'


3.

DB ALTER AND ADD PHRASES.... (add your db prefix, if your using one!)

You must first be a registered member to view any code.
Be sure to go to Languages & Phrases >> Language Manager >> Click -> [Rebuild All Languages]

4.

upload the attached script (functions_access.php.txt), to you './includes/' directory, rename to 'functions_access.php'!

done

enjoy

me!

snap shots....

Forum Access Error Message

error.png

Group Option, Admin CP

option.png


:::UPDATE:::

Fixed the first phrase...

It was... (wrong)

You must first be a registered member to view any code.
it should be... (fixed)

You must first be a registered member to view any code.



Screenshots
Screenshots
File Type: png error.png (19.1 KB, 103 views)
File Type: png option.png (10.9 KB, 71 views)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 07-29-2006, 08:41 PM   #2
vBulletin Translator
TheSh@rk's Avatar
Join Date: Jun 2006
Real Name: Kfir Hadas
Location: Jerusalem, Israel
TheSh@rk is on a distinguished road

Default

Yay
Thanks




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-29-2006, 08:43 PM   #3
Vaz
vB User
Vaz's Avatar
Join Date: Apr 2006
Vaz is on a distinguished road

Default

Thanks XYZ , I'll give it a go tommorow morning.. well today morning.. few hours time. PS - My name is Vaz. Thank you again!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2006, 07:06 AM   #4
Vaz
vB User
Vaz's Avatar
Join Date: Apr 2006
Vaz is on a distinguished road

Default

Hi, I'm having a little bit of trouble with the DB alter.


You must first be a registered member to view any code.

I ran the above SQL Query and I got the following error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
###
##- admin cp helper phrases!
###
INSERT INTO bbs_phrase VALUES ( '', -' at line 4



How can this be corrected?




Also I'm getting these errors despite the files being there:
Warning: main(/home/.dewdrop/***/*****.com/vtest./includes/functions_access.php): failed to open stream: No such file or directory in /global.php on line 21

Warning: main(): Failed opening '/home/.dewdrop/***/*****.com/vtest./includes/functions_access.php' for inclusion (include_path='.:/usr/local/lib/php') in /global.php on line 21

Last edited by Vaz; 07-30-2006 at 07:26 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2006, 09:27 AM   #5
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

where these are...

You must first be a registered member to view any code.
remove the (.) befor the (remove =>.<= remove/include...), on one of the servers I was doing this on it needed them, but they should not be needed on a standard install, I updated the the my install details

So replace them with

You must first be a registered member to view any code.

The SQL error is because the first phrase has the prefix (bbs_) which it shouldn't I fixed that, so just remove (bbs_) from that phrase, or just copy the updates I made!


Sorry about that!

me


Last edited by xyz; 07-30-2006 at 09:32 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2006, 10:58 AM   #6
Vaz
vB User
Vaz's Avatar
Join Date: Apr 2006
Vaz is on a distinguished road

Default

Hi, I've done that but im still getting:

You must first be a registered member to view any code.

I've also tried with removing the comments with:
You must first be a registered member to view any code.
& in that case I get:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';

INSERT INTO phrase VALUES ( '', -1, 'group_access_permissions', 'Group Boar' at line 1

Last edited by Vaz; 07-30-2006 at 11:01 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2006, 11:39 AM   #7
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

What version of MySQL do you have?

me!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2006, 12:26 PM   #8
Vaz
vB User
Vaz's Avatar
Join Date: Apr 2006
Vaz is on a distinguished road

Default

MySQL v.5.0.18




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2006, 06:45 PM   #9
vB User
HDRebel88's Avatar
Join Date: Jul 2006
Location: New Jersey, U.S.A.
HDRebel88 is on a distinguished road

Default

Would it be possible to add a time control... where you can select the start time and end time for the day(s) you select.
So you select say Tuesday, then edit the start and stop times for that day, instead of it being 24 hours. Sort of set-up like the Scheduled Task settings, where you can select month, day, hour, minutes. And then the error message pulls in the dates of when that certain usergroup will be able to re-gain access.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2006, 02:26 PM   #10
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

Quote:
Originally Posted by HDRebel88
Would it be possible to add a time control... where you can select the start time and end time for the day(s) you select.
So you select say Tuesday, then edit the start and stop times for that day, instead of it being 24 hours. Sort of set-up like the Scheduled Task settings, where you can select month, day, hour, minutes. And then the error message pulls in the dates of when that certain usergroup will be able to re-gain access.

I'll do this tomorrow, I have 3 or 4 mods that I need to release first! But I will get to it sometime tomorrow! I live on a small Island and we been losing power off and on for the last 2 days, so I am limited to how long I can be online. It's all due to the heat wave we are having! Even in good cool weather power is sometimes a gift to be enjoyed!

me!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -3. The time now is 12:27 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)