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: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-08-2002 Last Update: Never Installs: 34
 
No support by the author.

Hiyas,

I dont like static email notifications and fancy coloring them up a bit. So this hack is one way to do it. (If I can spare time, more is likely to follow)

This hack simply sends a small portion of user's reply to thread subscribers in their notification mail. It's also possible to send the whole reply, but I dont suggest this, because if they read it all, they wont visit the original thread. But just giving a hint and sending a few lines can be provoking to get them to your board ASAP.

It's an easy to install hack and you can easily customize it by choosing how many characters of the reply will be sent to the members.

I use this hack in V.2.2.2 and havent noticed any problems. Please report bugs in this thread..

Enjoy! \\=^))

Regards,
Logician

Show Your Support

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

Comments
  #2  
Old 02-09-2002, 03:35 PM
haas haas is offline
 
Join Date: Jan 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds interesting... Anything for get the members back
Reply With Quote
  #3  
Old 02-09-2002, 04:01 PM
dost dost is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack thanks, I'll try it. Does it strip vB code? If not, can you please add that feature.

Thanks
Reply With Quote
  #4  
Old 02-13-2002, 08:51 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there,

Quote:
Originally posted by dost
Does it strip vB code? If not, can you please add that feature.
Striping the VB code feature is not very easy to add. I am adding other hacks to my board at the moment (and sharing them here) and if can find time for your request, I'll let you know..

Regards,
Logician
Reply With Quote
  #5  
Old 07-05-2002, 10:32 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

Great hack! Very helpful to keep the users visiting the forums.

A question though: one of my mods is restricted to surf the web at his work, but is able to receive e-mail.

I want to enable full message posting for him, but limited to 50 chars for all other visitors.
I've tried the following code in newreply.php, but to no avail:
Code:
    if ($visible) {
		if ($bbuserinfo[userid]==xxx) {
		// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
		$logic_mes_sum= $message;
		} else {
		$logic_mes_sum= substr($message, 0, 50)."... ";
		}
		// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
		  sendnotification ($threadinfo['threadid'], $bbuserinfo['userid'], 0);
		    }
How can I enable full extracts for this specific user, but limited extracts for all others?
Reply With Quote
  #6  
Old 07-06-2002, 07:26 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by djr
How can I enable full extracts for this specific user, but limited extracts for all others?
What you did it is uncorrect. (Revert your modification to original)You have to edit admin/functions:

Find:

PHP Code:
$touser['username']=unhtmlspecialchars($touser['username']); 
After that replace the part:

PHP Code:
 eval("\$emailmsg = \"".gettemplate("email_notify",1,0)."\";");
    eval(
"\$emailsubject = \"".gettemplate("emailsubject_notify",1,0)."\";");

    
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>"); 
As:

PHP Code:

if ($touser['userid']==X){
eval(
"\$emailmsg = \"".gettemplate("email_notify_special",1,0)."\";");
    eval(
"\$emailsubject = \"".gettemplate("emailsubject_notify",1,0)."\";");

    
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

}
else
{
eval(
"\$emailmsg = \"".gettemplate("email_notify",1,0)."\";");
    eval(
"\$emailsubject = \"".gettemplate("emailsubject_notify",1,0)."\";");

    
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

(Replace X with userid of your special user.)

Now add a new template named email_notify_special, the content is same with email_notify template, just one modification:
Replace $logic_mes_sum as $message in the new template.

I didnt test this but it should work..

Enjoy..
Logician
Reply With Quote
  #7  
Old 07-06-2002, 10:16 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

Thank you, that worked flawlessly!

I had ofcourse reverted all my changes to your hack, because it gave me some errors. With this update the whole contents of the reply is sent by e-mail (tested on myself).

Again, great hack and great update! Thank you for quick reponse.

- djr
Reply With Quote
  #8  
Old 07-07-2002, 11:47 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with 2.2.6??
Reply With Quote
  #9  
Old 07-07-2002, 12:41 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, got 2.2.6 installed myself
Reply With Quote
  #10  
Old 09-12-2002, 10:21 PM
MalaK_3araby MalaK_3araby is offline
 
Join Date: Dec 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician ... Thanks man.
Reply With Quote
  #11  
Old 10-16-2002, 07:32 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, Logician. Thanks!

Our new group comes from another that's been around for years where some of us read online, but many subscribe to what's posted by way of a mailing list.

This will make a lot of people very happy.

Cheers!
Reply With Quote
  #12  
Old 11-21-2002, 10:46 AM
leon2u leon2u is offline
 
Join Date: Mar 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hai there,

I want to use your hack but I need it for this:
My sub-forum is called UPDATES so whenever I make a new thread (and a new posting is made automatically of course) I want to have the message contents in my e-mailmoderator template. Your hack does not work all the way because in creating the thread it does not see the message contents. It works but only when you add a second posting in that thread.

Can you help me?
Reply With Quote
  #13  
Old 03-17-2003, 06:30 PM
Doubledoom Doubledoom is offline
 
Join Date: Dec 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed it on 2.3.0 - waiting for first email reply to check its working.

However, install instructions were straightforward enough and there were no code differences to be concerned with.
Reply With Quote
  #14  
Old 03-19-2003, 07:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sinan, did you ever find the time to come up with the code to strip out vbcode in the message? vb 3.0 has that feature and it would be good to have it for those of us who aren't going to upgrade right away.
Reply With Quote
  #15  
Old 04-14-2003, 12:05 AM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack . . .The only problem I have is now there is no subject in the emails. . .
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 04:43 PM.


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.05141 seconds
  • Memory Usage 2,357KB
  • Queries Executed 28 (?)
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_code
  • (3)bbcode_php
  • (2)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
  • (2)pagenav_pagelink
  • (15)post_thanks_box
  • (15)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (15)post_thanks_postbit_info
  • (14)postbit
  • (15)postbit_onlinestatus
  • (15)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