FAP SUPPORT - Fab Bbcode »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - Fab Bbcode



RamboMann [ Thu 22 Nov, 2007 15:06 ]
Post subject: 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 ]
Post subject: Re: Fab Bbcode
which is here loosely can me none help or which, one must beg you


novice programmer [ Fri 23 Nov, 2007 16:38 ]
Post subject: Re: Fab Bbcode
RamboMann, 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 ]
Post subject: 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 ]
Post subject: Re: Fab Bbcode
RamboMann wrote: [View Post]
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 ]

Hi

here
Code: [Hide] [Select]
[albumimg mode=full]Pic ID[/albumimg]

Pepi


Artie [ Sun 25 Nov, 2007 18:41 ]
Post subject: Re: Fab Bbcode
Or for a non-Icy (phpBB2) installation it would be


Code: [Hide] [Select]
[fullalbumimg]Pic ID[/fullalbumimg]


RamboMann [ Sun 25 Nov, 2007 20:50 ]
Post subject: Re: Fab Bbcode
as first the best thanks
I inserted this small Addon.

Code: [Hide] [Select]
#
#-----[ 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


Increased thus the pictures with click.if I this code
Code: [Hide] [Select]
[fullalbumimg]Pic ID[/fullalbumimg]
do not use functioned that unfortunately

but whom I
Code: [Hide] [Select]
[ img]URL pic[/img ]
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 ]
Post subject: 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 ]
Post subject: 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

Code: [Hide] [Select]
'PIC_BBCODE' => '[albumimg]' . $pic_id . '[/albumimg]',


and change as you like


pepi [ Mon 26 Nov, 2007 18:56 ]
Post subject: Re: Fab Bbcode
RamboMann wrote: [View Post]


but whom I
Code: [Hide] [Select]
[ img]URL pic[/img ]
use the pictures am increased

it must be nevertheless possible the pictures with this code [ img]URL pic[/img ] to insert.

Hi
i know what you meen but this doesn't works not with the album mod only with [img]
but you can try

Code: [Hide] [Select]
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 -->

Pepi


RamboMann [ Mon 26 Nov, 2007 20:04 ]
Post subject: Re: Fab Bbcode
sorry I let translate my english with http://babelfish.altavista.com.

I solved my problem, thank I cordially.




Powered by Icy Phoenix