Icy Phoenix
Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - Why Don?t I See The Bbcode Field?
Dogs and things [ Sat 17 Mar, 2007 08:43 ]
Post subject: FAP CUSTOMIZATION - Why Don?t I See The Bbcode Field?
Hello,
I found the FAP Album yesterday, installed it on my testboard and liked it inmediately. I have Attachment MOD installed on my liveboard but was never very happy with it. I´m sure FAP will be much nicer to use, more userfriendly. Thanks to everybody who made this big MOD.
One question I have, why don´t I see the bbcode field with th code to copy and paste for posting in topics?
Is there a setting for this field somewhere in ACP?
I´ve looked at every single option a few times but don´t see it.
Greetings.
Dogs and things [ Sat 17 Mar, 2007 18:07 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Just adding some observations,
When I open my personal gallery I see a thumbnail of the image I uploaded, without bbcode fieldbelow it. When I clcik on the image it opens in a new window in which I can only see the image.
However, when I click on the comments link under the thumbnail on my Personal Gallery Index I can see the image at intermediate size and below that image I can see the bbcode field.
I´m wondering if I´m supposed to be able to see that bbcode field below the thumbnails on the index also, and if not, is it possible to see bbcode there as well.
It would be a pity if bbcode can only be seen in such a "tricky" way because I´m sure many of my visitors would have big trouble localizing it.
Dogs and things [ Sat 17 Mar, 2007 19:14 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
I just discovered that if I disallow Image to show in a popup window the full image shows when thumbnail is clicked and has the bbcode field below it.
So I consider my question as answered.

Artie [ Sat 17 Mar, 2007 23:37 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Great, you received my telepathic message

Dogs and things [ Sun 18 Mar, 2007 12:28 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
It´s quite a complicated configuration but I´m finding my way through it.

Mighty Gorgon [ Thu 22 Mar, 2007 02:09 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Just adding some observations,
When I open my personal gallery I see a thumbnail of the image I uploaded, without bbcode fieldbelow it. When I clcik on the image it opens in a new window in which I can only see the image.
However, when I click on the comments link under the thumbnail on my Personal Gallery Index I can see the image at intermediate size and below that image I can see the bbcode field.
I´m wondering if I´m supposed to be able to see that bbcode field below the thumbnails on the index also, and if not, is it possible to see bbcode there as well.
It would be a pity if bbcode can only be seen in such a "tricky" way because I´m sure many of my visitors would have big trouble localizing it.
Inserting the BBCode below the thumbnail could stretch the page... unless you use a fixed width text box, which is what I'm using here for the UPLOAD IMAGES feature.
I'll think about it.
Dogs and things [ Thu 22 Mar, 2007 19:06 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Nice Mighty,
It would be nice if you managed to put a bbcode-box below thumbnail. It would allow to switch on lightbox and midsize picture without getting newbee users lost without being able to find the code to paste in their posts.
Greetings.

Artie [ Tue 27 Mar, 2007 03:34 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
I think this may have been an intended feature at one time, but was never completed.
OPEN
album_mod/album_hierarchy_sql.php
FIND
'IMG_BBCODE' => ( ($userdata['user_level'] == ADMIN) || ($userdata['user_id'] == $picrow[$j]['pic_user_id']) ) ? '<br /><a href="javasript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>' : ''
REPLACE WITH
'IMG_BBCODE' => ( $userdata['session_logged_in'] ) ? '<hr width="85%">BBCode:<br /><form name="select_all" action=""><input name="BBCode" size="26" maxlength="100" value="[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]" type="text" readonly="1" onClick="javascript:this.form.BBCode.focus();this.form.BBCode.select();"></form>': ''
OPEN
templates/subSilver/album_cat_body.tpl
FIND
<!-- {index_pics_block.picrow.pic_detail.IMG_BBCODE} -->
REPLACE WITH
{index_pics_block.picrow.pic_detail.IMG_BBCODE}
OPEN
album_allpics.php
FIND
'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://whois.sc/' . decode_ip($picrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($picrow[$j]['pic_user_ip']) . '</a><br />' : ''
REPLACE WITH
'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://whois.sc/' . decode_ip($picrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($picrow[$j]['pic_user_ip']) . '</a><br />' : '',
'IMG_BBCODE' => ( $userdata['session_logged_in'] ) ? '<hr width="85%">BBCode:<br /><form name="select_all" action=""><input name="BBCode" size="26" maxlength="100" value="[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]" type="text" readonly="1" onClick="javascript:this.form.BBCode.focus();this.form.BBCode.select();"></form>': ''
OPEN
templates/subSilver/album_memberlist_body.tpl
FIND
{picrow.pic_detail.IP}
{picrow.pic_detail.EDIT}
{picrow.pic_detail.DELETE}
{picrow.pic_detail.LOCK}
{picrow.pic_detail.MOVE}
{picrow.pic_detail.COPY}
AFTER ADD
{picrow.pic_detail.IMG_BBCODE}
Dogs and things [ Tue 27 Mar, 2007 14:55 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Hello Artie,
Thanks for looking at this.
What happens is that
<a href="javascript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>
causes a clickable "copy bbcode line" which doesn´t work in Firefox. In IE it does work but Firefox says it doesn´t know how to open because the javascript isn´t associated with a program.
Can this be solved?
Artie [ Tue 27 Mar, 2007 17:59 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
I guess this is why this was not implemented. Seems FireFox has this ability disabled by default.
I think the next best thing would be to display the BBCode as it is in album_showpage.
REPLACE
'IMG_BBCODE' => ( $userdata['session_logged_in'] ) ? '<hr width="85%">[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]<br /><a href="javascript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>' : ''
WITH
'IMG_BBCODE' => ( $userdata['session_logged_in'] ) ? '<hr width="85%">BBCode:<br /><form name="select_all" action=""><input name="BBCode" size="26" maxlength="100" value="[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]" type="text" readonly="1" onClick="javascript:this.form.BBCode.focus();this.form.BBCode.select();"></form>': ''
Updated code blocks above
Dogs and things [ Tue 27 Mar, 2007 20:27 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Now it´s working nicely.
The only thing I changed in your code is
"[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]"
into
"[fullalbumimg]' . $picrow[$j]['pic_id'] . '[/fullalbumimg]"
so that people post the whole pic and not the thumbnail in their posts.
Thanks a lot for your help, much apreciated.

Artie [ Tue 27 Mar, 2007 21:58 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
You are welcome

felix968 [ Sun 13 May, 2007 20:03 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Thanks
felix968 [ Sun 13 May, 2007 20:25 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
I guess this is why this was not implemented. Seems FireFox has this ability disabled by default.
I think the next best thing would be to display the BBCode as it is in album_showpage.
REPLACE
'IMG_BBCODE' => ( $userdata['session_logged_in'] ) ? '<hr width="85%">[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]<br /><a href="javascript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>' : ''
WITH
'IMG_BBCODE' => ( $userdata['session_logged_in'] ) ? '<hr width="85%">BBCode:<br /><form name="select_all" action=""><input name="BBCode" size="26" maxlength="100" value="[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]" type="text" readonly="1" onClick="javascript:this.form.BBCode.focus();this.form.BBCode.select();"></form>': ''
Updated code blocks above
The file to modify with block above is album_hierarchy_sql.php, I suppose...or album_allpics.php? Or both?
Dogs and things [ Sun 13 May, 2007 22:46 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
album_hierarchy_sql.php only.
I don´t think you´ll find this block in album_allpics.php.

felix968 [ Sun 13 May, 2007 22:53 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
album_hierarchy_sql.php only.
I don´t think you´ll find this block in album_allpics.php.


thanks Dogs and things
nims [ Thu 12 Jul, 2007 12:55 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Quote:
Hello Artie,
<a href="javasript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>
The spelling of javascript is wrong. Its written javasript ! May be it can help.
Mighty Gorgon [ Sun 29 Jul, 2007 14:15 ]
Post subject: Re: Why Don´t I See The Bbcode Field?
Thank you, I've edited all the posts above to avoid confusion.
