The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Replace large images in posts with links to the images Details »» | |||||||||||||||||||||||||||
Replace large images in posts with links to the images
Developer Last Online: Jul 2012
No longer supported by the author.
Show Your Support
|
Comments |
#32
|
|||
|
|||
Quote:
I can add an edited message, either in the post itself (I'm loathed to do this as I'd rather not be inserting text when it may change the context of text within the post in any way) or in the editlog so that it appears at the foot as 'edited by', but I'd rather not do this as it then appears that someone is manually editing everyone's post and people can get uppity about that. Instead, I communicate it globally via an announcement in my "About A Board" forum, and by including image dimensions and what happens when images exceed it to my "Forum Rules". I think this is best as people don't complain about automatic processes that apply the rules universally, but do complain if they perceive that they are being manually edited by admins. That, and if I communicate it as a core rule, I can actually hope to educate them about what happens and why, and thus they may start to do things properly like resize the image and attach it if they really want people to see it, etc. All that said... if most of the people here want text inserted to reflect that a change was made, then I shall do so. There is always the other option though, that you simply look within trimOversizedImages.php and where I insert [/url] append whatever text you want just there. Cheers David K |
#33
|
||||
|
||||
Quote:
No, no, you misunderstood! I really like this hack and will definitely use this when I finally upgrade my board to 3.5. What I meant was: the text insertion isn't a feature yet, hence the request. But I can see where you coming from, and maybe a global announcement is the better way to go. But thanks for the pointer where to put it if I still feel like doing it myself. Thanks again for this great hack, I share the sentiments on the other hacks that try to do the same thing. |
#34
|
|||
|
|||
Hello,
this hack is great and is exactly what I was looking for ! But is there a way to make it vb3.0 compliant ? I suppose I will need to edit my "postbit_legacy" template to insert the postId in the Div, but which Div is concerned, and would it be enought to make it work ? |
#35
|
|||
|
|||
Quote:
A very good point... the original templates never included an identifier, the new templates now include: [code] <!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> [code] So I should now be using post_message_POSTID as the div to search for. I'll update it now for you |
#36
|
|||
|
|||
Oh no, misunderstanding. It does already search for post_message_POSTID. My instructions are crap, not my code
|
#37
|
|||
|
|||
The key message is: If you are not using the original/default postbit templates, then you will need to double check that the post_message_$post[postid] DIV exists.
You can view the original version of the template, and DIFF against it to see which DIV should have this. All those who have installed against a default install will be fine. If you are not on a vb3.5 variant... then the code above WILL work all the way back to vb 2.x, but you need to insert the DIV yourself: FIND: Code:
$post[message] Code:
<div id="post_message_$post[postid]">$post[message]</div> |
#38
|
|||
|
|||
Ok that's what I thought. I'm going to test it, and I'll keep you informed
Thanks for your answear, David ! |
#39
|
||||
|
||||
Does this make a call to the server 'every time' an image is viewed? If so wouldn't it be more efficient to make the call only when a user 'posts' an image, and if it's too big, either make it the url then or notify the poster to resize the image?
There was a hack for phpbb that did it that way |
#40
|
|||
|
|||
When a large image is viewed, a call is made to the server, but as it is then replaced with a link, no more calls are made to the server as no large image is detected. So... only one call is made per large image.
|
#41
|
||||
|
||||
If you have more than 1 image in a post and one is over the dimensions but the other is not, does it make a link for the both of them?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|