Archive for the ‘ CMS ’ Category

Contact Form 7 options

When using Contact Form 7 in WordPress, you may need to add a hidden identifier, like the submitters IP address.

This is easily done by adding [_remote_ip] into the email template.

 

More tags here: http://contactform7.com/special-mail-tags/

Jump to top of iframe

When you want to have the page jump to the top of an iframe upon clicking “Next” or “Submit”, etc, you can easily use this code:

<iframe width="620" scrolling="no" height="2500" frameborder="0" style="background-color: transparent; overflow: hidden;" allowtransparency="true" src="http://www.website.com" onload="window.parent.parent.scrollTo(0,0);"></iframe>

WordPress new user

Hello USERNAME,

To access the back-end for editing and updating:

  • Admin: http://events.ewea.org/annual2012/wp-admin/
  • Username: USERNAME
  • Password: UN12345

What do do next?

Online documentation

There is a world of excellent documention for wordpress.

 

Kind regards,

Jason Bickley

WordPress Plugins for EWEA

Here is a list of plugins I am using for EWEA WordPress websites..

  • Contact Form 7
  • FD Feedburner Plugin
  • Google Analytics for WordPress
  • Google XML Sitemaps
  • PHP Execution
  • Random Text
  • Redirection
  • User Role Editor
  • W3 Total Cache
  • WordPress SEO
  • WP-FileManager
  • WP Realtime Sitemap
  • WPtouch
  • Yoast Breadcrumbs

Google Syntax Highligher

I found a new plugin today for WordPress; “Google Syntax Highlighter”.
It formats your source code pastings on the fly.

Here’s a test below:

<?php

$fp = fopen("$datafile","a"); // Open datafile

if(!$fp) {
 echo "Error: Cannot open file.";
 exit;
}

fwrite($fp, $fname."|$|".$lname."|$|".$org."|$|".$country."|$|".$date."|$|".$ipadd."|$|".$usagent."\r\n");
fclose($fp);

header("Location: http://" . $_SERVER['SERVER_NAME'] . "/offshore/db/thanks.php"); /* Redirect browser */
exit;
?>

Installing ResourceSpace (aka The Photolibrary)

  1. Create the directory in which the application will reside
    cd /var/www/html/sites/
    mkdir photolibrary

  2. Create the credentials file and store it
    #cat > /root/files/photolibrarycredentials

    username=Photolibrary
    password=PhotoLibrary67
    domain=WIND

  3. Download ResourceSpace from http://www.resourcespace.org/download.php
    cd /root/downloads/resourcespace/
    wget http://www.resourcespace.org/downloads/ResourceSpace_XXXXXXXX.zip

  4. Unzip ResourceSpace and move all the files to the designated directory
    unzip -q -d resourcespace ResourceSpace_XXXXXXXX.zip
    cp -a resourcespace/* /var/www/html/sites/photolibrary/

  5. Change ownership of photolibrary directory and files
    chown -R apache:apache /var/www/html/sites/photolibrary

  6. Create the file mount (mount the Windows Share as a Linux subdirectory)
    mount -t cifs //srv-01/PhotoLibrary -o credentials=/root/files/photolibrary/credentials,uid=48,gid=48,rw /var/www/html/sites/photolibrary/filestore
    Updated 14 Dec 2015
    mount -t cifs //EWEANAS01/PhotoLibrary -o credentials=/root/files/photolibrary/credentials,uid=48,gid=48,rw /var/www/html/sites/photolibrary/filestore

    Add this also to /etc/rc.local so it mounts the directory automatically on reboot.

  7. Create a database in PhpMyAdmin
    photolibrary

  8. Create a user account in PhpMyAdmin and give permissions to the photolibrary database
    Username: photolib_user
    Password: 5A5wdpqG

  9. Open a browser and navigate to http://photolibrary/
  10. Enter the database details
  11. Now log in to the photo library from
    http://photolibrary/login.php
    Default username/password = admin/admin

  12. Click on “Admin User” (top right corner) to change admin password
  13. Click on “Team Centre” then “Manage Users” to add new users.
  14. Click on “Upload” and try uploading a photo to see if it works.

That’s all there is to it!

More information is here: wiki.resourcespace.org

Typo3 new user

Dear USER,

I have created an account for you on Typo3, our official content management system.

Please log into the WEBSITENAME website back-end from the following URL:

  • http://URL

Your username and password are as follows:

  • USERNAME
  • PASSWORD

The first thing I recommend you do is change your password to something more secure:

Enter your new password in the following screen:

For more information on Typo3, please visit http://www.typo3.org
For EWEA-specific help, please visit http://intranet/howto and look for items mentioning Typo3.

If you have any questions or concerns, please do not hesitate to ask me.

Kind regards,

Jason Bickley

EWEA Web Manager