The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
5 posters

    "Recent topics" widget embedding?

    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 10:01

    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.
    AngelaHolmes
    AngelaHolmes
    Forumember


    Male Posts : 202
    Reputation : 8
    Language : English
    Location : England

    Solved Re: "Recent topics" widget embedding?

    Post by AngelaHolmes Sun 31 Aug - 10:12

    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.

    Hello,

    are you wanting to add a Forumotion widget to a web site?
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 11:55

    Yes, to my shopify website.
    AngelaHolmes
    AngelaHolmes
    Forumember


    Male Posts : 202
    Reputation : 8
    Language : English
    Location : England

    Solved Re: "Recent topics" widget embedding?

    Post by AngelaHolmes Sun 31 Aug - 12:01

    Fabricator wrote:Yes, to my shopify website.

    I don't think that's possible forumotion widgets are only for forumotion.
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 12:06

    I saw its possible with Phobb2 template...
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 12:08

    Sorry phpBB2
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: "Recent topics" widget embedding?

    Post by TheCrow Sun 31 Aug - 12:09

    Hello,

    You could copy the html code in the template for that and paste it in a html part on your site and then add the widget via the elements in the template.



    "Recent topics" widget embedding? Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 12:27

    Hi,
    Thanks for your prompt reply.
    Can you pls explain where i can find the HTML of the "recent topics"?
    Pasting the HTML in my site is the easy part for me :-)
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: "Recent topics" widget embedding?

    Post by TheCrow Sun 31 Aug - 12:41

    Go to your forum:
    Admin Panel >> Display >> Templates >> Portal >> mod_recent_topics
    That is the hmtl code for the recent topics widget.



    "Recent topics" widget embedding? Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 14:19

    Ok, not a problem. Copy&paste done. Now how can I add the widget via the elements in the template?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Recent topics" widget embedding?

    Post by SLGray Sun 31 Aug - 16:28

    Can you create widgets on your other site?  If you can, add the code to the widget.



    "Recent topics" widget embedding? Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics" widget embedding?

    Post by Ange Tuteur Sun 31 Aug - 18:14

    MrMind wrote:Go to your forum:
    Admin Panel >> Display >> Templates >> Portal >> mod_recent_topics
    That is the hmtl code for the recent topics widget.
    If this applied on another website, which is not Forumotion, most of the variables will not format.

    Fabricator,

    Could you please provide a link to your forum ? You can use a trick with iframes to display a certain element, however, I will need your forum URL.

    Thanks
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 19:19

    Hi Ange,
    Thanks for your reply.
    My forum adresss: http://fabricator.do-forum.com/forum

    Thank you!
    Amir.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics" widget embedding?

    Post by Ange Tuteur Sun 31 Aug - 19:27

    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';
     Â }
    })});

    Then just paste this in a widget on your website :
    Code:
    <iframe style="width:346px;height:200px;border:none;overflow:hidden;" src="http://fabricator.do-forum.com/#fatopics"></iframe>

    You can adjust it's width/height as you wish from the style attribute.


    Last edited by Ange Tuteur on Sun 31 Aug - 19:56; edited 2 times in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Recent topics" widget embedding?

    Post by SLGray Sun 31 Aug - 19:32

    I believe he wants to place this on a site not hosted by Forumotion.



    "Recent topics" widget embedding? Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics" widget embedding?

    Post by Ange Tuteur Sun 31 Aug - 19:41

    SLGray wrote:I believe he wants to place this on a site not hosted by Forumotion.
    That's what I'm attempting with the iframe.

    I'll use a hash in the window url (#fatopics) which will trigger a script on the forum to replace the body contents with only the widget. ( for example ) If done correctly it should work on other websites since it's a window to the forum.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Recent topics" widget embedding?

    Post by SLGray Sun 31 Aug - 19:43

    Oh sorry, I thought you misunderstood.



    "Recent topics" widget embedding? Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics" widget embedding?

    Post by Ange Tuteur Sun 31 Aug - 19:51

    It's fine. ^^

    I did make a small mistake, if you clicked the links they would open in the iframe. I edited the script in my last post so they would open in a new tab, but I'll post it below also.

    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';
     Â }
    })});
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 20:03

    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...
    "Recent topics" widget embedding? Screen10
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics" widget embedding?

    Post by Ange Tuteur Sun 31 Aug - 20:23

    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...
    "Recent topics" widget embedding? Screen10

    Have you followed this step ? I do not see any script sources on your forum from JS management.

    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';
     Â }
    })});
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 20:29

    Hi Ange,
    As far as i understand I followed you step after step...
    "Recent topics" widget embedding? Screen11
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: "Recent topics" widget embedding?

    Post by TheCrow Sun 31 Aug - 20:32

    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 homepage
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 20:35

    Ange and Mr.Mind - Thanks a lot!!!
    it works like a dream :-)
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: "Recent topics" widget embedding?

    Post by TheCrow Sun 31 Aug - 20:40

    Fabricator wrote:Ange and Mr.Mind - Thanks a lot!!!
    it works like a dream :-)
    All credits should go to Ange. I didn't do anything! Wink
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 20:48

    BTW... just another small question :-)
    How can I change the color of the Iframe window?
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 20:51

    I mean the background color of the Last topics Iframe like in this pic:
    "Recent topics" widget embedding? Screen12
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: "Recent topics" widget embedding?

    Post by TheCrow Sun 31 Aug - 20:56

    Replace the code Ange gave you with this one:
    Code:
    <iframe style="width:346px;height:200px;border:none;overflow:hidden;background:#FFF;" src="http://fabricator.do-forum.com/#fatopics"></iframe>
    Then change the background:#FFF; with the color you want.
    avatar
    Fabricator
    New Member


    Posts : 17
    Reputation : 1
    Language : English

    Solved Re: "Recent topics" widget embedding?

    Post by Fabricator Sun 31 Aug - 21:23

    Hi, just tried it..
    I changes the color for 1 second and then goes back to original color,light blue...
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: "Recent topics" widget embedding?

    Post by TheCrow Sun 31 Aug - 21:44

    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>



    "Recent topics" widget embedding? Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics" widget embedding?

    Post by Ange Tuteur Sun 31 Aug - 21:53

    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>
    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.

    I checked your forums sheet and didn't see this color. Try adding this rule to the stylesheet on your forumotion forum :
    Display > Colors > CSS stylesheet

    Code:
    body { background-color:#FFF; }

    Change #FFF to any color you want.

      Current date/time is Sun 22 Sep - 19:33