|
Page 1 of 2
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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.
|
#1 Sat 17 Mar, 2007 08:43 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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.
|
#2 Sat 17 Mar, 2007 18:07 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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.
|
#3 Sat 17 Mar, 2007 19:14 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
Re: Why Don´t I See The Bbcode Field?
Great, you received my telepathic message
|
#4 Sat 17 Mar, 2007 23:37 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
Re: Why Don´t I See The Bbcode Field?
It´s quite a complicated configuration but I´m finding my way through it.
|
#5 Sun 18 Mar, 2007 12:28 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7192
Location: Borgo San Michele
|
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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#6 Thu 22 Mar, 2007 02:09 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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.
|
#7 Thu 22 Mar, 2007 19:06 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
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}
|
#8 Tue 27 Mar, 2007 03:34 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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?
|
#9 Tue 27 Mar, 2007 14:55 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
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
|
#10 Tue 27 Mar, 2007 17:59 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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.
|
#11 Tue 27 Mar, 2007 20:27 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
Re: Why Don´t I See The Bbcode Field?
You are welcome
|
#12 Tue 27 Mar, 2007 21:58 |
|
felix968
Joined: February 2007
Posts: 122
Location:
|
Re: Why Don´t I See The Bbcode Field?
Thanks
|
#13 Sun 13 May, 2007 20:03 |
|
felix968
Joined: February 2007
Posts: 122
Location:
|
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?
|
#14 Sun 13 May, 2007 20:25 |
|
Dogs and things
Joined: March 2007
Posts: 24
Location:
|
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.
|
#15 Sun 13 May, 2007 22:46 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|