vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - vbAccessDenied (https://vborg.vbsupport.ru/showthread.php?t=111601)

hambil 05-11-2006 09:22 PM

Quote:

Originally Posted by MissKalunji
is it possible to use that to block access to example download section? its not in a forum but its apart of vb?

You can't block anything with this. All it does is allow you to customize the generic vBulletin access denied message for things you can already block.

So, if downloads generate a generic access denied message (I'd have to check) then you can customize it.

MissKalunji 05-11-2006 09:26 PM

Nah it doesnt but thanks!

kurtbarker 05-11-2006 09:36 PM

hey mate, what an awesome addition...

looks very easy to use

can this be used to display error messages for php extensions. like the arcade [arcade.php], and other modifications, rather than just error messages for forum access?

EDIT: I just read the above message... Things like the arcade have a 'usergroup permission', but this displayed the "You do not have permission to view this page', can that be customised for the different modifications?

hambil 05-11-2006 09:40 PM

Quote:

Originally Posted by kurtbarker
hey mate, what an awesome addition...

looks very easy to use

can this be used to display error messages for php extensions. like the arcade [arcade.php], and other modifications, rather than just error messages for forum access?

It can be used for anything that generates a generic access denied message - and that is much more than just forums access. Calendar access, member list, attachments, etc. etc.

It cannot be used for third party hacks, because it does not include them in the list of things that generate those messages. However, that is an interesting idea. I will look into that.

Edit:
BTW, You'll see that there is a pulldown for "Script & Action" for advance users only. It will give you an idea of all the things that generate the generic access denied message.

kurtbarker 05-11-2006 09:50 PM

sounds interesting

*will install after typing this message ;)

and if you could look into support for thrid party hacks, then "woohoo"

thanks

MissKalunji 05-11-2006 10:34 PM

same here gon try that as well

MissKalunji 05-11-2006 10:41 PM

Thats what i've been looking for for paid subscription but im looking for aswell the Link and Dwonload script

I dont want certain usergroup to even see the page

MissKalunji 05-11-2006 10:45 PM

actually its not working

hambil 05-11-2006 10:46 PM

Quote:

Originally Posted by MissKalunji
actually its not working

What exactly are you trying to do?

MissKalunji 05-12-2006 03:04 AM

i wanna block access to the newbie aka Member in trainning to the Subscription

hambil 05-12-2006 03:23 AM

Well, if you don't want the forums to show at all you don't need this hack for that. However, if you want to have the forums visible, but give them a detailed access denied message when the new user tries to post this is the hack for you.

On my board all new members are restricted to a handful of forums. When they try to post in a forum they can see, but not post in, the access denied message is intercepted by this hack, and they are given the message I've attached a screen shot of.

A pm is then sent to all admins. When an admin clicks on the approve link in the pm another pm is sent to the user letting them know they are approved, and all the other admins are cc'd on it.

It works very well for us.

MissKalunji 05-12-2006 11:05 PM

Ok then thanks

MissKalunji 05-16-2006 01:04 AM

Im trying to uninstall and when an unregistered user tries to see an error page this comes up :


Invalid SQL:

SELECT * FROM accessdenied_message
WHERE usergroupid = 1
AND forumid = 0
AND (script = 'member(*)' OR script = '*');

MySQL Error : Table 'danceha_forums.accessdenied_message' doesn't exist
Error Number : 1146
Date : Monday, May 15th 2006 @ 10:00:21 PM
Script : http://profile.dancehallareaz.com/me...getinfo&u=3894
Referrer :
IP Address : 66.249.65.197
Username : Unregistered
Classname : vb_database

hambil 05-16-2006 02:44 AM

Quote:

Originally Posted by MissKalunji
Im trying to uninstall and when an unregistered user tries to see an error page this comes up :


Invalid SQL:

SELECT * FROM accessdenied_message
WHERE usergroupid = 1
AND forumid = 0
AND (script = 'member(*)' OR script = '*');

MySQL Error : Table 'danceha_forums.accessdenied_message' doesn't exist
Error Number : 1146
Date : Monday, May 15th 2006 @ 10:00:21 PM
Script : http://profile.dancehallareaz.com/me...getinfo&u=3894
Referrer :
IP Address : 66.249.65.197
Username : Unregistered
Classname : vb_database

For some reason it didn't uninstall completely. It looks like a plug in is still active. Once you've used the uninstall in products, check for any plugins that are still there and delete them if necessary.

MissKalunji 05-16-2006 03:01 AM

No everything is uninstall

I checked and double check nothing

MissKalunji 05-16-2006 03:02 AM

When i disable is fine as soon as i uninstall error

hambil 05-16-2006 04:09 AM

The code in that error exists inside a plugin. How it could hang around after being uninstalled baffles me.

MissKalunji 05-16-2006 04:11 AM

humph fine. I'll get someone to fix it for me then
Thx

hambil 05-16-2006 04:13 AM

Quote:

Originally Posted by MissKalunji
humph fine. I'll get someone to fix it for me then
Thx

I'm happy to take a look at it on your site. I just don't know how it is happening is all.

Stop 05-16-2006 02:03 PM

O God. I've been waiting for this powerful hack days and nights. Thanks in advanced.
Let me give it a try.

Stop 05-17-2006 05:17 PM

Sorry
I did every thing as you said but I still can't see where is it?
how can I get to the Acess Denied Messge Manger.
I didnt find it in vBulltion Options. ONLY vbAccessDenied Settings where you can turn it on or off.

hambil 05-17-2006 05:21 PM

Quote:

Originally Posted by Stop
Sorry
I did every thing as you said but I still can't see where is it?
how can I get to the Acess Denied Messge Manger.
I didnt find it in vBulltion Options. ONLY vbAccessDenied Settings where you can turn it on or off.

It should be a menu choice on the left menu in the admincp. If it's not there make sure you uploaded the xml file under includes/xml, and try re-importing with overwrite.

Stop 05-17-2006 05:32 PM

yah found it after the re-import.
Thanks a lot.

Stop 05-17-2006 06:14 PM

HI again. It works very fine now but there's just a little thing.
vBulletin Messege is not showing. Attachment better explains.
Any idea ?

hambil 05-17-2006 06:22 PM

The board doesn't show for access denied messages. This is true with or without my hack. It's working as it is designed. Can you give me an idea of what you would like it to do instead?

Stop 05-17-2006 06:40 PM

ammm,
can you add a phrase to be showed on the top-left-side to say what this message is, like , The English Club Message ?

edit:
forgot to comment on this,
Quote:

Originally Posted by hambil
The board doesn't show for access denied messages. This is true with or without my hack. It's working as it is designed.

I think it does if you mean this.

SaN-DeeP 05-17-2006 06:40 PM

thanks for release.

hambil 05-18-2006 06:14 AM

Quote:

Originally Posted by Stop
ammm,
can you add a phrase to be showed on the top-left-side to say what this message is, like , The English Club Message ?

The messages are fully bbcode and html enabled. In theory you can make them look anyway you want.

Quote:

I think it does if you mean this.
I'm a little confused. I went to your site and it seemed to work as I expected, although the navbar was missing. Your site is heavily skinned, so it's hard for me to know exactly what is going on, and what you expect or want to see.

kurtbarker 05-20-2006 03:15 AM

Quote:

Originally Posted by hambil
It cannot be used for third party hacks, because it does not include them in the list of things that generate those messages. However, that is an interesting idea. I will look into that.

any word on this mate?

hambil 05-20-2006 08:13 AM

Quote:

Originally Posted by kurtbarker
any word on this mate?

I will have a new release out this weekened :)

