Is it possible to get some kind of embed code for the "Recent topics" widget of my forumotion forum so I can add it to my shopify site?
I use PunBB template.
Your good advice is highly appriciated.
Best regards,
Amir.
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
l Fabricator wrote:Hi guys,
Is it possible to get some kind of embed code for the "Recent topics" widget of my forumotion forum so I can add it to my shopify site?
I use PunBB template.
Your good advice is highly appriciated.
Best regards,
Amir.
Fabricator wrote:Yes, to my shopify website.
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
If this applied on another website, which is not Forumotion, most of the variables will not format.MrMind wrote:Go to your forum:
Admin Panel >> Display >> Templates >> Portal >> mod_recent_topics
That is the hmtl code for the recent topics widget.
$(function(){$(function(){
if (location.hash == '#fatopics') {
document.body.innerHTML = document.getElementById('comments_scroll_div').innerHTML;
document.body.style.marginTop = 0;
var a = document.getElementsByTagName('A');
for (i=0;i<a.length;i++) a[i].target='_blank';
}
})});
<iframe style="width:346px;height:200px;border:none;overflow:hidden;" src="http://fabricator.do-forum.com/#fatopics"></iframe>
That's what I'm attempting with the iframe.SLGray wrote:I believe he wants to place this on a site not hosted by Forumotion.
$(function(){$(function(){
if (location.hash == '#fatopics') {
document.body.innerHTML = document.getElementById('comments_scroll_div').innerHTML;
document.body.style.marginTop = 0;
var a = document.getElementsByTagName('A');
for (i=0;i<a.length;i++) a[i].target='_blank';
}
})});
Fabricator wrote:OK, with your great support I am making a progress here
Only thing is that instead of the last topics window i got a windows that opens the whole site...
Ange Tuteur wrote:On your Forumotion forum go to Administration Panel > Modules > JavaScript codes management
Make sure JavaScript code management is enabled(and save if it wasn't), then create a new script.
Title : Your choice
Placement : in the portal
Paste the code below and submit :
- Code:
$(function(){$(function(){
if (location.hash == '#fatopics') {
document.body.innerHTML = document.getElementById('comments_scroll_div').innerHTML;
document.body.style.marginTop = 0;
var a = document.getElementsByTagName('A');
for (i=0;i<a.length;i++) a[i].target='_blank';
}
})});
In the portal is the placement my friend. You left it in the homepageAnge Tuteur wrote:On your Forumotion forum go to Administration Panel > Modules > JavaScript codes management
Make sure JavaScript code management is enabled(and save if it wasn't), then create a new script.
Title : Your choice
Placement : in the portal
Paste the code below and submit :
- Code:
$(function(){$(function(){
if (location.hash == '#fatopics') {
document.body.innerHTML = document.getElementById('comments_scroll_div').innerHTML;
document.body.style.marginTop = 0;
var a = document.getElementsByTagName('A');
for (i=0;i<a.length;i++) a[i].target='_blank';
}
})});
All credits should go to Ange. I didn't do anything!Fabricator wrote:Ange and Mr.Mind - Thanks a lot!!!
it works like a dream :-)
<iframe style="width:346px;height:200px;border:none;overflow:hidden;background:#FFF;" src="http://fabricator.do-forum.com/#fatopics"></iframe>
<iframe style="width:346px;height:200px;border:none;overflow:hidden;background:#FFF!important;" src="http://fabricator.do-forum.com/#fatopics"></iframe>
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
This will only change the background of the iframe, not the elements in the window. Once the window is loaded the background color is determined by the color of the body tag on the forum itself.MrMind wrote:Try this instead:
- Code:
<iframe style="width:346px;height:200px;border:none;overflow:hidden;background:#FFF!important;" src="http://fabricator.do-forum.com/#fatopics"></iframe>
body { background-color:#FFF; }