Repost.us

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Repost.us

jaymichaeljones
This post was updated on .
Hey there,

    I'd like to start using Repost  to post syndicated content there for my news page.  When I try this, however, it does not appear to work.  It shows only the beginning of the article.  I believe this is due to the fact that there is code that has to be placed in the "head" section.  

How might I go about embedding HTML posts from REPOST on my page?

Here is the code that needs to be added.

<script src='http://1.rp-api.com/rjs/repostus.js' type='text/javascript'></script> <meta content='f8781bfbc96a8b06423e0f0d60af18e0' name='RepostUsAPIKey' />

Reply | Threaded
Open this post in threaded view
|

Re: Repost.us

Pedro
Please, take a look at your "HTML" macro. There you can add code at the head and the at beginning of your page.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Repost.us

jaymichaeljones
I was instructed to place this code in the footer.  thanks for the help.  I'm having a hard time finding the respective HTML macros.
Reply | Threaded
Open this post in threaded view
|

Re: Repost.us

GregChapman
jaymichaeljones wrote
I was instructed to place this code in the footer.  thanks for the help.  I'm having a hard time finding the respective HTML macros.
1. Go to your forum and at the bottom of the page click "Edit this page"
(Takes you to the NAML editor page)

2. Click the "Cog Wheel" icon.
(Opens a menu that includes "Search macros")

3. On the search Macros page, enter "html" in Search field, ensure the option "Macro by name" is selected, and click "Search" button.

This will find the one macro "HTML" which is the one that generates the basic shell to your forum pages.

(Pedro will correct me if I'm wrong.)
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Repost.us

Pedro
That's right. Here is the end of the html macro:
</body>
    </n.html_impl>
</macro> 
I guess you should add the code just before the ending body tag, </body> .
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Repost.us

jaymichaeljones
Hmmm. I got that far.  I'm getting the following error:

 Error: parse exception in custom_tweak:html - invalid char: ' ' at line 18
 in custom_tweak:html:18

What might this mean?
Pedro <Nabble> wrote
That's right. Here is the end of the html macro:
</body>
    </n.html_impl>
</macro> 
I guess you should add the code just before the ending body tag, </body> .
Reply | Threaded
Open this post in threaded view
|

Re: Repost.us

jaymichaeljones
This has been resolved.  I'm embarrassed to say, I had forgotten to change my permissions to allow for the use of script prior to having tried to add this one.

I don't need the tweak code, the normal embed code works just fine in HTML mode.