vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PM Preview 3.5 Edition (https://vborg.vbsupport.ru/showthread.php?t=94954)

akanevsky 10-05-2005 10:58 PM

I've noticed that if there is HTML in PM, that HTML is displayed and the page gets broken...

ndahiya 10-06-2005 10:51 AM

looks like it works in 3.5 gold....
not sure of the html prob mentioned above.

Rastus 10-07-2005 05:56 PM

I get "Parse error: parse error, unexpected '<' in /newhome/******/public_html/private.php(1445) : eval()'d code on line 1 when installing this.

SVTOA 10-07-2005 09:02 PM

Works fine on 3.5 Gold.

smokering 10-08-2005 02:12 AM

and smokering clicks install really like this one thank you for this nice hack

pfvc 10-08-2005 08:33 AM

Great mod, works a treat...

Installed on 3.5.0 Gold (I was wondering why it wasn't working to begin with since I had done everything... I realised I had forgotten to active the plugin system globally in the forum's options settings... then it worked lol)

akanevsky 10-08-2005 11:09 AM

Quote:

not sure of the html prob mentioned above.
There is such a problem. But it only happens when there is HTML enableed...

akanevsky 10-26-2005 09:38 PM

Excellent hack bro, keep up the good work!
sorry about the HTML thing, it must've been I used someone else's hack :P

.Tim 10-26-2005 10:03 PM

Would be nice if this could be made optional, so the user could decide if they wanted it on or not.

.Tim 10-26-2005 10:22 PM

Quote:

Originally Posted by .Tim
Would be nice if this could be made optional, so the user could decide if they wanted it on or not.

Just figured out how:

1) Go to admincp and create a new profile field. Choose Multiple-Selection Checkbox. Fill in the details and then choose where you want to appear, I chose Options: Messaging / Notification


2) And then replace either the original code or the hack code if you already did this with (change the xx after field to whatever your field number is):

Code:

<if condition="($vbulletin->userinfo['fieldxx'] == 'Yes')">
<td class="alt1Active" id="m$pm[pmid]" width="100%">
                <div>
                        <span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
                        <a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
                </div>
                <div class="smallfont">
                <i>$pm[pmpreview]</i>       
                </div>
       
        </td>
<else />
<td class="alt1Active" id="m$pm[pmid]" width="100%">
                <div>
                        <span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
                        <a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
                </div>
                <div class="smallfont">
                        <span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
                        <if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
                </div>
       
        </td>
</if>


Don't know if that was the best way to do it but it worked for me. :D


All times are GMT. The time now is 02:25 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.01080 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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