View Full Version : Web Page Gallery
filburt1
03-28-2003, 10:00 PM
This hack allows users to view and add their own site to a master "web page gallery", a page which displays users' showcase sites along with optionally the sites' thumbnails.
This hack is fully integrated into the admin and user CP. Permissions are taken into consideration: moderators, supermoderators, and administrators can edit anybody's site. BB code with smilies is allowed in the description.
This hack, due to its complexity, is in a beta stage. However the code has now reached a level of maturity that it should only be tested for bugs at this point and should be considered release-quality.
If you are updating from 0.0.1 to 0.1.0, follow the instructions in update001.txt.
Version history:
0.1.0: projected final beta test; added template caching and pagination; huge number of bug fixes
0.0.1: initial release
filburt1
03-28-2003, 11:24 PM
The gallery right after installing the hack:
filburt1
03-28-2003, 11:24 PM
Adding a site:
filburt1
03-28-2003, 11:24 PM
After adding the site:
filburt1
03-28-2003, 11:25 PM
User CP:
filburt1
03-28-2003, 11:25 PM
And finally, admin CP:
Velocd
03-29-2003, 12:34 AM
Awesome idea Filburt, I'm defiantly going to consider this. ;)
* Velocd clicks install
Looks very cool, I'll test this out :)
partang2
03-29-2003, 05:16 AM
Don't work when trying to attach a tumbnail...leads to a 404 page. The title of the person who submits his page is looking pretty stupid too because it doesent support html/ tags....
How do we fix this?
empreur76
03-29-2003, 06:48 AM
very nice!!
Intex
03-29-2003, 07:12 AM
Very nice work filburt1. Do you have an example page showing numerous pictures that have been added.
colicab-d
03-29-2003, 10:19 AM
kool along with what overgrow is providing me with this will be great for my members :D
all i gotta do now is get them both on the same page lol
NuclioN
03-29-2003, 11:16 AM
Great Filbert! It does not make a thumbnail though. :)
Craigr
03-29-2003, 11:30 AM
Looks awesome. I think i'll install this when it's final.
What's pagination?
Thanks
Craig
colicab-d
03-29-2003, 11:36 AM
yeah thumbnails dont work here either :P
would it be possible to include categorys?
and user commenting?
lastly could it be made to say thumbnail anysize image to say 150x150 ?
Dean C
03-29-2003, 11:42 AM
Brilliant hack filburt :)
This doesn't use GD to check the size of the image does it?
- miSt
filburt1
03-29-2003, 11:50 AM
Today at 08:42 AM Mist said this in Post #16 (https://vborg.vbsupport.ru/showthread.php?postid=374939#post374939)
Brilliant hack filburt :)
This doesn't use GD to check the size of the image does it?
- miSt
No.
Pagination: breaking up a huge amount of data into pages
404 error: what's the URL it tries to go to?
NuclioN
03-29-2003, 12:35 PM
In the screendump the output (image is 200 x 200)
filburt1
03-29-2003, 01:47 PM
Well that's not a 404: 404 is file not found. For some reason people now refer to every error as a 404.
What was the filetype for the image you used? I only tested mine with GIFs.
NuclioN
03-29-2003, 01:57 PM
Yep, gif image works. :)
filburt1
03-29-2003, 01:59 PM
But what did you try to upload? A JPG or what?
colicab-d
03-29-2003, 02:32 PM
i get that error with eveything but gifs :P
filburt1
03-29-2003, 03:05 PM
'Tis probably sending the HTTP headers wrong. Will investigate.
xtremeathlonxp
03-29-2003, 04:06 PM
will be watching closely as I might want to try this one out.
filburt1
03-29-2003, 04:14 PM
Found the problem (was assigning via == instead of = :o ), the zip is updated. Use the new wpgallery.php and overwrite the old one, should fix it.
matt[SiMVille]
03-29-2003, 06:14 PM
]Very good :)
-> In German :) (http://www.katzen.ws/wpgallery.php?s=)
cu
filburt1
03-29-2003, 09:59 PM
After an hour I think I have the pagenav working. I'll add the template caching and post an updated version tonight.
It will require adding four new templates and editing one but the installer script should be able to install the new templates for you (not edit the other one, though).
GoTTi
03-30-2003, 12:22 AM
is this hack needing the GD installed?
filburt1
03-30-2003, 12:22 AM
No, it uses getimagesize() which doesn't need it.
Zelda-King
03-30-2003, 12:23 AM
Nice hack! Installed! I only have a couple of afore mentioned issues. HTML custom ranks show as code rather than formatted text, and sometimes you aren't taken to a template properly. I can load a site and see a white page though pressing back and doing it again usually works.
filburt1
03-30-2003, 12:28 AM
Today at 09:23 PM Zelda-King said this in Post #30 (https://vborg.vbsupport.ru/showthread.php?postid=375296#post375296)
Nice hack! Installed! I only have a couple of afore mentioned issues. HTML custom ranks show as code rather than formatted text, and sometimes you aren't taken to a template properly. I can load a site and see a white page though pressing back and doing it again usually works.
Titles: by design to avoid HTML injection
Other problem: if you mean a quick blank page when loading the redirector after adding/editing a site, I get it too and have no idea.
filburt1
03-30-2003, 12:29 AM
Actually I coincidently found the problem now: trailing whitespace after the ?>, of all things.
Zelda-King
03-30-2003, 01:06 AM
Which file's that in? I don't see one in wpgallery.php, then again it's 4am here.
filburt1
03-30-2003, 01:08 AM
I'm about to upload a new version anyway now that I also found a crapload of bugs in the install script that would completely screw up updating.
Stand by.
filburt1
03-30-2003, 01:12 AM
Updated. Read the big highlighted text in the first post.
Zelda-King
03-30-2003, 01:26 AM
I see no update001.txt file in the zip.
filburt1
03-30-2003, 01:29 AM
Try again
filburt1
03-30-2003, 01:34 AM
Try now.
Zelda-King
03-30-2003, 01:38 AM
I still don't see it though I had cleared out the old files.
Zelda-King
03-30-2003, 09:49 AM
No, the only stuff in the zip is wpgallery.php, install_wpgallery.php, instructions.txt and the templates_gallery folder.
jbear6
03-30-2003, 12:21 PM
Looks very nice *will install tonight* :classic:
filburt1
03-30-2003, 01:38 PM
Dump your cache, I just downloaded it and it is there.
Zelda-King
03-30-2003, 03:00 PM
I see it now. I'd been deleting from my briefcase and downloading updates there.
filburt1
03-30-2003, 05:05 PM
So any bugs or should I make this final?
Zelda-King
03-30-2003, 06:49 PM
I haven't spotted any bugs. In the final version though you might want to recommend that any installers that have HTML custom ranks remove the $bits[usertitle] from the wpgallery_bit template.
jbear6
03-30-2003, 09:45 PM
Very smooth installation :) Looks and works very nice!
How many website fit on a "Web Page Gallery" page?
Thanks,
Jbear6
filburt1
03-30-2003, 09:51 PM
It breaks it into pages after 10 sites (can be changed in admin CP options)
jbear6
03-30-2003, 09:56 PM
Thanks Filburt1. Is there a way to restrict this feature to certain usergroups?
Thanks Again,
Jbear6
filburt1
03-30-2003, 10:15 PM
Not the way it is now.
ryanhulce
03-31-2003, 02:06 AM
Very Nice! Installed in less than 5 mins!
Great Hack!
Would like to see catagories and allow one person to upload more than 1 site, maybe to a que. that Admins could approve?
Also have you thought of doing a real vbulletin webgallery using this platform?
I would love to see one that uploads to a db (Yeah I'm Stupid)
Keep up the good work!
Ryan
xpguy
03-31-2003, 10:22 AM
ok i love this hack :) great work but as far as i can see is that 1 user can only add 1 site can you change it so that a user can add more than 1 site?
Dark_Wizard
03-31-2003, 10:40 AM
Categories sound like a nice idea....any thought filburt1?
filburt1
03-31-2003, 10:49 AM
Neither are easy.
xpguy
03-31-2003, 12:14 PM
also i have edited mine but i get a space in between the screenshot as shown in the picture here: http://www.windowsos.com/screenshotsgallery.gif
there is no sign of a <br> or a &bnsp; tag anywhere near that space, and how can i add the gallery for all templates because upon install it asked me for 1 template.
thanks once again a great hack
filburt1
03-31-2003, 04:41 PM
Edit the wpgallery_imagebit template.
filburt1
03-31-2003, 04:49 PM
Since nobody's reported any bugs, I've moved this to Full Releases.
Gryphon
04-01-2003, 03:51 PM
03-29-03 at 07:47 AM filburt1 said this in Post #19 (https://vborg.vbsupport.ru/showthread.php?postid=374994#post374994)
Well that's not a 404: 404 is file not found. For some reason people now refer to every error as a 404.
A broken image is a 404.
*installs
filburt1
04-01-2003, 04:24 PM
404 is file not found. The error you get is an internal error with the script; the closest possible error is a 500.
blippio
04-02-2003, 07:12 PM
Nice job filburt! I installed this and am playing around with it now...
I agree, it would be nice for one user to add more than one site, though doing so would probably be like creating a mini photopost...
I'm thinking of using this to have members post album reviews; the thumbnail image of the CD would go the left, the description in the same "description" box to the right, and include a link to an mp3 sample. Any ideas on how to add a link to a (possibly) large mp3 file and NOT have it store it in the database? How can I disable your limitation of adding html into the field? (I have a small, closed-registration board that would not "inject" any malicious code...)
thanks again!
filburt1
04-02-2003, 07:16 PM
Add a field to the wpgallery table and alter all the queries accordingly, although it may be a lot of work.
To disable HTML injection, remove all calls to htmlspecialchars() (not the actual stuff that is passed, though). I don't recommend it though unless you know personally and trust every single member of your board because you could turn around and have your entire board hijacked.
xtremeathlonxp
04-11-2003, 02:12 AM
is there a way to fix this to work with 2.3.0 with no errors
filburt1
04-11-2003, 02:18 AM
It works perfectly fine with stock vB 2.3.0.
Zelda-King
04-11-2003, 08:16 AM
Yeah! I'm using a hacked vB 2.3.0 (upgraded from 2.2.9) and it works fine for me.
I am not getting an error but for some reason the installer doesn't install anything for me. I had to maually add the tables to my DB and I did all the edits but that is all that was changed. Is there any way I can get manual install instructions?
filburt1
04-20-2003, 01:02 AM
What is the output after click Start Installation? For further debugging, check Show Queries.
I did and there is no output at all.. Just reloads the page.... ??? I am lost on this one.
filburt1
04-20-2003, 01:08 AM
No idea.
Manual instructions would make installing the program literally take at least 15 minutes to half an hour.
Oh well thanks for the help anyway.. I will try to figure it out...
filburt1
04-23-2003, 03:48 PM
People have finally begun to fill in the gallery so here's a demo URL: http://www.webdesignforums.net/wpgallery.php?s= (note that I've changed the page split from 10 to 5)
Jacko
04-23-2003, 06:57 PM
only one thing to make this hack complete would be more than 1 entry for each user. please filburt add this, i wish i could but i dont kow anything about PHP.
and then i could modify this hack to be a gallery for my users. :rambo: :D
it would be so cool if you could. i dont mind beta testing it either if you want. :beard: :ninja:
oh and it worked wonderfull here on my 2.2.9 (modified!)
filburt1
04-23-2003, 06:58 PM
That is not possible to do without rewriting it as each entry is associated with a user.
Jacko
04-23-2003, 07:03 PM
and you're no willing to do that? :nervous:
how about something to make it worth you're while?
filburt1
04-23-2003, 07:05 PM
It would be expensive, too. I'm somewhat smacking myself for not thinking of selling this as it is.
Jacko
04-23-2003, 07:07 PM
lol well if thats the case i am sorry but i dont exactly have a large budget :)
but feel free to kick yourself more and make it so users can post more than 1. :p
drives fast
04-24-2003, 03:17 AM
this was easy to install but when I make an entry, the image thumbnail doesn't show up at all....not an error or broken image....nothing
I checked in the database.....the image is in the database (.gif)
and suggestions of what I might have screwed up?
Entourage
05-02-2003, 08:02 AM
Works great!!
Only one thing :) Is it possible to have more then 1 Web Page Gallery per user? Because I have xx different web gallery's that I wanne post to my users.
Makingcoin
05-15-2003, 06:59 AM
This was my first hack install. It went nice and smooth. Thanks for the great hack!
maxxxxxx
05-16-2003, 06:25 AM
is there an opinion to upload more then one image per site?
Thomas
I like it and clicked INSTALL. :-)
Can you supply code to add it as a view only forum instead of a seperate PHP page?
funinthesun
12-06-2005, 06:47 PM
Has this been updated for 3.5?
kkKunan
03-21-2006, 10:31 PM
Looks very cool
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.