Customizing the Message


Some areas of PHP-Nuke are too darn difficult to customize, but that's the price for localization. See, all of the text strings in PHP-Nuke modules are pulled from language-specific files, which PHP-Nuke grabs based on the current user profile. If you look at your site's files and folders, you can browse to modules\Recommend_Us\language, and you'll see the 30-odd files that come with PHP-Nuke.

Use a text editor (like Windows Notepad) to open whichever language you understand. Fortunately, the Recommend Us module uses very few text strings, so the language files aren't huge; you should be able to easily find the strings used to create the "come check us out" message. Here are the contents of the English language file for this module:

 define("_SEND","Send"); define("_FYOURNAME","Your Name:"); define("_FYOUREMAIL","Your E-mail:"); define("_FFRIENDNAME","Your Friend's Name:"); define("_FFRIENDEMAIL","Your Friend's E-mail:"); define("_HELLO","Hello"); define("_YOURFRIEND","Your Friend"); define("_RECOMMEND","Recommend this Site to a Friend"); define("_INTSITE","Interesting Site:"); define("_OURSITE","considered our site"); define("_INTSENT","interesting and wanted to send it to you."); define("_FSITENAME","Site Name:"); define("_FSITEURL","Site URL:"); define("_FREFERENCE","The reference to our site has been sent to"); define("_THANKSREC","Thanks for recommending us!"); 

The final e-mail message has a subject of Interesting Site, and the e-mail message reads something like "User's name considered our site interesting and wanted to send it to you," along with the site's name and URL. Frankly, odds are most people's spam filters will catch this e-mail and block it anyway (it contains phrasing frequently used in spam), offering yet another reason to just disable the Recommend Us module and be done with it.



    PHP-Nuke Garage
    PHP-Nuke Garage
    ISBN: 0131855166
    EAN: 2147483647
    Year: 2006
    Pages: 235
    Authors: Don Jones

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net