Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nibogo on June 23, 2008, 04:05:31 PM

Title: Next Post Level [SMF 2.0 Final Suported]
Post by: Nibogo on June 23, 2008, 04:05:31 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpacks.com%2Fimagenes%2Fnuevo_logo_mod.png&hash=2daa61076ed8f0f60f0c644dc6087aa62fb85c81) (http://www.smfpacks.com)

Next Post Level v1.3.3 - NIBOGO
Shows the how many posts to the next posting level on the users profile.


Website (http://www.smfpacks.com) |  Donate (http://www.smfpacks.com/donate.php) | Support topic (http://www.simplemachines.org/community/index.php?topic=246010.0) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1268) | My Mods (http://custom.simplemachines.org/mods/index.php?action=search;author=126412)



Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customziation of your SMF.

SMFPacks.com Provides Other Great Packages:
- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- and much more visit us on SMFPacks.com


Author
:
- NIBOGO

Features:
o Adds the next post group level with no. of required posts to the Profile Summary
- eg Next Posting Level (Jr. Member) in 45 posts.
o Can be disabled for Users in non-post-based groups (eg Administrator) via Admin > Current Theme > Hide post group titles for grouped members?
o Supports Languages
- English/English-utf8
- English_British/English_British-utf8
- Spanish_latin/Spanish_latin-utf8
- Spanish_es/Spanish_es-utf8
- Indonesian/Indonesian-utf8 (Thanks Exsharaen)
- Turkish/Turkish-utf8 (Thanks Yagiz...)
I welcome translations for other languages. Please post the translated language strings in the Support Topic.
o Created by karlbenson developed by NIBOGO

Compatibility:
- 2.0
- 1.1.X

Special Thanks:
- Karlbenson: The original author of the mod

Changelogs:

Version 1.3.3 - Jul 29, 2011
- Added support for SMF 2.0 and 1.1.14

Version 1.3.2 - Jul 10, 2009
- Added support for SMF 1.1.9, 1.1.10 and future release

Version 1.3 - Jul 10, 2009
- Fixed a critical bug for SMF 2.0. Please upgrade if you are using this version
- For SMF 1.1.X there are no changes so is not neccesary the upgrade

Version 1.2 - Apr 14, 2009
- Added Support for SMF 2.0 RC1 & 1.1.8
- NIBOGO take over the Next Post Level Mod
- Added Spanish, Indonesian and Turkish Support with utf8 too

Version 1.0 - June 22, 2008
- Modification Released by Karlbenson
Title: Re: Next Post Level
Post by: Noanme on June 23, 2008, 05:33:37 PM
...best, Best, BEST mod ever!  8) THX
Title: Re: Next Post Level
Post by: Yağız... on June 23, 2008, 05:47:16 PM
Very nice mod Karl. Here Turkish translation:
// Start of Next Post level Mod
// - %s gets replaced by the membergroup / post count
$txt['nextpostlevel_next'] = '(%s) olmanız için';
$txt['nextpostlevel_inposts_singular'] = ' %s mesaj daha atmalısınız.';
$txt['nextpostlevel_inposts_plural'] = ' %s mesaj daha atmalısınız.';
$txt['nextpostlevel_glassceiling'] = 'En son seviyeye geldi.';
// End of Next Post level Mod
Title: Re: Next Post Level
Post by: Nibogo on June 23, 2008, 09:12:08 PM
Spanish:

// Start of Next Post level Mod
// - %s gets replaced by the membergroup / post count
$txt['nextpostlevel_next'] = 'Siguiente nivel de posteo (%s)';
$txt['nextpostlevel_inposts_singular'] = ' en %s mensaje.';
$txt['nextpostlevel_inposts_plural'] = ' en %s mensajes.';
$txt['nextpostlevel_glassceiling'] = 'Ha alcanzado el maximo nivel de posteo.';
// End of Next Post level Mod


Awesome mo.

PD: are something in smf of you cant do?
Title: Re: Next Post Level
Post by: 4Kstore on June 23, 2008, 09:38:53 PM
so beatiful this mod and thanks NIBOGO for the traduction !!

thanks!!!

baiis
Title: Re: Next Post Level
Post by: Violat3r on June 24, 2008, 01:44:37 PM
As usual, awesome Mod karl. But just in case you didn't notice i wanted to point out that the "Link to Mod" and "Support Topic" links aren't pointing to the right things. They are pointing to "?mod=x" and "?topic=x.0" respectively. Im assuming that its like this because the proper links didn't exist at the time of construction. Anyway, like i said at the beginning: awesome mod! Thank You Very Much!
Title: Re: Next Post Level
Post by: karlbenson on June 24, 2008, 01:51:57 PM
Thanks Violat3r 
and yes.  The mod link is only created on submission, and the topic link only on approval.

I will fix both really soon.

Thanks again
Title: Re: Next Post Level
Post by: Violat3r on June 24, 2008, 02:03:02 PM
No problem, and i got a problem when i installed that i wanted everyone to just be aware of. Upon installation the language strings code was visible at the top of my forum. I've had this problem before so i knew how to fix it, just go into your Modifications.english.php (or w/e language your using) and go to the bottom, find "?>" and make sure its on its own line at the very bottom of the file, below ALL writing of any kind. It appears this was caused because one of the last mods i installed was the SMF Arcade and the last string in it has the install code directly after the string, so it puts the "?>" right after it. So when this was installed it couldn't place it properly. But yea, fixed now, just making sure people know if it happens to them.
Title: Re: Next Post Level
Post by: dannbass on June 25, 2008, 12:29:04 PM
The Spanish translation is missing the accents...

$txt['nextpostlevel_glassceiling'] = 'Ha alcanzado el máximo nivel de posteo.';  UTF8
$txt['nextpostlevel_glassceiling'] = 'Ha alcanzado el máximo nivel de posteo.'; Spanish



Title: Re: Next Post Level
Post by: Kimmie on June 29, 2008, 11:31:15 PM
Mod installed without a problem and works great. :).
Title: Re: Next Post Level
Post by: Acans on June 30, 2008, 09:47:42 PM
nice idea, but i wont use it, i think it will encouge spamming.  maybe on a forum with lots of contral would be good
Title: Re: Next Post Level
Post by: Kimmie on June 30, 2008, 10:11:33 PM
Quote from: Basicallyimjesus on June 30, 2008, 09:47:42 PM
nice idea, but i wont use it, i think it will encouge spamming.  maybe on a forum with lots of contral would be good

If someone is going to spam a forum, their going to do it whether you have this mod installed or not. From past experience running various forums, most members like to know what the ranks/post levels are on a site. I also have a topic posted that shows the various Ranks/Post counts so having this in addition to that topic helps members out tremendously by automatically calculating the numbers for them.

If your that worried about spam and you dont have enough staff on your site to control spam, just set up a spam board. Give them a specific place to post spam or whatever and theres your control. Your always gonna have people posting things they shouldnt, etc, but a spam board will help you out with that. 
Title: Re: Next Post Level
Post by: Nathaniel on June 30, 2008, 10:18:36 PM
Any chance of getting this for SMF 2 Beta?
Title: Re: Next Post Level
Post by: karlbenson on July 01, 2008, 07:26:50 PM
At some point, but I'm a bit busy for the moment.
Title: Re: Next Post Level
Post by: Acans on July 04, 2008, 03:17:37 AM
Quote from: Kimmie on June 30, 2008, 10:11:33 PM
Quote from: Basicallyimjesus on June 30, 2008, 09:47:42 PM
nice idea, but i wont use it, i think it will encouge spamming.  maybe on a forum with lots of contral would be good

If someone is going to spam a forum, their going to do it whether you have this mod installed or not. From past experience running various forums, most members like to know what the ranks/post levels are on a site. I also have a topic posted that shows the various Ranks/Post counts so having this in addition to that topic helps members out tremendously by automatically calculating the numbers for them.

If your that worried about spam and you dont have enough staff on your site to control spam, just set up a spam board. Give them a specific place to post spam or whatever and theres your control. Your always gonna have people posting things they shouldnt, etc, but a spam board will help you out with that. 

i installed it but it doesnt work with my theme(changed my mind), what do i have to change manually.
Title: Re: Next Post Level
Post by: Kimmie on July 04, 2008, 03:31:14 AM
You will have to install it manually. Go to the mod page and select which version of SMF you are using (top right). It will show you all the code edits you need to make.

As with most mods, if your using a theme other than the default theme, they will have to be installed manually.
Title: Re: Next Post Level
Post by: jepot5 on July 04, 2008, 03:49:24 AM
how can i change the colour of the text?
sorry for the simple question i am a newb
Title: Re: Next Post Level
Post by: Nibogo on July 08, 2008, 09:07:03 PM
Quote from: jepot5 on July 04, 2008, 03:49:24 AM
how can i change the colour of the text?
sorry for the simple question i am a newb

In /Themes/your_theme/Profile.template.php

Search:

// Start of Next Post Level Mod
      if(!empty($context['member']['nextpostlevel']))
         echo '
            <tr>
               <td colspan="2" align="center">'. $context['member']['nextpostlevel'] .'</td>
            </tr>';
      // End of Next Post Level Mod


Replace:

// Start of Next Post Level Mod
      if(!empty($context['member']['nextpostlevel']))
         echo '
            <tr>
               <td colspan="2" align="center"><font color="red">'. $context['member']['nextpostlevel'] .'</font></td>
            </tr>';
      // End of Next Post Level Mod


You can change the "<font color="red">" to another color ;)
Title: Re: Next Post Level
Post by: jepot5 on July 09, 2008, 09:11:07 PM
ok thanks it's all right now
Title: Re: Next Post Level
Post by: chrisb on July 15, 2008, 06:30:13 AM
Hi all,

We had issues on sunday , where the server crashed and we have got the sit eback now, but we have an issues with certain parts of the member profiles causing some issues..

When i click on Admin members name i get this error
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '214
ORDER BY minPosts
LIMIT 1' at line 3
File: /home/cxtxtsju/public_html/forum/Sources/Profile.php
Line: 1349

But when i move the coding from the profile.php. it will work like a treat with no isses.
i am not sure what is causing these issues and i would like to get this resolved.

Title: Re: Next Post Level
Post by: Heartlander on July 19, 2008, 02:57:09 PM
I'm batting a thousand today.
This mod does not work for my site at all, and I did edit the respective theme (Manuscript).
Here ya go:
http://www.heartlandoutdoorsman.com/smf/index.php
Title: Re: Next Post Level
Post by: chrisb on August 02, 2008, 03:34:38 AM
This error is only happing to site admin, Is there a reason why this is happing and which part of the database we do we need to fix

We have added more groups and still not working at all.

PLEASE  Help us fix these issues
Title: Re: Next Post Level
Post by: lax.slash on August 14, 2008, 10:48:46 AM
Nice job!
Title: Re: Next Post Level
Post by: Basie on August 14, 2008, 11:25:31 AM
Superb.

Thanks a lot for this. :)
Title: Re: Next Post Level
Post by: Basie on August 14, 2008, 11:28:29 AM
Actually I have a request....

Can you make it fit in with the profile better?

So, instead of...

Next Posting Level (Full Member) in 27 posts.

It's like this...

Next Posting Level: (Full Member) in 27 posts


In other words, it should look just like the other things in the profile, instead of being centered. And also the position should be directly underneath 'posts', instead of after 'last active'.

EXAMPLE...

Name:     Basie
Posts:    4 (N/A per day)
Next Posting Level: (Jr. Member) in 46 posts.  <--- <--- <--- <----
Position:    Administrator
IP:    XXX
Hostname:    XXX
Date Registered:    August 13, 2008, 05:39:20 PM
Last Active:    Today at 04:36:28 PM
Title: Re: Next Post Level
Post by: Basie on August 16, 2008, 09:22:04 AM
*bump*

Any comment on my suggestion from the mod author?
Title: Re: Next Post Level
Post by: karlbenson on August 16, 2008, 12:10:32 PM
The information was intentionally not put like the other information.
Since the other information is 'actual' information. While this is possible/future information. [especially keeping to well away from the 'current' post group title.)

Besides I don't really intend to work on this mod much further.
Although it would be VERY easy for you to edit the code that was added to Profile.template.php to make it look however you want it. (but i don't have the time I'm afraid to help you do that).
Title: Re: Next Post Level
Post by: Basie on August 16, 2008, 12:18:54 PM
One more question... What is displayed when the user achieves the final posting level? Or does it simply display nothing?
Title: Re: Next Post Level
Post by: lax.slash on August 16, 2008, 09:12:41 PM
karl - did you get my PM about the ultimate profile?
Title: Re: Next Post Level
Post by: karlbenson on August 16, 2008, 09:22:10 PM
@Basie
Nothing if its the highest post-level.

@lax.slash
Oops sorry for not replying.  Yes i did receive it,  although there isn't anything i can do with it to be honest.
And I definately don't have the time, nor desire to help with conflicts with other mods.

To be truthful, I expect I'll be starting another 'want to take over my mods' topic again, as i don't have the desire to work on existing ones anymore (apart from my auto embed video/audio clips mod).
Title: Re: Next Post Level
Post by: lax.slash on August 16, 2008, 10:05:35 PM
 
Quote from: karlbenson on August 16, 2008, 09:22:10 PM
@lax.slash
Oops sorry for not replying.  Yes i did receive it,  although there isn't anything i can do with it to be honest.
And I definately don't have the time, nor desire to help with conflicts with other mods.

To be truthful, I expect I'll be starting another 'want to take over my mods' topic again, as i don't have the desire to work on existing ones anymore (apart from my auto embed video/audio clips mod).


It's okay! I haven't had too much time this month either... lol
Title: Re: Next Post Level
Post by: ddarrell on August 21, 2008, 09:43:38 PM
-great mod well received by community.

thanks

darrell
Title: Re: Next Post Level
Post by: SA™ on September 01, 2008, 02:04:32 AM
karl

getting this


when a member gets this ammount of post 167799

you cant acess there profile you just get this

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'am a geek!!
ORDER BY minPosts
LIMIT 1' at line 3
File: C:\wdm\htdocs\dev\Sources\Profile.php
Line: 1537

soon as you lower the post count you can acess the profile


lines around 1537

// Start of Next Post Level Mod
global $settings;
if ((empty($settings['hide_post_group']) || $context['member']['group'] == '') && $context['member']['post_group'] != '')
{
// Grab the next highest post group above the current post count
$request = db_query("
SELECT ID_GROUP, groupName, minPosts
FROM {$db_prefix}membergroups
WHERE minPosts > ".$context['member']['posts']."
ORDER BY minPosts
LIMIT 1
", __FILE__, __LINE__);

if(mysql_num_rows($request) == 0)
$context['member']['nextpostlevel'] = $txt['nextpostlevel_glassceiling'];
else
{
// Found a row
$row = mysql_fetch_assoc($request);
mysql_free_result($request);

// Build the next post level string
$context['member']['nextpostlevel'] = sprintf($txt['nextpostlevel_next'], $row['groupName']) .
sprintf($txt['nextpostlevel_inposts_'. (($row['minPosts'] - $context['member']['posts'] == 1) ? 'singular' : 'plural' )], $row['minPosts'] - $context['member']['posts']);

// Tidy up
unset($row);
}
}
// End of Next Post Level Mod
Title: Re: Next Post Level
Post by: karlbenson on September 01, 2008, 12:16:21 PM
thx I'll have to look at it.
Title: Re: Next Post Level
Post by: Exsharaen on October 25, 2008, 07:40:55 AM
Hi, I like your mod! Although it may lead to spamming, I think it will encourage users to post more, since I have some level-restricted boards.

This is the translation for Indonesian:

$txt['nextpostlevel_next'] = 'Level berikutnya (%s)';
$txt['nextpostlevel_inposts_singular'] = ' dalam %s tulisan.';
$txt['nextpostlevel_inposts_plural'] = ' dalam %s tulisan.';
$txt['nextpostlevel_glassceiling'] = 'Sudah mencapai level tertinggi!';


Anyway, be careful about Default number format setting in ACP > Features and Options. If you use anything other than 1,234.00, this mod will give you odd results. For example, if the setting were changed to 1.234,00, 1200 will be treated as 1.200; "one point two" post instead of "one thousand and two hundred" posts. Worse, it will generate a MySQL error if the setting is 1 234,00. And, if someone has more than 100000 posts or exactly 1337 posts, it will also generate a MySQL error (wdm2005's problem).

After some trial and errors (I never write a mod before so I don't know SMF system at all), I find a fix for this problem. In Sources/Profile.php, find this code (it will lay in line 1205 with no other mods installed):

// Grab the next highest post group above the current post count
$request = db_query("
SELECT ID_GROUP, groupName, minPosts
FROM {$db_prefix}membergroups
WHERE minPosts > ".$context['member']['posts']."
ORDER BY minPosts
LIMIT 1
", __FILE__, __LINE__);


Replace $context['member']['posts'] with $context['member']['real_posts']. The complete code:

// Grab the next highest post group above the current post count
$request = db_query("
SELECT ID_GROUP, groupName, minPosts
FROM {$db_prefix}membergroups
WHERE minPosts > ".$context['member']['real_posts']."
ORDER BY minPosts
LIMIT 1
", __FILE__, __LINE__);


Then, find this one (line 1221):

// Build the next post level string
$context['member']['nextpostlevel'] = sprintf($txt['nextpostlevel_next'], $row['groupName']) .
sprintf($txt['nextpostlevel_inposts_'. (($row['minPosts'] - $context['member']['posts'] == 1) ? 'singular' : 'plural' )], $row['minPosts'] - $context['member']['posts']);


and do the same. The complete code:

// Build the next post level string
$context['member']['nextpostlevel'] = sprintf($txt['nextpostlevel_next'], $row['groupName']) .
sprintf($txt['nextpostlevel_inposts_'. (($row['minPosts'] - $context['member']['real_posts'] == 1) ? 'singular' : 'plural' )], comma_format($row['minPosts'] - $context['member']['real_posts']));


To check or if you are too afraid to make mistakes, here's the complete code after alteration:

// Start of Next Post Level Mod
global $settings;
if ((empty($settings['hide_post_group']) || $context['member']['group'] == '') && $context['member']['post_group'] != '')
{
// Grab the next highest post group above the current post count
$request = db_query("
SELECT ID_GROUP, groupName, minPosts
FROM {$db_prefix}membergroups
WHERE minPosts > ".$context['member']['real_posts']."
ORDER BY minPosts
LIMIT 1
", __FILE__, __LINE__);
if(mysql_num_rows($request) == 0)
$context['member']['nextpostlevel'] = $txt['nextpostlevel_glassceiling'];
else
{
// Found a row
$row = mysql_fetch_assoc($request);
mysql_free_result($request);

// Build the next post level string
$context['member']['nextpostlevel'] = sprintf($txt['nextpostlevel_next'], $row['groupName']) .
sprintf($txt['nextpostlevel_inposts_'. (($row['minPosts'] - $context['member']['real_posts'] == 1) ? 'singular' : 'plural' )], comma_format($row['minPosts'] - $context['member']['real_posts']));
// Tidy up
unset($row);
}
}
// End of Next Post Level Mod


The problem here is that $context['member']['posts'] has ben formatted according to settings, so it is not longer reliable to be used in mathematic calculation. Also, if it's 1337, "leet" is returned instead (the same goes to 100000+ posts, it becomes "I am a geek!!"). That's why we encounter a MySQL error when viewing someone's profile whose post count is 1337 or 100000+. In the other hand, $context['member']['real_posts'] isn't formatted, so it is safe to use in calculation.

I hope this helps those who use non-English settings and get odd results (or errors) as I did. Please do correct me if I am wrong.

Thanks
Title: Re: Next Post Level
Post by: genieuk on October 25, 2008, 12:19:30 PM
Perfect Mod, thanks i see no problems with it.

I also do not think this is going to cause spam. I even have a groups page within my forum to show members what there status changes to after certain amount of posts including what each membergroup is and means etc.

Great mod and thanks, a little new feature added to my forum, will work well with my groups page.

Mathew
Title: Next Post Level
Post by: Nibogo on April 17, 2009, 08:24:06 PM
Changelogs:

Version 1.2 - Apr 14, 2009
- Added Support for SMF 2.0 RC1 & 1.1.8
- NIBOGO take over the Next Post Level Mod
- Added Spanish, Indonesian and Turkish Support with utf8 too
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Twenty6 on May 08, 2009, 10:16:07 AM
i dont know but icant see anything at my profile page ?
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on May 08, 2009, 06:52:32 PM
Quote from: Twenty6 on May 08, 2009, 10:16:07 AM
i dont know but icant see anything at my profile page ?

You should see the changes in all the member profiles, what is your theme?
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Chit-Chat ChatterBox Boss on May 16, 2009, 01:34:15 PM
I installed this but when I go to profiles it doesnt apear to be showing. Any ideas?
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 01:13:57 AM
Any updates to the problem?
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on May 28, 2009, 03:21:44 PM
Quote from: Chit-Chat ChatterBox Boss on May 16, 2009, 01:34:15 PM
I installed this but when I go to profiles it doesnt apear to be showing. Any ideas?

You have to edit for your theme, if you are using default there is an error with the strings or with the Profile.template
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 04:15:07 PM
Yes I am on default theme...
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on June 23, 2009, 12:23:18 AM
doesnt work with 1.1.9

it says the version isnt compatable with 1.1.9
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on June 23, 2009, 03:33:05 AM
can any1 see wats wrong? ???
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on June 23, 2009, 02:27:43 PM
Quote from: asifnur on June 23, 2009, 03:33:05 AM
can any1 see wats wrong? ???

Try the manual edit ;)
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on June 23, 2009, 03:51:14 PM
huh wat u mean?
there are no manual edit for 1.1.9  >:(
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on July 06, 2009, 09:41:37 PM
Have tried to manually edit the mod for 2.0 RC1-1 but there is nothing on the profile.

The theme we use is Blackrain v2

Any ideas?
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Chit-Chat ChatterBox Boss on July 07, 2009, 05:23:29 AM
Yea I have the same problem on my site even with manual install!
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on July 10, 2009, 11:38:56 AM
Bumping the topic due to no replies since previous post.

Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on July 10, 2009, 12:11:30 PM
Changelogs:

Version 1.3 - JUl 10, 2009
- Fixed a critical bug for SMF 2.0. Please upgrade if you are using this version
- For SMF 1.1.X there are no changes so is not neccesary the upgrade
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on July 11, 2009, 01:23:43 AM
still doesnt work  for 1.1.9

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on July 13, 2009, 05:32:09 PM
yup fix the problems please
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on July 13, 2009, 05:46:05 PM
Hmm I now have two showing in profiles.
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on July 15, 2009, 12:59:13 PM
Quote from: NIBOGO on May 28, 2009, 03:21:44 PM
Quote from: Chit-Chat ChatterBox Boss on May 16, 2009, 01:34:15 PM
I installed this but when I go to profiles it doesnt apear to be showing. Any ideas?

You have to edit for your theme, if you are using default there is an error with the strings or with the Profile.template

What are the errors?
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: oOo--STAR--oOo on July 29, 2009, 06:45:23 PM
this doesnt work with 1.1.10 .. how come its in that section can anyone update please looks like a great mod if i could get it working..
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: oOo--STAR--oOo on July 30, 2009, 12:40:53 AM
i changed it manually so u could install it..

but now when i view profile i get half of what it is supposed to show me


i get this the member group does not show do u know what i could do to fix this

Next Posting Level) in 46 posts -

supposed to have post group in there
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: JBlaze on July 30, 2009, 01:28:25 AM
Encountered an error on my install of SMF 2.0 RC1.2

Wrong value type sent to the database. Integer expected. (member_posts)
When viewing Profile Summary

Looked through, and didn't see anything wrong.

The only thing I can think of is the Referrals mod messing something up as it is right there with this code.



Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: virtualxtc on August 03, 2009, 06:41:09 PM
When I install this mod all that happens is that the "Location" line gets duplicated.
Forum Version : 2.0 RC 1.2
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: gustavomf on September 30, 2009, 06:04:06 AM
NIBOGO excelente MOD , funciona para la version 1.1.10 ?

Ya que a mi no me aparece nada y el parse no es para esta version
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on September 30, 2009, 05:12:48 PM
Quote from: gustavomf on September 30, 2009, 06:04:06 AM
NIBOGO excelente MOD , funciona para la version 1.1.10 ?

Ya que a mi no me aparece nada y el parse no es para esta version

Si funciona a la perfección
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: gustavomf on October 07, 2009, 05:54:21 AM
the installation was well !!! But...

it does not appear with my 1.1.10

it says the version 1.3 isnt compatable with 1.1.10 in parse.

NIBOGO podrias ayudarme ya que me parece barbaro este mod.

Lo instale editando el: ¨package-info.xml¨ agregando esto (lo que esta en rojo):
<install for="1.1.10, 1.1.8, 1.1.7, 1.1.6, 1.1.5, 1.1.4">
<uninstall for="1.1.10, 1.1.8, 1.1.7, 1.1.6, 1.1.5, 1.1.4">
por que no me lo dejaba instalar.
Se instalo bien pero no aparece nada, ni en ingles ni español y no encuentro ninguna opcion para activar.

Por favor ayuda NIBOGO !

Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on October 08, 2009, 10:12:29 PM
Changelogs:

Version 1.3.2 - Jul 10, 2009
- Added support for SMF 1.1.9, 1.1.10 and future release
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Eclipse16V on October 09, 2009, 03:15:17 AM
Nice Mod but there is a error.

Look at your smf2-0.xml

<file name="$themedir/Profile.template.php">
<operation>
<search position="after"><![CDATA[if (!isset($context['disabled_fields']['location']) && !empty($context['member']['location']))
echo '
<dt>', $txt['location'], ':</dt>
<dd>', $context['member']['location'], '</dd>';]]></search>
<add><![CDATA[if (!isset($context['disabled_fields']['location']) && !empty($context['member']['location']))
echo '
<dt>', $txt['location'], ':</dt>
<dd>', $context['member']['location'], '</dd>';

         // Start of Next Post Level Mod
if(!empty($context['member']['next_post_level']))
echo '<dt>'.$txt['nextpostlevel_next'].'</dt>
<dd>'. $context['member']['next_post_level'] .'</dd>';
// End of Next Post Level Mod]]></add>
</operation>
</file>


edit
<file name="$themedir/Profile.template.php">
<operation>
<search position="replace"><![CDATA[if (!isset($context['disabled_fields']['location']) && !empty($context['member']['location']))
echo '
<dt>', $txt['location'], ':</dt>
<dd>', $context['member']['location'], '</dd>';]]></search>
<add><![CDATA[if (!isset($context['disabled_fields']['location']) && !empty($context['member']['location']))
echo '
<dt>', $txt['location'], ':</dt>
<dd>', $context['member']['location'], '</dd>';

         // Start of Next Post Level Mod
if(!empty($context['member']['next_post_level']))
echo '<dt>'.$txt['nextpostlevel_next'].'</dt>
<dd>'. $context['member']['next_post_level'] .'</dd>';
// End of Next Post Level Mod]]></add>
</operation>
</file>
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Eclipse16V on October 09, 2009, 03:23:59 AM
Here the german

$txt['nextpostlevel_next'] = 'N&auml;chstes Level';
$txt['nextpostlevel_inposts_singular'] = ' nach %s Beitrag';
$txt['nextpostlevel_inposts_plural'] = ' nach %s Beitr&auml;gen';
$txt['nextpostlevel_glassceiling'] = 'H&ouml;chstes Level erreicht';
Title: Re: Next Post Level [v1.2 Released | SMF 2.0 RC1 Support]
Post by: Eclipse16V on October 09, 2009, 09:30:19 PM
Same problem.
Quote from: JBlaze on July 30, 2009, 01:28:25 AM
Encountered an error on my install of SMF 2.0 RC1.2

Wrong value type sent to the database. Integer expected. (member_posts)
When viewing Profile Summary

Looked through, and didn't see anything wrong.

The only thing I can think of is the Referrals mod messing something up as it is right there with this code.

Can any one help?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: YoProPool on October 11, 2009, 06:38:43 AM
could be by karma?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Eclipse16V on October 11, 2009, 04:10:30 PM
no one  :(
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Eclipse16V on October 12, 2009, 12:52:21 AM
OK,
I fixed my problem.
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Richardgm on January 09, 2010, 06:35:24 PM
This mod doesn't work for me.
Using 1.1.10
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: VyrOn on January 23, 2010, 02:24:14 AM
Hi,

I installed this mod but it didn't work so I deleted it but forgot to uninstall...

How can I uninstall the mod manually? :-\
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on January 23, 2010, 02:28:00 AM
Use the package parser in reverse.
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: VyrOn on January 23, 2010, 02:31:26 AM
EDIT: I have uninstalled this mod succesfuly by removing the // Start of the Next Post Level Mod until // End of the Next Post Level Mod in /Sources/Profile.php and /Themes/Default/Template.profile.php

;D
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on January 23, 2010, 02:53:22 AM
Make sure you

A. Check all the files which the mod changes

B. Check your forums error log.
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on March 24, 2010, 11:53:58 PM
hey dude do u know any ways to do like put the "- Has reached the highest post level -" ,or w/e comes for the other users ,
i want to move that text somewhere else .... somewhere like under the site menu....... is it possible?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on March 25, 2010, 09:50:02 AM
Quote from: asifnur on March 24, 2010, 11:53:58 PM
hey dude do u know any ways to do like put the "- Has reached the highest post level -" ,or w/e comes for the other users ,
i want to move that text somewhere else .... somewhere like under the site menu....... is it possible?

Sure it's possible, you must move the query to somewhere else like the index.php and then set the $context['member']['next_post_level'] where you want to show it btw this is going to add 1 query for every page load
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on March 25, 2010, 07:07:07 PM
i dont get it bro.. im very newb. can u just tell me wat to do?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on March 25, 2010, 07:25:47 PM
Quote from: asifnur on March 25, 2010, 07:07:07 PM
i dont get it bro.. im very newb. can u just tell me wat to do?

Sorry I don't have time to give you the code, only if you want as a paid work but you can try and ask me in case that you get an error or something
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on March 25, 2010, 09:03:30 PM
aw man dont be liek tht :( ima go all emo now
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on March 25, 2010, 09:08:27 PM
Quote from: asifnur on March 25, 2010, 09:03:30 PM
aw man dont be liek tht :( ima go all emo now

As I said I don't have time to do it for you, maybe someone else can do it or you can try isn't so hard ;)
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: asifnur on March 25, 2010, 09:22:54 PM
so what do i have to do?
just create new code?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on April 12, 2010, 07:44:55 PM
Which code would I require to add this to the Ultimate Profile mod?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Biology Forums on January 12, 2011, 05:00:32 PM
Is there a way of implementing the code into message index ?
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Nibogo on June 29, 2011, 03:42:44 PM
Updated for SMF 2.0 Final and 1.1.14
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: Richardgm on June 29, 2011, 03:54:27 PM
Quote from: Nibogo on June 29, 2011, 03:42:44 PM
Updated for SMF 2.0 Final and 1.1.14

Thanks for updating. It seems though that there's a ")" instead of ":" being displayed, though. Also,the mod duplicates the additional profile field "Location", for me.
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: snooks on June 29, 2011, 05:45:37 PM
Quote from: Richardgm on June 29, 2011, 03:54:27 PM
Quote from: Nibogo on June 29, 2011, 03:42:44 PM
Updated for SMF 2.0 Final and 1.1.14

Thanks for updating. It seems though that there's a ")" instead of ":" being displayed, though. Also,the mod duplicates the additional profile field "Location", for me.

Yes i have also noticed for admin its 2x location was wondering that normal members are ok though
Title: Re: Next Post Level [SMF 2.0 Final Suported]
Post by: Cal O'Shaw on July 01, 2011, 01:41:55 AM
Quote from: snooks on June 29, 2011, 05:45:37 PM
Quote from: Richardgm on June 29, 2011, 03:54:27 PM
Quote from: Nibogo on June 29, 2011, 03:42:44 PM
Updated for SMF 2.0 Final and 1.1.14

Thanks for updating. It seems though that there's a ")" instead of ":" being displayed, though. Also,the mod duplicates the additional profile field "Location", for me.

Yes i have also noticed for admin its 2x location was wondering that normal members are ok though

Same here:
- admins see location twice
- All accounts see "Next posting level)"
Title: Re: Next Post Level [SMF 2.0 Final Suported]
Post by: sharks on July 01, 2011, 02:32:49 AM
Nibogo, thanks for your work on this mod, but what would really be interesting is if you would also add the "Next Rank" detail while viewing the member posts, under the avatar. This would make it more visible and more practicial than having to check the member profile. Also, it will be more obvious to the members themselves, as most will not think to check their profile summaries to find this bit of useful information.

BTW, "Next Rank" sounds like a better description than "Next Post Level". It is also shorter, so should fit easily on one line under the Avatar, with the number of posts appearing on the right of that text description. Maybe you could add the editable description as customizable from the admin panel settings? That would be truly ideal.
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on July 11, 2011, 09:18:42 PM
Quote from: Brack1 on April 12, 2010, 07:44:55 PM
Which code would I require to add this to the Ultimate Profile mod?
Title: Re: Next Post Level [SMF 2.0 Final Suported]
Post by: gustavomf on August 05, 2011, 04:25:49 PM
se puede adaptar para que salga en el perfil pero con el MOD Ultimate Profile instalado ?

Sin este sale bien , con este mod no se visualiza y están muy buenos ambos mods !

Gracias
Title: Re: Next Post Level [SMF 2.0 Final Suported]
Post by: Exsharaen on August 10, 2011, 12:05:31 AM
Again, when using any language other than English at SMF 2, I got this critical error (based on the log) when viewing any profile:

QuoteWrong value type sent to the database. Integer expected. (member_posts)
Function: summary
File: /.../forum/Sources/Profile-View.php

The cause was the same as I wrote here (http://www.simplemachines.org/community/index.php?topic=246010.msg1767532#msg1767532), and the fix is the same.

Quick fix for SMF 2:
1. Download Profile-View.php (it resides in Sources folder).
2. Open the file you just downloaded with any text editor (Notepad++ preferred).
3. Find any of these:
$context['member']['posts']
and replace with this:
$context['member']['real_posts']
You should find only two pieces of code inside summary function. Don't use Replace All if you're not sure.
4. Save, then reupload that file.

View any member for next post level and check for any errors in the log. It should go away.

Hope this helps :)
Title: Re: Next Post Level [v1.3.2 Released | SMF 2.0 RC1 Support]
Post by: TheListener on September 08, 2011, 09:37:34 PM
Quote from: Brack1 on July 11, 2011, 09:18:42 PM
Quote from: Brack1 on April 12, 2010, 07:44:55 PM
Which code would I require to add this to the Ultimate Profile mod?

I feel like uninstalling the mod.
Title: Re: Next Post Level [SMF 2.0 Final Suported]
Post by: gustavomf on January 13, 2012, 07:29:26 PM
great, now it works perfect!

how it could change the color to see: Next Level Posts in red?

_________________________

genial ahora me funciona perfecto !

como hago para que aparesca: Next Level Posts in red?

Gracias !
Title: Re: Next Post Level [SMF 2.0 Final Suported]
Post by: pixeleyes on April 07, 2012, 01:53:27 AM
How to add NEXT POST LEVEL under the Poster area

in Display.template.php