kurtbarker 05-22-2006 06:28 AM

i'll keep my eye out for it... thanks

Ambie 05-24-2006 03:28 AM

This is nice. :) Thank you! One problem though. When I get the pm, and go to click on the approve link, I am getting this message.

This action can only be done through a vbAccessDenied approval pm.

hambil 05-24-2006 04:17 AM

It's a security feature. There are two ways to get that message. 1) No pm was sent (or it didnt' get recorded in the database for some reason). 2) The person clicking the approve link is not one of the people the pm was sent too.

kafi 08-28-2006 06:30 PM

hambil thank you for this fantastic hack, I always had problems with generic alerts...

One suggestion though .-) I have pretty much sub-forums and would like to have inheriting message function (according to my testing id doesnt work). I mean that sub-forum will inherit the message from parent forum (if I tick it on) - the same way it inherit permissions...

Is this something possible/interesting for you to do? Please let me know, if not I will do this manually for all my forums (I have about 100 subforums - about third of them permissioned).

Installed - great hack .-)

hambil 08-28-2006 07:49 PM

Quote:

Originally Posted by kafi
hambil thank you for this fantastic hack, I always had problems with generic alerts...

One suggestion though .-) I have pretty much sub-forums and would like to have inheriting message function (according to my testing id doesnt work). I mean that sub-forum will inherit the message from parent forum (if I tick it on) - the same way it inherit permissions...

