vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Private Messages Enhancements - ragtek contact pm (https://vborg.vbsupport.ru/showthread.php?t=212661)

ragtek 05-01-2009 10:00 PM

ragtek contact pm
 
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!!!

htscpl 05-02-2009 09:39 AM

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.

mystikmedia 05-02-2009 10:49 AM

I agree with htscpl's post. It should use more than one column if more than about 5 contacts.

ragtek 05-02-2009 02:13 PM

I'll try to implement it.

Lionel 05-02-2009 03:41 PM

:up: Very useful. Thanks very much.

vbboarder 05-02-2009 07:59 PM

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.

Lionel 05-02-2009 08:31 PM

I implemented the contacts in 3 columns. If it's ok with ragtek, I'll post my changes.

ragtek 05-03-2009 04:32 AM

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*

ragtek 05-03-2009 07:04 AM

With help of andreas i solved the prob with the columns and colspan in 1.0.3.
Here you have now 3 columns

Lionel 05-03-2009 09:18 AM

Here you go. My method is different than Andreas. By default it's 3 columns. That can be changed in vboptions.


All times are GMT. The time now is 06:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01088 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete