• How to Manually Change Your Password (for back-end access)

    Losing your PHP Melody admin password isn’t the end of the world. In this post we will help you overwrite your existing password in a matter of minutes.

    Reasons why you might need this tutorial:

    • forgot the darn password
    • someone changed it and forgot to tell you
    • retrieving the password via the “Forgot your password” page fails

    Before you begin make sure you have the login details for your cPanel, Plesk or your hosting management console.

    If you’re already familiar with MySQL simply execute this MySQL query:

    UPDATE `pm_users` SET `password` = MD5('newpassword') WHERE `pm_users`.`id` = 1;

    Replace “newpassword” with your desired password.

    Otherwise, log into your cPanel/Plesk account:

    1. Find the phpMyAdmin link which will take you to your MySQL databases
    2. Select your PHP Melody MySQL database
    3. Select the “pm_users” table from all of PHP Melody’s tables
    4. Click on the top left “Browse” tab to see the contents of the “pm_users” table
    5. Go to the first listing (ID number 1), normally the “admin” account and click the edit button (the pencil)
    6. Once on the edit page for the admin account, type in your new password in plain text
    7. Make sure you select “md5 from the functions column (on the left of your password)
    8. Hit the “Go” or “Save” button and try your new password by accessing your PHP Melody admin area.

    We also have a quick video on the entire procedure:

  • How to Add a New Link In the Header Menu

    Including a new link into your PHP Melody header menu (see image) is very easy.

    All you have to do is open the template file responsible for the header and include the HTML for your new link.

    In the following example we’re going to include a new link, named ‘Special Link‘ which points to https://www.phpmelody.com/. Here’s how to do it.

    1. Open your /templates/[current theme folder]/header.tpl file with a plain-text editor.
    2. Search for the following code:
      {if $smarty.const._MOD_ARTICLE == 1}
    3. Add your new link right after the closing {/if} like so:
      <li><a href="https://www.phpmelody.com/" class="wide-nav-link">Special Link</a></li>

    Here’s how the code should look:

     

    That’s it. Upload the updated header.tpl file back to your PHP Melody installation and the new link will appear in the header menu.

     

  • Verified Channels

    Users with the “Verified Channel” mark represent a trusted source of content. The verification process or criteria depends on a per-project basis and should be handled by the site’s administrator.

    “Verified channels”  display a checkmark icon to the right of the channel name, and “Verified” appears in a popup if you point your cursor at it.

    In addition to having the verification badge applied to their profile/channel, verified users can also be allowed more freedom when it comes to publishing videos.

    For example, users which own a “verified channel” can have their submissions automatically approved even if PHP Melody is configured to require manual approval of all user submitted content.

    This feature was introduced in PHP Melody v2.6 and is part of the “Social Module”.

  • Featured Channels

    The “Featured Channel” option allows you to promote and provide a higher visibility to certain accounts form your user base.

    Depending on the project’s requirements, the “featured channel” mark can be used to:

    • Highlight accounts with high quality content form your user base
    • Promote accounts in exchange for payment
    • Organize the content based on the type of user
    • Target specific users based on their interests (in development)

    This feature was introduced in PHP Melody v2.6 and is part of the “Social Module”.

  • Show hidden files on a Mac

    Update: You can download an app (Funter) to do all the work for you.

    PHP Melody includes several files beginning with a dot (e.g. .htaccess). If you’re using a Mac OS to upload the PHP Melody into your server, you’ll have to first make the .htaccess files visible in Finder or your FTP app.

    To show hidden files, first open up the Terminal app. If you’ve never used this, it’s here:

    Appli­cations → Utilities → Terminal

    A quick note before you do anything: using Terminal without knowing what you’re doing can really screw up your computer. It’s not unsafe to do, you just have to be very careful not to type in any commands that you don’t intend to. As such make sure you’ve read the code below carefully and have typed it exactly as written! You have been warned.

    Okay now, right after the dollar sign you can go ahead and type or paste in the code below, and press enter.

    defaults write com.apple.finder AppleShowAllFiles TRUE

    Nothing will happen yet, because you need to restart Finder for the changes to take effect. To do this, you can either press option+command+esc to open the Force Quit Appli­cations window, select Finder from the list and hit “Relaunch”, or simply type in the code below in the Terminal window, and again press enter.

    killall Finder

    If you typed those lines correctly, your desktop icons should disappear for just a second while Finder restarts and the code in your finder window will look like the image screenshot below.

    Now any hidden files on the system should be visible. If you’re not seeing the file you expected, it’s possible that your FTP client is not configured to pull down those hidden files, so you may need to check those settings also. And remember, deleting any system files can break stuff on your computer—if you’re going to go through this process, make sure you’re only editing stuff you know is pertinent to your site, like the .htaccess file.

    [Source]