Is this something possible/interesting for you to do? Please let me know, if not I will do this manually for all my forums (I have about 100 subforums - about third of them permissioned).

Installed - great hack .-)

That's interesting. And I think it's probably pretty easily doable. I'll add it into the 3.6 update this week.

kafi 08-30-2006 06:45 AM

Great news hambil, you made me happy today :-)

I found that it might be even more handy to have inheritions if it come to use also your per-script function within settings.

kafi 08-30-2006 09:54 AM

humbil, if you want to add PM title to phrases it will be great: $pmdm->set('title', 'vbAccessDenied PM from ' . $vbulletin->userinfo['username']);
I have translated for myself in plugin.

kafi 08-30-2006 10:18 AM

hambil me again :-)

I am not sure that I understand the flow of the PM.

PM is sent automatically although I do not know wheter the user will want to join the usergroup or not and therefor I do not know wheter to approve him.

My model situation:
I have an article forum where shouldnt be posted any questions or so - just articles. I have set up alert-message saying that he has not right to post in article forum and asking him wheter he is serious about adding new article or not...
1. Lets say he is not and I am getting request PM from him to join automatically ( I do not know wheter he is serious or not) ...yes I can disable PM, but I like the automated PM-request and therefor I would add sort of confirmation of the request from the users side (either link in PM sended to user asking him wheter he is serious about adding new article and want to join author group, or maybe direct link in alert-message where he may apply to join author group).

hmm is it possible/interesting for you to do? I have disabled currently autoPM request for the time being.

hambil 08-30-2006 11:04 PM

Yeah, I'm not sure I fully understand. Making the pm title so it is configurable is no problem, and a good idea. The other part you talk about I'll need to understand better...

kafi 08-31-2006 07:42 AM

sorry sometimes I am lost in expressing things in englis :-)))

Current situation:
- if I want to automate process of approving user for usergroup I tick "Send PM" and this PM with "Approve" link is send whenever any user try to post in forum that he doesnt have a permission for it.
- this PM is sent on users behlaf [I find this part a problem, because I do not know wheter user who attempted to post in certain forum is really interested in posting in this certain forum (what mostly happen is that some newbies push "new thread" button wherever they happen to be)]

Desired situation:
- I suggest not to send PM on users behalf to admin but rather send automated PM to user asking him "Are you interested in posting in XY forum and become member of XY usergroup?" In this very same PM he will have a link like "I want to join" and once he click the link admin gets application PM with "Aprove" link.
----------------------------------------

Model situation:
I have a forum with articles/tutorials. Lot's of newbies are posting here because they happen to read tutorial and they start new thread with questions. Then I need to moderate this forum. I would rather use permission base system with your customized annoncement saying that "This forum is dedicated to tutorials. If you are interested in posting tutorials, PM was sent to you with application link to join our tutorial authors usergroup. If you are not interested in posting tutorial, please ignore PM and find appropriate forum to post your thread".
------------------

hope it is a bit better now ? ;-)


All times are GMT. The time now is 01:24 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.01466 seconds
  • Memory Usage 1,831KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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