The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Seems to be working, might be version dependent though? Interstingly it doesn't seem to entirely replace the default IMG behavoir, but puts mods on top of it.
Any idea what code snippit is responsible for the popup url browser generated by the insert link or insert image default buttons? And can that code be inserted in the custom bb code interface or does it have to be coded into the php doc? I'm still looking into use of the {option} use and syntax so my answer may lie there... |
#12
|
|||
|
|||
Quote:
Quote:
Quote:
|
#13
|
|||
|
|||
anyone know how to change "alt" attribute in default img bbcode?
|
#14
|
|||
|
|||
You should look at the code in function handle_bbcode_img(), in file includes/class_bbcode.php. In some cases the contents of the alt attribute comes from the phrases image_larger_version_x_y_z or image_x_y_z, so you may be able to do what you want by translating those phrases. Otherwise you'd probably need to edit the php code in that file.
|
#15
|
|||
|
|||
I actually just did this in includes/class_bbcode.php look for the following function I added the red part to fit my forums fixed width.
Code:
function handle_bbcode_img_match($link, $fullsize = false) { $link = $this->strip_smilies(str_replace('\\"', '"', $link)); // remove double spaces -- fixes issues with wordwrap $link = str_replace(array(' ', '"'), '', $link); $retval = ($fullsize ? '<div class="size_fullsize">' : '') . '<img width="920px" src="' . $link . '" border="0" alt="" />' . ($fullsize ? '</div>' : ''); ($hook = vBulletinHook::fetch_hook('bbcode_img_match')) ? eval($hook) : false; return $retval; } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|