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)

tubedogg 05-26-2001 07:54 PM

Quote:

Originally posted by RobAC
Where is the correct location to place the line of code he is talking about? [/B]
right below
PHP Code:

       $message str_replace("\\'","'",$message); 


julius 05-26-2001 08:01 PM

How can I change last post time to -> server time + 6 hours (GMT+1)?
Thanks :)

tubedogg 05-26-2001 08:05 PM

The time will be displayed as whatever you set in your User CP - the server time is automatically adjusted by vB.

julius 05-26-2001 08:25 PM

In Admin CP I have:
Time Zone Offset
Time (in hours) that the server is offset from GMT. = GMT -5 hours
In My User CP I have: GMT +1 (Central Europe)

The last post time in the Community bulletin is GMT -5.

Don't know way. :(

RobAC 05-26-2001 08:54 PM

Quote:

Originally posted by tubedogg


right below
PHP Code:

       $message str_replace("\\'","'",$message); 


I can't find that line in the commbull97.php file at all.

tubedogg 05-26-2001 09:01 PM

That's because vB removed the two backslashes.

Try this
Code:

$message = str_replace("\\'","'",$message);

EXCHANGE 05-27-2001 03:46 AM

First of all: Great Hack :D

But I had a problem when letting the Script create a new Thread. Actually my "News and Announcements" Forum is moderated, so I?m getting this Error when trying to use the "Create Thread" function in the bulletin mailer. The thread and post tables are updated correctly, but updating the forum table causes a problem.

chrispadfield 05-30-2001 09:42 AM

I am getting this SQL error:

Quote:

<!-- Database error in vBulletin Control Panel: Invalid SQL: SELECT * FROM user WHERE SUBSTRING(birthday,6)>='05-30' AND SUBSTRING(birthday,6)<='06-13' ORDER BY SUBSTRING(birthday,6) LIMIT 0,10
mysql error: You have an error in your SQL syntax near 'SUBSTRING(birthday,6) LIMIT 0,10' at line 1
mysql error number: 1064
Date: Wednesday 30th of May 2001 02:19:18 AM
Script: /forums/admin/commbull.php

the_sisko 05-30-2001 10:48 AM

@chrispadfield:
[QUOTE]Originally posted by The_Sisko
Turn Birthdays to 0!!!
Your mysql version is not up to date and doesn't support SUBSTRING!

chrispadfield 05-30-2001 12:22 PM

arr. ok thank you.

Santa 05-30-2001 02:08 PM

I get this error after I tried to send the mails out.

Could not execute mail delivery program in /homepages/31/d11193551/htdocs/forum/admin/commbull.php on line 541

any tips for me ??

Santa

etones 05-31-2001 11:35 AM

great hack.. hats of the both kiew and tubedogg.

One possibility... can you add the automaric javascript forwarding thing when sending out?

Cheers

Blue2000 05-31-2001 03:17 PM

this is great works very well on my board, installed without any problems (then again how could you have problems with such an easy way to install)

Well done to both of you, i know for one i will be using this hack.

There is one little thing tho it auto picks up your url, but i dont what a Dlink to the board i want to put my main domain name in as i have phpnuke running on my site, is there anyway to do this in the next ver maybe? or tell me know i can do that now?

Thanks and great work dudes

Pingu 05-31-2001 10:41 PM

More errors for me. I already had to set birthdays to 0 and now this one pops up (commbull097):

Database error in vBulletin Control Panel: Invalid SQL: UPDATE user SET WHERE
userid='1'
mysql error: You have an error in your SQL syntax near 'WHERE userid='1'' at line 1
mysql error number: 1064

The line I found in commbull is, I think:
$d = $DB_site->query("UPDATE user SET ".iif($foruminfo[countposts],"posts=posts+1","")." WHERE userid='$id[id]'");

So, what's this? More version misery?

tubedogg 05-31-2001 10:44 PM

mmm...I didn't really think that one one through. I'll fix it up hopefully by this weekend.

Eficrx 06-01-2001 01:29 PM

cant wait to add it when its fixed !!!:D

tubedogg 06-03-2001 03:28 AM

