Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post OTF Gallery Image Link 
 
Is there any constant which I can use to show the direct image link to the image I have in the otf album? I wanted to show it at the otfgallery.php page, and I could not find a constant except for
Code: [Download] [Hide]
  1. {pic_row.pic_column.PIC_IMAGE} 

but it starts with a ./files

Any ideas?
 



 
hypeSend 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: OTF Gallery Image Link 
 
Hello

OPEN templates/mg_themes/album_otf_body.tpl
FIND
Code: [Download] [Hide] [Select]
<span class="genmed"><b>{pic_row.pic_column.PIC_NAME}</b></span></a>

AFTER ADD
Code: [Download] [Hide] [Select]
<br><br>http://yourdomain/your-icy/{pic_row.pic_column.PIC_IMAGE}


try it
Pepi
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OTF Gallery Image Link 
 
I couldn't find the file you mention, but I've added myself in the style/style_folder/template/otf_gallery_body.html

Code: [Download] [Hide] [Select]
<input class="inputbox" name="URL{pic_row.pic_column.PIC_NAME}" size="5" maxlength="300" value="http://www.bi0603.com/forum/{pic_row.pic_column.PIC_IMAGE}" type="text" readonly="readonly" onClick="javascript:this.form.URL{pic_row.pic_column.PIC_NAME}.focus();this.form.URL{pic_row.pic_column.PIC_NAME}.select();" />


It provides me with this url with a "." just before the file path.

Code: [Download] [Hide] [Select]
http://www.bi0603.com/forum/./files/album/otf/Orientation/cheer7.jpg


And, how do I set all the pictures with permission viewable by all user and guest? And also allow display at at other sites.
 



 
hypeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OTF Gallery Image Link 
 
hype wrote: [View Post]
And, how do I set all the pictures with permission viewable by all user and guest? And also allow display at at other sites.

This mod is not based on db, so you can't specify permissions using standard phpBB features (unless you modify OTF Gallery files!).

All pictures should be viewed by all users and external sites, unless you have an HTACCESS file restricting this.
 




____________
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: OTF Gallery Image Link 
 
Mighty Gorgon wrote: [View Post]
hype wrote: [View Post]
And, how do I set all the pictures with permission viewable by all user and guest? And also allow display at at other sites.

This mod is not based on db, so you can't specify permissions using standard phpBB features (unless you modify OTF Gallery files!).

All pictures should be viewed by all users and external sites, unless you have an HTACCESS file restricting this.


Strangely, my pictures are not viewable by users and external sites, and I found .htaccess file in the otf gallery folder.. I thought it was suppose to be there?
 



 
hypeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OTF Gallery Image Link 
 
hype wrote: [View Post]
Strangely, my pictures are not viewable by users and external sites, and I found .htaccess file in the otf gallery folder.. I thought it was suppose to be there?


Hi

I have delete the .htaccess file
Pepi
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OTF Gallery Image Link 
 
Set the permissions (CHMOD 777) on the folders
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OTF Gallery Image Link 
 
Ahh ok thanks..

hype wrote: [View Post]
Is there any constant which I can use to show the direct image link to the image I have in the otf album? I wanted to show it at the otfgallery.php page, and I could not find a constant except for
Code: [Download] [Hide]
  1. {pic_row.pic_column.PIC_IMAGE} 

but it starts with a ./files

Any ideas?


My topic is still not really answered.. That solution given isn't working.. Any ideas?
 



 
hypeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OTF Gallery Image Link 
 
Look for these vars and add what you want as image prefix (you may replace $phpbb_root_path with the full path of your site).

Code: [Download] [Hide] [Select]
        'PIC_IMAGE' => $phpbb_root_path . $pic_img_url,
        'PIC_THUMB' => $phpbb_root_path . $pic_img_thumb,
        'PIC_COUNTER' => $i + 1,
        'PIC_BBCODE' => '[url=' . generate_board_url() . '/' . $pic_img_url . '][img]' . generate_board_url() . '/' . $pic_img_thumb . '[/img][/url]',

 




____________
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
Post new topic  Reply to topic  Page 1 of 1
 


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