PDA

View Full Version : Visitor message images


Nordinho
01-31-2010, 02:10 AM
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
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:

<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.