vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VbGarage 3.5 (https://vborg.vbsupport.ru/showthread.php?t=109924)

Trigunflame 03-08-2006 10:00 PM

VbGarage 3.5
 
VbGarage 3.5
Let Your Members Show Off Their Rides !!!

https://vborg.vbsupport.ru/

Summary:

This is a semi-direct port of the hack located at:
https://vborg.vbsupport.ru/showthread.php?t=63681

The author has given me permission to re-release this hack under his 3.1.1 codebase, and as such I have converted it Vbulletin 3.5 support which involved a good many changes.

Also I changed a couple templates, and some html fixes so it will look a little better than it used to, feel free to suggest any other bugs that need to be fixed.

One last thing, although I will "Try" to get around to fixing any bugs that come in, this is NOT my hack, and therefore I will not associate myself with supporting this hack; I merely have done a service for the people that requested the port.

Credit goes to the original authors: magnus, noppid, action-n

Again: THIS IS NOT MY CODE. AND IT IS NOT SUPPORTED.


Information:

1. Make sure you have a writable tmp directory.
2. This script only supports jpg, png, gif files.
3. I dont plan on re-writing this entire script to make it bug free, so please dont ask me to do so.

Upgrade From Vbulletin 3.x.x :

1. There is no upgrader; you just need 2 do a couple things.
2. More than likely you can leave your old vbg tables (havnt tested).
3. You _Do_ need to delete any previous settings/phrases/templates though.
4. Use phpmyadmin or w/e you use, and search your database for vbg with a wildcard it should locate anything that has that name in it; and delete them. Then follow the INSTALL.txt :)

Installation:

1. Download Zip File
2. Read INSTALL.txt
3. Click install if you like :)


Changes:

3/10/2006 8:43am - Fixed Comments; they now post to correct Garage.
3/9/2006 10:37pm - Image Types are determined manually.
1. Did some actiontemplate optimizations, so only the necessary templates are loaded on the pages needed.
2. Removed the text field limit for describing your ride.
3/9/2006 10:37pm - Image Types are determined manually.
3/9/2006 12:54pm - A change to image output.
3/9/2006 12:06pm - Attempt to fix image corruption.


To Upgrade:

Simply overwrite the vbgarage.php file.


Trigunflame 03-09-2006 01:56 PM

Fixed bug.

soulface 03-09-2006 02:06 PM

Hmmm lets see what cars we've inside this Garage :p

[high]* soulface clicks install![/high]

got1-2 03-09-2006 02:32 PM

Been waiting for this...Thanks

Tracer Gun Kata 03-09-2006 02:32 PM

Installed.. did a test and it does not display the thumbnail of the image. Any ideas?

It will display the image once you click on it for a larger view.

http://www.onlinewarfare.net/forum/vbgarage.php

Trigunflame 03-09-2006 02:49 PM

Quote:

Originally Posted by Tracer Gun Kata
Installed.. did a test and it does not display the thumbnail of the image. Any ideas?

It will display the image once you click on it for a larger view.

http://www.onlinewarfare.net/forum/vbgarage.php

Hmm, my images work fine.. can you try any other pictures? Im looking at the code now which isnt too great; so eh.. that explains some of it.

Trigunflame 03-09-2006 02:59 PM

Ok I updated a patch.. that deals with base64_encode/decode of the images which might prevent some corruption. Other then that.. not exactly sure what the problem would be.

Oddjob 03-09-2006 03:03 PM

worked like a charm, thanks for this.

Trigunflame 03-09-2006 03:22 PM

Great, glad it wasnt messing up for everyone.

got1-2 03-09-2006 03:25 PM

Installed ok, but when i goto pload, they pics dont show, lookd in database, and they are not being stored

Trigunflame 03-09-2006 03:27 PM

Quote:

Originally Posted by got1-2
Installed ok, but when i goto pload, they pics dont show, lookd in database, and they are not being stored

Any errors when you add a new image?

got1-2 03-09-2006 03:32 PM

ok, i just ran the updated file, loads the picture, but no thumbnail, same as Tracer, the picture opens, will uninstall, and retry

