I am working on some of my own modifications to FAP and if you don't mind I would like to post my questions here when I run into problems. Chances are the answers will be very simple as I am still learning. The first thing I am going to try to do is include the amount of subcategories in the description of each album category. So the main page would look something like this...
First Gallery
Contains 23 Sub Categories
Second Gallery
Contains 7 Sub Categories
I want this to be dynamic so that I never have to update it once the code is set up. So far I have added a column in the album_cat table that holds the number of subcategories inside each category for each category. This number is incremented and decremented whenever a new category is created or deleted. Now I just have no idea how to get that number from the DB and have it display where I want it to on the albumn.php index and the album_cat.php indexes.
Any help?
		FAP CUSTOMIZATION - My Improvements
		
		
		Subject: Re: My Improvements
		
						
	
		
		We welcome your questions and your desire to mod your album to your own taste. 
In the future please try to use the appropriate forum for your topic ... in this case: FAP General Discussions And Customizations
Topic Moved
Sounds like you are wanting the subcats total to display in it's own cell/column (like Total Pics)... is this correct ?
How about this setup .... subcats names with links appear if enabled in ACP otherwise the total number of subcats displays (in same cell)
		In the future please try to use the appropriate forum for your topic ... in this case: FAP General Discussions And Customizations
Topic Moved
Sounds like you are wanting the subcats total to display in it's own cell/column (like Total Pics)... is this correct ?
How about this setup .... subcats names with links appear if enabled in ACP otherwise the total number of subcats displays (in same cell)
		
		
		Subject: Re: My Improvements
		
						
	
		OPEN templates/YOUR_TEMPLATE/album_box.tpl
FIND
AFTER ADD
OPEN album_mod/album_hierarchy_functions.php
FIND
AFTER ADD
		FIND
AFTER ADD
<!-- BEGIN subcat_count -->
<br />
<img src="{SPACER}" width="1" height="15" alt="" />
<span class="gensmall">{catmain.catrow.subcat_count.L_LINKS}: {catmain.catrow.subcat_count.COUNT}</span>
<!-- END subcat_count -->
<br />
<img src="{SPACER}" width="1" height="15" alt="" />
<span class="gensmall">{catmain.catrow.subcat_count.L_LINKS}: {catmain.catrow.subcat_count.COUNT}</span>
<!-- END subcat_count -->
OPEN album_mod/album_hierarchy_functions.php
FIND
if ( ($user_id==ALBUM_PUBLIC_GALLERY && $album_config['show_index_subcats']==1) || ($user_id!=ALBUM_PUBLIC_GALLERY && $album_config['personal_show_subcats_in_index']==1) )
{
$template->assign_block_vars('catmain.catrow.subcat_link', array(
'L_LINKS' => $lang['Album_sub_categories'],
'LINKS' => $links
)
);
}
{
$template->assign_block_vars('catmain.catrow.subcat_link', array(
'L_LINKS' => $lang['Album_sub_categories'],
'LINKS' => $links
)
);
}
AFTER ADD
		
		
		Subject: Re: My Improvements
		
						
	
		Thank you for the fast response! That is exactly what I was looking to do.
So onto the next question then :mryellow:
I was searching for ways to optimize the album for large galleries. My gallery will have close to 50,000 images or so and will be constantly increasing so performance may become a problem. I don't use the slideshow or any of the image enhancements but I did find this topic on phpbbhacks that may apply to FAP, I'm not sure. http://www.phpbbhacks.com/forums/post278298.html
But the big thing I would like to do is add a tag system to the gallery. Basically each image would be "tagged" with x amount of keywords that would describe the image. For example a car might be tagged with "porsche", "red", or "sunroof". I would like for users to be able to add tags to each image when the images are uploaded and high ranking users can go and edit and add tags at anytime. However it will be hard to configure the upload page to add new tag boxes for each new upload form that is added.
Then users can search through the gallery for tags and all images with those tags will display. When viewing an image you can view the tags that are currently on it and click on each one to search for that particular tag. Perhaps even include the total number of images with those tags in each link. So when viewing the picture of the car mentioned above there would be a table displaying Tags: Red (52), Porshe (73), Sunroof (12).
Hopefully I didn't confuse anyone.
Added: Another thing I would like to be able to do is check for duplicate images. When a gallery is several pages long it is bound to happen.
		So onto the next question then :mryellow:
I was searching for ways to optimize the album for large galleries. My gallery will have close to 50,000 images or so and will be constantly increasing so performance may become a problem. I don't use the slideshow or any of the image enhancements but I did find this topic on phpbbhacks that may apply to FAP, I'm not sure. http://www.phpbbhacks.com/forums/post278298.html
But the big thing I would like to do is add a tag system to the gallery. Basically each image would be "tagged" with x amount of keywords that would describe the image. For example a car might be tagged with "porsche", "red", or "sunroof". I would like for users to be able to add tags to each image when the images are uploaded and high ranking users can go and edit and add tags at anytime. However it will be hard to configure the upload page to add new tag boxes for each new upload form that is added.
Then users can search through the gallery for tags and all images with those tags will display. When viewing an image you can view the tags that are currently on it and click on each one to search for that particular tag. Perhaps even include the total number of images with those tags in each link. So when viewing the picture of the car mentioned above there would be a table displaying Tags: Red (52), Porshe (73), Sunroof (12).
Hopefully I didn't confuse anyone.
Added: Another thing I would like to be able to do is check for duplicate images. When a gallery is several pages long it is bound to happen.
		
		
		Subject: Re: My Improvements
		
						
	
		Hi Stunt,
I will happy to help you in speeding up your gallery.
The best thing you can do is enabling the fast thumb feature which reduces so much server charge (thumbs are loaded instantly, no need to process unneeded PHP code).
Regarding the modifications you suggested I may help you in integrate them... but first of all I would like to check your album first to see if there are speed problems.
Regarding tags, I really think that it is not really worth to implement extra fields... because picture name and description are there for the same purpose... you can use those fields to search pictures... :roll:
For your special users, you can just make them moderators so they can alter pictures descriptions adding whatever they want... call them tag or description... it is just the same for me... :shock:
In any case if you prefer having tags, you can just duplicate the description field and replicate all the code written for description... so you have an extra field as you like.
For duplicates, there is no easy way... even if you can create some check based on CRC.
Let me have your link first and then we may try to implement that modification to FAP.
		I will happy to help you in speeding up your gallery.
The best thing you can do is enabling the fast thumb feature which reduces so much server charge (thumbs are loaded instantly, no need to process unneeded PHP code).
Regarding the modifications you suggested I may help you in integrate them... but first of all I would like to check your album first to see if there are speed problems.
Regarding tags, I really think that it is not really worth to implement extra fields... because picture name and description are there for the same purpose... you can use those fields to search pictures... :roll:
For your special users, you can just make them moderators so they can alter pictures descriptions adding whatever they want... call them tag or description... it is just the same for me... :shock:
In any case if you prefer having tags, you can just duplicate the description field and replicate all the code written for description... so you have an extra field as you like.
For duplicates, there is no easy way... even if you can create some check based on CRC.
Let me have your link first and then we may try to implement that modification to FAP.
		
		
		Subject: Re: My Improvements
		
						
	
		Sorry about taking so long to reply, been pretty busy the past few days. I just bought a new dedicated server for my site so it is not online yet and I am going to get all of this finished before I put it online.
I agree that the best way to setup the tag system that I am looking for is just to take a few different input fields as tags when uploading the image and the combine them into the image description field. I have it setup to check each input box, add ", " if needed and then put it in the description. But I have some questions once that is set up.
Is there a way to take the image description string, separate the tags inside it by looking for ", " and then turn each tag inside the description into a link?
and Can we change the image search so that it has no drop down and automatically searches both the title and description of the images?
I would really like to figure out a way to check for duplicate images because like I said, when you have thousands of images in a gallery it can be a huge pain.
Can we modify the upload page so that it includes the file size for the image, adds it to a new column in the mysql table, and then can check for images of the same size?
Thanks for following this topic everyone, and once again sorry about taking so long to reply x_x
		I agree that the best way to setup the tag system that I am looking for is just to take a few different input fields as tags when uploading the image and the combine them into the image description field. I have it setup to check each input box, add ", " if needed and then put it in the description. But I have some questions once that is set up.
Is there a way to take the image description string, separate the tags inside it by looking for ", " and then turn each tag inside the description into a link?
and Can we change the image search so that it has no drop down and automatically searches both the title and description of the images?
I would really like to figure out a way to check for duplicate images because like I said, when you have thousands of images in a gallery it can be a huge pain.
Can we modify the upload page so that it includes the file size for the image, adds it to a new column in the mysql table, and then can check for images of the same size?
Thanks for following this topic everyone, and once again sorry about taking so long to reply x_x
		
		
		Subject: Re: My Improvements
		
						
	
	
		
	I can have a look at having automatic links to search for keywords... but this won't happen too soon. I have too many things to do right now. If you can be patient, I'll try in the future.
Regarding duplicates, it is not so quick making something working flawless... I guess you should try to look for a script which can find duplicates and then manually delete those pics, or trying to integrate it.
		Regarding duplicates, it is not so quick making something working flawless... I guess you should try to look for a script which can find duplicates and then manually delete those pics, or trying to integrate it.
Page 1 of 1
		You cannot post new topicsYou 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.1624s (PHP: 12% SQL: 88%)
SQL queries: 10 - Debug Off - GZIP Enabled