Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post 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 thingsSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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 thingsSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
Dogs and thingsSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
Great, you received my telepathic message
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 


It´s quite a complicated configuration but I´m finding my way through it.
 



 
Dogs and thingsSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
Dogs and things wrote: [View Post]
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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
Dogs and thingsSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
Code: [Download] [Hide] [Select]
'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
Code: [Download] [Hide] [Select]
'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
Code: [Download] [Hide] [Select]
<!-- {index_pics_block.picrow.pic_detail.IMG_BBCODE} -->

REPLACE WITH
Code: [Download] [Hide] [Select]
{index_pics_block.picrow.pic_detail.IMG_BBCODE}


OPEN album_allpics.php

FIND
Code: [Download] [Hide] [Select]
'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
Code: [Download] [Hide] [Select]
'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
Code: [Download] [Hide] [Select]
{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
Code: [Download] [Hide] [Select]
{picrow.pic_detail.IMG_BBCODE}

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
Hello Artie,

Thanks for looking at this.

What happens is that
Code: [Download] [Hide] [Select]
<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?
 



 
Dogs and thingsSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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

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



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
Now it´s working nicely.

The only thing I changed in your code is
Code: [Download] [Hide] [Select]
"[albumimg]' . $picrow[$j]['pic_id'] . '[/albumimg]"
into
Code: [Download] [Hide] [Select]
"[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.
 



 
Dogs and thingsSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
You are welcome  
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
Thanks
 



 
felix968Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Why Don´t I See The Bbcode Field? 
 
Artie wrote: [View Post]
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

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



 
felix968Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
Dogs and thingsSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron