|
MYPS Per Post Display
|
|
May 18, 2007, 06:00 PM
(This post was last modified: May 23, 2007 12:16 PM by LeX-.)
Post: #1
|
|||
|
|||
|
MYPS Per Post Display
// Edit 21MAY
MYPS Per Post Display ![]() ------------------------------------------------------------------------ MYPS Per Post Display _ AJAX ![]() ![]() Edit [21.50 / 21st May] * Fixed Small Bug While Using QuickEdit It Show the MYPS Name unwanted due the if / else statement. Edit :: Just showing, no download ... |
|||
|
May 18, 2007, 06:16 PM
Post: #2
|
|||
|
|||
|
RE: MYPS Restriction
I will look at your myps_post a bit later. I might work on incorporating that type of feature eventually but I want to wait till 1.4 is out.
Also...with your restrictions mod...you should rename the functions to something more specific. You have forums(), dropdown(), and others that are so generic you run the risk of a function name conflict. At the very least you should prepend them with myps_forums() or even better...myps_res_forums() and myps_res_dropdown(). I took just a glance at your myps_post and I see you have a select * from posts...try to avoid a select all if you can. That query looks like it only needs the message. There are hooks in 1.09 so I am hoping you can hook into the existing plugin to get that information instead of reading it again. CLICK HERE to find out more about a custom theme design for mybb. |
|||
|
May 18, 2007, 06:22 PM
Post: #3
|
|||
|
|||
RE: MYPS Restriction
labrocca Wrote:I took just a glance at your myps_post and I see you have a select * from posts...try to avoid a select all if you can.  That query looks like it only needs the message.  There are hooks in 1.09 so I am hoping you can hook into the existing plugin to get that information instead of reading it again. You can get it from the 'parse_message' hook, but it's already parsed when you recieve it in the function; so code/quote tag and others cant be removed anymore =P |
|||
|
May 19, 2007, 04:38 AM
Post: #4
|
|||
|
|||
|
RE: MYPS Restriction
I get this error message -
Warning: Invalid argument supplied for foreach() in /home/fhlinux183/t/tussaudtimes.co.uk/user/htdocs/inc/plugins/myps_post.php on line 74 |
|||
|
May 19, 2007, 05:38 AM
(This post was last modified: May 19, 2007 05:41 AM by LeX-.)
Post: #5
|
|||
|
|||
|
RE: MYPS Restriction
Why do people always get "errors" while it works perfect overhere ? And it aint an error, it's a warning.
Try this first Find Code: foreach($custom_mycode as $mycode)Code: foreach($custom_mycode as $key => $mycode)If that doesn't do the job, do this => Find Code: $message = remove_custom($message);Code: //$message = remove_custom($message);No customtags will be removed then. |
|||
|
May 19, 2007, 06:01 AM
Post: #6
|
|||
|
|||
|
RE: MYPS Restriction
Where do i look for that?
|
|||
|
May 19, 2007, 06:05 AM
Post: #7
|
|||
|
|||
|
RE: MYPS Restriction
Probably in the file you've downloaded ... inc/plugins/myps_post.php
|
|||
|
May 19, 2007, 12:26 PM
Post: #8
|
|||
|
|||
|
RE: MYPS Restriction
well it got rid of the error but in the post you get -
[ Invalid Values For Calculation. ] |
|||
|
May 19, 2007, 12:32 PM
(This post was last modified: May 19, 2007 12:33 PM by LeX-.)
Post: #9
|
|||
|
|||
RE: MYPS Restriction
spikescot2005 Wrote:well it got rid of the error but in the post you get - That's a build-in check : Code: if($mybb->settings['myps_perchar'] != 0 && $mybb->settings['myps_minchar'] != 0)With a "0" value you can't calculate and become a goodlooking result. So make sure that MYPS per Char and Min Char are different from 0. |
|||
|
May 19, 2007, 12:47 PM
(This post was last modified: May 19, 2007 03:17 PM by spikescot2005.)
Post: #10
|
|||
|
|||
|
RE: MYPS Restriction
Great it works. Thanks
Just one more question, why is the points the way it is - [ This Post Is Worth 14 POiNTs. ] EDIT: Fixed it EDIT 2: If a forum is exempt from earning points it still says [ This Post Is Worth 16 Points. ] IS their anyway to remove this as no points are earned in that forum. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| MYPS Referrals | labrocca | 3 | 314 |
Sep 20, 2008 08:42 PM Last Post: labrocca |
|
| MYPS Mybet | labrocca | 10 | 605 |
Sep 20, 2008 07:21 PM Last Post: labrocca |
|
| MYPS Backup | LeX- | 10 | 1,429 |
May 17, 2008 01:40 PM Last Post: ts0ll |
|
| MYPS Post Counter | labrocca | 1 | 231 |
Apr 16, 2008 04:03 AM Last Post: Matt_ |
|
| MYPS Log Prune | labrocca | 0 | 152 |
Mar 08, 2008 07:19 PM Last Post: labrocca |
|

Upgrade
Invite
Documents
Search
Member List
Calendar
Help
Tagpad

![[Image: post_worth.jpg]](http://thingiej.be/post_worth.jpg)
![[Image: ajax_before.jpg]](http://thingiej.be/ajax_before.jpg)
![[Image: ajax_after.jpg]](http://thingiej.be/ajax_after.jpg)


