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
  #2  
Old 05-02-2009, 09:39 AM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoohoo first post -- installed **

Looks great, checking it out now.

Just one question, can it be made to list the contacts across the table in columns instead of down one row. I have lots of contacts and it makes for a long page.
Reply With Quote
  #3  
Old 05-02-2009, 10:49 AM
mystikmedia mystikmedia is offline
 
Join Date: Feb 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree with htscpl's post. It should use more than one column if more than about 5 contacts.
Reply With Quote
  #4  
Old 05-02-2009, 02:13 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll try to implement it.
Reply With Quote
  #5  
Old 05-02-2009, 03:41 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:up: Very useful. Thanks very much.
Reply With Quote
  #6  
Old 05-02-2009, 07:59 PM
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Location: Silicon Valley, CA
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you put the contacts in a dropdown list using the vBmenu script instead of a collapsible table? That way, the contacts list won't take up lots of space and you don't have to code for multiple table columns.
Reply With Quote
  #7  
Old 05-02-2009, 08:31 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I implemented the contacts in 3 columns. If it's ok with ragtek, I'll post my changes.
Reply With Quote
  #8  
Old 05-03-2009, 04:32 AM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi
yes it is ok

my prob is the building of the table
for example if there are 10 contacts and you have 3 columns there are 3 lines with 3 values and one columtn with 1 value. but this should have a colspan of 3, so that the tablehtml is right
how have you solved this?*g*
Reply With Quote
  #9  
Old 05-03-2009, 07:04 AM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With help of andreas i solved the prob with the columns and colspan in 1.0.3.
Here you have now 3 columns
Reply With Quote
  #10  
Old 05-03-2009, 09:18 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go. My method is different than Andreas. By default it's 3 columns. That can be changed in vboptions.
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 01:44 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.05384 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (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
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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