SMF - Where do I put the PHP-Inlcude

Discussion in 'Integration' started by mcitron, Jun 13, 2009.

  1. mcitron

    mcitron New Member

    Joined:
    Jun 10, 2009
    Messages:
    12
    Ok. so I have the PMF plugin working, now I want to protect the SMF forum.

    Where do I put the PHP inlcude tag in SMF?

    Help as to which PHP file would be awesome!

    Thanks guys
  2. mcitron

    mcitron New Member

    Joined:
    Jun 10, 2009
    Messages:
    12
    Anyone? I do not want to use HTAccess files...
  3. zenpig66

    zenpig66 aMember Pro Customer

    Joined:
    Jan 1, 2009
    Messages:
    72
    again, not sure where you'd put in SMF since I don't use it but it would more than likely be placed right before the <html> tag in your header. http://manual.amember.com/PHP_Include. I've played with SMF in the past and I think it's your themes index.template.php file where you'd want to put it. I believe it could go as one of the first lines in the function template_main_above() section as long as it is before the html tag. If that doesn't work try placing it in the function right before it.

    With forums I personally think if the forum and the amember plugin for the forum supports groups that is the way to go where you set up a group within SMF that has the permissions you want and once payment made via amember the user is placed within that group...when they are expired in amember it then removes the user from the paid group. Just suggesting that as a possible thing for you to look into if you are new to this and didn't realize you had that functionality. To each their own and I probably don't understand everything you intend to do with your memberships but I'd typically use php_include in a fashion designed more to protect content in a directory that contains downloadable files, images, etc. and the forum plugin to control group permissions to the forum itself when they are paid versus unpaid.

Share This Page