MyBB Community Forums

Full Version: [Mycode] popbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(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??
Well it doesnot work for me? Is it because i have disabled HTML ?
(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\]
(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?
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?
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.
(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
This was it. Thanks. I created a second MyCode (with different opening/closing '[]' '/[]') for the internal image source.

Ori...
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.
Pages: 1 2