Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by christec christec is offline
Developer Last Online: Mar 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-03-2001 Last Update: Never Installs: 18
 
No support by the author.

First off this is Kier's hack and it's a great one. There are other contributors like tubedog.

Update 16-Nov-2001:
Include News Article(s) in bulletin
Optional - Add "Receive Community Email Bulliten" option to the admin CP. When editing a user you can turn on and off the bulletin.
Fixed lasteventdate bug

These changes are based on version 0.98
Changes/Additions
Preview includes html tags
Email is sent in an HTML format
Post to thread is HTML
Updated install to include changes for vBulletin v2.2
Private Forums marked No by default (if accessmask is ON)
Password removed - Link to Forgot your password added

Installation is still the same. If you already have commbull.php installed you can just copy this file to the same location.

(I'm not trying to take any credit for this hack. Just share the modifications that I made.)
Always backup and test.
CC

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-06-2001, 03:17 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did that, but when you edit a user in the CP it does not show up. It only shows when you go to your own profile.
Reply With Quote
  #23  
Old 11-06-2001, 04:08 PM
patvdv's Avatar
patvdv patvdv is offline
 
Join Date: Oct 2001
Location: Belgium
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely extension on a great hack but why not also add the obvious? Add another selection to the USER CP to indicate whether a user wants to receive the bulletin in either TXT or HTML format? And send the email out accordingly?
Reply With Quote
  #24  
Old 11-06-2001, 04:19 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by christec
In the install instructions you will see this (add this field to the users cp)

modifyoptions template
You will need to add this code to an appropriate place in your modifyoptions template:

<tr>
<td bgcolor="#1C5780"><normalfont><b>Receive Community Bulletin Email?</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont>
<input type="radio" name="receivebulletin" value="yes"$receivebulletinchecked> Yes
<input type="radio" name="receivebulletin" value="no"$receivebulletinnotchecked> No
</normalfont></td>
</tr>
Look at this screen shot of the CP:
Reply With Quote
  #25  
Old 11-06-2001, 04:31 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to create the e-mail to generate "most recently posted", and it is giving threads that are 2 months old.....?
Reply With Quote
  #26  
Old 11-06-2001, 04:39 PM
christec christec is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add Receive Community Email Bulletin field to Admin CP, under "Edit User"

Here ya go :stoned:
Reply With Quote
  #27  
Old 11-06-2001, 04:51 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay, but what about the fact that the hack does not produce the correct dates?
It makes it quite useless.
Reply With Quote
  #28  
Old 11-06-2001, 05:10 PM
christec christec is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Prince
I'm trying to create the e-mail to generate "most recently posted", and it is giving threads that are 2 months old.....?
The order that you put the thread blocks in and this option -
Reuse threads gathered for this block?
Will affect the output.
Reply With Quote
  #29  
Old 11-06-2001, 05:47 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by christec


The order that you put the thread blocks in and this option -
Reuse threads gathered for this block?
Will affect the output.
I'm not sure what you mean....

All I am trying to do is one block (the first block) I put 10 and select "most recently posted". Using the date: 11-01-2001

It spits out threads that 2-3 months old, and I mean threads that have not been replied to for 2-3 months.

AND it is saying that some posts were posted in the year 2003!...which is what seems to be the problem.

Any ideas????
Reply With Quote
  #30  
Old 11-06-2001, 08:30 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Save as ubbdatefix.php, upload to admin directory and run in browser.

(back-up your database first!!!)


PHP Code:
<?
require("./global.php");
if (!isset($action)) {
    echo("This script will correct the dates on threads which were imported from UBB5.4x. Make sure you backup your database before proceeding!<br>");
    echo("If you have a backup, <a href="fixubbdate.php?action=doconvert">click here</a> to proceed.");
}
if ($action=="doconvert") {
  $threads=$DB_site->query("SELECT MIN(post.postid),post.dateline AS dateline,post.threadid AS id,thread.threadid FROM post,thread WHERE post.threadid=thread.threadid GROUP BY thread.threadid ORDER BY thread.threadid ASC");
  echo("Line inserted on purpose<br>Rows in result: ");
  echo(mysql_num_rows($threads));
  while ($thread=$DB_site->fetch_array($threads)) {
    $DB_site->query("UPDATE thread SET dateline='$thread[dateline]' WHERE threadid='$thread[id]'");
    echo(mysql_affected_rows());
    $i++;
    if ($i==50) {
        echo("Updated another 50 threads...continuing<br>");
        $i = 0;
    }
  }
} else {
  echo("Done.");
}
?>
Reply With Quote
  #31  
Old 11-06-2001, 08:34 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did it work for you? I got:

Quote:
Warning: Failed opening '/home/smachol/public_html/forums/admin/fixubbdate.php' for inclusion (include_path='') in Unknown on line 0
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04562 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete