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

Sukij 11-30-2001 06:27 AM

Hi..

Got problem !!! The Age behind the name is shift down.. Normally, Benjapa(26), Duengpon(34).... etc.
Please help..

UPCOMING BIRTHDAYS:
December 3: Benjapa
December 5: Duengpon (26)
December 5: Busakorn Laohawiroj (34)

christec 11-30-2001 05:02 PM

Quote:

Originally posted by Sukij
Hi..
Got problem !!! The Age behind the name is shift down.. Normally, Benjapa(26), Duengpon(34).... etc.
Please help..

Birthday Fix:
Find This:

PHP Code:

if ($user[birthday] != $lastbirthday) {
    if (
$datebits[0] != "0000") {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$birthdayspreview .=" <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
        
$age " (".($thisyear $datebits[0]).")";
    } else {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$birthdayspreview .= " <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
        
$age "";
    }


Replace With This
PHP Code:

if ($user[birthday] != $lastbirthday) {
    if (
$datebits[0] != "0000") {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$age " (".($thisyear $datebits[0]).")";
        
$birthdayspreview .=" <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
    
} else {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$age "";
        
$birthdayspreview .= " <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
    
}



christec 11-30-2001 05:06 PM

News & Emil Community Bulletin Generator has been updated to fix a typo and the Birthday Date bug.

:)

JJR512 11-30-2001 05:46 PM

So just download the new .zip and upload the new commbull.php, and that's all there is? That will fix the problem Sukij mentioned, or do we still need to do what you said in Post 32?

christec 11-30-2001 05:49 PM

Quote:

Originally posted by JJR512
So just download the new .zip and upload the new commbull.php, and that's all there is? That will fix the problem Sukij mentioned, or do we still need to do what you said in Post 32?
YES, Just download the new .zip file and then upload the new commbull.php file.
That's it.

Steve Machol 12-01-2001 03:24 PM

Great hack! One problem though - it doesn't find my Super Moderators even though I choose to send to them. Any ideas?

DarkReaper 12-01-2001 04:15 PM

Would it be possible to have it remember settings? That would help a LOT.

Also, I spent about 5 minutes getting the settings right, then hit preview, forgot someting, hit back, and it was reset! :(

Steve Machol 12-02-2001 04:54 PM

I have a problem that I need help with. Although I set:

"Only include threads that have been started or replied to since this date? Note: Only applies to sections sorted by Most Replies or Most Views (others automatically adhere to above date)"

....to 'Yes', the choices for Most Replies and Most Views does not adhere to the date I choose. Instead it chooses them from the beginning. How can I fix this?

RobAC 12-02-2001 05:11 PM

Is there a way to set NO as the default for the forums selected in the admin panel when putting the bulletin together? I only select a few forums, so I end up having to click NO on most of the forums that I have.

christec 12-03-2001 03:50 PM

Quote:

Originally posted by smachol
I have a problem that I need help with. Although I set:

"Only include threads that have been started or replied to since this date? Note: Only applies to sections sorted by Most Replies or Most Views (others automatically adhere to above date)"

....to 'Yes', the choices for Most Replies and Most Views does not adhere to the date I choose. Instead it chooses them from the beginning. How can I fix this?

This option inlcludes the complete thread, not just the posts.
"Only include threads that have been started or replied to"

If a new thread is start on 1 May 2001 and the last post is 1 June 2001 and you select the date to be 25 May 2001, it will include this thread because of the last post being after 25 May.
Does that make sense?


All times are GMT. The time now is 05:00 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.01269 seconds
  • Memory Usage 1,770KB
  • 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
  • (3)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