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

Unmaintained How to show a post in a page 1.0

I will teach you how to show a specific post in a XenForo page.

  1. Fuhrmann

    Fuhrmann Well-Known Member

    hgminh95 and Gabby like this.
  2. HenrikHansen

    HenrikHansen Well-Known Member

    I will use this get a text editor for my sites. Just install this addon and make threads "hidden" which you just use to maintain the content of your pages.
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Did that work ?
    Can you edit Xenforo's native Pages (HTML) from within xenforo Default Post editor ?
    I assume you still need to use HTML !
    When you edit the page .... does it display fine ?
  4. HenrikHansen

    HenrikHansen Well-Known Member

    1. Yes. You can edit the Xenforos native pages from with xenforo default Post editor.
    2. You insert HTML once when you create the page, after that you edit the post you have set up the be content for the page
    3. Not worked much yet, but a couple of test sites shows.... fine (i.e. the post).
  5. ddmmh

    ddmmh Well-Known Member

    I really want to use this but im having some issues.

    I set everything up as explained in the guide. For PostID I use 10564 which is @ http://mmazone.com.au/community/threads/ufc-151-jones-vs-henderson-cancelled.10564/

    For some reason it doesnt show that post, I did a search of the post title it shows and it points to 10081 @ http://mmazone.com.au/community/thr...to-psycho-nickname-against-bryan-baker.10081/

    Here is the link to the test page - http://mmazone.com.au/community/pages/Test/

    postid is set to 10564 in the index.php script so I have no idea why this wont work, any ideas? thanks
  6. ragtek

    ragtek Guest

    i'm getting

    You must be logged-in to do that.
  7. ddmmh

    ddmmh Well-Known Member

    Something really weird is happening with that page. I cant get anyone to view it except me(admin) I even created a test account and it still doesnt allow viewing, ive even tried setting the permissions on the page with no luck. Its weird because I have other pages that are viewable by anyone but whenever I try to access the page with anyone except my admin account I get a permission error.
    MMA Zone - Australia's MMA Community - Error
    You do not have permission to view this page or perform this action.
  8. ddmmh

    ddmmh Well-Known Member

    What is also weird is that both the following links go to the same page

    The showapost one was created months ago when I first tried this add-on, dont even remember if i got it working or not, yet I cannot find this 'showapost' page in my ACP node listing at all so this 'ghost' page may be causing issues?

    I think I know why I get the permission error. Even though post ID is to a public post, since its linking to the wrong post(which is private) that is why(i assume) I am getting the permission error. Still dont understand why its pulling the wrong post. Just tried this on my dev board with no issues at all
  9. RobParker

    RobParker Well-Known Member

    Is it possible to show a post in a notice? That'd be VERY useful.
  10. Itworx4me

    Itworx4me Well-Known Member

    I have many pages that use this addon. If you need help in setting it up let me know?
    ddmmh likes this.
  11. ddmmh

    ddmmh Well-Known Member

    Thanks mate :), but I actually had no issues installing, everything is setup as it should be. I may even have to contact the XF devs about this because it works fine on my DEV board.

    But just to make sure im not screwing anything up ill post a screenshot so you may clarify if I did anything wrong if you dont mind?

    Page in Question - http://mmazone.com.au/community/pages/show-a-page/

    Below image is the setup of index.php file for my main site, as you can see I have a post id of 10564 which is @ http://mmazone.com.au/community/threads/ufc-151-jones-vs-henderson-cancelled.10564/

    But for some weird reason it pulls post #10081 which is @ http://mmazone.com.au/community/thr...to-psycho-nickname-against-bryan-baker.10081/

    the permission issues I mentioned earlier was because post#10081 was private, its been made public now so everyone can see it.

    Also ive changed the config to another post# but it shows some other random post so its not just fixed on showing #10081

    So thats basically my issue, if no-one from here can help im going to have to contact the XF devs because this worked without issue on my dev site so im really confused :S

    Thanks for your time

  12. Itworx4me

    Itworx4me Well-Known Member

    The only thing that I can see is that you have embedded some videos in that post. I am not sure the addon supports this. I would ask the Developer of the addon for help on the embedded script.

  13. ddmmh

    ddmmh Well-Known Member

    Its only a picture not a video. Its not that its something else, thanks anyway ill have to contact the XF devs
  14. Digital Doctor

    Digital Doctor Well-Known Member

    Any other reports of post in a page ?

    Furry man.

    You still using this ?
    Creative. but sounds dangerous.
    Fuhrmann likes this.
  15. RobParker

    RobParker Well-Known Member

    Dangerous how?
  16. Digital Doctor

    Digital Doctor Well-Known Member

    seemed Too big and messy to have an entire page in a notice.
  17. RobParker

    RobParker Well-Known Member

    The contents of a post is no way like having an entire page in a notice...
  18. David Trefry

    David Trefry New Member


    I know this thread is old but I'm new to XenForo and am starting at the bottom, sort of.

    I tried this exercise and it worked no problem. I then wanted to delete my test post, which I did with the Permanent option selected. I then entered another post and tried ShowAPost again and it can't find the new post. I can see the new post, edit it, etc, but the ShowAPost callback can't find it in the database, I guess. Both cases I hardcoded it to be post #1.

    Maybe it's the wrong post number? I tried post #2 just in case #1 was used up by the first permanently deleted post? I don't know.

    Can you tell me what happened and how to correct it?

    Thanks a lot.

    David T.
  19. ExpertPixels.com

    ExpertPixels.com Well-Known Member

    I think this is not so much hard coded but the tutorial is set to render the post called "Show a Post" by the looks of it.
  20. David Trefry

    David Trefry New Member

    I understand the hardcoded post number is just for demo purposes.
    My question is why, if a post is made and is displayed successfully by this example, and then that first and only post is deleted by the admin using the permanent option, then another post is made and you do a ShowAPost on that 2nd post, it is not displayed. the callback function fails to find it in the database.
    I changed the post number from 1 to 2 to 3, etc, and it still did not find the 2nd post.

Share This Page