https://www.icyphoenix.com/viewtopic.php?f=26&t=3154
-----------------------------------
RamboMann
Thu 22 Nov, 2007 15:06

FAP SUPPORT - Fab Bbcode
-----------------------------------
The pictures are indicated [ albumimg]pic id[/albumimg ], only as thumbnail, with click in such a way the user on album are led, I would like however in the contribution to have increased. Like I know so changes with upload kind of of bbcodes add [img]URL pic[/img ] 

Thanks


-----------------------------------
RamboMann
Fri 23 Nov, 2007 13:58

Re: Fab Bbcode
-----------------------------------
which is here loosely can me none help or which, one must beg you :evil:


-----------------------------------
novice programmer
Fri 23 Nov, 2007 16:38

Re: Fab Bbcode
-----------------------------------
[b]RamboMann[/b], please wait, MG reviews all new posts in threat when connects.

If you dont recive help is because no users know the way to do what you want.


-----------------------------------
RamboMann
Sun 25 Nov, 2007 01:11

Re: Fab Bbcode
-----------------------------------
perhaps I would like that the pictures in the contribution am fully indicated, can me thereby someone help. the code can be made also with. [ albumimg]pic id[/albumimg ]  :?:


-----------------------------------
pepi
Sun 25 Nov, 2007 13:51

Re: Fab Bbcode
-----------------------------------
[quote user="RamboMann" post="21761"]perhaps I would like that the pictures in the contribution am fully indicated, can me thereby someone help. the code can be made also with. [ albumimg]pic id[/albumimg ]  :?:[/quote]
Hi

here 
[code linenumbers=false][albumimg mode=full]Pic ID[/albumimg][/code]
Pepi


-----------------------------------
Artie
Sun 25 Nov, 2007 18:41

Re: Fab Bbcode
-----------------------------------
Or for a non-Icy (phpBB2) installation it would be


[codeblock][fullalbumimg]Pic ID[/fullalbumimg][/codeblock]


-----------------------------------
RamboMann
Sun 25 Nov, 2007 20:50

Re: Fab Bbcode
-----------------------------------
as first the best thanks
I inserted this small Addon.

[code linenumbers=false]# 
#-----[ OPEN ]----- 
# 
templates/subSilver/bbcode.tpl 


# 
#-----[ FIND ]----- 
# 
<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img --> 


# 
#-----[ REPLACE WITH ]----- 
# 
<!-- BEGIN img --><img src="{URL}" onLoad="scaleImage(this)" border="0" /><!-- END img --> 


# 
#-----[ OPEN ]----- 
# 
templates/subsilver/overall_header.tpl 


# 
#-----[ FIND ]----- 
# 
</head> 


# 
#-----[ BEFORE, ADD ]----- 
# 
<script type="text/javascript"> 
<!-- 
var maxImageWidth = 400; 
function unscaleImage() 
{ 
    if(maxImageWidth > 0) 
        this.width = this.width == maxImageWidth ? this.orgwidth : maxImageWidth; 
} 


function scaleImage(im) 
{ 
    if (maxImageWidth > 0 && im.width > maxImageWidth) 
    { 
        im.orgwidth = im.width; 
        im.width = maxImageWidth; 
        im.onclick = unscaleImage; 
        im.title = "Click for fullsize view"; 
        im.style.cursor = 'pointer'; 
    } 
} 


//--> 
</script> 


<script language="JavaScript" type="text/javascript">unscaleImage();</script> 




# 
#-----[ SAVE/CLOSE ALL FILES ]----- 
# 
# EoM[/code]

Increased thus the pictures with click.if I this code [code linenumbers=false][fullalbumimg]Pic ID[/fullalbumimg][/code]do not use functioned that unfortunately

but whom I [code linenumbers=false][ img]URL pic[/img ][/code] use the pictures am increased

it must be nevertheless possible the pictures with this code [ img]URL pic[/img ] to insert.


-----------------------------------
RamboMann
Mon 26 Nov, 2007 13:23

Re: Fab Bbcode
-----------------------------------
One must always enter manuel this [ fullalbumimg]Pic ID[/fullalbumimg ] instruction.

With upload that is possible that to insert automatically [ albumimg]pic id[/albumimg ] is [ fullalbumimg]Pic ID[/fullalbumimg ] to add


-----------------------------------
Artie
Mon 26 Nov, 2007 16:50

Re: Fab Bbcode
-----------------------------------
I don't quite understand what you are asking.

There was some discussion about a bbcode button in the forum posting for albumimg, but I don't know it anything was ever created.
Discussion was here

http://www.icyphoenix.com/viewtopic.php?f=24&t=2461


If you want the bbcode [albumimg] that appears in the album below the pic to read [fullalbumimg] you can find in album_showpage.php

[codeblock]'PIC_BBCODE' => '[albumimg]' . $pic_id . '[/albumimg]',[/codeblock]

and change as you like


-----------------------------------
pepi
Mon 26 Nov, 2007 18:56

Re: Fab Bbcode
-----------------------------------
[quote user="RamboMann" post="21787"]

but whom I [code linenumbers=false][ img]URL pic[/img ][/code] use the pictures am increased

it must be nevertheless possible the pictures with this code [ img]URL pic[/img ] to insert.[/quote]
Hi
i know what you meen but this doesn't works not with the album mod only with [img]
but you can try

[code linenumbers=false]find in templates/subSilver/bbcode.tpl
<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_picm.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->

Replace with
<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_self" class="postlink"><img src="album_picm.php?pic_id={IMG_NUM}" onLoad="scaleImage(this)" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->[/code]
Pepi


-----------------------------------
RamboMann
Mon 26 Nov, 2007 20:04

Re: Fab Bbcode
-----------------------------------
sorry I let translate my english with http://babelfish.altavista.com.

I solved my problem, thank I cordially.


