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



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



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
luckyou03Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
luckyou03Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
Pete_ZSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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";

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Random Pics Block On Index Only Show A Select Category? 
 
thats it, thanks!
 



 
luckyou03Send 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