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 1
 
 
Reply with quote Download Post 
Post FAP CUSTOMIZATION - Recent Pictures Block On Forum Index Page 
 
Hi,

Im new to this forum & am really pleased to have discovered it - i spent all last night reading up the forum & making modifications on my new phpbb2.

im not a web developer and dont have any knowledge of php but can follow instructions in mods easily (unless they involve making sql entries - havent been able to get my head around those yet). so please answer me as if talking to a dumbo.

also i apologise if my question has previously been answered on the forum.

ok my problem:

i installed the recent pictures block on the forum index page following instructions in the contrib folder & it works great but i would rather have a single recent pic block on the sidebar.

i have already tried changing values in 'thumbnail settings' in the ACP but that hasn't helped.

My forum : http://accessability.co.in/community/ & Im on phpbb 2.22, FAP 1.2.1 & Linux hosting.

Many Thanks in advance,

Vic
 



 
Last edited by vic2007 on Sun 02 Sep, 2007 15:02; edited 2 times in total 
vic2007Send 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: Recent Pictures Block On Forum Index Page 
 
Ok, I'm assuming that you are referring to full_album_pack_pictures_blocks_1_0_0

You'll need to replace part of the code mentioned in the full_album_pack_pictures_blocks_1_0_0.txt


FIND
Code: [Download] [Hide] [Select]
//$album_config['img_cols'] = 4;
$cols = ($album_config['img_cols'] == 0 ? 4 : $album_config['img_cols']);
$cols_width = (100/$cols) . '%';

REPLACE WITH
Code: [Download] [Hide] [Select]
   $album_config['img_cols'] = 1;  
   $cols = ($album_config['img_cols'] == 0 ? 4 : $album_config['img_cols']);  
   $cols_width = (100/$cols) . '%';  
   $album_config['img_rows'] = 1;  

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Recent Pictures Block On Forum Index Page 
 
thanks Artie - sorted again.

u r just too good to be true.

many thanks,

vic
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Recent Pictures Block On Forum Index Page 
 
vic2007 wrote: [View Post]

u r just too good to be true.

My ex-wife would disagree with that statement, but you are still welcome.  
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [Sorted] Recent Pictures Block On Forum Index Page 
 
Hi,

I've run into problem lately with the forum members posting a lot of unrelated personal photos in their personal galleries as, unfortunately, these are reflecting in the latest pics block on my main website.

Is there someway I may be able to get the block to ignore pics from the members' personal galleries ?

Any help will be sincerely appreciated.

Many Thanks in advance.

Vic
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Recent Pictures Block On Forum Index Page 
 
Quote:
Is there someway I may be able to get the recent pics block to ignore pics from the members' personal galleries ?


anyone ?
 



 
vic2007Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Recent Pictures Block On Forum Index Page 
 
I think you may have to hardcode the categories you want to allow.

Try this ...

PLACE
Code: [Download] [Hide] [Select]
$allowed_cat = 'A,B,C, D';  //// replace A,B,C,D with your allowed cat_ids separated by commas


BEFORE
Code: [Download] [Hide] [Select]
album_build_recent_pics($allowed_cat);

 



 
ArtieSend 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 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


  

 

  cron