#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 8, 2019 11:22:22 GMT -8
Nothing trivial about that... Try adding this to the plugins styling.. .awarded { padding-top: 15px; } Amazing! Exactly what I was looking for. Thank you!! Plugin works fantastic BTW. You are most welcome.
|
|
#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 8, 2019 11:21:11 GMT -8
Sam , thank you.. Just a heads up, in the CSS you posted above, you have repeated the '.ui-pagination-prev a' CSS, with only a slight change in the border-radius. The lower '.ui-pagination-prev a' css will take precedent, rendering the first border-radius redundent. So what should I do to that?You don't HAVE to do anything, but the red in the CSS you posted (below) can be removed as it is being overwritten further down in your code. <!-- Pagination --> <style> .ui-pagination-prev a{ border: 1px solid #C8C8C8; border-radius:10px 10px 0px 0px; 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-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; } </style>
|
|
#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 8, 2019 11:16:20 GMT -8
OK, I'll see what I can do. You should be aware though, that there is no way I can find out the total amount of likes a member receives. The original plugin deals with posts, which are kept count by PB, and we have access to a members post count, and so we can guarantee the total is accurate. With likes we can't do that. There is no way we can find out the total amount of likes a member has received in the past. This will mean that the 'Total' will only be from when the plugin is activated, and not from when the member joined the forum... Another issue is the fact that a member's post can be 'un-liked', which, if taken into consideration, will add a further complication to the coding. Because of the above mentioned points, I can't simply alter the current plugin to use the 'like count' instead of the post count, and chunks of it will need to be reworked, or even re-written. $[user.likes] ? How is there no way to see how many likes a user has recieved? I do apologise, as I have said many times, not necessarily to you, I do not usually play with templates and was not aware that that option existed. I assume that you have that displayed somewhere in your threads?
|
|
#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 6, 2019 17:47:02 GMT -8
This may sound incredibly trivial, and my knowledge of coding is very minimal. When the Awards title appears in the mini-profile it's very close to the bottom of another plugin I have running. Any idea what kind of code I would need to add to put about 15px of padding to the top of the title? Nothing trivial about that... Try adding this to the plugins styling.. .awarded { padding-top: 15px; }
|
|
#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 6, 2019 17:39:47 GMT -8
Sam, thank you.. Just a heads up, in the CSS you posted above, you have repeated the '.ui-pagination-prev a' CSS, with only a slight change in the border-radius. The lower '.ui-pagination-prev a' css will take precedent, rendering the first border-radius redundent.
|
|
#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 6, 2019 17:26:58 GMT -8
@smithj , it has just dawned on me what you are asking... Do you want the amount of liked POSTS a member receives, the most posts a member likes? Or do you have another plugin allowing members to like each other that you are talking about? Um. I would like the amount of liked posts a member has received. OK, I'll see what I can do. You should be aware though, that there is no way I can find out the total amount of likes a member receives. The original plugin deals with posts, which are kept count by PB, and we have access to a members post count, and so we can guarantee the total is accurate. With likes we can't do that. There is no way we can find out the total amount of likes a member has received in the past. This will mean that the 'Total' will only be from when the plugin is activated, and not from when the member joined the forum... Another issue is the fact that a member's post can be 'un-liked', which, if taken into consideration, will add a further complication to the coding. Because of the above mentioned points, I can't simply alter the current plugin to use the 'like count' instead of the post count, and chunks of it will need to be reworked, or even re-written.
|
|
#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 5, 2019 13:34:21 GMT -8
@smithj, it has just dawned on me what you are asking...
Do you want the amount of liked POSTS a member receives, the most posts a member likes? Or do you have another plugin allowing members to like each other that you are talking about?
|
|
#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 5, 2019 13:30:05 GMT -8
Not using web storage, no. A plugin super user key would allow the same data to be read no matter what browser you decide to use, but, logging out of one and in with another, the code would assume a new login and change the data anyway. The only way around that that I can see would be to make the change in weather time delayed. Hm~ I've been wondering that as well to make the value persistent until 24hrs have passed, do you know where I can find the source? Or if you can, show me the code to do so? I will take it from there and see if I am successful. If not, I will come back here if I am stuck. What do you mean by 'the source'? The current time, according to the PB server, can be accessed with 'pb.data('serverDate')', you can change that to a coherent date using 'toDateString()'. You will obviuosly need to store the current date in the key for you to compare to, and if 24 hours have passed, refresh it along with the new weather data.
|
|
#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 3, 2019 12:40:51 GMT -8
How long is a piece of string?
Rest assured, I'm on it and will get it to you as soon as I am able.
|
|
#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 3, 2019 9:39:41 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 3, 2019 8:20:27 GMT -8
You can use document.referrer to check on the previous pages URL, and check it against the current. If they match, then load saved content, if mot, set the saved content. Something like this... var locHistory = document.referrer.split('.')[0]; var curLocation = document.location.toString(); if(!curLocation.match(locHistory)) { localStorage.setItem("weather", weather); } document.getElementById("weather_result").innerHTML = localStorage.getItem("weather"); You should be able to follow it, but if not, yell. I appreciate it. I'll look at it once I am done coding my assignments. EDIT: Okay. It does solve an issue somewhat, but the issue is having it to populate the local storage AT LEAST once, but to do that I need to call the: localStorage.setItem("weather", wind[windArray]); outside the if. However, doing that will just reset the value. This was more or less the issue I was trying to get around in the morning to the afternoon. I had it where it populated twice, but on the second call it stored the value and remained constant throughout the forum. I am going to keep toying with it. EDIT: I got it.
var localStorage;
try { var wind = ["Windy", "Breezy", "Fair and Windy", "A Few Clouds and Windy", "Partly Cloudy and Windy", "Mostly Cloudy and Windy", "Overcast and Windy"];
var windArray = Math.floor((Math.random() * 6) + 1);
if(localStorage.getItem("weather") === null) localStorage.setItem("weather", wind[windArray]);
document.getElementById("weather_result").innerHTML = localStorage.getItem("weather"); } EDIT: Since it is functioning, I am going to see if there is a way to share the value throughout clients, right now it is just displaying to different weather values. On Firefox it will be Breezy and on Google Chrome, it would be Windy. Is there any possible way to do this? Not using web storage, no. A plugin super user key would allow the same data to be read no matter what browser you decide to use, but, logging out of one and in with another, the code would assume a new login and change the data anyway. The only way around that that I can see would be to make the change in weather time delayed.
|
|
#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 2, 2019 16:07:49 GMT -8
You can use document.referrer to check on the previous pages URL, and check it against the current. If they match, then load saved content, if mot, set the saved content.
Something like this...
var locHistory = document.referrer.split('.')[0]; var curLocation = document.location.toString(); if(!curLocation.match(locHistory)) { localStorage.setItem("weather", weather); } document.getElementById("weather_result").innerHTML = localStorage.getItem("weather");
You should be able to follow it, but if not, yell.
|
|
#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 2, 2019 8:00:52 GMT -8
Thank you, but the issue is not with the actual editing of the table itself, but rather separating it from the post and then replacing the old table with the updated one. Ah! I'd had a little issue with the plugin when deleting an individual column from an existing table(and that only when the table had a 'head' and 'body' coded to it), but had had no issue with deleting rows that way at all, so I thought multiples would work the same. Rows can ussually be removed from a table without issue, unfortunately, with columns that's not always the case. Tables created with this plugin include the column width in the top row as a percentage, so removing one will mean that the remaining columns will have the wrong width (they won't add up to 100%) and so can ruin the way it looks. Depending on your browser you may get the end cell larger than the rest. It's also more tricky removing a column as you have to unpick every row instead of just removing a chunk of code.
|
|
#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 Feb 28, 2019 16:06:24 GMT -8
@smithj , how are you adding the border radius to the pagination buttons? I think that that may be clashing with the code I gave you, as it works fine on my forum even if I completely round the ends. The border radius is fine. The only problem is some number alignment and the background. I assume the problem with the background is that the background is for every individual slot, so if I can give all the number slots that background it might work. And the only other problem is the combination of double digit numbers. I'm not saying there is anything wrong with the border radius, but something is causing the cell contents to be displayed incorrectly. The code I gave you works, at least on a standard forum, so I assume the problem is being caused by a clash between the code and your theme. Try removing the part of your theme that adds the radii to the pagination and use the code to add it instead and see if that solves the issue.
|
|
#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 Feb 28, 2019 14:31:20 GMT -8
Hi I've installed this and it works fine (tho' my Firefox user gets the 'added html'), I'm pointing it to a bunch of ani-gifs hosted on a Google Sites page, they appear but don't animate Any ideas?? tia Brian The issue with the added HTML has been fixed in version 3.2.6. That is now available in the library or from the link in the quote in my post above (3.2.61). As for the animated .gif issue, that shouldn't be a problem.. Could you please leave a link to your forum so I can take a look, or if you prefer, you can PM me your smiley array so I can try to see what's going on...
|
|