1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Allow users to choose homepage

Discussion in 'WordPress' started by Divvy, Sep 13, 2017.

  1. #1
    Hello guys,

    Is there any plugin that allow users to choose the page that they want to see as homepage?

    Let me try to explain what I'm looking for:

    I have a wordpress site with "SFW" posts in homepage. (/)
    And I have a 2nd page with "NSFW" posts. (/nsfw)

    What I'm looking is an option for users to choose the page they want as homepage, something like "on/off", example:

    ON: SFW content (default)
    OFF: NSFW content

    Can someone help me please? :)
     
    Divvy, Sep 13, 2017 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    That wouldn't be hard to write if you can't find one.

    Get a custom field plugin to create a field against someone's profile, put a wee form on the sidebar letting people say "make this my homepage" and save the value to whatever spot that custom field goes to. Then when they come to the site the plugin detects if they've requested a specific page, if not it bounces then to the saved page.
     
    sarahk, Sep 13, 2017 IP
    Divvy likes this.
  3. Divvy

    Divvy Well-Known Member

    Messages:
    781
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Hey Sarahk,

    Thank you for your reply and idea.

    What I'm looking for is something similar to this Safe Mode ON/OFF in https://www.liveleak.com/ website.
    Do you think I can do the same with custom fields?
     
    Divvy, Sep 14, 2017 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Yep, that would be a doddle.

    Not logged in, safe mode is on
    logged in, read that custom field and change the content accordingly - all done by ajax, not even a reload.
     
    sarahk, Sep 14, 2017 IP
    Divvy likes this.
  5. Divvy

    Divvy Well-Known Member

    Messages:
    781
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Thank you Sarahk :)
     
    Divvy, Sep 19, 2017 IP