https://www.icyphoenix.com/viewtopic.php?f=26&t=1350
-----------------------------------
Dogs and things
Sat 17 Mar, 2007 08:43

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. :loveit: 

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

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

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. :P


-----------------------------------
Artie
Sat 17 Mar, 2007 23:37

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
Great, you received my telepathic message :icy_lol_flag:


-----------------------------------
Dogs and things
Sun 18 Mar, 2007 12:28

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
:up: 

It´s quite a complicated configuration but I´m finding my way through it. :wink:


-----------------------------------
Mighty Gorgon
Thu 22 Mar, 2007 02:09

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
[quote user="Dogs and things" post="10274"]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.[/quote]
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

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. :P


-----------------------------------
Artie
Tue 27 Mar, 2007 03:34

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 [b]album_mod/album_hierarchy_sql.php[/b]

FIND
[codeblock]'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>' : ''[/codeblock]
REPLACE WITH
[codeblock]'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>': ''[/codeblock]

OPEN [b]templates/subSilver/album_cat_body.tpl[/b]

FIND
[codeblock]<!-- {index_pics_block.picrow.pic_detail.IMG_BBCODE} -->[/codeblock]
REPLACE WITH
[codeblock]{index_pics_block.picrow.pic_detail.IMG_BBCODE}[/codeblock]

OPEN [b]album_allpics.php[/b]

FIND
[codeblock]'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 />' : ''[/codeblock]
REPLACE WITH
[codeblock]'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>': ''
[/codeblock]

OPEN [b]templates/subSilver/album_memberlist_body.tpl[/b]

FIND
[codeblock]
{picrow.pic_detail.IP}
{picrow.pic_detail.EDIT}
{picrow.pic_detail.DELETE}
{picrow.pic_detail.LOCK}
{picrow.pic_detail.MOVE}
{picrow.pic_detail.COPY}
				[/codeblock]
AFTER ADD
[codeblock]{picrow.pic_detail.IMG_BBCODE}[/codeblock]


-----------------------------------
Dogs and things
Tue 27 Mar, 2007 14:55

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
Hello Artie,

Thanks for looking at this.

What happens is that [code linenumbers=false]<a href="javascript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>[/code] 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

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.

[b]REPLACE[/b]

[codeblock]'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>' : ''[/codeblock]

[b]WITH[/b]
[codeblock]
'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>': ''[/codeblock]


[size=10][color=darkred]Updated code blocks above[/color][/size]


-----------------------------------
Dogs and things
Tue 27 Mar, 2007 20:27

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
Now it´s working nicely.

The only thing I changed in your code is [code linenumbers=false]"[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]"[/code] into [code linenumbers=false]"[fullalbumimg]' . $picrow[$j]['pic_id'] . '[/fullalbumimg]"[/code] so that people post the whole pic and not the thumbnail in their posts.

Thanks a lot for your help, much apreciated. :up:


-----------------------------------
Artie
Tue 27 Mar, 2007 21:58

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
You are welcome  8)


-----------------------------------
felix968
Sun 13 May, 2007 20:03

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
Thanks


-----------------------------------
felix968
Sun 13 May, 2007 20:25

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
[quote user="Artie" post="10959"]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.

[b]REPLACE[/b]

[codeblock]'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>' : ''[/codeblock]

[b]WITH[/b]
[codeblock]
'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>': ''[/codeblock]


[size=10][color=darkred]Updated code blocks above[/color][/size][/quote]

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

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. :P


-----------------------------------
felix968
Sun 13 May, 2007 22:53

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
[quote user="Dogs and things" post="13983"]album_hierarchy_sql.php only.

I don´t think you´ll find this block in album_allpics.php. :P[/quote]

 :roll:  thanks Dogs and things


-----------------------------------
nims
Thu 12 Jul, 2007 12:55

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
[quote]Hello Artie,

 [code linenumbers=false]<a href="javasript://" OnClick="window.clipboardData.setData('Text', '[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]'); return false;">' . $lang['BBCode_Copy'] . '</a>[/code] 
[/quote]

The spelling of javascript is wrong. Its written javasript ! May be it can help.


-----------------------------------
Mighty Gorgon
Sun 29 Jul, 2007 14:15

Re: Why Don´t I See The Bbcode Field?
-----------------------------------
Thank you, I've edited all the posts above to avoid confusion. :wink:


