The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
I have written what I consider to be my first "big" hack...well, maybe it's only medium. It's certainly my most ambitious project to date.
Basically, what it is is a gallery of photos of your members. Obviously, the hack does not include these photos! You need to get your members to submit to you a photo of themselves. You then need to use an image editing app to create a smaller thumbnail image. Create a new directory and upload the photos to it (you don't absolutely need a unique directory for the photos, but it's good for organization). You can make this directory anywhere; I have mine as a first-level directory inside my www root folder, but you can stick it inside your forums root directory or anywhere else. For each member you include in the Photo Gallery, you specify the URL to both images anyway, so it really doesn't matter. This hack involves adding a new table to your database. Please make a backup of your database first! You are solely responsible for protecting your message board. At this time, adding a member to the Photo Gallery involves direct database manipulation, such as through phpMyAdmin or direct query. This is easy, and full instructions are provided. I hope to be able to come up with some way to do this through the Admin CP, but that will require some more learning on my part (or assistance from one of you! ). I have tested this on my board, and do not have any problems. However, since this is my biggest project so far, and the first one I've written that includes sql syntax that I devised, it's possible that I have not written this hack in the most optimal or efficient way possible. I don't consider this to be beta, though, as it is fully operational; however, if someone has any pointers on writing better code, please let me know. Demo: My own Photo Gallery Note: The server my site is hosted on has been having a lot of problems lately, so if it doesn't load or you get MySql errors, please try again a little later. Sorry! Plans for the Future 1. Add a simple way to add a member to the Photo Gallery through the Admin CP. 2. Making the thumbnail gallery multi-page capable so a user can specify the number of thumbnails seen per page. --DONE! 3. Adding a search function. 4. Integrating into a member's profile, to either show the thumbnail there as well, or else link to it. 5. Got other ideas? Let me hear them. Everything you need should be in the attached .ZIP file. Have fun! Show Your Support
|
Comments |
#12
|
||||
|
||||
I had considered making it possible for a member to add his/her own photo to the photo gallery, but didn't know if everyone would like that ability. Some boards might have people that would upload inappropriate photos.
|
#13
|
||||
|
||||
ok.
I make a new edit now. this hack can't display in pagenav. If you have many member photos,It's too slowly to display and the page is too long! (I have 108 member photos) I made a edit in main_photogallery.php and integrated pagenav to it. In default my gallery display 10 photos perpage. If you want see more now can hit "1" "2"..."last page" and so on. works well,thanks again. My members love this hack. |
#14
|
|||
|
|||
love this hack, exactly what i need, a member profile/gallery section, can you add the ability to let other members rate them too? also can the user update his pic, and have more than 1 picture they can put up? and can they like edit all ther information? If you would like to see an example go here...
http://www.asianxo.com and goto the profile section, something how they have there, how users can upload and add pics and change info and rate other users... love the hack tho! |
#15
|
||||
|
||||
I have performed an extensive re-write on this code based on some ideas from above. Mainly, I've included the pagenav functionality, as discussed by xware. Now, the default number of thumbnails per page will be 10, and if you have more than 10 members in your photo gallery, the pagenav feature will show up. You can change the default # per page, if you want, in the main_photogallery.php file; it's documented near the top.
xware, I'd be interested to see how you did it, just for comparison. I've also added the letters function, as the built-in member list has, per the suggestion of Jakeman. The new .ZIP file is attached to the original post above, but here is a shortcut: https://vborg.vbsupport.ru/attachmen...&postid=205482 |
#16
|
||||
|
||||
[QUOTE]Originally posted by JJR512
I had considered making it possible for a member to add his/her own photo to the photo gallery, but didn't know if everyone would like that ability. Some boards might have people that would upload inappropriate photos. |
#17
|
||||
|
||||
ok,JJR512,here is your want .
I edited the main_pg.txt and main_photogallery.php you can use pagenav in display. I think you can do better. wait.... |
#18
|
|||
|
|||
All that's needed for this to be truly 1337 is the ability for members to upload their own pictures in the same way they can upload avatars. A report picture thing might be ok, but there isn't one for avatars, and I've never seen them abused...
|
#19
|
|||
|
|||
agreed, the ability for users to upload there own pictures and update ther own profile and can you make it so other members can rate other users like a rating system? and also can a member upload more than 1 pic to use in there profile? like at http://www.asianxo.com love this hack, great job!
|
#20
|
||||
|
||||
Find:
case 'gallery.php': $userinfo[activity] = 'gallery'; break; I can not find this |
#21
|
|||
|
|||
Since BradC was the one who made up the photo upload in the first place.. he might be interested to know that it is being used in another script ya know
and he added the moderation part to his latest version. If I am not mistaken it was just adding another field in the database, and when the picture is uploaded it is set to I think "1" which means "Needs to be reviewed" and then.. the admins gets an email or sees that one needs to be moderated on the homepage (using vbportal) and then he can set it to "2" for "Approved" or "3" for not approved. and as for the photo ranking.. or rating the picture, brad actually has had that set up for a long time. Last I heard once get gets it completed he was going to sell it to a few people who wanted to buy it. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|