FAP CUSTOMIZATION - [MOD] FAP Outside Pics MOD »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - [MOD] FAP Outside Pics MOD



Artie [ Wed 18 Jul, 2007 00:07 ]
Post 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 ?


nims [ Wed 18 Jul, 2007 13:44 ]
Post 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.


Pete_Z [ Sat 18 Aug, 2007 07:27 ]
Post 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


Pete_Z [ Thu 20 Sep, 2007 03:34 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
I wonder, could it be possible to cache the images that are pulled from this scripit?


Mighty Gorgon [ Fri 21 Sep, 2007 00:20 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
If images are recalled by album_thumbnails then images are cached automatically.


Pete_Z [ Wed 30 Jan, 2008 01:25 ]
Post 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: [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>";
?>


Artie [ Wed 30 Jan, 2008 01:35 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
Try replacing
Code: [Hide] [Select]
$sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'";

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


Pete_Z [ Wed 30 Jan, 2008 04:27 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
hmm, that gives me an "SQL Error" but its not spesific on what kind of error.


Pete_Z [ Thu 31 Jan, 2008 00:57 ]
Post 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..


Artie [ Thu 31 Jan, 2008 01:07 ]
Post 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


Pete_Z [ Thu 31 Jan, 2008 01:22 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
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.


Pete_Z [ Wed 06 Feb, 2008 07:16 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
Alright! I didn't think my last request was possible, but I was given hope!

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


Artie [ Fri 08 Feb, 2008 00:37 ]
Post 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: [Hide] [Select]
$cat['cat_view_level'] = '0';

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


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

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


Pete_Z [ Tue 12 Feb, 2008 11:41 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
Thank you Artie. worked great.

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!


Artie [ Tue 12 Feb, 2008 23:23 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
No, it should not be there ..... my bad


keith10456 [ Wed 13 Aug, 2008 22:26 ]
Post subject: Re: [MOD] FAP Outside Pics MOD
Is it possible to have this on an "html" page?




Powered by Icy Phoenix