I updated the script so it fixed that stupid bug. Sorry I didn't think about that before. :o

RobAC 06-03-2001 03:32 AM

oh NOW you update the script Kevin....after I just downloaded the old version again and made the script change to correct the email formatting problem....which still didn't work. Great timing Kev! :D :D :D

supernut 06-03-2001 03:24 PM

the install worked but then when you go to send this happens, the output is posted in the forum but thats it, no emails are sent ?

--------CUT----------

Database error in vBulletin Control Panel: Invalid SQL: UPDATE user SET 'posts=posts+1' WHERE userid='1'
mysql error: You have an error in your SQL syntax near ''posts=posts+1' WHERE userid='1'' at line 1
mysql error number: 1064
Date: Sunday 03rd of June 2001 12:22:17 PM

--------CUT--------

Eficrx 06-03-2001 03:30 PM

i just installed it . Everything works even tested it by sending emails out.

tubedogg 06-03-2001 03:32 PM

Fixed. Download the zip file and reupload commbull.php.

cobradude 06-03-2001 04:52 PM

tubedogg & Kier, thank you for this hack! It's awesome!!!

supernut 06-03-2001 05:45 PM

WOW.... great fix

Sinema 06-11-2001 04:20 AM

This looks great and I can't wait for it to work but I got this error and I do not know enough about mySQL or php to figure where it came from

After installing the hack and setting up the preferences .. I clicked the okay or whatever and it sent me this error

Database error in vBulletin Control Panel: Invalid SQL: SELECT * FROM user WHERE SUBSTRING(birthday,6)>='06-10' AND SUBSTRING(birthday,6)<='06-24' ORDER BY SUBSTRING(birthday,6) LIMIT 0,10
mysql error: You have an error in your SQL syntax near 'SUBSTRING(birthday,6) LIMIT 0,10' at line 1
mysql error number: 1064

Not sure what to do to fix it..

tubedogg 06-11-2001 05:19 AM

Set birthdays to 0.

aldamon 06-11-2001 04:23 PM

Thank you thank you thank you!

This hack rules!!!

amykhar 06-11-2001 04:59 PM

I love watching who's online after I send out the weekly bulletin. People that I thought had died show up on the board and poke around.

Thanks for this great hack. :)

Now, I can't resist picking on you a little bit and asking for this hack to be upgraded so that it maintains the settings (the forums not to include, how many threads to include, etc.) so that all I have to do is tell it to send once a week.

Amy

KeithMcL 06-14-2001 10:53 AM

When I try previewing the mail I get the database error.

Anyone got any ideas?

Tiss ok, I see the post above about it. Thanks

Joe 06-18-2001 12:38 AM

Im having problems with the Threads posted most recently option, im showing the first few threads posted, not the last threads posted. Is this a v.98 bug, or am i using this wrong? :)

Byron 06-18-2001 02:20 AM

- Will adding the new field to user database cause any conflict in future vb release?

- Just in case if we do not want to use this script after adding the new field to user database, how do we revert back any changes to the database?

- Hope that hack will appear in the next vb release.

Cold Steel 06-18-2001 03:36 AM

This is great.

Thanks!!!!

tubedogg 06-18-2001 04:06 AM

Quote:

Originally posted by Byron
Will adding the new field to user database cause any conflict in future vb release?
Not unless this hack becomes part of vB itself, in which case Kier or I (or somebody) will try to make sure that some sort of contingency exists for those that already installed it.

Quote:

Just in case if we do not want to use this script after adding the new field to user database, how do we revert back any changes to the database?
DROP receivebulletin FROM user;
Run that query from telnet or phpMyAdmin.

Quote:

Hope that hack will appear in the next vb release.
Maybe. ;)

Byron 06-18-2001 04:38 AM

Thanks tubedogg!

VirtueTech 06-20-2001 02:42 PM

The hack installed great, but when ever I try and run the hack...it timesout.....I have over 150 forums, maybe that is why.

