[ABD] TS Photo Gallery Mod for phpBB3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
Diablo
Registered User
Posts: 82
Joined: Fri Mar 07, 2008 9:14 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Diablo »

Ahh now I get ya *blushes*

Thanks for the tip VISIBLETHUNDER, I got 3 more forums to do yet so it will certainly come in handy :D

Cheers 8-)
jason_auburn
Registered User
Posts: 3
Joined: Tue Apr 29, 2008 9:50 pm

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by jason_auburn »

VISIBLETHUNDER wrote:Matt you need to open the gallery install folder and then navigate to styles/

copy the subsilver2 folder and rename as serenity then move/copy the (new) serenity folder into your forum styles folder.

Jason, your theme is prosilver based so you need to ensure that all the files and folders intended for prosilver are placed in the grey style folder and then you need to perform the edits intended for prosilver on the files within the grey style folder.
I've done that and it still comes out the same, its like its not applying the stylesheet to it or something, and i can't work it out.
Diablo
Registered User
Posts: 82
Joined: Fri Mar 07, 2008 9:14 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Diablo »

Jason, have you copied all the files from the root folder to the coresponding files in your phpbb3 directory ? my problem first time was I never copied the root files to my Styles/Serenity folder in my phpbb3 directory, when I started from scratch again I saw the error then it worked.
Molopää
Registered User
Posts: 75
Joined: Mon Jan 15, 2007 7:15 pm

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Molopää »

Hi, VISIBLETHUNDER

I have a rank images on the forum, but those not work on the gallery, it shown only rank teksts, but not a images at all.

Any ideas?
Diablo
Registered User
Posts: 82
Joined: Fri Mar 07, 2008 9:14 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Diablo »

Molopää wrote:Hi, VISIBLETHUNDER

I have a rank images on the forum, but those not work on the gallery, it shown only rank teksts, but not a images at all.

Any ideas?
I have same problem, ranks are not showin in the gallery, so I would be interested of hearing a solution about this :)
VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER »

Molopaa and Diablo
Can I ask you both which template you are using?
and also is that the image is not displayed (i.e it is red X'd) or there is no sign of an image at all ?
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.
Papp
Registered User
Posts: 52
Joined: Tue Mar 20, 2007 9:46 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Papp »

I have same problem, so I upload my ranks to: http://MYDOMAIN.com/images/ranks and it works. (Temporary solution)

Same problem with online image, is not there. I have no solutions for this yet.

Thanks
I hope you understand my English :-)
Diablo
Registered User
Posts: 82
Joined: Fri Mar 07, 2008 9:14 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Diablo »

VISIBLETHUNDER wrote:Molopaa and Diablo
Can I ask you both which template you are using?
and also is that the image is not displayed (i.e it is red X'd) or there is no sign of an image at all ?
Hiya VT.

Template is Sinserity and I can confirm its a white box with a red x in it.
VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER »

The problem is that phpbb3 is not designed to compile pages using php files located in sub directories, therefore the function which collects information concerning ranks etc.. does not append the phpbb root path, it simply assumes that the function was called from a file located in the root path

I constructed a line of code to deal with this issue in the file gallery/viewpic.php which simply altered the image path but that may need adjusting

First try this,

Code: Select all

-----[ OPEN ]-----

gallery/viewpic.php

-----[ FIND ]-----

$rank_img_src = preg_replace('/(<i)(.*)(c=")/','<img src="../',$rank_img_src);

-----[ IN LINE, FIND ]-----

../

-----[ REPLACE, WITH ]-----

./../

-----[ SAVE / CLOSE ]-----
If that does not work the issue could be that the newly constructed path is relative, I would then suggest altering the line to construct an absolute path to see if that works better

here is how

Code: Select all

-----[ OPEN ]-----

gallery/viewpic.php

-----[ FIND ]-----

$rank_img_src = preg_replace('/(<i)(.*)(c=")/','<img src="../',$rank_img_src);

-----[ IN LINE, FIND ]-----

../

-----[ REPLACE, WITH ]-----

http://{your site address}/{your forum folder}/

-----[ SAVE / CLOSE ]-----
EXAMPLE:

In my case I would replace "../" with "http://threesixes.co.uk/phpBB3/"

hope this helps :)
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.
Papp
Registered User
Posts: 52
Joined: Tue Mar 20, 2007 9:46 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Papp »

VISIBLETHUNDER wrote:
First try this,

Code: Select all

-----[ OPEN ]-----

gallery/viewpic.php

-----[ FIND ]-----

$rank_img_src = preg_replace('/(<i)(.*)(c=")/','<img src="../',$rank_img_src);

-----[ IN LINE, FIND ]-----

../

-----[ REPLACE, WITH ]-----

./../

-----[ SAVE / CLOSE ]-----
I tryed this, and this works better for me :)

Code: Select all

-----[ REPLACE, WITH ]-----
./
Thanks
I hope you understand my English :-)
kevinsert
Registered User
Posts: 9
Joined: Thu May 01, 2008 2:40 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by kevinsert »

im using lanparty template and turkish language on my page.if i upload this mod would it be any problem :/ :oops:
VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER »

The lanparty template appears to be based on a subsilver2 design so following the instructions for that style should be no problem

However, as yet there is no Turkish translation for the TS gallery mod, so it would mean you having to translate the language files yourself.
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.
ajay2008
Registered User
Posts: 40
Joined: Tue Apr 01, 2008 7:06 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by ajay2008 »

Hi, I tried to load the mod and it failed. I am using phpbb 3.0.1 and the X-treme skin, I believe it is based on subsilver 2. When I installed it it gave me a login page and I logged in then the page went blank and I got the following message:

General Error
SQL ERROR [ mysql4 ]

Duplicate column name 'user_gallery_notify' [1060]

SQL

ALTER TABLE phpbb_users ADD ( user_gallery_notify tinyint(1) NOT NULL DEFAULT '0' )

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: gallery/install/install.php
LINE: 89
CALL: dbal_mysql->sql_query()


I then went to the index page and I got this:

General Error
template->_tpl_load_file(): File ./styles/X-Treme/template/gallery/gallery_scripts.html does not exist or is empty

I am hoping that your mod is will work with the versions that I am using.

Thanks for any help in making this work. :D
VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER »

The first thing you will need to do is fix the white page error. This is not an issue with the gallery mod but with the text editor you used to edit the lang files

see HERE for more info

Second you will need to check that you have copied all the files from the gallery install package into the appropriate forum folders.

after that the mod should work as normal, You don't need to navigate to the install.php file, The reason you are getting a duplicate column error is because the SQL script has already been executed successfully.

:)
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.
kevinsert
Registered User
Posts: 9
Joined: Thu May 01, 2008 2:40 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by kevinsert »

i upload the mod and while uploading change the /language/en Folder tothis /language/tr and root\styles\lanparty ...www.kaykayci.net its seems same there is no gallery around or am i just fool :D
Locked

Return to “[3.0.x] Abandoned MODs”