[BETA] Photo Gallery 0.1.0

Misc MOD Downloads for phpBB3 -- Any MOD that does not fit into any other category
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

How would you rate this mod?

Excellent!
43
58%
Very good
15
20%
Good
8
11%
Fair
5
7%
Poor
3
4%
 
Total votes : 74

Re: [BETA] Photo Gallery 0.1.0

Postby griever » 21 Nov 2007, 17:26

How exactly do I run it? I noticed that in instructions but I cannot find a means to run the query. I'm using FileZilla to upload all my files to the server.
griever
Crewman
Crewman
 
Posts: 2
Joined: 21 Nov 2007, 16:42
Gender: Male


Re: [BETA] Photo Gallery 0.1.0

Postby dravekx » 21 Nov 2007, 19:02

ok handy! lol. I started to install and got this message on when running the gallery_db.php:

Code: Select all
SQL ERROR [ mysqli ]
Field 'gallery_desc' doesn't have a default value [1364]
SQL
INSERT INTO phpbb_gallery (gallery_name) VALUES ('Member Galleries')
BACKTRACE
FILE: ncludes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: allery_db.php
LINE: 273
CALL: dbal_mysqli->sql_query()
User avatar
dravekx    
Cadet IV
Cadet IV
 
Posts: 55
Joined: 19 Nov 2007, 09:23
Location: Memphis, Tenn
Favorite Team: None
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby Handyman » 21 Nov 2007, 23:21

ok, open up gallery_db.php

FIND
Code: Select all
$sql_ary = array(
    
'gallery_name'    => 'Member Galleries',
);
 


REPLACE WITH
Code: Select all
$sql_ary = array(
    
'gallery_name'    => 'Member Galleries',
    
'gallery_desc'    => 'Member Galleries',
);
 


Then run it again. (this was a change in one of the RC's since I made this)
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7387
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby dravekx » 22 Nov 2007, 04:38

Got it! Ive tested your gallery on a couple different themes to see how it reacts. Honestly, the only change that needs to be made is the WHERE style_name in gallery.php and it will work. I dont know if your cool with that or not... :write: The only issues I see are the missing upload button after install, the header issue with the bom file, the database install, and the never ending reading you must accomplish to figure out whats wrong. lol. :amen:
User avatar
dravekx    
Cadet IV
Cadet IV
 
Posts: 55
Joined: 19 Nov 2007, 09:23
Location: Memphis, Tenn
Favorite Team: None
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby Handyman » 22 Nov 2007, 12:53

dravekx wrote:Got it! Ive tested your gallery on a couple different themes to see how it reacts. Honestly, the only change that needs to be made is the WHERE style_name in gallery.php and it will work. I dont know if your cool with that or not... :write: The only issues I see are the missing upload button after install, the header issue with the bom file, the database install, and the never ending reading you must accomplish to figure out whats wrong. lol. :amen:


First, make sure prosilver is installed on your board.
This MOD will not work if you don't have prosilver installed.

After you make sure prosilver is installed, for the upload image, run this query
Make sure to change the phpbb_ to your table prefix BEFORE you run this query
Code: Select all
UPDATE phpbb_styles_imageset_data
   SET imageset_id = (SELECT imageset_id FROM phpbb_styles_imageset WHERE imageset_name = 'prosilver') WHERE image_name = 'button_upload'
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7387
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby dravekx » 22 Nov 2007, 13:24

okay... I copy/pasted that code into the SQL query in phpadmin and clicked go. It says "something has changed" and I exit phpadmin. I purged the cache and dont see an upload button yet.

what do you mean by Make sure to change the phpbb_ to your table prefix? Should the button_upload be inside phpbb_styles_imageset_data or phpbb_styles_imageset? The imageset_id for button_upload is set to 0, should it be 1?

*slow and steady wins the race* :)
User avatar
dravekx    
Cadet IV
Cadet IV
 
Posts: 55
Joined: 19 Nov 2007, 09:23
Location: Memphis, Tenn
Favorite Team: None
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby Handyman » 22 Nov 2007, 13:42

dravekx wrote:okay... I copy/pasted that code into the SQL query in phpadmin and clicked go. It says "something has changed" and I exit phpadmin. I purged the cache and dont see an upload button yet.

what do you mean by Make sure to change the phpbb_ to your table prefix? Should the button_upload be inside phpbb_styles_imageset_data or phpbb_styles_imageset? The imageset_id for button_upload is set to 0, should it be 1?

*slow and steady wins the race* :)


run this
Code: Select all
SELECT imageset_id
   FROM phpbb_styles_imageset
   WHERE imageset_name = 'prosilver';


and this
Code: Select all
SELECT *
   FROM phpbb_styles_imageset_data
   WHERE image_name = 'button_upload';


and let me know what each outputs.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7387
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby dravekx » 22 Nov 2007, 14:03

#1) MySQL returned an empty result set (i.e. zero rows). (Query took 0.0016 sec)

#2) Showing rows 0 - 0 (1 total, Query took 0.0360 sec) (647 - button_upload - button_upload.gif - en - 25 - 96 - 1)[/b]
User avatar
dravekx    
Cadet IV
Cadet IV
 
Posts: 55
Joined: 19 Nov 2007, 09:23
Location: Memphis, Tenn
Favorite Team: None
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby Handyman » 22 Nov 2007, 14:08

dravekx wrote:#1) MySQL returned an empty result set (i.e. zero rows). (Query took 0.0016 sec)

#2) Showing rows 0 - 0 (1 total, Query took 0.0360 sec) (647 - button_upload - button_upload.gif - en - 25 - 96 - 1)[/b]

it would appear that you don't have prosilver installed on your forum
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7387
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [BETA] Photo Gallery 0.1.0

Postby dravekx » 22 Nov 2007, 14:46

Ahhh... Fixed the upload button... I just needed to set the imageset_id to the correct number. (also had to install the prosilver theme) hahaha. Amazing! Now to see if it works:

I select an image, click submit and get this:

SQL ERROR [ mysqli ]

Field 'gallery_desc' doesn't have a default value [1364]

SQL

INSERT INTO phpbb_gallery (user_id, parent_id, gallery_name, gallery_photos, gallery_last_update_time) VALUES ('2', '1', 'dravekx', 1, 1195764617)

BACKTRACE

FILE: ncludes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: ncludes/functions_gallery.php
LINE: 886
CALL: dbal_mysqli->sql_query()

FILE: ncludes/gallery/gallery_main.php
LINE: 645
CALL: upload_attachment()

FILE: ncludes/functions_module.php
LINE: 471
CALL: gallery_main->main()

FILE: allery.php
LINE: 52
CALL: p_master->load_active()
User avatar
dravekx    
Cadet IV
Cadet IV
 
Posts: 55
Joined: 19 Nov 2007, 09:23
Location: Memphis, Tenn
Favorite Team: None
Gender: Male

PreviousNext

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: ccBot [Bot] and 21 guests