Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-07-2001 Last Update: Never Installs: 80
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-11-2001, 06:20 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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.
Reply With Quote
  #23  
Old 12-11-2001, 10:41 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 12-11-2001, 11:41 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 12-12-2001, 01:14 AM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



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...
Reply With Quote
  #26  
Old 12-12-2001, 01:25 AM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #27  
Old 12-12-2001, 10:14 PM
Nam's Avatar
Nam Nam is offline
 
Join Date: Oct 2001
Location: NY
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 12-12-2001, 10:53 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:
case 'gallery.php':
$userinfo[activity] = 'gallery';
break;

anyone help me find this...
Reply With Quote
  #29  
Old 12-13-2001, 01:34 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 12-13-2001, 02:00 AM
Nemesis77 Nemesis77 is offline
 
Join Date: Nov 2001
Location: canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #31  
Old 12-13-2001, 02:08 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is the userid number of the one specific user you are adding to the photo gallery.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10967 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete