vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Private Messages Enhancements - PM Preview (https://vborg.vbsupport.ru/showthread.php?t=236500)

Trevor Matthews 01-17-2012 02:16 PM

Hi

I am using the default style.

Trevor Matthews 01-17-2012 02:24 PM

I just installed the PM mod mentioned in the post at the top of this page and it is working fine.

Many thanks for your help Boofo.

Stefan118 01-17-2012 07:09 PM

I have the same problem.

Exapmle of a PM in my list:
Array postings verwijderd en een link geplaatst naar uw site
Hallo Arien, bij deze de mededeling dat wij div postings hebben verwijder en in een bericht de link hebben geplaatst naar jou site voor het verhaal over kds. hopende je hiermede voldoende te hebben geïnformeerd.

The word Array has to be the username who send me the PM in the inbox or the username who i send the PM to in the send box.

I remember me that i have to change something with bbuserinfo....
Don't know what exactly. There was a change in that.

The mod on the first post of this page dosn't work for me, the coder has tried to get it right for me, but gave up.

I use a custom style and a standard style.
Both styles have the same problem.

Please help me out.

Stefan118 01-18-2012 01:07 AM

I have tried some more and narrowed the problem down i think.
In the "pm_messagelistbit_preview" template is the following code:

Code:

<li class="blockrow pmbit" id="pm_{vb:raw pm.pmid}">
        <div class="datetime">
                <label for="pm_imod_checkbox_{vb:raw pmid}">{vb:raw pm.senddate} <span class="time">{vb:raw pm.sendtime}</span> <vb:if condition="$show['pmcheckbox']"><input type="checkbox" name="pm[{vb:raw pmid}]" id="pm_imod_checkbox_{vb:raw pmid}" value="{vb:raw groupid}" /></vb:if></label>
        </div>
        <img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" />
        <vb:if condition="$show['pmicon']">
                <img src="{vb:raw pm.iconpath}" class="posticon" alt="{vb:raw pm.icontitle}" />
        </vb:if>
        <vb:if condition="!$show['unread']">
               
                {vb:raw userbit} <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>
               
                <fieldset style="padding-left:10px;width:80%;">{vb:raw preview}</fieldset>
        <vb:else />
                <span class="unread">
                {vb:raw userbit} <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>
                </span>       
                <fieldset style="padding-left:10px;width:80%;">{vb:raw preview}</fieldset>
               
        </vb:if>
        <hr class="none" />
</li>


If I remove the red marked code, the word "Array" is gone. However, there is also no username from who you got the PM.

Is there an other code for "{vb:raw userbit}"?

Boofo 01-18-2012 01:17 AM

Try ForumsMods PM preview for vb 4. It works fine.

Stefan118 01-18-2012 01:34 AM

No, this mod doesn't work for me.
Adrian has tried to fix my problem with that mod.
Gave him access to my ACP and all, but he couldn't get it work.

The problem with that mod is if you have 10 PM's, the first PM perview is correct.
The second preview the text is double.
The third preview the text is triple
and so on.

So at the 10th PM you see the preview 10 times!!!

grzywa92 02-21-2012 12:57 PM

in new vb , mod not working.
name user replacament word : array :(

Pvtiste 05-10-2012 02:20 PM

Quote:

Originally Posted by grzywa92 (Post 2301929)
in new vb , mod not working.
name user replacament word : array :(

Same problem :(

Boofo 05-10-2012 02:39 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2289206&postcount=46" target="_blank">https://vborg.vbsupport.ru/showp...6&postcount=46</a>

Nassou 02-25-2013 10:21 PM

For those who are getting the "Array" message you just need to replace "{vb:raw userbit}" by

<vb:each from="userbit" value="row">
<a href="{vb:link member|js, {vb:raw row}}" class="username understate"><b>{vb:raw row.username}:</b></a>{vb:raw row.comma}
</vb:each>

In the template pm_messagelistbit

There is also a better mod in this thread :

> https://vborg.vbsupport.ru/showthread.php?t=277502


All times are GMT. The time now is 01:01 PM.

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.01810 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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