https://www.icyphoenix.com/viewtopic.php?f=26&t=828
-----------------------------------
Artie
Tue 09 Jan, 2007 21:55

FAP CUSTOMIZATION - Full Image In A Forum Thread
-----------------------------------
Full Image In A Forum Thread 

From: 1 Nov, 2006
  
[quote user="actionplant"] I'd like to figure out how to post a full image from the album in a forum thread.  [albumimg] just posts a thumbnail, and because I'm having some server issues the mid-thumbs aren't working.  The lightbox will resize other pictures posted remotely with the [img] tag.  I'd like to see the same thing happen with pictures from the album, but am not sure how to get images to post full-size in a forum thread.

Help?[/quote]

[quote user="Artie"]I don't know if this will work exactly as you want but you could try...

OPEN

 [b]templates/YOUR_TEMPLATE/bbcode.tpl[/b]

FIND

 [b]<!-- 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 -->[/b]

REPLACE WITH

 [b]<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_pic.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->[/b]

If you don't want it to link back to the album you can remove the <a> reference.[/quote]

[quote user="actionplant"]Thanks, I'll give it a shot.  

EDIT - Worked like a charm.  Thanks![/quote]

[quote user="krisbfunk"]I did notice that in FAP 1.4.0a release the fullalbumimg tag was actually displaying a mid thumbnail as apposed to the actual full size.. 

I "corrected" this by editing bbcode.tpl.. and changing album_picm.php to album_pic.php in the fullalbumimg switch. 

in doing so I also discovered the tags: albumimgl, albumimgr, albumimgc  (left, right and center)


I did also see a use for the medium thumbnail view, so I duplicated the code and created a medalbumimg tag.. here's everything I did in order to create a medalbumimg tag and a working fullalbumimg tag.. might be of some use? it was fun to do regardless!

[b]Open includes/bbcode.php[/b]

[b]find: [/b]
[code]$bbcode_tpl['fullalbumimg'] = str_replace('{IMG_NUM}', '1', $bbcode_tpl['fullalbumimg']);[/code]

[b]after, add: [/b]
[code]$bbcode_tpl['medalbumimg'] = str_replace('{IMG_NUM}', '1', $bbcode_tpl['medalbumimg']);[/code]


[b]find: [/b]
[code]	
	// [fullalbumimg]image number here[/fullalbumimg]
	$album_img_patterns[5] = "#[fullalbumimg:$uid]([0-9]+)[/fullalbumimg:$uid]#si";
	$album_img_replacements[5] = $bbcode_tpl['fullalbumimg'];
[/code]

[b]after, add:[/b]
[code]
	// [medalbumimg]image number here[/fullalbumimg]
	$album_img_patterns[6] = "#[medalbumimg:$uid]([0-9]+)[/medalbumimg:$uid]#si";
	$album_img_replacements[6] = $bbcode_tpl['medalbumimg'];
[/code]


[b]find: [/b]
[code]
	$text = preg_replace("#[fullalbumimg]([0-9]+)[/fullalbumimg]#sie", "'[fullalbumimg:$uid]1[/fullalbumimg:$uid]'", $text);
[/code]

[b]after, add:[/b]
[code]
	$text = preg_replace("#[medalbumimg]([0-9]+)[/medalbumimg]#sie", "'[medalbumimg:$uid]1[/medalbumimg:$uid]'", $text);
[/code]


[b]Open Templates/XXXXXX/bbcode.tpl[/b]

[b]find: [/b]
[code]<!-- 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 -->[/code]

[b]replace with: [/b]
[code]<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_pic.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->[/code]

[b]after, add:[/b]
[code]<!-- BEGIN medalbumimg --><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 medalbumimg -->[/code][/quote]


