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)
-   -   Updated Community Bulletin Generator (https://vborg.vbsupport.ru/showthread.php?t=16290)

DarkReaper 11-02-2001 11:22 PM

That's what its supposed to do, but it never does the "no" code.

christec 11-03-2001 12:24 AM

This is what you need to add
After this:
$permission = $DB_site->query("SELECT canview FROM forumpermission WHERE forumid='$forum[forumid]' AND usergroupid=2");

Add this:
list($canview) = mysql_fetch_row($permission);

Change
if ($permission == 0)

To
if ($canview == 0)

Thats it

DarkReaper 11-03-2001 12:26 AM

Now everything is set to No instead of Yes. :(

christec 11-03-2001 12:37 AM

That's because all the canview fields are (probably) set to 0.

DarkReaper 11-03-2001 01:19 AM

I'm pretty sure my entire board isn't invisible to all users... :)

xug 11-03-2001 02:43 AM

Thanks to all of you ! I love this hack !

I have it running on my site with VB2.2.0 and have no major bugs found at all only one thing I would like to see a solution for or I missed it in this thread (sorry if I did).

What about the password that is been send with the user info, till now I have only tested it to my own account and see to my surprise that my password is a very long number ;)

Is there a solution for this problem ?

christec 11-03-2001 04:24 PM

[DarkReaper] --
OK I think this is it.

After:

while ($forum = DB_site->fetch_array($forums)) {

Add This:
$perms=getpermissions($forum[forumid],0,2);
if ($perms[canview]==0) {
makeyesnocode($forum[title],"forum[$forum[forumid]]",0);
} else { makeyesnocode($forum[title],"forum[$forum[forumid]]",1);
}

Guru 11-03-2001 07:38 PM

A couple of comments:

In the generated email, there is a line that tells how to use the UserCP to subscribe, but it doesn't match the actual entry in the CP (and receive is missing the "e").

Replace it with:
Code:

and change \"Receive Community Bulletin Emails?\" from yes, to no.
Second, I added a little description after the Entry in the UserCP
Code:

<smallfont>Selecting Yes subscribes you to our Community Bulletin Email.</smallfont>
Finally, the poll list seems to show one of my polls twice, once with a bogus threadid (always 100). I can't imagine what would cause that. If anyone has any ideas? I've looked at the query, and it appears to be correct.

Anyway, very nice job overall. I'm using it. Thanks much!

SirSteve 11-05-2001 01:41 AM

Quote:

Originally posted by Guru
A couple of comments:

In the generated email, there is a line that tells how to use the UserCP to subscribe, but it doesn't match the actual entry in the CP (and receive is missing the "e").

Replace it with:
Code:

and change \"Receive Community Bulletin Emails?\" from yes, to no.
Second, I added a little description after the Entry in the UserCP
Code:

<smallfont>Selecting Yes subscribes you to our Community Bulletin Email.</smallfont>
Finally, the poll list seems to show one of my polls twice, once with a bogus threadid (always 100). I can't imagine what would cause that. If anyone has any ideas? I've looked at the query, and it appears to be correct.

Anyway, very nice job overall. I'm using it. Thanks much!

I am confused by this. So this fixes the bug in the User CP where it removes the member from the community bulletin e-mail list?

Guru 11-05-2001 03:44 AM

My comment didn't fix that bug, if there was one. I just noticed that the wording didn't match the Community Bulletin name.


All times are GMT. The time now is 05:05 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.01274 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (1)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
  • (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