#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:28:52 GMT -8
Any way you could give a list of BB codes this plugin accepts? For myself and my other members. Thanx again! Sure.. here's the full list of the currently supported BB Codes.. The BBCode tags covered are... [b]xxx[/b] [i]xxx[/i] [u]xxx[/u] [s]xxx[/s] [sup]xxx[/sup] [sub]xxx[/sub] [div align="left"]xxx[/div] [div align="center"]xxx[/div] [div align="right"]xxx[/div] [div align="justify"]xxx[/div] [a href="http://"]xxx[/a] [link href="http://"]xxx[/link] [font color="ff0000"]xxx[/font] [font size="?"]xxx[/font] [font face="?"]xxx[/font] [code]xxx[/code] [quote]xxx[/quote] [img src="http://"] or [img]http://[/img] [spoiler]xxx[/spoiler]
You can also use shortened BBCode tags, such as... [left]xxx[/left] [center]xxx[/center] [right]xxx[/right] [color="??????"]xxx[/color] [size="?"]xxx[/size] [face="?????"]xxx[/face]
etc... You can also use member tags, such as... @admin
As for your button, version 0.0.7 should now (hopefully) rectify that..
|
|
#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 11, 2019 16:22:17 GMT -8
That seems to work, somewhat, but the "Save Signature" button is to the right of the text area. But my sig looks like this now. Even the links I had in my sig don't appear. My sig should look like this. The "USEFUL FORM POSTS" in the image above are links.
OK.. Lets get the plugin working first... There was an error with the way the plugin handles some colors, version 0.0.7 fixes that..
There also an issue with the way you are adding your image. The plugin does not cover 'style' or 'alt' attributes, so dropping them should allow your signature to then work. If it doesn't, use the one below, that does..
Respects. >>-[NATIVE]->> [center] [img src="http://www.evil-incarnate.com/images/native-test.png"]
[color="#ffff00"]FRAG THE WEAK, HURDLE THE DEAD.[/color] ..... USEFUL FORUM POSTS BELOW [a href="http://my_link.net/"][color="#ff0000"]Clan Rules[/color][/a]|[a href="http://my_link.net/"][color="#ffff00"]Clan Applications[/color][/a]|[a href="http://my_link.net/"][color="#00ff00"]Get Server Maps[/color][/a]|[a href="http://my_link.net/"][color="#0066ff"]Binds Explained[/color][/a]
[color="#b40109"][b]"Do not meddle in the affairs of -=[EV!L]=- souls, for you are quite crunchy and very good with ketchup."[/b][/color] [/center] You will obviously need to change the links..
|
|
#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 11, 2019 15:17:25 GMT -8
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> I see. So how do I get the background to feed into the rest of the buttons?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.
|
|
#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 11, 2019 15:08:01 GMT -8
The only way to have the weather consistent across all browsers is to use a key.. If you use a User Key it will be consistent across all browsers for each member.. You do not need a Super user Key, as I said before, sorry. If you use a Super Forum Key the weather will be consistent across all browsers AND all members, or even all viewers if you allow guest access. Here's a plugin of your above code using a User Key to store the weather, and to change it when day changes according to ProBoards Date.. Weather Plugin.pbp (1.09 KB) Plugins do not currently work on mobile devices unless they are in desktop mode. I appreciate it. I will look into it. Also, I tried using the pd.data previously but only reason I had trouble was I kept getting undefined and as I said before, I was trying to find something to work with to see what I was doing wrong; alas, to no avail. Furthermore, I saw this: pb.plugin.key('Weather').get(), is this from the insert key being utilized? I tried doing the insertion and it kept saying I needed to select a variable, but I wasn't sure how that was being done. Again, mentioned underneath, I will analyze the code. EDIT: Question: What is this occurrence? Invalid item.
Error Code: 2
Key: Weather
Object Id: 0
It appears when I am a guest and using Firefox. EDIT: Also, sorry for making you go through the trouble, hopefully, I can learn what you've done with the plugin, so I can apply it to: temperature, wind, and rain chance. P.S: Tried it in all browsers, the value is being kept consistent with the user, which is good. I've been trying to get that part functioning, so I am going to dissect your code and learn from it. Once, I am able to apply the other features, I am going to slowly update it and change it to beta for release. Hopefully, I can make a thread, and if you don't mind, I make it public for other individuals to use as well since after all you did majority of the plugin work. It is only fair to ask for you permission, and add credit to your work, since you've assisted me greatly. I want others to enjoy the plugin in as well and make their forum unique in that aspect. pb.plugin.key('Weather').get() is the way you access the key data, yes, and it can be inserted into your code by first placing the cursor in your code where you want the access code inserted, click on the key you want to you on the right, and then click 'insert'. If you want more information on keys in general, you can read about them here.. The error code you are getting is because, as a guest, you are trying to access a key that does not exist. User keys can only be read by the user that that key applies to, and so, as a guest, it throws an error. There are a couple of ways to deal with this. You can change the key to a Super Forum Key and allow guests access. That would mean that ALL members and guests would see the same weather at the same time, on all browsers, or you can run the main function only if the viewer is a member, you can do this by changing this part of the code... $(document).ready(function(){ run_weather(); }); to this $(document).ready(function(){ if(pb.data('user').is_logged_in == 1) { run_weather(); } }); That would essentially hide the weather from guests. As for the plugin itself, the coding is yours, all I did was to re-arrange it into a way that it would hopefully make sense to you and to add a key for data storage. Use and change it how you like, and there's no need to credit me for the code that you have created.
|
|
#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 11, 2019 14:02:59 GMT -8
Todge , we're having some trouble with the plugin. it shows up as a blank image. i think this is because the layout we are using remodels mini profiles. i did enter the name of the new avatar class. let me know if you have time to help! 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.
|
|
#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 11, 2019 13:58:55 GMT -8
Hi Todge had the sidebar for a few years. been great until flash player needs approval and i hear will vanish soon altogether. i am not the best at computer stuff so can anyone help me to get the slide show and visitor globe working again? I'm afraid there's no real answer to this. The best thing you can do, in my opinion, is replace the .flv oe .swf files you are using with equivalent files in a format native to most browsers, like .mp4, .avi or .mpg.
|
|
#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 11, 2019 13:39:10 GMT -8
Only got one alert. It was, "RPS". Thank you... Can you now try version 0.0.65, and let me know how it goes.
|
|
#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 10, 2019 14:09:24 GMT -8
Hmmm... Can you please replace your current version with this one... When you edit your profile you should get some alerts. Can you tell me what the last on says please.
|
|
#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 10, 2019 13:59:41 GMT -8
So far so good then... A Super Forum Key will mean that all members will see the same weather at the same time.. If you want the weather to be different for each member, but remain the same across browsers, you need to use a Super User Key. Using setInterval() will work if you leave the browser open for more than 24 hours, but the count will be reset whenever the page is refreshed.. I see you are trying to use pd.date, hopefully that should work better. Hm. Okay. I will try to do that today if I can and implement the pd.data. EDIT: I tried implementing it, but don't know too much nor was I able to find forums, links, sources on how to utilize it properly. I did this however, though I am not sure it is any good and given it doesn't focus on DTS (Daylight Saving Time), I will have to take that into account, maybe. var day = new Date();
var nextDay = new Date(day);
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 is null, generate weather first time around. Otherwise, if it has
// been 24hrs, change the weather.
if((localStorage.getItem("weather") === null) && (day !== nextDay.setDate(day.getDate()+1)))
localStorage.setItem("weather", wind[windArray]);
// Otherwise, if weather exists, get weather.
document.getElementById("weather_result").innerHTML = localStorage.getItem("weather"); EDIT: I still dislike having the weather not being consistent across the browsers unless I use User Super Key, which I might have to consider doing. Though, I do not know if it will cause a conflict with the Forum Super Key. Also, Forum Super Key doesn't keep the same weather value like Fog across multiple devices, so not all members will see the same value.
EDIT UPDATE: Okay. The Forum Super Key doesn't work if you're using other devices or browsers, the values will be changed which is not the desired. If I am on Brave, Fog, stored in the localStorage with the Forum Super Key it should be applicable to a mobile phone on having Fog, which doesn't it will say Breezy. Hm~ I am probably approaching the entire javascript wrong. Left: Brave and Right: Firefox logged in with the same account. In addition to, (day !== nextDay.setDate(day.getDate()+1)) isn't doing what I think it should do by checking the nextDate since how I am approaching it: March 10 !== March 11, when it will never be true, even when the next day occurs it will be March 11 !== March 12. I am trying to see if I can it where just gets the time and checks if it passed 24hrs. I am assuming I can do it by using var h = today.getHour(), var m = today.getMinute(), and var s = today.getSeconds(); or something and do an if statement that checks if var time = (h + ":" + m + ":" + s) >= 24, if it is of course in military time. EDIT RECENT: Well, somehow the javascript Plugin is not reaching the header in the leftsidebar now. Disabling it for now until I get it resolved. The only way to have the weather consistent across all browsers is to use a key.. If you use a User Key it will be consistent across all browsers for each member.. You do not need a Super user Key, as I said before, sorry. If you use a Super Forum Key the weather will be consistent across all browsers AND all members, or even all viewers if you allow guest access. Here's a plugin of your above code using a User Key to store the weather, and to change it when day changes according to ProBoards Date.. Weather Plugin.pbp (1.09 KB) Plugins do not currently work on mobile devices unless they are in desktop mode.
|
|
#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 9, 2019 14:54:13 GMT -8
Thank you, that's good.. Now, in the edit profile, under the 'Personal' tab, do you get a 'Save Signature' button under the Signature option?
|
|
#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 9, 2019 11:16:00 GMT -8
So far so good then...
A Super Forum Key will mean that all members will see the same weather at the same time.. If you want the weather to be different for each member, but remain the same across browsers, you need to use a Super User Key.
Using setInterval() will work if you leave the browser open for more than 24 hours, but the count will be reset whenever the page is refreshed.. I see you are trying to use pd.date, hopefully that should work better.
|
|
#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 9, 2019 10:50:32 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 9, 2019 10:49:51 GMT -8
Thank you.. Could you please tell me what read permissions you have set the plugin's key to? I can see you have the write permission to Members & Staff, but I can't work out what your read permission is set to.
|
|
#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:39:09 GMT -8
The XL Signature Plugin doesn't seem to be working. I do not have extra space for a signature. Nothing has changed. I even purchased an extra Super Key just so I could use this plugin. Could you please leave a link to your forum so I can take a look. Thank 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 8, 2019 11:37:12 GMT -8
Any image host worth it's salt should allow animated .gifs, some may create a thumbnail of your image that will not animate, but you should have the option touse the true URL... To remove the 'Disable Smilies' option, add this to the plugin's 'Popup CSS'.. .no-smiles { display: none!important; }
|
|