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

Reply
 
Thread Tools
ragtek contact pm Details »»
ragtek contact pm
Version: 1.1.1, by ragtek ragtek is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.8.x Rating:
Released: 05-01-2009 Last Update: 05-03-2009 Installs: 22
Uses Plugins Template Edits
 
No support by the author.

This Add-on adds the contacts from the user to the new pm form.


Installation:
Install the xml, if you don't have installed tms, make this:
Search in pm_newpm template for:
HTML Code:
			<tr>
				<td>
					<if condition="$show['sendmax']"><div><phrase 1="$permissions[pmsendmax]">$vbphrase[may_send_to_x_people]</phrase></div></if>
					<if condition="$show['sendmultiple']"><div>$vbphrase[separate_multiple_names]</div></if>
				</td>
			</tr>
			</table>
		</fieldset>
		<!-- / recipients field -->
Add above
HTML Code:
<if condition="$show[rag_contacts]">
			<tr>
				<td>
<table width="100%">
<thead>
    <tr>
        <td class="tcat">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('rag_pmfriends')"><img id="collapseimg_rag_pmfriends" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_rag_pmfriends].gif" alt="" border="0" /></a>
           $vbphrase[contacts]
        </td>
    </tr>
</thead>
<tbody id="collapseobj_rag_pmfriends" style="$vbcollapse[collapseobj_rag_pmfriends]">
<tr><td><table>
$rag_friends
</table></td></tr>
</tbody>
</table>
				</td>
			</tr>
<script type="text/javascript">
toggle_collapse('rag_pmfriends');
</script></if>
BUT ONLY IF YOU DON'T HAVE INSTALLED TMS!!!

Show Your Support

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

Comments
  #22  
Old 05-17-2009, 03:46 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack
just installed
Thanks
Reply With Quote
  #23  
Old 05-23-2009, 07:01 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there seem to be a bug when you click on Go Advanced. Since there are no $_POST['rag_recipients']

foreach ($_POST['rag_recipients'] AS $rag_recipient)

you get an error.

So I made the plugin

Quote:
if ($_POST['do'] == 'insertpm' AND $_POST['rag_recipients'])
Reply With Quote
  #24  
Old 05-24-2009, 03:01 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx
i'll correct it for the next version
Reply With Quote
  #25  
Old 05-24-2009, 03:38 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
there seem to be a bug when you click on Go Advanced. Since there are no $_POST['rag_recipients']

foreach ($_POST['rag_recipients'] AS $rag_recipient)

you get an error.

So I made the plugin
I don't understand what you mean, sorry.

That's allready in the plugin! Or do you mean something other?
PHP Code:
<?php
// title: set recipients
// code:
if ($_POST['do'] == 'insertpm' AND $_POST['rag_recipients'])
{    
    foreach (
$_POST['rag_recipients'] AS $rag_recipient)
    {
        
$string_rec .= $rag_recipient '; ';
    }
    if (
$_POST['recipients'] != '')
    {
        
$_POST['recipients'] = $_POST['recipients'] . '; ' $string_rec;
    }
    else
    {
        
$_POST['recipients'] = $string_rec;
    }
}

?>
Reply With Quote
  #26  
Old 05-24-2009, 06:07 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah ok ... I was using original version

PHP Code:
if ($_POST['do'] == 'insertpm')
{
    foreach (
$_POST['rag_recipients'] AS $rag_recipient
Reply With Quote
  #27  
Old 06-25-2009, 08:57 AM
TAIFUN_T's Avatar
TAIFUN_T TAIFUN_T is offline
 
Join Date: Apr 2009
Location: Ukraine
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, ragtek

When i looke my forum in archive version, i see this error message
Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/archive/global.php(40) : eval()'d code on line 155
Reply With Quote
  #28  
Old 08-01-2009, 12:41 AM
alsultan88 alsultan88 is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnxxxxxx
good work i try it on 3.8.1
Reply With Quote
  #29  
Old 08-01-2009, 10:18 AM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great and wonderful job, Ragga Installed & Nominated for sure Fits well and works well too

German:
Super Arbeit, Daniel Installiert & Nominiert Hervorragende Arbeit wie immer Passt, sitzt und hat Luft
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:56 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.12295 seconds
  • Memory Usage 2,302KB
  • 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_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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