| 
 
	| 
     | Page 1 of 2 
 
 |  
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   FAP CUSTOMIZATION - User Personal Galleries Page Customization 
			Hi, Thanks for a superb MOD.
 
I have seen many forums have customized their users personal galleries page to show thumbnail, latest comment, number of times viewed etc.
 
The format looks like 
 
User   Thumbnail   posting date    latest comment    number of times viewed etc.
 
I have seen such an album here -http://www.lefty74.com/forum/album.php
 
Also, I downloaded this MOD from phpbbhacks, so I just wanted to check if my files are ok. My album page doesnt show latest pics, random pics etc. I currently do not have any Public category or pictures, but have few personal user galleries.
 
Can someone kindly check if it is fine here http://www.newindianmodels.com/forum/album.php  
			
 
 
   |  
	| #1  Thu 12 Jul, 2007 07:59 |  | 
	| Sponsors 
  
   | 
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
  |  |  | 
	|  lefty74  
   
									
			Joined: January 2007 
			Posts: 137
									
																		  
 |   Re: User Personal Galleries Page Customization 
			looks fine to me, all it needs is a few pictures now
    
			
 
 
   |  
	| #2  Thu 12 Jul, 2007 18:14 |  | 
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			Hi lefty
 
Actually I have removed that MOD now since it did not do anything.
 
What I want is my users personal galleries page to appear like yours at http://www.lefty74.com/forum/album_personal_index.php  
			
 
 
   |  
	| #3  Fri 13 Jul, 2007 07:13 |  | 
	|  lefty74  
   
									
			Joined: January 2007 
			Posts: 137
									
																		  
 |   Re: User Personal Galleries Page Customization 
			I will post my files later if anyone else wants to have them, however, you need to be aware that there may be some code edits that are referring to other mods. I don't have time to go through it to see which ones they are so you will need to check yourself.
   
			
 
 
   |  
	| #4  Fri 13 Jul, 2007 12:34 |  | 
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			Will check that, can u be kind enough to point me in the right direction. Which all files do I need to edit and where are the thumbnails being generated (the code) that I can put in the layout.
 Also, if u can guide me to put latest thumbnail picture (if the user has created an album and uploaded any pic) in-place of avatar in posts.
 
   
			
 
 
   |  
	| #5  Fri 13 Jul, 2007 13:05 |  | 
	|  lefty74  
   
									
			Joined: January 2007 
			Posts: 137
									
																		  
 |   Re: User Personal Galleries Page Customization 
			here it is
 
I think i cleaned out the code from other mods, 
 
the album_personal_index.php goes into the root folder, the language file in the language folder and the album_personal_index.tpl file in your template folder
I strongly recommend to make a back up of your board and files before doing any changes. 
 
|
 
	| Description: | updated files, includes the modified album_upload file, every file uploaded is automatically set as new avatar
 |  Download
 |  
	| Filename: | org.zip |  
	| Filesize: | 15.59 KB |  
	| Downloaded: | 219 Time(s) |   
			
 
 
   Last edited by lefty74 on Sun 15 Jul, 2007 20:50; edited 1 time in total  |  
	| #6  Fri 13 Jul, 2007 17:59 |  | 
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			Thanks lefty,
 I will manage the rest.
 
 Just one more favor ... what if I need to use the thumbnail of the last uploaded picture as avatar or may be I completely remove the avatar option and instead show the thumbnail of recently uploaded picture below the username in the posts on left side. I already have a MOD to put a link to user's personal album below avatar, I just want to replace it with latest thumbnail. Can you guide me a bit which files need to be edited and where is the code for thumbnail.
 
   
			
 
 
   |  
	| #7  Sat 14 Jul, 2007 09:59 |  | 
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			Its not working. I guess I need to have a closer look to rectify the problems.
   
			
 
 
   |  
	| #8  Sat 14 Jul, 2007 14:47 |  | 
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			I am getting this error
 SQL error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND p.pic_id = AND ct.cat_view_level IN ('-1','0','1','2','3') ORDER BY p' at line 5
 SELECT ct.cat_id, ct.cat_view_level, p.pic_id, p.pic_title, p.pic_desc, p.pic_time FROM phpbb_album AS p LEFT JOIN phpbb_album_cat AS ct ON p.pic_cat_id = ct.cat_id WHERE p.pic_user_id = AND p.pic_id = AND ct.cat_view_level IN ('-1','0','1','2','3') ORDER BY p.pic_id desc LIMIT 1
in file album_personal_index.php 
for this query
 $sql = "SELECT ct.cat_id, ct.cat_view_level, p.pic_id, p.pic_title, p.pic_desc, p.pic_time
FROM ". ALBUM_TABLE ." AS p
 LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
 WHERE p.pic_user_id = " . $user_id ."
 AND p.pic_id = " . $memberrow[$i]['last_pic'] . "
 AND ct.cat_view_level IN ($cat_view_level)
 ORDER BY p.pic_id desc
 LIMIT 1
 ";
Can you help.
					  
			
 
 
   |  
	| #9  Sun 15 Jul, 2007 12:18 |  | 
	|  lefty74  
   
									
			Joined: January 2007 
			Posts: 137
									
																		  
 |   Re: User Personal Galleries Page Customization 
			strange, if i am not mistaken, it looks like there are no pictures to be found in the personal galleries...
 could this be?
 
   
			
 
 
   |  
	| #10  Sun 15 Jul, 2007 12:59 |  | 
	|  lefty74  
   
									
			Joined: January 2007 
			Posts: 137
									
																		  
 |   Re: User Personal Galleries Page Customization 
			updated the attachments. now also includes modified album_upload.php file that sets the uploaded file as your avatar by default.
 only tested briefly so backup files before trying.!!!
 
   
			
 
 
   |  
	| #11  Sun 15 Jul, 2007 20:51 |  | 
	|  nims 
   
									
			Joined: July 2007 
			Posts: 39 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			Thanks for the files.
 
I am posting the working files here.
			 
|
 
	| Description: |  |  Download
 |  
	| Filename: | album_personal_index_body.zip |  
	| Filesize: | 5.19 KB |  
	| Downloaded: | 206 Time(s) |   
			
 
 
   |  
	| #12  Mon 16 Jul, 2007 10:34 |  | 
	|  Pete_Z  
   
									
			Joined: January 2007 
			Posts: 46
									
																		  
 |   Re: User Personal Galleries Page Customization 
			Thanks Lefty and nims. I like the layout.      
			
 
 
   |  
	| #13  Tue 04 Sep, 2007 05:48 |  | 
	|  darkone  
   
									
			Joined: February 2007 
			Posts: 168 
									Location:     
 |   Re: User Personal Galleries Page Customization 
			I haven't had time to look at the files but Lefty this mod doesn't work with latest version of ICY.
 Any ideas?
 
   
			
									____________Check out my new website:
Adult Forums  - A place where everyone can fit in.
Currently running v1.1.10.25 RC3   |  
	| #15  Thu 17 Jan, 2008 06:03 |  | 
	|     | Page 1 of 2 
 |  
 
 
 
 Was this topic useful?
 
 Was this topic useful?
| Link this topic | 
|---|
 
	| URL |  |  
	| BBCode |  |  
	| HTML |  |  
	| 
			
			
				
			 | 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
 
 |  | 
 
 |  |