Too bad...I really want to use it. :(

tubedogg 06-21-2001 10:17 AM

Does it timeout after the first screen or when going to send emails?

Dave# 06-21-2001 09:11 PM

ooops - ignore

mjames 06-22-2001 01:58 AM

Kevin,

Thanks for this wonderful hack. I went through all the steps and got to the part where I can specify when it goes out, to who, etc., but I got the "There seems to have been a slight problem with the database..." error and this e-mail:
Quote:

Database error in vBulletin Control Panel: Invalid SQL: SELECT * FROM user WHERE SUBSTRING(birthday,6)>='06-21' AND SUBSTRING(birthday,6)<='07-05' ORDER BY SUBSTRING(birthday,6) LIMIT 0,10
mysql error: You have an error in your SQL syntax near 'SUBSTRING(birthday,6) LIMIT 0,10' at line 1
mysql error number: 1064
Date: Thursday 21st of June 2001 10:51:46 PM
Script: /community/boards/admin/commbull.php
Referer: http://www.sports-central.org/commun...n/commbull.php
Any idea? Thanks!

tubedogg 06-22-2001 06:04 AM

Unfortunately that's a limitation of some older versions of MySQL that don't allow sorting by substring. For right now the workaround is to set birthdays to 0 and not send them until I can figure out some other way to do it. :(

Dave# 06-22-2001 08:58 AM

Damn I am having problems:

I have set the comm to only use data from the 1st of June onwards but look at the dates in this snip from the preview.

NB dates are in European format date:month:year

Quote:

Title: "Bruce is New Manager!!!" (posted 05-06-2003 by CM_Addicted)
o 249 replies, 575 views, last post: 09:41 AM, 31-05-2001 by DiscoDaveyf
o http://forums.cpfc.org/showthread.php?s=&threadid=8875

Title: "One word answer; Who would you like to take over from AS??" (posted 05-03-2002 by Eddie McGoldrick's tash)
o 217 replies, 17 views, last post: 07:00 PM, 15-05-2001 by BJ
o http://forums.cpfc.org/showthread.php?s=&threadid=8701

Title: "Redundancies" (posted 03-01-2003 by BarryBee)
o 207 replies, 0 views, last post: 11:00 PM, 25-03-2001 by wedgetail
o http://forums.cpfc.org/showthread.php?s=&threadid=7444

Title: "Jordan has seen enough" (posted 03-12-2001 by ruediger)
o 207 replies, 0 views, last post: 03:11 PM, 12-03-2001 by Bintang
o http://forums.cpfc.org/showthread.php?s=&threadid=7195

Title: "Fans Forum" (posted 05-12-2001 by GreatGonzo)
o 198 replies, 24 views, last post: 01:34 PM, 12-05-2001 by GreatGonzo
o http://forums.cpfc.org/showthread.php?s=&threadid=8660

Title: "Why I'm an eagle" (posted 09-05-2002 by Dave)
o 189 replies, 522 views, last post: 02:51 PM, 18-06-2001 by SAMO*
o http://forums.cpfc.org/showthread.php?s=&threadid=1952

Title: "Supporters of Austin & Harrison" (posted 02-09-2001 by fieldy)
o 164 replies, 0 views, last post: 12:50 AM, 10-02-2001 by Tarby
o http://forums.cpfc.org/showthread.php?s=&threadid=6699

Title: "One word (two if necessary) to describe how you feel at the moment" (posted 04-06-2003 by markholmes1991)
o 160 replies, 12 views, last post: 10:31 PM, 30-04-2001 by Mr_Optimistic
o http://forums.cpfc.org/showthread.php?s=&threadid=8259

Title: "Alan Smith - a correction" (posted 04-08-2002 by James)
o 158 replies, 5 views, last post: 02:58 PM, 20-04-2001 by Wandering Seagull
o http://forums.cpfc.org/showthread.php?s=&threadid=7909

Title: "Jordan's latest folly?" (posted 02-08-2001 by James)
o 158 replies, 0 views, last post: 11:39 PM, 08-02-2001 by JohnA
o http://forums.cpfc.org/showthread.php?s=&threadid=6694


tubedogg 06-22-2001 09:08 AM

Double-check that you have "Only include threads that have been started or replied to since this date?" set to Yes. It is set to No by default.


All times are GMT. The time now is 04:17 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.01568 seconds
  • Memory Usage 1,828KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (8)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
  • (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