got1-2 03-09-2006 03:43 PM

Cant uninstall for some reason, it wont show in the Manage Plugins screen..so i am at a total loss here..Oh dear...

Trigunflame 03-09-2006 03:49 PM

Quote:

Originally Posted by got1-2
Cant uninstall for some reason, it wont show in the Manage Plugins screen..so i am at a total loss here..Oh dear...

You use manage products.. this is not a plugin.

ps. Made another change to how the images are shown. Overwrite vbgarage.php with the new one.

May have to delete the old images and re-add them.

got1-2 03-09-2006 03:58 PM

Sorry, i meant Producs, but all the same, its not visable in the Manage products system for some reason

got1-2 03-09-2006 04:12 PM

OK, still no thumbnail, and now the picture wont show in the popup window

Ntfu2 03-09-2006 04:29 PM

is this supported :p


just playing, installed at FightRice.com and Lincolnforums.org :woot:

drumsy 03-09-2006 04:29 PM

Will this work with previous uploads? I still have all of the old garage entries in my database.

blacklancer 03-09-2006 05:42 PM

none of my pictures show up at all. is there something else i need to do?

waza 03-09-2006 05:56 PM

wow, trigun your going to break the record of most hack releases in one week, nice job man.

Trigunflame 03-09-2006 11:56 PM

Quote:

Originally Posted by drumsy
Will this work with previous uploads? I still have all of the old garage entries in my database.

I have no idea.. theoretically it should work with the old database tables, as I really didnt change the query in regards to how it reads/writes the image table.

Trigunflame 03-09-2006 11:57 PM

Quote:

Originally Posted by waza
wow, trigun your going to break the record of most hack releases in one week, nice job man.

I dont know about that, 1 month maybe though ;)

TTG 03-10-2006 12:09 AM

gifs show Ok but jpg and png don't !?

Gio~Logist 03-10-2006 12:13 AM

I suppose this works just like Noppid's version correct?

Job well done. I believe several people have been looking for the ability for users to have their own galleries.

interceptor 03-10-2006 12:33 AM

I found something that prevent to display images.

In SQL in vbgarage_images there is a type in thats shows this " image/pjpeg ".

I have correct this to image/jpeg and image work normaly.

but when user upload image same thing happen again.

Trigunflame 03-10-2006 12:51 AM

Quote:

Originally Posted by TTG
gifs show Ok but jpg and png don't !?

Well on my test on my local forum, i could use jpg/png/gifs. I had no problem whatsoever, like I said in my post this is Not my hack and Im not going to rewrite all the code in this hack; I might as well have made my own if I wanted to do that.

Trigunflame 03-10-2006 12:52 AM

Quote:

Originally Posted by interceptor
I found something that prevent to display images.

In SQL in vbgarage_images there is a type in thats shows this " image/pjpeg ".

I have correct this to image/jpeg and image work normaly.

but when user upload image same thing happen again.

Hmm thats quite interesting, I might could modify the code to get the type from the filename instead of getting it from GD itself.

Ill work on a patch and upload it, that might solve some peoples problems.

Trigunflame 03-10-2006 12:54 AM

Quote:

Originally Posted by gio~logist
I suppose this works just like Noppid's version correct?

Job well done. I believe several people have been looking for the ability for users to have their own galleries.

This is based on magnus version, but Im probably going to merge it with noppids code as well as he stopped all developement on his version of vbgarage anyway.

TunerNetwork 03-10-2006 12:55 AM

I need to add this back.

But, when i got to import the product, i get this error:
Code:

Database error in vBulletin 3.5.3:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbgenable',
                                        'vbgarage',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        10,
                                        0,
                                        1,
                                        '_vbgarage'
        ),
        (
                                        'vbgcomments',
                                        'vbgarage',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        20,
                                        0,
                                        1,
                                        '_vbgarage'
        ),
        (
                                        'vbgmaxupload',
                                        'vbgarage',
                                        '6',
                                        '6',
                                        'number',
                                        '',
                                        30,
                                        0,
                                        1,
                                        '_vbgarage'
        ),
        (
                                        'vbgmaxfilesize',
                                        'vbgarage',
                                        '200000',
                                        '200000',
                                        'number',
                                        '',
                                        40,
                                        0,
                                        1,
                                        '_vbgarage'
        );

