Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Pre-Defined PM Text For each user Details »»
Pre-Defined PM Text For each user
Version: 1.0.0, by Omranic Omranic is offline
Developer Last Online: Sep 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.3 Rating:
Released: 02-12-2006 Last Update: 02-12-2006 Installs: 3
Template Edits
 
No support by the author.

This Mod isn't supported any more!


hello every one here,

This hack is very simple & effective, it give every user the ability to specify a Pre-Defined PM Text to be shown automatically in PM Sending text area.

simply two profile fields added & one template edit


Ist go to admincp & click "Add New User Profile Field"
Profile Field Type: Single-Selection Radio buttons
click continue
Title: Pre-Defined PM text active or not.
Description: Here you can determine is this option is on or off, if on select yes if not select off.
Options:
Code:
No
Yes
Set Default: Yes
Display Order: leave it as it is
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No

leave other options as it is & go to the last option "Display Page" & select the value "Options Messaging & Notification".

Now Press Save

_________________________________________


Now we will add the second Profile field
Ist go to admincp & click "Add New User Profile Field"
Profile Field Type: Multiple-Line Text Box
click continue
Title: Pre-Defined PM text.
Description: Here you can write your Pre-Defined PM text.
Default Value: leave it blank
Max length of allowed user input: 500
Display Size: 63
Text Area Height: 6
Display Order: leave it as it is
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Regular Expression: leave it blank

leave other options as it is & go to the last option "Display Page" & select the value "Options Messaging & Notification".

Now Press Save

_________________________________________


No from User Profile Field Manager see the name of each profile field we have added, the first one we added I called it fieldX & the second I called it fieldY So note for this, you must replace X by the number of the first field we have added & Y with the second field we have added in the following template edit

go to template "editor_toolbar_on" & search in it for the following code:
HTML Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>
& replace it by the following code:
HTML Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]<if condition="THIS_SCRIPT == 'private'"><if condition="$bbuserinfo['fieldX'] == 'Yes'">$bbuserinfo[fieldY]</if></if></textarea>
click save

Now you are done

Known Issues: when forwarding or replying to a PM the Pre-Defined PM text will be written also after the PM quoted

Don't forget to click INSTALL

Show Your Support

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

Comments
  #2  
Old 02-13-2006, 12:01 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Allow me to be your first installer! Thanks man!
Reply With Quote
  #3  
Old 02-14-2006, 04:45 AM
lazyseller lazyseller is offline
 
Join Date: Oct 2003
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aftermath you must have every hack on vb.org installed on your board..
Reply With Quote
  #4  
Old 02-14-2006, 05:35 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about you lazyseller
Do you like this hack ?
Reply With Quote
  #5  
Old 02-24-2006, 04:44 PM
Luggruff's Avatar
Luggruff Luggruff is offline
 
Join Date: Apr 2005
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this similar to this ? Or does you hack only support one pre-defined PM text?
Reply With Quote
  #6  
Old 04-24-2006, 12:30 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not exactly as you posted

my hack hanlds only one PRE-Defined PM MSG
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 02:17 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.04326 seconds
  • Memory Usage 2,253KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete