#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 18, 2019 15:26:34 GMT -8
I assume you have added the classes to the mini-profile and the forum wrapper? If so, can you please leave a link to a guest friendly thread where I can take a look. Thanks. Yes, I believe I've followed the steps correctly. BTW it's near the bottom of the page. brickmessage.boards.net/Has anyone liked or disliked anothers' post? The cell can only be populated after people start liking each other.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 17, 2019 16:41:26 GMT -8
@smithj , can you please try this.. Most Liked MembersIn your mini-profile template, you will need to wrap the liked number with a classed tag, such as <span class="member_likes L$[user.id]">$[user.likes]</span> so that the plugin can target and retrieve the current likes for that member. You will also need to add <div id="most_liked"></div> to your forum wrapper template to display the list(s). Hopefully it all works as intended, but let me know if not and I'll try to fix it. Doesn't look like it works. I assume you have added the classes to the mini-profile and the forum wrapper? If so, can you please leave a link to a guest friendly thread where I can take a look. Thanks.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 17, 2019 11:28:04 GMT -8
@smithj, can you please try this.. Most Liked MembersIn your mini-profile template, you will need to wrap the liked number with a classed tag, such as <span class="member_likes L$[user.id]">$[user.likes]</span> so that the plugin can target and retrieve the current likes for that member. You will also need to add <div id="most_liked"></div> to your forum wrapper template to display the list(s). Hopefully it all works as intended, but let me know if not and I'll try to fix it.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 16, 2019 7:25:08 GMT -8
Would it be possible to create something where there's a button on a page that says something like "ask a question about this" and someone clicks it, a box pops up, someone types in their question and hits send and then that message goes to an admin's PM box. after that, they can respond normally through the PMs system. But this would remove the need to click to another page in order to create a new conversation and send it off, only to then go back to the page you were first on... If a message box kinda popped up there on the page and could be sent and then closed, this would be immensely helpful... does anyone know if this is possible? <3 I'm afraid that what you are asking is not possible. A plugin could be made to send a PM, but it would still require a series of clicks to open the question pop-up, then another to send you to the PM page, another to send the PM, and yet another to return you to your original page. It would be much easier, in my opinion, to simply include a link to the PM page to open in a new window/tab.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 15, 2019 15:10:28 GMT -8
No worries..
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 15, 2019 15:09:13 GMT -8
You have the background repeat and position in the wrong order.. background: url(https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png) top right no-repeat; should really be background: url("https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png") no-repeat top right; It still doesn't fix it....
View AttachmentYour code is working, but I think you are wanting one background image to span all of the pagination cells instead? If so, I'm not sure that you can because of the re-alignment of the cells. You can make the cells transparent and add the background image to the parent cell, but you have also moved the pagination cells to the right, moving them outside of the parent cell, and so they will not be included in the bg image. Let me play with it a while to see what I can come up with, but because of the makeup of the pagination I'm not sure you can get the effect you're after.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 15, 2019 10:45:55 GMT -8
Good luck, and feel free to yell if you get stuck, or PM me if you prefer.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 14, 2019 15:52:37 GMT -8
Clicking on your link tells me that the board has been deleted.
is this still an issue for you?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 14, 2019 15:19:50 GMT -8
Forgive me if this is already answered somewhere, how do you style the pop-out button in the mini profile? On an earlier version of the plugin we were able to do it, but I wonder if something might've changed with a newer release that makes our method no longer work. It's now only showing up as plain text and I can't figure out how to style it again. Some time ago I changes the way the awards are added to the mini-profiles, so it's quite likely you had a version before that change was made. The pop-up button of the awards in the mini-profile can be targetted with ' .miniprofileAwardsTitle', so you can make the awards pop-up into a button into a 'true' button by adding this the the plugin's styling.. .miniprofileAwardsTitle { border: 1px solid #a7a7a7; border-radius: 4px; background-color: #dadada; padding: 3px; font-weight: bold; font-family: "Verdana", "Times", serif; }
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 14, 2019 15:12:27 GMT -8
So how do we get the background to no repeat through each slot? You have the background repeat and position in the wrong order.. background: url(https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png) top right no-repeat; should really be background: url("https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png") no-repeat top right;
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 14, 2019 14:58:01 GMT -8
Haha. I just figured it out for pb.plugin.key('Weather').get() when I was explaining my friend about the code, then I face palmed myself when I inserted it. Thanks. Yes, I've done the changes as needed and I changed the User (private) to as you suggested, Forum (super), now it carries the weather across without any changes. Big step since last week. I greatly appreciate it. No worries.. The weather is stored as an array in the weather key, so you can store multiple weather characteristics within the same key, at the moment the array is as follows... pb.plugin.key('Weather').get()[0] is the date the weather was last set, for comparative purposes. pb.plugin.key('Weather').get()[1] is the element number of the wind array to be displayed. There is no reason why you can't add to that array for temperature, rainfall, wind speed or for whatever else you see fit, so no, you only need the one key. There are a couple of ways of doing this, but the easiest would be just to add displaying the temperature.. $('#temperature_result').html(pb.plugin.key('Weather').get()[1]+'°C'); In your code above you are saving the temperature before the wind element, but haven't changed that when displaying result, currently you are displaying the wind as the element number according to the temperature, so if your temperature is more than 6, the code will break, or display 'undefined' as the wind. As such it is usually best to add to the end of an array rather than inserting elements into the middle of it, that way you will not upset the current list. To display the wind correctly you will need to change the element number in the line.. $('#weather_result').html(wind[pb.plugin.key('Weather').get()[1]]); In this case, the red number should be '2'. I'm not sure weather this part of your code is needed... // Alert member that temperature needs updating... $('#temperature_result').html('<b>Weather is out of date.<br><br>Please click here to update</b>').css('cursor','pointer'); As both the wind and temperature will be updated at the same time do you need to alert the viewer twice?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 14, 2019 13:53:47 GMT -8
No worries...
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 12, 2019 17:12:43 GMT -8
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 12, 2019 17:05:14 GMT -8
If it leaves a blank image it sounds like there's something wrong with the image itself.. Can you please leave a link to a guest friendly thread where posters have tried to use a different avatar so I can take a look. Thank you. thanks for the response! more specifically, we have our main forum and then a testing forum for messing around with code/plug ins before we use them on the actual forum. currently, both the test forum and actual forum are identical in terms of plug ins, css, and html. your plug in works perfectly on the test forum but doesn't work on the real forum - just shows a blank image. here's a link to the test forum with a guest-friendly thread (and the plug in demonstrated) and here's a link to a main forum thread. Strange.. Could you please post or PM me the image you are trying to add as your avatar on the site that isn't working.. It seems to be adding it as a link rather than an image URL.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 12, 2019 16:43:49 GMT -8
The three remaining blocks of code cover all of the pagination buttons. The red block is being repeated further down, and so was not actually doing anything. So this what I get when the code is like this:
View Attachment
<!-- Pagination --> <style> .ui-pagination-next a{ position:relative; right:-15px; border: 1px solid #C8C8C8; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-right-radius: 10px; -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 10px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; font-family: verdana; font-size: 9px; text-transform: uppercase; color: #676767; padding: 0 10px; line-height:20px; height: 20px; background: url(https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png) top right no-repeat; } .ui-pagination-prev a{ border: 1px solid #C8C8C8; border-radius:10px 0 0 10px; font-family: verdana; font-size: 9px; text-transform: uppercase; color: #676767; padding: 0 10px; line-height:20px; height: 20px; background: url(https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png) top right no-repeat; } .ui-pagination-slot a{ float:right; text-align: -webkit-match-parent; border: 1px solid #C8C8C8; font-family: verdana; list-style: none; position:relative; right:-7px; font-size: 9px; text-transform: uppercase; color: #676767; padding-left:0px; padding: 0 10px; letter-spacing:-5px; line-height:20px; height: 20px; background: url(https://web.archive.org/web/20170110034433im_/http://community.lego.com/html/assets/dropdown-bg.png) top right no-repeat;
} </style>
The scrunched up numbers at the far right are being caused by the third line up from the bottom of your CSS.. letter-spacing:-5px; Removing that should fix that issue, but may cause the pagination numbers to stretch out a bit.
|
|