Just The Facts

Pages

  • Home
  • Joomla
  • PHP
  • .Net , C# & Firebird
  • Links
Showing posts with label joomla. Show all posts
Showing posts with label joomla. Show all posts

Wednesday, 16 December 2015

Joomla: Create Automatic Contacts with Contact Creator Plugin


Joomla allows you to automatically save new contacts in your Contact component when a user create an account.
In this tutorial we will show you how to use Contact Creator plugin to build a simple user's directory.

Enable the Contact Creator plugin

  • Go to Extensions > Plugins
  • Search for "User - Contact Creator" plugin
Contact Creator plugin joomla
  • Automatic webpage is optional
  • Select the category for new contacts
  • Set automatically publish the contact as yes
  • Set status as enable
  • Save when you’re done
Contact Creator plugin joomla

Test: register a new user

  • Go to the register area in your frontpage
  • Fill all the information such as username, email, password, etc
  • When you're done, click register button
Contact Creator plugin joomla
In your backend, go to Components > Contacts to confirm the new contact item was created automatically.
Contact Creator plugin joomla

Create a menu item

Let’s create a public page to display all the contacts
  • Go to Menus > Your menu > Add new menu item
  • In menu item type choose Contact > List contacts in a category
  • Select the category
  • Save when you're done
Contact Creator plugin joomla
Visit your public site to see the end result:
directory
 
Posted by bigmcgeek at 05:52 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla

Saturday, 12 December 2015

How to Create Tabs without Third Party Extensions for a Joomla Article

Joomla comes with native tabs support for single articles. The plugin that render this feature is the same that split an article into several pages.
In this tutorial we will show you how to add tabs in your articles with the Page break plugin.

The article

  • Go to Content > Articles > New
  • Add some content, in my example I’m using dummy text.
joomla page break plugin tabs
  • Put the mouse cursor at the beginning of the first paragraph, which later will be displayed as a tab.
  • Click Page break
joomla page break plugin tabs
  • Set a Page title
  • Add an Alias, such as some-text-with-no-spaces (optional)
  • Insert page break
joomla page break plugin tabs
Repeat the process to create a new tab. Put the mouse cursor in the end of the first set of content. For example: the second paragraph.
  • Set a title for the article
  • Save and close

The Page Break plugin

  • Go to Extensions > Plugins
  • Search “Content - Page Break”
joomla page break plugin tabs
  • Set Presentation Style as “tabs”
  • Be sure the plugin’s status is enabled
  • Save and close
joomla page break plugin tabs

The menu item

We need a link to display the article in frontend.
  • Create a menu item through Menus > Your menu > Add new menu item
  • Menu item type: Articles > Single article
  • Choose the article
  • Set a Title
  • Save and close
joomla page break plugin tabs

End result

Preview the article with tabs from the new menu item in your public site:
joomla page break plugin tabs
 
Posted by bigmcgeek at 01:03 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla

Saturday, 21 November 2015

Joomla database escape() and quote() functions

The escape() function is used to escape bad characters in order to protect against SQL injection.

The quote() function is used to quote strings, because different database dialects have different quoting characters.
So depending on the database system you use, Joomla will choose the appropriate quoting characters.
Posted by bigmcgeek at 04:40 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla, joomla component, joomla database

Friday, 20 November 2015

To add a filter to Joomla component side bar using options

To add a filter to Joomla component side bar  using options

$db   = JFactory::getDbo();
$query = 'SELECT mycolumn FROM MyTable';
$db->setQuery($query);
$rows = $db->loadObjectList();
$options = array();
foreach ($rows as $row) {
   $options[] = JHtml::_('select.option', "$row->mycolumn", JText::_($row->mycolumn));

}
JHtmlSidebar::addFilter('- Select mycolumn -','mycolumn', JHtml::_('select.options',$options,'value', 'text', $this->state->get('filter.mycolumn'), true));
Posted by bigmcgeek at 04:46 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla, joomla component

Monday, 12 October 2015

Free Joomla componenet to export contacts data to CSV file

Free Joomla componenet to export contacts data to CSV file.
click here for info and download
Posted by bigmcgeek at 01:15 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla, joomla component

Saturday, 10 October 2015

Reuse / Load a Model Anywhere in Joomla 2.5/3.x

Sometimes you may wish to reuse a certain function that resides in a model outside of your current scope. This helps you save time and reduce duplication. This can be achieved easily by adding the following codes.

Assuming you are trying to call a model "Categories" (/components/com_mycomponent/models/categories.php) belonging to com_mycomponent (this can be called from either within or outside of the com_mycomponent):

jimport('joomla.application.component.model');
JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_mycomponent/models');
$categoriesModel = JModelLegacy::getInstance( 'Categories', 'MyComponentModel' );

Now you can call its methods, example:

$categoriesModel->getCategories();
Posted by bigmcgeek at 03:13 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla, joomla component, joomla model

Friday, 9 October 2015

Multiple controllers in Joomla MVC component

Joomla basic tutorial and understand that the main controller is located under components/com_component/controller.php & other file is components/com_helloworld/helloworld.php which is pointing to controller.php file to execute the request. You create new controller folder and put all controllers in that folder


The main controller is typically used to do what you mention in your comment (render a view based on the view parameter, usually specified in the URL). In controller.php, the function that does this is called display(). So the following URL:

