The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey guys,Hope this is the right place but i am trying to do something but am in the dark on how.
Basically i want to edit the default code used to [img] tags.I would basically like to add my own custom border image to it so when an image is posted using the [img] tags the border will be displayed around images.However i am unsure of how to go about this.I know how to code it i just dont know there to find the code that does this.Any help would be great.Thanks |
#2
|
||||
|
||||
![]()
I'd suggest creating a BB code. Much easier and then you can always create various version and borders with bb codes :P
|
#3
|
|||
|
|||
![]()
EDIT:After thinking this over more i think you are right.So that leaves one question.I created a custom BB code which works for displaying images with the border i wanted.However i havent got a clue on how to make images "clickable links" so a thumbnail can direct to the full image.Any help would be great.
|
#4
|
|||
|
|||
![]()
bump
|
#5
|
||||
|
||||
![]()
well thats a toughish one.
Why not link the image to the thumbnail, so a thumbnail shows up and link that thumbnail to the full image? |
#6
|
|||
|
|||
![]()
Hello again,
Thats actually what i am trying to do but either i did something wrong or it isnt working correctly.When i add the thumnail image that works fine but when i try to link it to the full image it just wont work and messes up the custom bb tags.Could you perhaps post an example so i can double check to see if mine is correct? |
#7
|
||||
|
||||
![]()
Now I'm getting kinda confused try to sort this one out. I'm thinking maybe create a justify box, and insert your thumbnail inside it, So the border wraps around it leaving no gaps and have the thumnail linked to full sized image using a [url=http://blah.com/blah.jpg[/url] around the img coding.
|
#8
|
|||
|
|||
![]()
This is the code i am using for my custom BB code.It works fine for images/thumbnails but it will no work when trying to add a hyperlink.Hope this helps clear up your confusion.
Quote:
|
#9
|
||||
|
||||
![]()
Find in "includes/class_bbcode.php":
Code:
function handle_bbcode_img_match($link) { $link = $this->strip_smilies(str_replace('\\"', '"', $link)); // remove double spaces -- fixes issues with wordwrap $link = str_replace(' ', '', $link); return '<img src="' . $link . '" border="0" alt="" />'; } Code:
function handle_bbcode_img_match($link) { $link = $this->strip_smilies(str_replace('\\"', '"', $link)); // remove double spaces -- fixes issues with wordwrap $link = str_replace(' ', '', $link); return '<span class="post"><img src="' . $link . '" border="0" alt="" /></span>'; } Scroll down to Additional CSS Definitions and add this: Code:
.post image{ border-style:dashed; border-color:red; border-width:1px; } |
#10
|
|||
|
|||
![]()
Thanks acid but that doesnt help me to much as i dont want a css border i want a border made of custom graphics that i have made.See the code in my post above yours to see what i mean.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|