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)

ShadowOne 11-30-2005 02:09 PM

works great with 3.5.1.....thanks for the great hack...

Megareus Rex 01-21-2006 03:40 AM

Excellent hack, I loved it on 3.0.

*installed

Guest210212002 01-21-2006 04:29 AM

3.5.3 no problems, quick question:

How do I change the alt background of the preview area? Currently it's the same color as the message title (alt1) and I'd like to make it alt2.

/me clicks install

lamilein 01-24-2006 11:57 AM

Quote:

Originally Posted by Chris-777
3.5.3 no problems, quick question:

How do I change the alt background of the preview area? Currently it's the same color as the message title (alt1) and I'd like to make it alt2.

[high]* Chris-777 clicks install[/high]

quick and dirty: edit the xml file of the plugin and re-install it

better: [APM] Advanced Product Management 2.0.3 and edit the html online in the vB database :)

VBUsers 03-11-2006 08:33 PM

installed and works great thanks!

Oblivion Knight 03-11-2006 09:04 PM

Cool.! :)

I'm using the tooltip edit, and replaced the 300 with:
$vbulletin->options['threadpreview']

Eventually you may want to consider turning this in to a product, with it's own setting(s). There's plenty of room for expansion with this.. :)

Ramsesx 03-13-2006 11:45 AM

Very nice, thank you :)

drex 03-23-2006 12:28 AM

mine only shows the list of messages, and no preview.

i don't know WTF is wrong.

i uploaded the plugin. where does the HOOK go? mine is at ajax start. if i put it to pm_messagebit, i get a bunch of errors.

please help!

hotwheels 03-23-2006 12:58 AM

Quote:

Originally Posted by drex
mine only shows the list of messages, and no preview.

i don't know WTF is wrong.

i uploaded the plugin. where does the HOOK go? mine is at ajax start. if i put it to pm_messagebit, i get a bunch of errors.

please help!

You are going into the plug in manager right? In the plugin manager, locate your pm preview and click edit........toward's the end of the code, you will see something like this:
Quote:

$pm['pmpreview'] = strip_quotes($pm['message']);
$pm['pmpreview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($pm['pmpreview']), false, true), 75));
and where the 75 is, that will probably be 300 or so on your's, change it to what ever you want..............i am still using his older version, and it work's like a champ.

drex 03-23-2006 04:29 AM

yep, that's where i am at

PHP Code:

<?xml version="1.0" encoding="ISO-8859-1" ?> 
- <plugins>
- <plugin active="1" product="vbulletin">
  <title>PM Preview v1</title> 
  <hookname>private_messagelist_messagebit</hookname> 
- <phpcode>
- <![CDATA[ 
$pm['pmpreview'] = strip_quotes($pm['message']);
$pm['pmpreview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode(fetch_censored_text($pm['pmpreview']), false, true), 300));

  ]]> 
  </phpcode>
  </plugin>
  </plugins>


any ideas?


All times are GMT. The time now is 08: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.01180 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_php_printable
  • (3)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