[BETA] phpRivals mod 2.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

Hello guys

I just installed phprivals on my forum, and i0m expecting exactely the same error like ctkabel.

I already tried to give CHMOD 777 to ../images/rivals folder as well as CHMOD 755

It won't upload any of the pictures....their size is ok, as well as the dimensions! I also took a picture from your site, which is already added, but the same thing!

I can just add one more info....there is an difference if you try to upload the picture with folder CHMOD to 755 or 777:

In example for creating a clan, with image/rivals folder + subfolders CHMOD to 777 it shows the following error:
The seize of the picture could not be determined.
The image you have uploaded is the wrong dimension. Please use an image between 100x100px and 500x500px.
if image/rivals + subfolders folder is CHMOD to 755 it gives the following error:
Unknow error with uploading.
than tried to give ../image/rivals CHMOD 755 and subfolders CHMOD 777 with following error:
The seize of the picture could not be determined.
The image you have uploaded is the wrong dimension. Please use an image between 100x100px and 500x500px.
I suppose there must be a problem in the code....before i had the old rivals mod installed (not yours) and all worked fine!

I checked to disable all dimension limits on my forum restrictions.....but always the same...unpossible to upload a picture!

Kindly regards


Draketornado
User avatar
Soshen
Registered User
Posts: 500
Joined: Wed Sep 23, 2009 10:03 am

Re: [BETA] phpRivals mod 2.0.0

Post by Soshen »

it's a problem that i can't reproduce.

It's a problem in the code but for me and some others works...

So i think that it can be a problem for some configuration only.

So can you tell me what you have, if you can, in this row in phpbb_config checking it with phpmyadmin?

Code: Select all

script_path
server_name
server_protocol
My dev board: http://www.nipponart.org
Safe GamerTag HOME - Official Topic Index HOME - phpRivals MOD DISCUSSION
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

Sending you that by PN

Thank you

Kindly regards

Draketornado
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

Re: [BETA] phpRivals mod 2.0.0

Post by idontwantausername »

I have tabbed profiles MOD installed and this mod seems to just destroy the profile pages. Can't seem to work out why.

Cheers
User avatar
Soshen
Registered User
Posts: 500
Joined: Wed Sep 23, 2009 10:03 am

Re: [BETA] phpRivals mod 2.0.0

Post by Soshen »

well tabbed mod what edits do in profile template page?
My dev board: http://www.nipponart.org
Safe GamerTag HOME - Official Topic Index HOME - phpRivals MOD DISCUSSION
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

Re: [BETA] phpRivals mod 2.0.0

Post by idontwantausername »

Soshen wrote:well tabbed mod what edits do in profile template page?
It's not the template file that's the problem, because I could have just re-arrange the html to make it work, but it didn't work.

I even tried removing all edits from your mod in the memberlist_view.html file, but it was still broken. I look over the code and couldn't find where the problem was so I just removed it completely to make sure this mod was the problem, and everything went back to normal.
User avatar
Soshen
Registered User
Posts: 500
Joined: Wed Sep 23, 2009 10:03 am

Re: [BETA] phpRivals mod 2.0.0

Post by Soshen »

You must descrive me the problem that you got
and tell me if it was in all pages or in only some.
My dev board: http://www.nipponart.org
Safe GamerTag HOME - Official Topic Index HOME - phpRivals MOD DISCUSSION
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

Still no help for my problem? I really want that mod have to work.
Is there a possible issue with portals used over phpbb installations? I have seen that ctkabel uses also a portal mod on his site, as well as me.....it is 2 different portal mods, but....maybe there could be a reason?

Thanks for the help

Kindly regards

Draketornado
User avatar
Soshen
Registered User
Posts: 500
Joined: Wed Sep 23, 2009 10:03 am

Re: [BETA] phpRivals mod 2.0.0

Post by Soshen »

basically my mod can work with all other mods... portal too.

for the image problem i need find a way to reproduce it... i'm trying.
My dev board: http://www.nipponart.org
Safe GamerTag HOME - Official Topic Index HOME - phpRivals MOD DISCUSSION
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

I can't even find out, why this problem happens....i already tried to make a fresh new install on another location on my server....same problem....all other (image upload) mods just work fine!

What can i do, for helping you? What if i give you full access to a hosting package, so you just can reproduce the error.... Just try to install phpbb3 followed by portalxl and your mod.

Thx


Kindly regards


Draketornado
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

Ok...i just got once more arround....maybe this will help a little more:

I tried ...just for fun....to CHMOD de directorys to 644 and tadaaa..... it did'nt show any of the errors...but as you already know...the picture was not uploaded....but why the hell doesn't it show an error message when it should? And why is it showing one when it shouldn't? ....crazy......


I just hope you soon find a solution for the problem :-(


Kindly regards


Draketornado
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

Next hint.... i manually uploaded my pics, and i manually inserted them into Database....that works. The pictures are shown.....just the upload function want work at all....neither with clan or ladder or okatform or what else.

HELP PLS..... :cry:


Draketornado
User avatar
Soshen
Registered User
Posts: 500
Joined: Wed Sep 23, 2009 10:03 am

Re: [BETA] phpRivals mod 2.0.0

Post by Soshen »

yeah it's like the system parse a wrong upload url or move from temp directory to final one.
try to do that:

in acp_rivals_add_platform.php

find

Code: Select all

$foto->move_file($destination, true, false, 0644);
and before add

Code: Select all

print_r($destination);
die;

then try to upload a image in a new platforum and paste me here what appear after, please.
My dev board: http://www.nipponart.org
Safe GamerTag HOME - Official Topic Index HOME - phpRivals MOD DISCUSSION
User avatar
Draketornado
Registered User
Posts: 29
Joined: Wed Dec 09, 2009 8:29 pm

Re: [BETA] phpRivals mod 2.0.0

Post by Draketornado »

Here we go:

Code: Select all

images/rivals/platformlogo
Draketornado
User avatar
Soshen
Registered User
Posts: 500
Joined: Wed Sep 23, 2009 10:03 am

Re: [BETA] phpRivals mod 2.0.0

Post by Soshen »

in my demo where it works

say the same

Code: Select all

images/rivals/platformlogo
try to remove

the code above

Code: Select all

if (substr($destination, -1, 1) == '/' || substr($destination, -1, 1) == '\\')
			{
				$destination = substr($destination, 0, -1);
			}
			$destination	= str_replace(array('../', '..\\', './', '.\\'), '', $destination);
			if ($destination && ($destination[0] == '/' || $destination[0] == "\\"))
			{
				$destination = '';
			}
please.
My dev board: http://www.nipponart.org
Safe GamerTag HOME - Official Topic Index HOME - phpRivals MOD DISCUSSION

Return to “[3.0.x] MODs in Development”