The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to do this
When I post like:
[img ]http://domain.com/picture.jpg[/img] description... and when I want view source, it looks like this: Code:
<a href="http://domain.com/picture.jpg"> <img src="http://domain.com/picture.jpg" /> </a> <div class="des">description...</div> |
#2
|
|||
|
|||
vb is php based so the source will show it that way but as to your question you have not asked one
|
#3
|
|||
|
|||
How to auto add tag <div class="des"> for description... and <a href=" for img ?
|
#4
|
||||
|
||||
I am thinking you will need to hack the file "/includes/class_bbcode.php" to include this extra HTML, if I am interpreting your question correctly.
Open that file, and locate the text: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Quote:
I just wanted to post my img, after finishing post I want the code to be like this: Code:
<a href="http://domain.com/picture.jpg"><img src="http://domain.com/picture.jpg" /></a> <div class="des">description...</div> |
#6
|
||||
|
||||
And I was explaining one possible way to do just that. You could also do it client-side using javascript, but what I suggested would be easier I think.
|
#7
|
||||
|
||||
When you create a new thread/post, you add a linked image to it right?
You are wanting to know how to show tags in the source code for said linked image? Well, you can't that I am aware of unless what MarkFL posted works that way. You can however allow html while posting and use what you showed in your first post to achieve what you are after but, that is a very risking to allow. |
#8
|
|||
|
|||
Quote:
YES After I post have inserted pictures as usual -> OK, then I want when I view source (right click -> View Page Source). the html code will look something like this: When post: I want when I view source (right click -> View Page Source): Code:
<a href="http://localhost/demov4/images/misc/vbulletin1_logo.png"> <img src="http://localhost/demov4/images/misc/vbulletin1_logo.png" /> </a> <div class="des">image 01</div> <a href="http://localhost/demov4/images/misc/vbulletin2_logo.png"> <img src="http://localhost/demov4/images/misc/vbulletin2_logo.png" /> </a> <div class="des">image 02</div> <a href="http://localhost/demov4/images/misc/vbulletin3_logo.png"> <img src="http://localhost/demov4/images/misc/vbulletin3_logo.png" /> </a> <div class="des">image 03</div> <a href="http://localhost/demov4/images/misc/vbulletin4_logo.png"> <img src="http://localhost/demov4/images/misc/vbulletin4_logo.png" /> </a> <div class="des">image 04</div> |
#9
|
||||
|
||||
The HTML that is generated associated with images posted using the IMG tags is done in the file /includes/class_bbcode.php. In this file is a function called "handle_bbcode_img()."
You would also need to alter the PHP code to allow for the innerHTML of your div element to be passed as an option with the IMG tags, for example: Code:
[IMG=image 04]http://localhost/demov4/images/misc/vbulletin4_logo.png[/IMG] |
Благодарность от: | ||
RichieBoy67 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|