FAP CUSTOMIZATION - [MOD] FAP Outside Pics MOD


Subject: Re: [MOD] FAP Outside Pics MOD
nims wrote: [View Post]
Doesnt work for me either. Same problem, I see small rectangular box, no pic.
Here is a test page


I see all the pics on your test page. Did you fix it ?

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
Ok I found the solution.

In your forum ACP >> Photo Album - Configuration
Find
Allowed domains for hotlink (separated by a comma)
ADD your own domain
Example : abcxyz.com

I entered it without any http or www and it is working fine. :)

Subject: Re: [MOD] FAP Outside Pics MOD
Is this working alright for anyone who is using FAP 1.4.1 and this add on?


:edit: okay nevermind, sorry. 0002

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
I wonder, could it be possible to cache the images that are pulled from this scripit?

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
If images are recalled by album_thumbnails then images are cached automatically.

Subject: Re: [MOD] FAP Outside Pics MOD
Can someone please help me exclude members personal album from the album_outside_recentpic.php file? I am aware of different settings on how to prevent this from ACP, but the way I have my site set up is runs the way I need it to run. I would like to exclude members personal album from showing up. any ideas?


Code: [Download] [Hide] [Select]
<?
define('IN_PHPBB', true);
$phpbb_root_path = './phpBB/'; //set your path
$album_root_path = $phpbb_root_path . 'album_mod/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$language = $board_config['default_lang'];
if ( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.'.$phpEx) )
{
$language = 'english'; // set your default language
}
include($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.' . $phpEx);
print "<table border=0>";
print "";
print "";
/* I took out pic_desc, alt tag */
$sql = "SELECT pic_id, pic_title, pic_cat_id FROM ". ALBUM_TABLE ." ORDER BY pic_id DESC";
$picspool = $db->sql_query($sql) or die ("SQL Error");
for ($i=0;$i<8;$i++) //set number of pictures for the displayed line
{
while ($cat['cat_view_level'] != '-1')
{
$row = $db->sql_fetchrow($picspool);
$sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'";
$result = $db->sql_query($sql) or die ("SQL Error");
$cat = $db->sql_fetchrow($result);
}
$cat['cat_view_level'] = '0';
print "<td valign='top' ><font color=white><table class=forumline width=160 cellpadding=0 bgcolor=white><tr><td align='center'><span class=gensmall><b>" . $row['pic_title'] . "</b></td></tr><tr><td align='center'><a href='". append_sid($phpbb_root_path ."album_showpage.". $phpEx ."?pic_id=" . $row['pic_id']) ."' target=_blank><img width="125" height="95" border="0" alt='" . $row['pic_desc'] . "' src='". $phpbb_root_path ."album_thumbnail.". $phpEx ."?pic_id=" . $row['pic_id'] . "'></a></td></tr></table></td>";
}
print "</tr>";
print "</table>";
?>

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
Try replacing
Code: [Download] [Hide] [Select]
$sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'";

WITH
Code: [Download] [Hide] [Select]
$sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE (cat_id = '". $row['pic_cat_id'] ."') AND (cat_user_id = 0) ";

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
hmm, that gives me an "SQL Error" but its not spesific on what kind of error.

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
Hey Artie, I found a fix you did here... http://www.icyphoenix.com/viewtopic.php?t=2762


but it looks like its for the random pic file... can you help me for the recent file one the code I posted above? thanks.. :oops:

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
Sorry bout that Pete_Z.... I was focused on the wrong SQL statement .
I edited my post above with the code that should work ... I hope 8)

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
:LOL: yeah thanks, I was trying to figure out with the other stuff you posted in the other thread. big headache... I like this better. simple and it works, haha. thanks Artie. 8)

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
Alright! I didn't think my last request was possible, but I was given hope! :mryellow:

So I have this scripit working in a marquee like going accross my portal.

And I have this problem with long Titles. well nothing wrong with the titles, but for the marquee it is kind of too long and this is what happens:
seeri5

I would widen the table, but it would make for an odd looking strip.

any ideas?



Trust me that I try my hardest to find the solution myself. im not php guru.

This clue kind of makes it close... if I can only get pic title to work....

Code: [Download] [Hide] [Select]
$position=14; // Define how many character you want to display.

$message="You are now joining over 2000 current";
$post = substr($message, 0, $position);

echo $post;
echo "...";










jeez, cool java script picture effects here.

Last edited by Pete_Z on Wed 06 Feb, 2008 11:45; edited 2 times in total
Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
If this works it should display any title of 14 characters or less and if the title is over 14 characters it will display the first 10 followed by 4 dots.


FIND
Code: [Download] [Hide] [Select]
$cat['cat_view_level'] = '0';

AFTER ADD
Code: [Download] [Hide] [Select]
$pic_title = $row['pic_title'];
if (strlen($pic_title) > 14){$pic_title= (substr($pic_title,0,10)."....");}


FIND
Code: [Download] [Hide] [Select]
<b>" . $row['pic_title'] . "</b>

REPLACE WITH
Code: [Download] [Hide] [Select]
<b>" . $pic_title . "</b>

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
Thank you Artie. worked great. :mricy:

By the way, Not sure if that comma after "title" is supposed to be there... got errors untill I took it out.

<b>" . $pic_title'. "</b>

Thanks!

Profile PM  
Subject: Re: [MOD] FAP Outside Pics MOD
No, it should not be there ..... my bad :oops:

Profile PM  

Page 2 of 3


  
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.1434s (PHP: 16% SQL: 84%)
SQL queries: 11 - Debug Off - GZIP Enabled