Linked image w/no border in Caption Linked image w/no border in Caption
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Linked image w/no border in Caption

Started by TeenStorm, May 29, 2007, 07:19:15 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

TeenStorm

Despite the fact that I'm very new at the whole bbcode thing I figured out how to add a linked image to the picture's caption like so:

[url=http://teenstorm.com/][img]http://teenstorm.com/images/teenstorm_logo_generation4_master_nontransgif.gif[/img][/url]

I'm just having a hard time getting it to work if I try to set the linked image with a border=0; CPG just shows the code. 

I've read a few posts that indicate I may be able to modify include/functions.inc.php to fit my application but I'm not making the connection yet... should I just add my own lines or mod some of the existing ones. 

angelicodin

I'm no expert on BB code (yet) but you could try just using HTML tag.

Joachim Müller

@angelicodin: nope - you can't use HTML in description fields for security reasons. That's why bbcode exists in the first place. If HTML would work, there would be no reason to have bbcode, don't you agree?

@TeenStorm: just edit your stylesheet as you see fit. Post a deep link to your coppermine-driven gallery, preferably to a page that contains the bbcode snippet you posted.

kiteflier98

That was really helpful information to me.  I figured out how to put a link in a caption now!  I was trying to use html and couldn't figure out how to get it to work.  I'm learning so much here!  Thanks a bunch!

chris.h

Quote from: TeenStorm on May 29, 2007, 07:19:15 AM
Despite the fact that I'm very new at the whole bbcode thing I figured out how to add a linked image to the picture's caption like so:

[url=http://teenstorm.com/][img]http://teenstorm.com/images/teenstorm_logo_generation4_master_nontransgif.gif[/img][/url]

I'm just having a hard time getting it to work if I try to set the linked image with a border=0; CPG just shows the code. 

I've read a few posts that indicate I may be able to modify include/functions.inc.php to fit my application but I'm not making the connection yet... should I just add my own lines or mod some of the existing ones. 

You say you got this to work, displaying an image without a border? Would you care to share how as I've tried just about every comb of stylesheets and bbcode that I can thik of but I still get a border arround any linked images in the description field?

chris.h

Typical. You make a post after spending hours trying to solve the problem then stumble on something that works... ::)

adding

.bblink img {
        color: #fff;
        border: none;
}

to the site css does the tric.

I hadn't noticed the additional bbcode links on the css so didn't realise they had their own style sheet definitions. All working now anywat  :)