FAP CUSTOMIZATION - Random Pics Block On Index Only Show A Select Category?


Subject: FAP CUSTOMIZATION - Random Pics Block On Index Only Show A Select Category?
I have a category devoted just for animated gifs and when these are randomly displayed, the slows down the page tremendously. Is there any way to display say only category id 2,4,8 & whatever in random instead of all of them? I dont mind hard coding this so it doesn't have to be pretty.

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
You can do this already in IP.

What you need to do is edit the album block for your page (assume for example you have default installation, then the site index page is called "3 Columns").

So essentially select:
1) CMS>>3 Columns>>Album

The actual edit is over 2 pages. The variables / block configuration you need is on second page, so:
2) Click "submit" this takes you to page 2.

3) Enter the categorie(s) to retrieve Pics from.

OK the CMS system is not very transparent (compared to original portal configuration, although it is like this because variables are now page specific rather than site-wide in the old system). It would be nice none-the-less to either be presented with all the options in one page, or else have an obvious link to the second edit page, rather than have to go through 1st page and click submit to see the second edit page. I'm sure MG intended to change it at one stage, maybe he forgot.

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
Sorry I've written from the point of view of displaying random images via FAP in IP image blocks- is this what you're doing?

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
ya but i dont have a second page like you descibed. here is what i see:

random

then i click submit and i see

random2

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
Is that "ya" you have IP (IcyPhoenix)?

If that is yes, then re-read my first post - you do this through the CMS system, not album configuration.

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
so sorry i did not know what IP stood for. I do not have IP, I have the FAP version 1.4.1 only.

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
Could be wrong. but Random also means uploading 'new' pictures that havent been loaded to your browser yet or it's cache has been cleared.

and if you have a large album...

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
OK, I'm assuming you mean the random pic block on the main album page ?

Give this a try:

OPEN album.php

FIND
Code: [Download] [Hide] [Select]
album_build_random_pics($allowed_cat);

BEFORE ADD
Code: [Download] [Hide] [Select]
$allowed_cat = "2,4,8";

Profile PM  
Subject: Re: Random Pics Block On Index Only Show A Select Category?
thats it, thanks!

Profile PM  

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.1478s (PHP: 13% SQL: 87%)
SQL queries: 10 - Debug Off - GZIP Enabled