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

Does XF allow hiding of all posts except the 1st one?

Discussion in 'XenForo Pre-Sales Questions' started by steve_aust, Sep 17, 2015.

  1. steve_aust

    steve_aust Member

    Hi XF users,
    I am currently using VBulletin.
    I currently can hide all posts in a thread, except the 1st post (as a means to increase registrations)
    In other words, anyone can read the 1st post in a thread, but subsequent posts are each shown to guests as "This post hidden to guests - sign up and become a member to read (free to register)". Members can of course see the content in the post(s).

    So if there are 4 posts in a thread, anyone (i.e. guest & members) can read the 1st post (the starting post) but guests see "Post hidden to guests etc." three times, for each subsequent post. Guests can however still still see the person making the post, just not the content.

    I hope I have explained this clearly, it really made a difference to our registrations, as people get drawn into an interesting thread title / 1st posts, and then want to read subsequent responses / answers, so they register.

    Is this in the core with XF 1.5?
     
  2. borbole

    borbole Well-Known Member

    No, this is not in the core with xf. It will require a custom mod.
     
  3. steve_aust

    steve_aust Member

    Thanks Borbole, I guessed as much.
    I guess I now have an incentive to learn XF's templating system / OOP / MVC /Zend etc. and have a crack at the mod.
    On first glance, it sounds like an easy mod.
    i.e. when displaying a thread (like this one) check if guest or member logged in and display post (for member) or alternatively display "sign up etc." message (for guest/robot).
    I could do the mod if it was simple procedural PHP, but I've seen some of the OOP-code in the programmer forums here on XF.com and I can see there is a very steep learning curve!
     
  4. steve_aust

    steve_aust Member

    --------------------------------------------------------------------------------
    Hi Guest!
    This post is hidden to guests, but fully viewable to members.

    Sign up now to read. (Its free, quick & easy!)
    --------------------------------------------------------------------------------
    [​IMG]
     
    Last edited: Sep 17, 2015
  5. Cyb3r

    Cyb3r Well-Known Member

    It would only require a simple modification to the message template, so you don't have to worry about that, xenforo is more flexible than any script I ever used.
     
    steve_aust likes this.
  6. steve_aust

    steve_aust Member

    Thanks Cyb3r, you have given me some confidence to consider buying a copy of XF and peek at the message template, and do the mod.
    How hard can it be?
    Famous last words...
     
  7. Cyb3r

    Cyb3r Well-Known Member

    It's as simple as replacing a text in a txt file.
     
  8. Snog

    Snog Well-Known Member

    steve_aust likes this.
  9. Raitsa

    Raitsa Well-Known Member

  10. Snog

    Snog Well-Known Member

  11. steve_aust

    steve_aust Member

    Wow, fast work snog!
    Your "mod" looks like it will do exactly what I was asking about. And yes, I wanted the mod to be "forum wide" (all forums)
    So brilliant work.
     
    Snog likes this.
  12. steve_aust

    steve_aust Member

    Andy's mod looks great too, with option to select forums to mod. But I will peek at snog's code first, as it probably is simpler to follow.
     
  13. Snog

    Snog Well-Known Member

    In my case, it's a simple template modification and a couple of phrases. The best place to see it all at once would probably be in the install XML itself.
     
    steve_aust likes this.
  14. AndyB

    AndyB Well-Known Member

    This is an important feature. You only want to use this on a few forums to entice new membership. The reason is that robots are also excluded and you don't want your forum not being indexed.
     
    steve_aust likes this.
  15. steve_aust

    steve_aust Member

    AndyB likes this.

Share This Page