http://example.com/index.php?option=com_mycomponent&view=test

Will result in calling the display() function in controller.php and loads the view test in /views/test.

Subcontrollers, in the controllers folder, are generally used for CRUD tasks, but can be called easily by using a task URL parameter. For example:

http://example.com/index.php?option=com_mycomponent&task=test.process

Will result in calling the process() function in /controllers/test.php - notice the task parameter is <controllerName>.<functionName>
Posted by bigmcgeek at 19:18 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla, joomla component

Joomla Useful reference

Joomla Constant
https://docs.joomla.org/Constants


Component
Developing Joomla 3.x component
Posted by bigmcgeek at 04:12 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla

Friday, 14 June 2013

To remove the font size, search box & space above the header in joomla 2.5

To remove the font size, search box & space above the header in which they preside in the Beez 20 template there are 2 steps. All you must do is remove the following from the index.php tempate file:

<div id="line">
<div id="fontsize"></div>
<h3 class="unseen"><?php echo JText::_('TPL_BEEZ2_SEARCH'); ?></h3>
<jdoc:include type="modules" name="position-0" />
</div>

And then in the CSS folder you must edit the "layout.css" file.
add
#header
{margin-top: -60px;}
Posted by bigmcgeek at 23:01 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla

Remove the font resizer from joomla 2.5 site page header

Go to  Extensions > Template Manager .  Then click on the templates link (see image)


Now click on the "Beez_20 Details and Files" link


Next click on the "edit main page template" link

Now you are editing the index.php file of "beez_20"  template. search for the following code
<div id="fontsize"></div>
Remove or comment it out like this
<!-- <div id="fontsize"></div> -->
When done, Save the file. This is how you can remove the font resizer very easily from the top of joomla 2.5 beez 2 template.
Posted by bigmcgeek at 22:43 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: joomla
Older Posts Home
Subscribe to: Posts (Atom)

Advertisement

Popular Posts

  • Opportunistic Locking & SMB2
    What is Opportunistic Locking? Opportunistic locking (oplocks) is a Windows-specific mechanism for client/server databases to allow multip...
  • c# - TextFieldParser
    using Microsoft.VisualBasic.FileIO; string csv = "2,1016,7/31/2008 14:22,Geoff Dalgas,6/5/2011 22:21,http://stackoverflow.com,\"...
  • Network discovery stays off in Windows Server 2012
    In order to enable the Network Discovery on a domain make sure the following services are enabled and running: DNS Client Function Discove...
  • How the PCB for bonus is calculated
    The Potongan Cukai Bulanan (PCB, a.k.a. Scheduled Monthly Tax Deduction) calculation for bonus is not so straight forward. Here is how it ...
  • Firebird - Context variables
    ----------------------------------------- Generic user and system context variables ----------------------------------------- for firebir...
  • Beginner’s Tutorial on Using the Firebird ADO.NET Client 2.5
    http://www.codeproject.com/Articles/33675/Beginner-s-Tutorial-on-Using-the-Firebird-ADO-NET
  • SourceGrid - Open Source C# Grid Control
    http://www.codeproject.com/Articles/3531/SourceGrid-Open-Source-C-Grid-Control
  • InnoSetup Dependency Installer
    http://www.codeproject.com/Articles/20868/NET-Framework-1-1-2-0-3-5-Installer-for-InnoSetup
  • Validating Properties In A .Net Propertygrid Control
    The easiest way to validate a certain property in a .Net propertygrid control is using the PropertyValueChanged event.The code bellow shows...
  • To remove the font size, search box & space above the header in joomla 2.5
    To remove the font size, search box & space above the header in which they preside in the Beez 20 template there are 2 steps. All you mu...

Followers

Blog Archive

  • ▼  2015 (14)
    • ▼  December (2)
      • Joomla: Create Automatic Contacts with Contact Cre...
      • How to Create Tabs without Third Party Extensions ...
    • ►  November (4)
    • ►  October (8)
  • ►  2013 (10)
    • ►  September (1)
    • ►  June (6)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
  • ►  2012 (49)
    • ►  November (6)
    • ►  October (7)
    • ►  September (3)
    • ►  August (5)
    • ►  July (2)
    • ►  June (7)
    • ►  May (3)
    • ►  April (10)
    • ►  March (2)
    • ►  February (3)
    • ►  January (1)

Labels

  • .Net
  • amazon s3
  • android
  • bonus pcb
  • business
  • button
  • C#
  • css
  • css print
  • File System
  • firebird
  • gimp
  • html
  • iis
  • image
  • income tax
  • innoSetup
  • investment
  • ipad
  • iphone
  • java
  • javascript
  • joomla
  • joomla component
  • joomla database
  • joomla model
  • jquery
  • large photo
  • mobile phone
  • mssql
  • ODBC
  • open source
  • Opportunistic Locking
  • passport
  • passport renewal
  • pcb
  • php
  • PropertyGrid
  • remote app
  • slideshow
  • smartphone
  • SMB
  • SMB2
  • web
  • web browser
  • windows 8
  • Windows form
  • windows server
  • Xml

About Me

bigmcgeek
Knowledge, Information and Useful tips
View my complete profile

Advertisement

Simple theme. Powered by Blogger.