How to add an option to privacy settings

Discussion in 'PHP' started by chrisj, Sep 23, 2014.

  1. #1
    I'm working with the PHPmotion script (http://demo.phpmotiontemplates.com/default/),
    and I am trying to modify the member section to allow the user/member the ability to block their email compose page if they choose to.

    I was directed to "add the option in the privacy template file (and add new column to the privacy table in the database).

    So, to begin with I'm hoping to get some help here with an example of what code I'd need to
    use to add the option into the file (attached). Any guidance will be appreciated.
     

    Attached Files:

    chrisj, Sep 23, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    You need to look at the code in that file, and find one of the <tr>s with content already present in the file - for instance the "Public playlists" - and just copy that - you will have to create new variables, it seems - the variable for that particular entry is [var.publicplaylistyes] and [var.publicplaylistno] - you'll probably have to add some sort of variable containing these, or maybe it picks it out from the table - I dunno, I haven't looked at the script code. The code in that file, however, is horrible. And I mean really horrible. I still suggest finding something else than PHPmotion - it seems to be at least 10 years old, looking at the code.
    Second - can you stop pasting links to files? Just paste the code directly in your posts, using the [ code ] -bbcodes (without the spaces).
     
    PoPSiCLe, Sep 23, 2014 IP