Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2013 times and has 5 replies Next Thread
chasdobie
Cruncher
Canada
Joined: Aug 25, 2017
Post Count: 9
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Iframe code in WCG is outdated, has errors, and is not supported by some devices

I want to support WCG by putting a link promoting it on my websites. WCG provides a logo with information etc., all configurable by the WCG user. I've copied and pasted this code into an appropriate location on my website, but when I run the resulting html code through my validation app, there are many complaints.

Firstly, the html code provided is wrapped in an <iframe> which evidently is not secure in a major way, and can sometimes allow hackers to hijack the connection. Secondly, my validator says that some mobile devices don't support iframe at all -- this seems to negate the value of putting the WCG link on any website.

The less major problem with the code is that width and height are expressed in pixels, such as width="405px". This is not how you define width in html -- proper format is width="405". The width="405px" is the proper format for a CSS file.

Can WCG or someone on this forum please supply me with more updated html code, or at least point me to where I can find it.

Many thanks
[Apr 7, 2020 5:11:14 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Iframe code in WCG is outdated, has errors, and is not supported by some devices

The widget code is unfortunately quite old and it definitely needs to be reworked (preferably as something like a javascript module or perhaps a dynamically generated image).

We do have a a set of work that is starting up that will hopefully include updating that code. Unfortunately, it won't be available until end of year at the earliest.
[Apr 8, 2020 10:17:17 PM]   Link   Report threatening or abusive post: please login first  Go to top 
chasdobie
Cruncher
Canada
Joined: Aug 25, 2017
Post Count: 9
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Iframe code in WCG is outdated, has errors, and is not supported by some devices

OK, many thanks. You've got lots of work on your collective plate. I've used the code and corrected what I can of it, but please notify me when the updated code is available.
[Apr 8, 2020 11:27:04 PM]   Link   Report threatening or abusive post: please login first  Go to top 
UncleSocial
Cruncher
Joined: May 27, 2011
Post Count: 7
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Iframe code in WCG is outdated, has errors, and is not supported by some devices

I came back to the forums after a 7 year break to ask a similar question.

It's a shame there's no API. I imagine there are hundreds of developers who'd love to create all kinds of plugins for Wordpress etc or codesnippets to help promote WCG and aid in recruitment.

It pains me to see folding@ pulling ahead on the publicity front so well in this regard.
[Apr 29, 2020 10:30:40 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1684
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Iframe code in WCG is outdated, has errors, and is not supported by some devices

There is API:
https://www.worldcommunitygrid.org/help/viewTopic.do?shortName=api

It is not easy to find the page, however there is a lot of information and many members use this API collection for own use or for the community (see Snurk).
Enjoy,
Yves
----------------------------------------
[Apr 30, 2020 7:37:03 AM]   Link   Report threatening or abusive post: please login first  Go to top 
UncleSocial
Cruncher
Joined: May 27, 2011
Post Count: 7
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Iframe code in WCG is outdated, has errors, and is not supported by some devices

Oh! Thank you for that KerSamson.

I wonder why no one's doing anything with the API? It's a real shame. I'd have at least expected to be able to find an Wordpress plugin or two or maybe some code snippets out there. Maybe I've not looked hard enough!
[May 3, 2020 6:23:53 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread