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 03-30-2006 11:45 AM

Quote:

Originally Posted by Delphiprogrammi
verry strange here is no error message ......

PHP Code:

$msgs $db->query_read("
        SELECT accessdenied_message.*, usergroup.title AS usergroup, forum.title AS forum
        FROM " 
TABLE_PREFIX "accessdenied_message
        LEFT JOIN " 
TABLE_PREFIX "usergroup ON usergroup.usergroupid = accessdenied_message.usergroupid
        LEFT JOIN " 
TABLE_PREFIX "forum ON forum.forumid = accessdenied_message.forumid
    "
); 

that is causing the error i have no field called "accessdenied_message" within the table vb3_accessdenied_message that field is for some reason missing

Okay, download the zip and try again.

Delphiprogrammi 03-30-2006 12:24 PM

Quote:

Originally Posted by hambil
Okay, download the zip and try again.

yeah working now thanks for fixing that do you mind telling me what the problem whas ?

GamerzWorld 03-30-2006 12:55 PM

Quote:

Originally Posted by hambil
Thanks to Gamerz I've realized that vbAccessDenied needs integration with vBulletin's group functions. I'll add this. I also plan on adding a new {matchlist} subsitution variable, that will list all users with matching ips to the one requesting access. Should be done by the weekend :)

Looking forward to this. My main concern was that I had no control over who could and who couldnt see the private forum, and therefore couldnt remove them. By intergrating the systems it

(a) Improved the current system massivley, as users are having problems finding where to apply
(b) Improves the use of your hack to automatically request

All it would need then is a link to registration as discussed :knockedout:

hambil 03-30-2006 01:52 PM

Quote:

Originally Posted by Delphiprogrammi
yeah working now thanks for fixing that do you mind telling me what the problem whas ?

The query was broken if you had a table prefix. You must have been the first to install it who has a table prefix :)

scottct1 04-06-2006 04:36 PM

Ok here is what I am trying to do.

I have a special forum on my site for supporters who donate.

At the moment if your not a donating member you can see the forum and if you click on the forum you are taken to it but are told that no posts have been made over the past 30 days.

What I would like it to do is when someone clicks on that forum they see a custom error message which asks them to consinder donating to get access to that forum.

Can that be done?

Thanks!

hambil 04-06-2006 05:45 PM

Well, you can only customize existing vbulletin access denied messages. The closest you can get is to make the forum so they can view it, but view nothing else (can't view thread contents or create new threads, etc.). Then use this tool to create a custom message for that forum and usergroup(s).

This to me actually seems like a better solution anyway, because the non-donating members are teased with the thread titles, and more encouraged to donate when they try to read and thread and get the message.

scottct1 04-06-2006 06:03 PM

Excellent, I think that will work. :D

Thank you!

scottct1 04-06-2006 06:27 PM

I would love to see this support formatted messages and possible vbcode.

I just typed up a nice message and its all squished together in one paragraph.

The origional looked like this...

You have tried to access the Private Supporting Members Pub and Grill Forum.

This is a special private forum made only available to those who financially support SatelliteGuys.US. (i.e. help us pay our bills)

Access to this special private forum can be yours for only $19.99 a year and besides giving you access to our very active Pub Member Forums you also get...

* Elimination of over 90% of the ads! (You will only see the top banner ad and the Gold Sponsors)
* A larger Private Message box, store 1000 Private Messages instead of only 25!
* The ability to store 300 pages (Using the SatelliteGuys Pager)instead of only 10!
* The ability to have your own ANIMATED Avatar!
* Ability for you to post FOR SALE items in our Classifieds Section!
* Access to our Private Back Room Forum - An optional forum where adults can hang out and discuss adult topics.
* A special icon next to your username in all your posts which tells everyone your a supporter!
* The good feeling that you help one of America's Most Popular Satellite sites stay online!

AND MORE!

And if you hurry now you will pay only $19.99 for a 1 years membership as the price will be going up to $24.95 on May 15th 2006!

To become a SatelliteGuys Supporter TODAY please visit http://www.satelliteguys.us/payments.php

If you pay by Credit Card you get all the benefits of your pub membership INSTANTLY!

Thank you for your support and for helping us keep the lights on!

However when it prints out it looks like this...

You have tried to access the Private Supporting Members Pub and Grill Forum. This is a special private forum made only available to those who financially support SatelliteGuys.US. (i.e. help us pay our bills) Access to this special private forum can be yours for only $19.99 a year and besides giving you access to our very active Pub Member Forums you also get... * Elimination of over 90% of the ads! (You will only see the top banner ad and the Gold Sponsors) * A larger Private Message box, store 1000 Private Messages instead of only 25! * The ability to store 300 pages (Using the SatelliteGuys Pager)instead of only 10! * The ability to have your own ANIMATED Avatar! * Ability for you to post FOR SALE items in our Classifieds Section! * Access to our Private Back Room Forum - An optional forum where adults can hang out and discuss adult topics. * A special icon next to your username in all your posts which tells everyone your a supporter! * The good feeling that you help one of America's Most Popular Satellite sites stay online! AND MORE! And if you hurry now you will pay only $19.99 for a 1 years membership as the price will be going up to $24.95 on May 15th 2006! To become a SatelliteGuys Supporter TODAY please visit http://www.satelliteguys.us/payments.php If you pay by Credit Card you get all the benefits of your pub membership INSTANTLY! Thank you for your support and for helping us keep the lights on!

Other then that working good!

Thanks!

hambil 04-06-2006 06:30 PM

It supports bbcode. See the attachment above: https://vborg.vbsupport.ru/attachmen...4&d=1143606717

I plan to use the WYSIWYG editor in the next version, but as you can see I've created a formated message. Can you give me some before and after screen shots?

hambil 04-06-2006 06:34 PM

Try creating the message using the WYSIWYG editor, when switching to the standard editor (button in the top right of the editor will do that). Then copy and pasting the message into vbAccessDenied. That should work.

This is why I will be directly supporting the WYSIWYG editor in the next version :)


All times are GMT. The time now is 07:43 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.01265 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)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
  • (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