Forum

Whether it's a plugin thats causing issues, a theme, or just needed help with styling your site...We can help! Live Person Support for all your Wordpress Needs!

Welcome Guest

Pages: 1
A new bug
kalawettePostAug 12 2010, 11:00 AM

Newbie
Posts: 18
Registered:
Aug 12 2010, 04:58 PM
Normal topicA new bug

Hi,

First sorry for my english ! (i'm 100%french)
:?

I'd like to know why i saw this :

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/5/d312860064/htdocs/blog-dukan/wp-content/plugins/cartpauj-pm/pm-class.php on line 458

Thanks for help



Shrink, Track, Share, Control ... Dominate
cartpaujPostAug 12 2010, 11:09 AM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Normal topicRe: A new bug

Try changing that whole function to look like this:

		function isBoxFull($to, $boxSize, $parentID)
		{
			global $wpdb;
			$to_user = get_userdata($to);

			$get_messages = $wpdb->get_results($wpdb->prepare("SELECT * FROM $this->tableMsgs WHERE (to_user='$to' AND parent_id=0 AND to_del<>1) OR (from_user='$to' AND parent_id=0 AND from_del<>1)"));
			$num = $wpdb->num_rows;

			if ($boxSize == 0 || $num < $boxSize || $parentID != 0 || current_user_can('level_9') || $to_user->user_level >= 9)
				return false;
			else
				return true;
		}

If that works then I'll release it in the next version.

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

Gene53PostAug 12 2010, 11:19 AM

Advanced
Posts: 99
Registered:
Apr 30 2010, 03:16 AM
Normal topicRe: A new bug

Un gros Salut du Québec. Si tu as encore besoin d'aide, n'hésites pas à en faire la demande en Français.

cartpaujPostAug 12 2010, 11:29 AM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Normal topicRe: A new bug

Je ne parle pas français, mais je sais comment utiliser Google Translate!
:D

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

kalawettePostAug 12 2010, 12:43 PM

Newbie
Posts: 18
Registered:
Aug 12 2010, 04:58 PM
Normal topicRe: A new bug

ok merci beaucoup, je fais la modification tout de suite.

Et je reviens pour vous dire si c'est ok

kalawettePostAug 12 2010, 12:51 PM

Newbie
Posts: 18
Registered:
Aug 12 2010, 04:58 PM
Normal topicRe: A new bug

J'ai fait la modification mais je ne vois pas où étais le problme, donc je ne peux pas voir si ça a changé quelquechose ...

Aussi, est-il possible de mettre tout ce qui est visible :
You have (0) new messages,
There are (0) announcement(s)
...
en français ?

Car mes visiteurs n'auront peut être pas l'idée d'utiliser Google Translate, eux.

By Google Translate :

I made the change but I do not see where was the problem, so I can not see if it changed something ...

Also, is it possible to put everything that is visible:
You have (0) new messages,
There are (0) announcement (s)
...
French?

For my visitors will not be the idea of using Google Translate them.

cartpaujPostAug 12 2010, 01:43 PM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Normal topicRe: A new bug

Are you getting the error still? If not then it worked!
Êtes-vous encore obtenir l'erreur? Si non, cela a fonctionné!

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

kalawettePostAug 12 2010, 01:55 PM

Newbie
Posts: 18
Registered:
Aug 12 2010, 04:58 PM
Normal topicRe: A new bug

No there is no more an error message, so it's allright !

Thanks a lot !

And what about for French, is it possible ?
If it is ... what must I change in the code ?
(I'm a dummy for coding)

cartpaujPostAug 12 2010, 03:56 PM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Normal topicRe: A new bug

http://cartpauj.com/forum/?mingleforumaction=viewtopic&t=25.0

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

kalawettePostAug 12 2010, 04:19 PM

Newbie
Posts: 18
Registered:
Aug 12 2010, 04:58 PM
Normal topicRe: A new bug

Thanks Cartpauj,
i'll still use Google transtale an do.

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.181 seconds.


Shrink, Track, Share, Control ... Dominate