MyBB Central

Full Version: MYPS Per Post Display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Dang bro..what you doing up so late replying so fast! I gotta get to bed.
labrocca Wrote:Dang bro..what you doing up so late replying so fast! I gotta get to bed.

Its 12.30 AM overhere ! =P

Edit ::

I did it like this :
Normal :: $mybb->settings['myps_name'];
onMouseOver :: This Post was worth x MYPS
onClick :: It returns the $mybb->settings['myps_name'];

Edit2 :: Full Plugin ! =P Feel Free to Test And Complain ^^, Just for the record, it works FINE overhere =P [ http://thingiej.be/forum/showthread.php?tid=1 ]
Ok i get this error -


Warning: Invalid argument supplied for foreach() in /home/fhlinux183/t/tussaudtimes.co.uk/user/htdocs/inc/plugins/myps_post_ajax.php on line 191
This Post was worth 45 MYPS
It's the same warning like the other plugin ... Put // before $message = remove_custom_ajax($message);
Some people learn out of "warnings/errors/mistakes" and go selfexploring how to fix it. And what PHP version do you use ?
Not sure what php version i use. Thanks for your help all works fine now.
Hi,

Quote:Warning: Invalid argument supplied for foreach() in /www/htdocs/w00855dc/anime4.de.forum/inc/plugins/myps_post.php on line 91

ô.O ?
Read the thread as the fix for that is in here.
You however already saw, which I do not use with Ajax? Is thus another error.
SweetySchnuffel Wrote:You however already saw, which I do not use with Ajax? Is thus another error.

No its the same. The plugin with AJAX or without uses the SAME function(s) to count the chars in the message.

Just put comment tags before $message = remove_custom($message);

Edit ::

I will set //$message = remove_custom($message); as default , so no one with a crappy PHP has to complain anymore =P

Edit 2 ::
Have replaced the foreach loop with a while loop ... hopefully no warnings now =P
Hi,

Quote:Warning: reset() [function.reset]: Passed variable is not an array or object in /www/htdocs/w00855dc/anime4.de.forum/inc/plugins/myps_post.php on line 91

Warning: Variable passed to each() is not an array or object in /www/htdocs/w00855dc/anime4.de.forum/inc/plugins/myps_post.php on line 92


after I replaced the file, these errors come.
Pages: 1 2 3 4 5
Reference URL's