Author |
Topic |
|
richfed
Average Member
United States
999 Posts |
Posted - 01 August 2015 : 10:30:07
|
When posting on Facebook, for example, you can copy and paste a URL to a news story and the result is a nice, vibrant, dynamic picture with the news story encapsulated. Looks good and is much more likely to catch the attention of a reader and get them to read on.
Is that something that could be modded into the capacity of Snitz-based forums? |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 01 August 2015 : 11:36:46
|
You'd have to allow frames, it's a security risk. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 01 August 2015 : 14:06:17
|
I know next to nothing about jquery. Wouldn't know how to integrate that, but I do know how to restrict the use of iframes by mLev and preclude users from quoting them, etc. |
Edited by - Carefree on 01 August 2015 14:07:28 |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 02 August 2015 : 10:32:18
|
Lost me, HuwR, on the "container div". So, once I know what that is, and put in my website domain, I can just copy & paste that? Where? |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 02 August 2015 : 15:37:06
|
you'll also need to include the jquery js files. If I get chance in the next couple of days, I'll write a brief guide for you, just remind me after tomorrow if you don't see anything (I'm out tomorrow, but should be able to sort it out Tuesday ) |
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 05 August 2015 : 16:51:45
|
ok, there are several ways that this can be done, however they all rely on being able to parse something meaningful from the link, what that is obviously varies from site to site. I'm not sure exactly what facebook does, but have discovered that it is fairly inaccurate. I imagine for news links from reputable sites, that they all use a similar structure like an rss feed so parsing is easy, however if you post a link to some common or garden site like this for example, what you get back may not be what you expected. I used http://forum.snitz.com/mvc and what I got from facebook was an image of the page from maybe 3 weeks ago |
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 06 August 2015 : 09:59:25
|
When I post a link to Facebook, for example, I check copy & past the URL from the origin site to my Facebook wall and it 95% of the time displays as expected. Sometimes, I get a company logo or something, but it is fairly reliable. Would be great to be able to do that on the forums, but it is not that important. If it's a lot of trouble to code, just forget it. I was thinking it seems so simple on Facebook, maybe it would be simple here. It's no really big deal to me. Thanks, HuwR. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 06 August 2015 : 10:37:20
|
There are some third party utils you could use, but most of them are server based, it is not as simple as it looks
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
|
Topic |
|