inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 2:05:11 GMT -8
What I am hoping for, is a plugin that could display the members gold amount from the (Monetary Plugin) in the Shout Box, just like how I have the members Total Posts there. (See picture below) It's a pretty specific request, and I'm not sure how difficult, and time consuming it would actually be, but if anyone does decide to do this, it would be much appreciated! If not, it's more than understandable! Thank you!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 11, 2014 2:42:10 GMT -8
I'm a sucker for people who are appreciative and polite, so couldn't help myself but write it for you. I know I did say in the Monetary topic that I don't have time, but I found 10 mins to write it. DownloadSourceBy default it will add the money amount in front of the name (as seen in the picture below). You can customise this by modifying the shoutbox template (which I see you already have done in your image) by placing a span with a class of "shoutbox_currency". This will get populated by the plugin. <span class="shoutbox_currency"></span> For anyone else looking to use this, make sure you have Yootil, and the Monetary System plugins installed, as this plugin requires the Monetary System API.
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 3:18:28 GMT -8
I'm a sucker for people who are appreciative and polite, so couldn't help myself but write it for you. I know I did say in the Monetary topic that I don't have time, but I found 10 mins to write it. DownloadSourceBy default it will add the money amount in front of the name (as seen in the picture below). You can customise this by modifying the shoutbox template (which I see you already have done in your image) by placing a span with a class of "shoutbox_currency". This will get populated by the plugin. <span class="shoutbox_currency"></span> For anyone else looking to use this, make sure you have Yootil, and the Monetary System plugins installed, as this plugin requires the Monetary System API. Wow Peter!.. I cannot thank you enough for this! The help and guidance you gave me previously was more than generous, but the fact that you actually completed this for me, and in such little time as especially, is simply way above and beyond! I feel bad that you actually took the time to do this for me, because I can't even imagine how busy you must be, with coding plugins, support threads, proboards in general, and of course real life (offline) activities/commitments. I must say, you're a very decent person, and I really hope there is something I am capable of doing in the future, to help you, and return the favor! If there is ever anything you can think of that you need help with, and is within my capabilities, please let me know, and I will try my best to help out. I realize there probably isn't a ton I can do to help you, but I can at least try to get more involved within the Proboards community, and give ideas for your plugins, and test for bugs, and what not. Once again, thank you so much for doing this! I can't even being to express how grateful, and appreciative I am for your efforts!!!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 11, 2014 3:32:49 GMT -8
You are very welcome. It's people like you that gives me motivation to create plugins, as it becomes fun, and enjoyable, as we know it is appreciated. Just keep doing what you are doing. Thanks
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 3:58:09 GMT -8
Edit: I didn't see your last post. Thanks for the kind words! Hello again Peter. First of all, I have no idea if double posting is aloud here or not, so I'm sorry if it's forbidden, and I will not do it again in the future, if it's not allowed. I just always see people bumping their posts, so I figure it's ok. I thought I would let you know that it is not displaying the gold amount in front of members names in the Shout Box by default. The gold will also not display when I put <span class="shoutbox_currency"></span> in my Individual Posts template. Could it be because of something I've done wrong, or because of templates I've modified? If it's something wrong with the plugin, do not worry about fixing it. You've done more than enough to help me, and spent more than enough time on this! I'll try it on my test forum to see if it works, and post back here later, with the result. Thanks again, and sorry to bother you!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 11, 2014 4:00:43 GMT -8
Could you link me to your forum, and post the shoutbox post template, as it's probably not finding the posts due to your template changes.
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 4:27:58 GMT -8
Sure thing. Do you want me to allow guests to shout also I'm assuming? I'll do it in case. eobud.boards.netI know a if statement is set up poorly, (1 check for 4 things..) so I'm sure my template is messing it up like you said. I probably have other errors/ issues with it as well that may be causing it! x( Individual Posts Template{foreach $[shoutbox_post]} <div class="$[shoutbox_post.content_class] content-box"{if $[shoutbox_post.edited]} title="$[shoutbox_post.edited]"{/if}> <div style="text-decoration: underline; color: #3B0000; float: right;"> $[shoutbox_post.date] </div> <div style="float: left; width: 60px;"> $[shoutbox_post.created_by.avatar_small] </div> {if $[shoutbox_post.created_by.personal_text.message]} <div style="color: #007A00; float: up; width: 750px;">     $[shoutbox_post.created_by.group]  $[shoutbox_post.created_by.group.stars] "$[shoutbox_post.created_by.personal_text]" <span class="shoutbox_currency"></span>   Total Posts:$[shoutbox_post.created_by.posts] {if $[shoutbox_post.created_by.is_online]}  <img src="http://i59.tinypic.com/5npuso.png"> {else}  <img src="http://i57.tinypic.com/zj7c6b.png"> {/if} </div> {/if} {if $[shoutbox_post.created_by.is_online]} <img src="http://i1043./b436/army83_2010/misc/online.png"> {else} <img src="http://i1043./b436/army83_2010/misc/offline.png"> {/if} $[shoutbox_post.created_by]: <span class="message">$[shoutbox_post.message]</span> <span class="details"> $[shoutbox_post.edit_button] {if $[shoutbox_post.edited]}<span class="edited">*</span>{/if} </span> $[shoutbox_post.delete_button] <div class="ui-helper-clearfix"></div> </div> {/foreach}I modified not only Individual Posts, but also my shout Box template a bit to. I'll post the code below incase. Shout Box Template<div class="$[shoutbox_class] container full"> <div class="title-bar"><h2><font color="#074F00">Blazing Up Dope [Chat]</h2></font> </div> <div class="content"> {if $[welcome_message]} <div class="pad-all-double content-box shoutbox_welcome_message"> {if $[current_user.is_member]} Hello $[current_user]! <a id="link8" href="https://login.proboards.com/logout/5501826" class="link2"><b>Log Off ? </b></a> {else if $[current_user.is_guest]} Hello Guest! <a id="link9" href="https://login.proboards.com/login/5501826/" class="link2"><b>Log On ? </b></a> {/if} </div> {/if} <div class="shoutbox_container orientation-$[reply_box_position] {if !$[can.post]}no-post{/if}"> <div class="$[shoutbox_posts_class]" style="height: $[height];" aria-live="polite"> {if $[shoutbox_posts]} $[shoutbox_posts] <!--$[shoutbox_refresh]--> {else} <b>There are no posts here.{if $[can.post]} Start the conversation {if $[reply_box_position] == 'bottom'}below{else}above{/if}.{/if}</b> {/if} </div> {if $[can.post]} <div class="shoutbox_form_container"> $[shoutbox_form.header] <div class="shoutbox_name"> {if $[shoutbox_form.guest_name.input]} Shout as: $[shoutbox_form.guest_name.input] {else} Shouting as: $[current_user] {/if} </div> <a id="link1" href="/conversation/new/$[user.id]" class="link2"><b><u><font color="#ff0000">Message Members</u></b></a> <a id="link7" href="/conversation/inbox/" class="link2"><b><u><font color="#ff0000">Inbox:<font color="#500000">$[current_user.messages.inbox]</u></b></a> <a id="link12" href="/conversation/new/$[user.id]"> <b><u><font color="#ff0000">New Messages:<font color="#500000">$[current_user.messages.new]</u></b></a> <a id="link2" href="/posts/recent" class="link2"><b><u><font color="#ff0000">Recent Posts</u></b></a> <a id="link3" href="/threads/recent" class="link2"><b><u><font color="#ff0000">Recent Threads</u></b></a> <a id="link10" href="/user/$[current_user.id]/recent" class="link2"><b><u><font color="#ff0000">Your Posts</u></b></a> <a id="link11" href="/user/$[current_user.id]/recent_threads" class="link2"><b><u><font color="#ff0000">Your Threads</u></b></a> <div class="shoutbox_form content-box"> $[shoutbox_error] $[refresh_button] $[reply_box_buttons] $[shoutbox_form.message.input] $[message_character_count] $[post_button] $[cancel_button] </div> $[shoutbox_form.footer] </div> {/if} </div> </div> </div>Sorry for my mess of code I have created! xD
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 11, 2014 4:46:00 GMT -8
You are running an old version of the Monetary System, I'd recommend updating, as the API in 0.6.9 was improved and changed around. Once updated, it should be fine.
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 4:59:48 GMT -8
Wow, do I ever feel stupid right now! xD I downloaded the newest version of the monetary system, and it's working perfect now!
Thank you so much, and I'm so sorry to waste your time, when I should have thought to check that I have the newest version of the plugin!..
I swear my last question about this matter! Can I change the money symbol to $ instead of £ ? Edit: Just messed around with the source a bit and figured out you can remove the default symbol pretty easily.
In case anyone else uses this, and wants the default money symbol gone from the Shout Box, view the source, and replace the code below, with the bold code placed afterwards.
Original Code Below (With Currency Symbol)
if(!span.length){ span = $("<span class='shoutbox_currency' style='margin-right: 3px;'>[" + pixeldepth.monetary.settings.money_symbol + yootil.html_encode(yootil.number_format(money)) + "]</span>"); $(this).prepend(span); } else { span.html(pixeldepth.monetary.settings.money_symbol + yootil.html_encode(yootil.number_format(money))); }
Modified Code Below (Without Currency Symbol)
if(!span.length){ span = $("<span class='shoutbox_currency' style='margin-right: 3px;'>[" + yootil.html_encode(yootil.number_format(money)) + "]</span>"); $(this).prepend(span); } else { span.html(yootil.html_encode(yootil.number_format(money))); }
If you want to put a different currency symbol like $ you'll need to add the bold code below to your Individual Posts Template. Simply change the $ symbol to whatever you prefer.
$<span class="shoutbox_currency"></span>
Thank you Peter!!!
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 6:07:24 GMT -8
I just thought I would point out one slight problem, which is whenever you refresh the page, all members gold amounts, display as 0 in the shout box. I'll try my best to find a fix myself for this though, but I have a feeling there is nothing that can be done to display the proper value after a page refresh. No big deal though!
Thanks again for all your help Peter!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 11, 2014 7:14:05 GMT -8
weedfanatic, I can't seem to duplicate that issue. Make sure the plugin is below the monetary system in the plugin list. Also, I have updated the plugin, I noticed an error if a guest posts. If you have guests posting, grab the update, otherwise don't worry about it
|
|
inherit
209650
0
Feb 28, 2021 2:32:42 GMT -8
weedfanatic
114
May 2014
weedfanatic
|
Post by weedfanatic on Jun 11, 2014 7:53:08 GMT -8
Thank you so much Peter! I honestly don't know why I didn't think of that.. Another stupid mistake that shouldn't have happened on my part. I'm making such dumb, and obvious mistakes today.. I think it's a hint for me to finally get some sleep! I'm very sorry for any trouble, and inconvenience I've caused you. You came through yet again, and I seriously cannot thank you enough for all your help! It really means a lot! Thank You, Peter!
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 11, 2014 17:51:35 GMT -8
Saint Peter ... doing good work wherever he goes.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 12, 2014 0:12:33 GMT -8
Saint Peter ... doing good work wherever he goes. I can easily say the same about you, in fact the work and effort you put in around these boards is impressive, and you still find time to work on some of your plugins. You crazy.
|
|