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 |
#22
|
||||
|
||||
[QUOTE]Originally posted by ToraTora!
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. |
#23
|
|||
|
|||
I was just commenting on the things that were discussed above.. and on page 1.
Brad created the photo upload script as we know, he has already made a lot of changes, and is working on a photo gallery script, but does not really matter cause I doubt when it is finished that he will give it away.. unless he includes it in his photo ranking script. And this is a Gallery script by JJR512 no objections to that.. I just wanted to let Brad know that his script was being used with other scripts. He was pleased to hear that his script can still be usefull to everyone. He just wishes he got more thanks for releasing it, cause of all the time spent into it. Does not matter glad that JJR512 has decided to release his photo gallery script. |
#24
|
||||
|
||||
You know, at first, I wasn't sure what you were trying to say in Post 20, ToraTora!. You said that BradC might be interested to know that someone else was using his photo upload hack. I really didn't understand that at all.
But your next post, Post 22, seems to clear things up, and I am not too happy if I understand you correctly. No sir, not happy at all. You are talking about BradC's "photo upload" hack. And you mentioned that you told BradC that his script was being used with other scripts, and that BradC was perhaps a little disappointed that he didn't get any credit for that part. Well let me make this perfectly clear. My hack does not include any photo upload feature at all, nor any of the other features you say BradC had put into his photo upload hack. Just look at the code for it and you would see it. Yet I feel that I am being accused of copying someone else's hack, of putting that hack into my own and giving no credit for it. THAT'S NOT TRUE! Now since you already told BradC that I was using his script in mine but gave him no credit, why don't you go tell him that you were 100% wrong, that my hack doesn't have any photo upload feature nor any of the other features you mentioned from his hack. My hack is actually very simple; it's basically the memberlist.php file that comes with vBulletin, with the queries changed, some extra stuff taken out, and the output variables changed appropriately. |
#25
|
|||
|
|||
Maybe you could email him explaining it also, and saying you'd be interested in adding the ability for members to upload their pictures in your hack, and asking if you could use his code... |
#26
|
|||
|
|||
Sorry for the mis understanding.. I was not saying that you copied, used, or anything with his hack.. sorry for the misunderstadning on that!..
no.. I was refering to the addon for it.. from post 10 https://vborg.vbsupport.ru/showthrea...769#post205769 all I did was told him that the script was being usefull as an addon for other things. He does not care whatsoever, he released it making it open for the public to use and abuse.. lol. I did not mean anything by the part about "being used in or with another script" I was referring to making them work together, which is a great idea. These two are different in every way. Sorry if I confused anyone by my last two posts on that part. What I was referring to was.. to let others know.. (I will edit it out) that the use, and everything is fine.. hell I don't know why I mentioned it, I guess so that others won't take the script, maybe redo a few things and release it as their own. WHICH YOU HAVE NOT DONE IN ANYWAYS. Sorry... |
#27
|
||||
|
||||
I was going to install photo upload first then using this one, I've seen the post that say you can use both, how does this work? Which script should I install first? I'm using version 2.2.1, please let me know, thanks.
|
#28
|
||||
|
||||
Find:
case 'gallery.php': $userinfo[activity] = 'gallery'; break; anyone help me find this... |
#29
|
||||
|
||||
TheComputerGuy, it's in online.php. In an original, unhacked online.php, it's lines 580-582, or at least in mine. I checked it straight out of vbulletin.zip.
|
#30
|
|||
|
|||
INSERT INTO photogallery VALUES (xxx, 'full-photo-URL', 'thumb-photo-URL', '');
Where xxx is the id number of user you are adding to the Photo Gallery, What am I supposed to replace the xxx with? the id for only one user of leave it as xxx for all users? |
#31
|
||||
|
||||
That is the userid number of the one specific user you are adding to the photo gallery.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|