vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Visitor message images (https://vborg.vbsupport.ru/showthread.php?t=234585)

Nordinho 01-31-2010 02:10 AM

Visitor message images
 
Does anyone know in which file the visitor messages images are created? I want to resize them, but I can't find a template that deals with the images for the visitor messages, so I figure it's gotta be in a file somewhere...

kh99 01-31-2010 11:43 AM

Hmm...maybe I'm missing something, but aren't they just URLs (as opposed to images stored on your server)? But even so, I guess you could resize them by putting the right style attributes on the img tag after the bbcode is processed.

Nordinho 01-31-2010 02:12 PM

Quote:

Originally Posted by kh99 (Post 1971183)
Hmm...maybe I'm missing something, but aren't they just URLs (as opposed to images stored on your server)? But even so, I guess you could resize them by putting the right style attributes on the img tag after the bbcode is processed.

That was my initial thought as well, however I can't find the template it's done in. It's not in the visitor messages templates. It doesn't use the postbit attachment templates. But maybe I'm overlooking it?

kh99 01-31-2010 07:11 PM

Well maybe I don't understand exactly what you're looking for. There's a template called memberinfo_vistormessage, and in the middle somewhere there's a line:

Code:

<div class="visitor_message_body" id="vmessage_text_$message[vmid]">$message[message]</div>

which I believe is what puts the actual message content in there. If it contains an image then it will be an HTML img tag at that point. I guess if you want to find a hook to put a plugin to change it before it gets to that point you'd have to go to the code. It looks like class_profileblock.php and class_visitormessage.php (both in "includes") are involved. If this doesn't help maybe you can clarify and I'll let someone else take a shot at answering.


All times are GMT. The time now is 06:48 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.01035 seconds
  • Memory Usage 1,714KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete