fedyamaslov1987 / steamprofile

Automatically exported from code.google.com/p/steamprofile
0 stars 0 forks source link

Resize #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add it to postbit under IM cards

What is the expected output? What do you see instead?
The profile will show up under the IM cards like it should be it overlaps into 
the post window.  Can it be resized?

What version of the product are you using? On what operating system?
The current version.

Original issue reported on code.google.com by hanksc...@gmail.com on 17 Apr 2011 at 2:04

GoogleCodeExporter commented 8 years ago
I figured out how to resize the box, but when making a quick reply it doesn't 
load the information in the post.  If you then refresh the page the info will 
populate and it only happens with quick replies.  If you go to advanced and 
make a reply it works fine.

This is with vbulletin 4.0.6

Original comment by hanksc...@gmail.com on 18 Apr 2011 at 12:27

GoogleCodeExporter commented 8 years ago
Adding steam profile badges on the fly is a bit problematic, due to the way how 
the profiles are loaded and inserted into the page. It usually requires 
modifications of the quick reply script so it calls SteamProfile.refresh() 
after adding the HTML elements.

Original comment by barracud...@yahoo.de on 18 Apr 2011 at 9:11

GoogleCodeExporter commented 8 years ago
Thanks for your reply.  I have changed the way our quickreply works, so now it 
is really the advanced reply and that did the trick.

But on another note, the text that is show when it's loading is Loading with 2 
strange characters at the end.  I looked through the .js and found where it 
lists the "Loading" text and removed the strange characters, but they still 
show up when it's loading the profile.  How can I get rid of those?  Thanks.

Original comment by hanksc...@gmail.com on 18 Apr 2011 at 3:18

GoogleCodeExporter commented 8 years ago
Also, sorry for all theses posts, but how often does it refresh the status on 
your steam profile.  It seems to be several minutes between the refreshes.  Is 
there as way to change that?

Original comment by hanksc...@gmail.com on 19 Apr 2011 at 12:51

GoogleCodeExporter commented 8 years ago
Regarding the first question: hm, that should be enough I think. Maybe you 
could try to clear your browser's cache.

And the second question: On default, it will refresh all 10 minutes, it's 
controlled by the variable "cache.lifetime" in the xmlproxy.cfg (the value is 
measured in seconds). Personally, I don't recommend to set it below 3 minutes 
to avoid hammering the Steam servers, unless you don't have many users.

Original comment by barracud...@yahoo.de on 20 Apr 2011 at 6:23

GoogleCodeExporter commented 8 years ago
OK, thanks for your help.  I will try those out.

Original comment by hanksc...@gmail.com on 20 Apr 2011 at 12:44

GoogleCodeExporter commented 8 years ago
Clearing the cache didn't seem to help with the strange characters when it's 
loading the profile.  And is there any way you can give me instructions on 
editing the quick reply script to allow it to refresh the steam profile?  
Thanks for your help.

Original comment by hanksc...@gmail.com on 20 Apr 2011 at 1:54

GoogleCodeExporter commented 8 years ago
Yes, maybe. The URL to the website where the script is installed would be most 
useful for now.

Original comment by barracud...@yahoo.de on 21 Apr 2011 at 5:37

GoogleCodeExporter commented 8 years ago
The website is http://xtremelans.com

Original comment by hanksc...@gmail.com on 21 Apr 2011 at 5:40

GoogleCodeExporter commented 8 years ago
For the encoding problem: you need to edit the steamprofile.js and replace the 
Unicode characters with something available in ISO-8859-1. In this case, 
replace "…" with three dots. Then update the header of your page so it uses 
steamprofile.js instead of the minimized version, steamprofile.min.js (you 
could also try to edit this file, but it will be a lot more difficult).
Editing the quickreply script is also difficult, because it is minimized as 
well. Hm, maybe I should find out how to update SteamProfile so it won't 
require these JavaScript tricks anymore...

Original comment by barracud...@yahoo.de on 22 Apr 2011 at 9:11

GoogleCodeExporter commented 8 years ago
Thanks for your help, changing the characters to "..." and using the 
steamprofile.js instead of steamprofile.min.js worked.  I will be keeping an 
eye out to see if you make any changes to this code.  Thanks again for your 
help.

Original comment by hanksc...@gmail.com on 22 Apr 2011 at 1:25