MySQL Error  : Duplicate entry 'vbgenable' for key 1
Error Number : 1062

any ideas?

Trigunflame 03-10-2006 01:09 AM

Quote:

Originally Posted by TunerNetwork
I need to add this back.

But, when i got to import the product, i get this error:
Code:

Database error in vBulletin 3.5.3:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'vbgenable',
                                        'vbgarage',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        10,
                                        0,
                                        1,
                                        '_vbgarage'
        ),
        (
                                        'vbgcomments',
                                        'vbgarage',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        20,
                                        0,
                                        1,
                                        '_vbgarage'
        ),
        (
                                        'vbgmaxupload',
                                        'vbgarage',
                                        '6',
                                        '6',
                                        'number',
                                        '',
                                        30,
                                        0,
                                        1,
                                        '_vbgarage'
        ),
        (
                                        'vbgmaxfilesize',
                                        'vbgarage',
                                        '200000',
                                        '200000',
                                        'number',
                                        '',
                                        40,
                                        0,
                                        1,
                                        '_vbgarage'
        );

MySQL Error  : Duplicate entry 'vbgenable' for key 1
Error Number : 1062

any ideas?

1. uninstall product
2. delete any vbgarage tables if they exist
3. in the settings, deleted any vbgarage ones..

preferably do step 2,3 from phpmyadmin.

TunerNetwork 03-10-2006 01:11 AM

ok, ill give it a whirl right now, i did have it installed before 3.5. thanks!

Trigunflame 03-10-2006 01:33 AM

Update:

3/9/2006 10:37pm - Image Types are determined manually.

This might fix some peoples problems with it not showing, not sure though. Make sure to test with new vbgarage.php file and uploading new images.

TunerNetwork 03-10-2006 01:37 AM

k, i uninstalled the profuct.
I went into my site admincp and under the "edit templates", I reverted any templates affiliated with vbgarage.
I checked in my phpmyadmin, and i do not see any vbgarage files...

am i missing something? thanks for your patience wise ones,lol

EDIT**

Ok, now in my phpmyadmin, i did a search for the term "vbgarage", and i came up with a bunch of hits. Do i delete each one of those? there are bout 236 matches....i am waiting cause i dont wanna f' anything up

Trigunflame 03-10-2006 01:39 AM

Quote:

Originally Posted by TunerNetwork
k, i uninstalled the profuct.
I went into my site admincp and under the "edit templates", I reverted any templates affiliated with vbgarage.
I checked in my phpmyadmin, and i do not see any vbgarage files...

am i missing something? thanks for your patience wise ones,lol

The problem with that query was the vbgenable, make sure to remove any settings dealing with vbg as well.

Then you can install the product again.

cbr929rrerion 03-10-2006 02:13 AM

installed.. works fine on 3.5.

TunerNetwork 03-10-2006 02:14 AM

Thank you again Trigunflame, followed your input and worked perfectly!

ImportPassion 03-10-2006 02:14 AM

man, i was hoping this was a complete rebuild :(

interceptor 03-10-2006 06:53 AM

Yes, thats ok now, photos shows up normal.

Snake 03-10-2006 09:13 AM

Wow what a great hack. Thanks! :)

Trigunflame 03-10-2006 09:20 AM

Quote:

Originally Posted by 7thgenCivic.Com
man, i was hoping this was a complete rebuild :(

Sorry bro, I was just putting this out for the people that needed it. I think noppids version has a few more bugs fixed and an overall better feature-set so I will probably integrate that into this version just for the sake of being more stable.

Although, the image issue being the main problem so far.. I think I fixed that with changing the image header thats used.

If enough people install this, I may consider remaking it from scratch however.. so we will see.


All times are GMT. The time now is 12:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01603 seconds
  • Memory Usage 1,854KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete