Posting a link with a Picture - Posted (1483 Views)
Average Member
richfed
Posts: 999
999
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?
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Carefree
Posts: 4224
4224
You'd have to allow frames, it's a security risk.
Posted
Forum Admin
HuwR
Posts: 20611
20611
you could do it easily using jquery and load into a div

e.g
Code:

$("#siteloader")
.html('<object data="http://your-website-domain"/>');
#siteloader being the id of the container div
Posted
Advanced Member
Carefree
Posts: 4224
4224
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.
Posted
Average Member
richfed
Posts: 999
999
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?
Posted
Forum Admin
HuwR
Posts: 20611
20611
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 smile)
Posted
Forum Admin
HuwR
Posts: 20611
20611
Will try and get some instructions sorted for you later today
Posted
Forum Admin
HuwR
Posts: 20611
20611
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
Posted
Average Member
richfed
Posts: 999
999
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.
Posted
Forum Admin
HuwR
Posts: 20611
20611
There are some third party utils you could use, but most of them are server based, it is not as simple as it looks 'smile'
Posted
Forum Admin
HuwR
Posts: 20611
20611
you mean something like this

http://forum.snitz.com/mvc/Home/TestPage
mm, I seem to have broken that now smile
 
You Must enter a message