Code Monkey home page Code Monkey logo

joomla-contactinfo-module's Introduction

ContactInfo Joomla Module

The ContactInfo Joomla Module shows the selected attributes of a contact in Contact component.

Contact Name - Contact Name can be selected from the List of Contacts added in the Contacts Component. Name of the contact is a mandatory field.
Name Hyperlink - User can select whether the Name should be hyperlinked to the original contact or not.
Position - Possition of the Contact.
Address - Address of the contact including suburb, state & country.
Postcode - Postcode of the contact.
Telephone - Contact number of the Contact.
Email - Cloaked Email address of the user. (Mailto)
Email Address Visible - User can select whether he/she wants to set their email address visible to outside or not.

joomla-contactinfo-module's People

Contributors

lasinducharith avatar

Stargazers

 avatar pepperstreet avatar

Watchers

James Cloos avatar  avatar

joomla-contactinfo-module's Issues

View file PHP Formattinng

Hi Lasindu:

You might consider doing your outputs in default.php a bit differently, mainly for code style / readability.

Instead of:

 <?php
   if ($position_attribute == "1") {
            echo $dataContact->con_position;
            ?><br>
                <?php
            }
?>

Consider this alternative:

<?php if ($position_attribute == "1") : ?>
<?php echo $dataContact->con_position; ?>
<br>
<?php endif; ?>

The reason is, because this allows you to then add HTML around the PHP elements a bit easier. For example:

<?php if ($position_attribute == "1") : ?>
   <div class="readon">
      <?php echo $dataContact->con_position; ?>
      <br>
   </div>
<?php endif; ?>

You'll find in Joomla when we do view outputting this is a fairly common method of writing if-statements in views.

Use more of jdatabasequery

I'd like to see you use more of jdatabasequery in your query. That is separate it out into

$query->select('')

and so on, using chaining. For this query id doesn't matter so much but for more complex ones it will. Plus always use $db->quote() and $db->quoteName() where appropriate.

Nice job!

Also think about making country optional in the address block.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.