vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   CommBull (Community Bulletin) (https://vborg.vbsupport.ru/showthread.php?t=66334)

grandeur_69 06-21-2004 11:02 PM

yup ... u have a version of PHP < 4.3 ... didn't realize that this function was part of such a recent build ...

try it now (have to say try, cuz i don't have a version less than 4.3) ... just grabbed what someone wrote specifically for this reason on the php.net site

mikeB 06-22-2004 12:23 AM

Quote:

Originally Posted by grandeur_69
yup ... u have a version of PHP < 4.3 ... didn't realize that this function was part of such a recent build ...

try it now (have to say try, cuz i don't have a version less than 4.3) ... just grabbed what someone wrote specifically for this reason on the php.net site

I rrepleced the ones I had uploaded - Now Im getting this:
Parse error: parse error in /home/httpd/vhosts/bakermedia.com/httpdocs/learn/admincp/commbull.php on line 1383

grandeur_69 06-22-2004 12:39 AM

my bad ... uploaded the wrong file ... not very good at multi-tasking, i guess

ImportPassion 06-22-2004 01:17 AM

well, there is one unnecessary query I found in profile.php

instead of doing this
PHP Code:

    $receivebulletin = ($commbull) ? 0;
    
    
$DB_site->query("
        UPDATE " 
TABLE_PREFIX "user SET
            receivebulletin = 
$receivebulletin
        WHERE userid = 
$bbuserinfo[userid]
    "
);
    
    
$receivebulletin_type = ($commbull_type) ? 0

    
$DB_site->query(
        UPDATE " 
TABLE_PREFIX "user SET 
            receivebulletin_type = 
$receivebulletin_type 
        WHERE userid = 
$bbuserinfo[userid] 
    "
); 

do this
PHP Code:

    $receivebulletin = ($commbull) ? 0;
    
$receivebulletin_type = ($commbull_type) ? 0;     
    
    
$DB_site->query("
        UPDATE " 
TABLE_PREFIX "user SET
            receivebulletin = 
$receivebulletin,
            receivebulletin_type = 
$receivebulletin_type             
        WHERE userid = 
$bbuserinfo[userid]
    "
); 


grandeur_69 06-22-2004 02:23 AM

and, i'm sure you will find others. As i've been putting it together piece-by-piece and working out bugs, i haven't done a lot of optimizing.

mikeB 06-22-2004 02:27 AM

works now for me, thanks!!

Blackbeard 06-23-2004 08:48 PM

User table altered... sucessfully.
User table altered... sucessfully.
Phrase table updated (profile.php 1 of 3)... sucessfully.
Phrase table updated (profile.php 2 of 3)... sucessfully.
Phrase table updated (profile.php 3 of 3)... sucessfully.
Phrase table updated (admincp/index.php) ... sucessfully.

You may now proceed to use the Community Bulletin Script

In order to allow your users to unsubscribe from the bulletin, you will need to make the following alterations to your existing code and templates:

Upload admin/index.php and profile.php to your server, then go to your Admin CP and look for the "Send Community Bulletin" option under "Users" If you find that the option isn't showing up on the control panel, then it's because you aren't using the default phrases. Go into phrase manager, search for 'commbull' and update.

done all changes, could not find send community bulletin in users section, searched in phase manager for commbull and got this

No Phrases Matched Your Query

whats gone wrong????

iam running PHP v4.3.5

grandeur_69 06-23-2004 09:33 PM

be sure to check "Phrase Variable Name Only" when searching

ImportPassion 06-24-2004 01:10 AM

i tried sending to 3 ppl and it timed out

Blackbeard 06-24-2004 11:13 AM

Quote:

Originally Posted by grandeur_69
be sure to check "Phrase Variable Name Only" when searching

Cheers that work great


All times are GMT. The time now is 11:04 AM.

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.01884 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (2)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