1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Other [Solved]Twitter cards for xenforo.

Discussion in 'Resource and Add-on Requests' started by zadow, Mar 22, 2015.

  1. zadow

    zadow Member

    Hello all

    I spend alot of time promoting my forum on twitter.
    I Like the platform, and how fast you can get tons of visitors.

    So i setup a feed with twitterfeed, to auto post to twitter.

    Its farly easy

    i explain the steps

    You add the rss link to sections from diserered forum rss that you would like to auto cast to twitter


    then next step select twitter, then setup how freg. it should be sync.

    Only problem is, that when i member post, it will auto cast that to twitter also.
    Good thing is that alot of visitors visit.

    So i dig into twitter apps some more.

    And the perfect thing would be a so called twitter card.

    It looks nicer and have support for media of various formats.

    here is a example using a website that have twittercards.
    I have a github account and when posting link to a reposotory on twitter, it shows a nice card of the tweet.


    Would be cool to have a option to have a card for our forum, with a card of new threads, made with a nice logo or video of the first post.

    What you say, anyone up for the challenge :)
  2. batpool52!

    batpool52! Well-Known Member

    zadow likes this.
  3. zadow

    zadow Member

    yes exactlly.

    Is it automated, or did you somehow intregrated it into the twitter button.
    And how did you do it :)
  4. batpool52!

    batpool52! Well-Known Member

    zadow likes this.
  5. zadow

    zadow Member

    well it looks nice.
    But one thing i dont fully understand.
    Does the twittercard only apply to front page tweet button ?
    i made a tweet front front page forum and it works , but if i tweet from a thread it dosent show ?
    Any idea
  6. batpool52!

    batpool52! Well-Known Member

    Was the thread link tweeted before you added the twitter meta tags?
  7. zadow

    zadow Member

    no i added meta then first tried post tweet forum, that worked.

    Then went into a thread, and tweeted from that and that shows normally.

    you see the meta within code frontpage page http://www.techbliss.org/
  8. batpool52!

    batpool52! Well-Known Member

    <meta name="twitter:url" content="http://www.techbliss.org" />
    should be the page location, not home page location ;)
  9. zadow

    zadow Member

    Not sure i understand.
    I see you have a page other than homepage yourself, but how would i know what page to add.
    So if i make a new thread i have to add that link to the meta ?

    Maybe i misunderstood the twittercard uses

    I wanna show the card each time i use the twittercard from anywhere on the forum.
    Last edited: Mar 22, 2015
  10. batpool52!

    batpool52! Well-Known Member

    Try replacing the value inside twitter:url tag with this
    zadow likes this.
  11. zadow

    zadow Member

    never been good with PHP like this ? :whistle:
    <meta name="twitter:url" content={$requestPaths.fullUri} />
  12. zadow

    zadow Member

    okay if i copy link from forum link and paste into tweed on twitter it works.
    If i use xenforo's own tweet button i doesnt show card

    Appenrently it works also wit xenfor tweet button, It just took a minut before it appered correctly.
    All Works now.

    Thx for the help m8 (y)
    batpool52! likes this.
  13. RandyRS

    RandyRS New Member

    Hi, could you please help with this tags ?
    I want to change the value.


Share This Page