Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PM Preview Details »»
PM Preview
Version: 0.2, by m03 m03 is offline
Developer Last Online: Aug 2010 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.0.2 Rating:
Released: 02-20-2010 Last Update: 02-20-2010 Installs: 183
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

Info:
Add a Preview to the PM Inbox making it easier to manage your Private Messages

Main Features:
- One step installation (no file uploads, no manual template modifications required)
- Option to enable/disable the Preview
- Preview Character Length can be altered by Admin.

Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

To set options:
Go to: AdminCP > vBulletin Options > PM Preview

Versions:
v0.1 - Feb 21, 2010 - First Version.
v0.2 - Feb 21, 2010 - Second Version: Fixed a Bug with the settings.

Download Now

File Type: xml product-pmpreview.xml (4.6 KB, 613 views)

Screenshots

File Type: png pmpreview.png (240.3 KB, 0 views)

Show Your Support

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

Comments
  #42  
Old 01-17-2012, 02:16 PM
Trevor Matthews Trevor Matthews is offline
 
Join Date: Oct 2010
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I am using the default style.
Reply With Quote
  #43  
Old 01-17-2012, 02:24 PM
Trevor Matthews Trevor Matthews is offline
 
Join Date: Oct 2010
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #44  
Old 01-17-2012, 07:09 PM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #45  
Old 01-18-2012, 01:07 AM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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}"?
Reply With Quote
  #46  
Old 01-18-2012, 01:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try ForumsMods PM preview for vb 4. It works fine.
Reply With Quote
  #47  
Old 01-18-2012, 01:34 AM
Stefan118 Stefan118 is offline
 
Join Date: Dec 2010
Location: Vaassen (Netherlands)
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!
Reply With Quote
  #48  
Old 02-21-2012, 12:57 PM
grzywa92 grzywa92 is offline
 
Join Date: Oct 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in new vb , mod not working.
name user replacament word : array
Reply With Quote
  #49  
Old 05-10-2012, 02:20 PM
Pvtiste Pvtiste is offline
 
Join Date: Nov 2005
Location: Toronto
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grzywa92 View Post
in new vb , mod not working.
name user replacament word : array
Same problem
Reply With Quote
  #50  
Old 05-10-2012, 02:39 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showpost.php?p=2289206&postcount=46" target="_blank">https://vborg.vbsupport.ru/showp...6&postcount=46</a>
Reply With Quote
  #51  
Old 02-25-2013, 10:21 PM
Nassou Nassou is offline
 
Join Date: Mar 2007
Location: PHP
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 03:38 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.04784 seconds
  • Memory Usage 2,329KB
  • Queries Executed 26 (?)
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
  • (1)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete