The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
parsing [IMG] tags?
Hi,
I'm trying to figure out if there's a way to specifically parse [ IMG ] tags when you parse BB code to HTML. In particular, once the code is parsed I want every parsed image to have a 1 pixel black border around it and be centered on the page. Is there a way to do this? Right now I'm having to do it the hard way (manually centering the image in the VB post and adding a custom BB code I made for the border). |
#2
|
|||
|
|||
This is only a suggestion as I have not tested it:
Open class_bbcode.php find: PHP Code:
Then alter how you see fit with border and such. Hopefully it will do what you want. If I am wrong in this suggestion, someone please correct me. |
#3
|
|||
|
|||
I'm totally lost looking at that code. Where exactly would I insert the modifications?
And I'm guessing class_bbcode.php is what's used for parsing? |
#4
|
|||
|
|||
Yes, notice in the code I gave you, its basic html, find border and alter it how you see fit. Ignore the php code, just look at the html since what you want to do is add html.
If you still get confused I can try to alter it all but it will be alot of code replacing. |
#5
|
|||
|
|||
Awesome, thanks for the tip! I got it working just altering 2 lines of code (adding a "1" to the border and using < center > tags to automatically center all non-smilie images).
|
#6
|
|||
|
|||
Great, glad to hear it.
|
#7
|
|||
|
|||
Actually I noticed a small issue. On line 1945 (or close to it) :
PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|