Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #72  
Old 07-10-2002, 06:39 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and hows the ability for a member to upload their own pic feature going?
Reply With Quote
  #73  
Old 08-08-2002, 02:00 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like vBulletin 3 is going to include a feature that will allow a member to upload his/her own photo into his/her profile. This photo would then be displayed in the user's profile whenever someone views it.

However, I saw no mention of a centralized system wherein you could view all photos; this is what my hack basically does.

Therefore, when vBulletin 3 comes out, if it's not already included by then, I intend to release a new Photo Gallery hack that will build on the built-in profile photo system that's built in to vB 3. This new hack will be a centralized page to see all photos, as is this current version, but it should be simpler and more user-friendly, since it uses the photos that users upload for themselves.

Let this serve as notice that, unless the vBulletin developers include this functionality in the release version, I hereby claim eminent domain over this idea, and kindly ask that nobody else work on the same idea.
Reply With Quote
  #74  
Old 08-15-2002, 10:57 PM
Attrox's Avatar
Attrox Attrox is offline
 
Join Date: Jan 2002
Location: St.Paul, MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool hack, I'll use it until vB 3 is released. Nice job!
Reply With Quote
  #75  
Old 08-16-2002, 09:53 AM
DudeSicko DudeSicko is offline
 
Join Date: Apr 2002
Location: Denmark
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i have installed it, and i can see the page.

BUT: Where do i put in the pictures, and the text ? I cant find it in the admin page ;( ??

Reply With Quote
  #76  
Old 08-17-2002, 01:31 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What admin page? There is no admin page with this hack. Everything is done by file uploads and direct database modifications. It's all described in Step 2b. Sorry, I wasn't experienced enough at the time to write a more sophisticated way of managing it. I might be able to do it now, but I have no plans to do so, as I anticipate the pending release of vBulletin 3, which will require the hack to be rewritten. In other words, I'm not going to spend any time adding new features to a hack that will be depracated soon.
Reply With Quote
  #77  
Old 08-19-2002, 09:36 AM
DudeSicko DudeSicko is offline
 
Join Date: Apr 2002
Location: Denmark
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HEHE ok, i understand
Reply With Quote
  #78  
Old 08-26-2002, 11:31 AM
irn-bru's Avatar
irn-bru irn-bru is offline
 
Join Date: Feb 2002
Location: Scotland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack JJR512

I have been useing it for a few months now.
I have read your post about the admin cp option
of allowing to enter the photo and useid in to the
database with out using phpmyadmin.

This is a good hack I will be useing it for some time
as I have no plans to update to vb3.

If anyone can make a script that will enter the
photo and userid in to the photogallery table in the
database via the admin cp I would very muich like to
add it.

I would do my self but I would be takeing my
life and database in to my own hands .lol

Thanx
Reply With Quote
  #79  
Old 08-28-2002, 02:34 PM
lemarsu's Avatar
lemarsu lemarsu is offline
 
Join Date: Aug 2002
Location: .eu
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

does anyone have a demo of this in action ?

It is then possible to have 1 page with all the pictures only ?

LeMarsu
Reply With Quote
  #80  
Old 08-28-2002, 05:13 PM
irn-bru's Avatar
irn-bru irn-bru is offline
 
Join Date: Feb 2002
Location: Scotland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by lemarsu
Hi,

does anyone have a demo of this in action ?

It is then possible to have 1 page with all the pictures only ?

LeMarsu
Reply With Quote
  #81  
Old 08-29-2002, 02:29 PM
lemarsu's Avatar
lemarsu lemarsu is offline
 
Join Date: Aug 2002
Location: .eu
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,
One more question ...

is there a way for the users to add their pictures ? and creating thumbs ?
I can go around doing :
INSERT INTO photogallery VALUES (xxx, 'full-photo-URL', 'thumb-photo-URL', '');
for hours/days at a time and creating stupid Thumbnails ?

Lemarsu

PS: irn-bru, are you from bonny Scotland !
Reply With Quote
Reply

Thread Tools

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 07:23 PM.


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.14780 seconds
  • Memory Usage 2,301KB
  • 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
  • (3)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