[Mycode] popbox
#11
(2008-11-14, 12:58 PM)@r3 Wrote: Great, but maybe it should to do, that everybody tags in [img][/img] will be the same ?
Great idea!! is that possible??
[Image: 30shrsy.jpg]
[Image: 2i254p1.jpg]
Reply
#12
Well it doesnot work for me? Is it because i have disabled HTML ?
Reply
#13
(2008-11-14, 01:59 PM)l2tecno Wrote:
(2008-11-14, 12:58 PM)@r3 Wrote: Great, but maybe it should to do, that everybody tags in [img][/img] will be the same ?
Great idea!! is that possible??

Yes it's possible & easy Wink

Just you replace :
 \[popbox\](.*?)\[/popbox\]

by :
 \[img\](.*?)\[/img\]
Sorry for my thread english but i'm french ;p
Reply
#14
(2008-11-14, 05:00 PM)¤ Magic ¤ Wrote:
(2008-11-14, 01:59 PM)l2tecno Wrote:
(2008-11-14, 12:58 PM)@r3 Wrote: Great, but maybe it should to do, that everybody tags in [img][/img] will be the same ?
Great idea!! is that possible??

Yes it's possible & easy Wink

Just you replace :
 \[popbox\](.*?)\[/popbox\]

by :
 \[img\](.*?)\[/img\]

Thank but i do that and this include the signatures, any way to exclude the signature?
[Image: 30shrsy.jpg]
[Image: 2i254p1.jpg]
Reply
#15
Sorry about the double post, but any solution for this?

Quote:Thank but i do that and this include the signatures, any way to exclude the signature?
[Image: 30shrsy.jpg]
[Image: 2i254p1.jpg]
Reply
#16
Can you change it so The user (or me) would only need to enter the name of the picture
[popbox]12345.png[/popbox]
I want the code to grab the picture I entered from a specific folder (on my site).

Thanks,
Ori...

P.S sorry for my English (as some know) I'm a Hebrew speaker.
Of two equivalent theories or explanations, all other things being equal, the simpler one is to be preferred.
simplified translation of Occam's razor

[Image: 82pwtx]
Reply
#17
(2008-11-17, 11:27 AM)l2tecno Wrote: Sorry about the double post, but any solution for this?

Quote:Thank but i do that and this include the signatures, any way to exclude the signature?

I do not know how, but the standard size of signatures being 150x50
You can change through:

<script src="http://yourdomaine/Popbox/scripts/PopBox.js" type="text/javascript"></script>
<link href="http://http://yourdomaine/Popbox/stylesheets/PopBoxStyles.css" rel="stylesheet" type="text/css" />
<img id="$1" src="$1" pbshowcaption="true" pbcaption="Pop Box Effect" style="width: 150px; height: 50px;" class="PopBoxImageSmall" title="Cliquez pour agrandir l'image" onclick="Pop(this,50,'PopBoxImageLarge');" name="Pop Box Effect" />


(2008-11-18, 11:29 PM)okitai Wrote: Can you change it so The user (or me) would only need to enter the name of the picture
[popbox]12345.png[/popbox]
I want the code to grab the picture I entered from a specific folder (on my site).

Thanks,
Ori...

P.S sorry for my English (as some know) I'm a Hebrew speaker.

If I understand what you ask, replaced as follows:

<script src="http://yourdomaine/Popbox/scripts/PopBox.js" type="text/javascript"></script>
<link href="http://http://yourdomaine/Popbox/stylesheets/PopBoxStyles.css" rel="stylesheet" type="text/css" />
<img id="$1" src="http://yourdomaine/youfolderimage/$1" pbshowcaption="true" pbcaption="Pop Box Effect" style="width: 150px; height: 100px;" class="PopBoxImageSmall" title="Cliquez pour agrandir l'image" onclick="Pop(this,50,'PopBoxImageLarge');" name="Pop Box Effect" />
Wink
Sorry for my thread english but i'm french ;p
Reply
#18
This was it. Thanks. I created a second MyCode (with different opening/closing '[]' '/[]') for the internal image source.

Ori...
Of two equivalent theories or explanations, all other things being equal, the simpler one is to be preferred.
simplified translation of Occam's razor

[Image: 82pwtx]
Reply
#19
pretty cool one but if you delete one of width: 150px; or height: 100px; code from Replacement becouse distorts pictures so the thumbnail images can be look better. couse browsers will calculate other size automaticly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)