Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Denied...again

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » Olympus (phpBB3) / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 922

PostPosted: Mon Mar 03, 2008 1:02 am    Post subject: Denied...again Reply with quote

Well, 1.0.1 was denied because I have included g2image and it does not follow phpbb coding standards. Shocked

Either I have to rewrite it to phpbb standards or I guess have an add-on mod file for how to make it work in phpbb if one wants to download it themselves and use it.

They sure make it hard for a mod of any complexity to exist in the mods db... Laughing
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Denied...again  

Back to top
IngerK

User
User


Joined: Jan 19, 2006
Posts: 34

PostPosted: Mon Mar 03, 2008 1:13 am    Post subject: Re: Denied...again Reply with quote

Yes, it looks like they make it very hard... Shocked
G2image as add-on is a possible solution, of course, but I think this will make the mod more time consuming to install and less user friendly. Confused
Back to top
Offline View user's profile Send private message
darkxst

Beginner
Beginner


Joined: Mar 25, 2006
Posts: 10

PostPosted: Tue Mar 04, 2008 6:13 am    Post subject: Re: Denied...again Reply with quote

you cant remove g2image! that really is one of the big improvements since the phpbb2 integration and should imo be a core feature of the integration!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6241
Location: Washington Township, NJ, USA

PostPosted: Tue Mar 04, 2008 7:38 am    Post subject: Re: Denied...again Reply with quote

i agree, it's such a high-value add-on that it doesn't make sense to pull it out.
besides, for statistical reasons, I prefer to have the MOD hosted here (and dl'ed from sf.net)
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 922

PostPosted: Tue Mar 04, 2008 10:38 am    Post subject: Re: Denied...again Reply with quote

Yeah well, I thought originally having the mod in the phpbb moddb would get more users interested in it and having it there would mean it has passed the phpbb coding/security standards.

I pleaded my case to them about having 3rd party software in a mod that has no reason to follow the phpbb coding standards, but they are firm on their position that any code included in a mod must meet these requirements. They basically told me I would have to bring g2image to phpbb standards myself, which means I would have to practically rewrite the whole thing and that defeats the whole point of using it. The beauty of it is that it is a drop-in feature that only requires the modification of 2 files to make it work.

I have all but given up on the whole idea for now. The exercise was worth it though as they did point out some issues with the integration. I think the code is about as close to their standards as I can get it for now.
Quote: ›
mod robot wrote: ›
[ WARNING ] g2image/init.php does not exist in phpBB standard installation package

[ WARNING ] gallery2.php: IN_PHPBB not checked.

[ WARNING ] g2image/g2image.php:

1. [ WARNING ] IN_PHPBB not checked.
2. [ WARNING ] $phpbb_root_path not set
3. [ WARNING ] require_once('init.php'); you must use $phpbb_root_path and $phpEx for all includes/requires
4. [ POSSIBLE ]

Code: Select all
if (!in_array($g2ic_options['images_per_page'],$images_per_page_options)){

the third variable for in_array should probably be used here otherwise in_array is just a generalization and can, in some cases, give unexpected results. See code below, I added a true, which makes in_array strict… in_array should very rarely be used without the third variable.

Also, please use proper formatting as seen in the phpBB3 coding guidelines.

This should be

Code: Select all
if (!in_array($g2ic_options['images_per_page'], $images_per_page_options, true))
{


5. [ WARNING ]

Code: Select all
. '
' . "\n";

this should be placed in a template and given an action.
6. [ WARNING ]

Code: Select all
. ' <img src="images/magnifier.gif" border="0">' . "\n"

This should also be in a template and the image should use phpBB's built in image path.


Please note: there was more of the above found in other files as well, please check all files for these failed items before resubmitting.
jettyrat wrote: › Hi Handyman`,

Sorry to bother you directly, but your name is at the end of that msg as the contact.

So basically you guys are telling me that a bridge/integration type mod will never be allowed in the moddb and I'm just wasting my time, right? I sent a msg to the mod team along with the submission stating that g2image is a 3rd party add-in. It simply opens a popup window that allows one to select an image from Gallery and inserts bbcode into the posting form. It is not written by me and therefore I cannot change it to conform to phpbb coding guidelines. It is included in the mod because it is slightly modified so it will work with phpbb3.

I've tried to follow every phpbb mod rule possible but, because not everyone else out there who writes php software follows phpbb coding guidelines you guys are saying that mods that include or integrate other apps are not allowed in the moddb? If that's the case, you are eliminating some great possibilities with bridge type mods and that's really sad! Should I just give up and forget about it?

Thank you for your time,
Scott

ps. The file gallery2.php has as it's first line of code:

Code: Select all
define ('IN_PHPBB', true);

so I don't understand the complaint above unless the comment is messing something up. And, g2image.php immediately calls init.php which also contains a define IN_PHPBB line...
handyman` wrote: › Bridges are allowed, but the code must conform to the phpBB3 guidelines.
That helps prevent security breaches, which is the reason we have to validate all 3rd party software, even bridges, that are included with MODs.
It's not hard to clean up code to get it to conform to the guidelines, which is what's expected when a MOD is submitted to the MOD DB.

Be sure that there is no space between define and (
it should be: define('IN_PHPBB', true); otherwise it will show up as failing, thus the message that it's not checked.
jettyrat wrote: › But it will never conform to the moddb guidelines unless I rewrite the entire thing. It has it's own style, it's own language handling mechanism and is written to the Gallery guidelines for which it is made to interact with. It does not need to make use of the phpbb template system, language system or styles and to make those requirements means it can't exist in the phpbb moddb.

I'm not trying to argue with you in any way, I just don't understand how it can be expected that a mod that uses 3rd party software have such software be compliant with the phpbb guidelines. The chances of 3rd party software that isn't originally written for phpbb follow the phpbb guidelines are practically zero.

Would it be better to not include it and have instructions on where to get it and how to modify it to work in phpbb3? Since the mod allows Gallery to run inside of phpbb are there going to be issues with it next?
handyman` wrote: › Hi jettyrat,

There are some very basic things that we look for when validating a MOD.
When we see that $phpbb_root_path and $phpEx are not used, those can cause security issues, which is why it doesn't matter what it is, those standards must be met so as to not cause security problems with users forums.

Think of it this way, if you downloaded a MOD from the database and installed it on your forum and somebody defaced your forum through that MOD, wouldn't you be upset with the MOD author AND phpBB?

That is the very thing that we have to avoid, which is why we validate these MODs… so whether you can get it to that point or not is up to you, I haven't seen the code, we just run it through an automated system to check for initial security issues, which is why the MOD was denied very shortly after it was submitted.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » Olympus (phpBB3) / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDomain NamesDedicated ServersDedicated Web HostingDomain Name RegistrationWeb hosting AustraliaSEO Web DesignWeb Design New YorkSearch Engine OptimizationSearch Engine Optimisation

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia