OTF Gallery Image Link


Subject: 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?

Profile PM  
Subject: 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

Subject: 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.

Profile PM  
Subject: 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.

Subject: 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?

Profile PM  
Subject: 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

Subject: Re: OTF Gallery Image Link
Set the permissions (CHMOD 777) on the folders

Profile PM  
Subject: 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?

Profile PM  
Subject: 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]',


Page 1 of 1


  
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

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1149s (PHP: 16% SQL: 84%)
SQL queries: 11 - Debug Off - GZIP Enabled