<h3><nodule_name>.info</h3>
name = GoalTrue
description = Goal tracking system
package = GoalTrue
core = 7.x
files[] = goaltrue.module

<h3><module_name>.module</h3>
/**
* A module for tracking goals and due dates
*/

/**
* Implement hook_help().
*/

function goaltrue_help($path, $arg){
if($path == 'admin/help#goaltrue'){
return t('No help notes yet. Plese wait.');
}
}

Darryn Nyberg's picture

Darryn Nyberg

Posted Monday 29th 2012

Tags: 

Login to comment

ID Class
		
		<?php print theme('links__system_main_menu', array(
	          'links' => $main_menu,
	          'attributes' => array(
	            'id' => '',
	            'class' => array(''),
	          ),
	          'heading' => array(
	            'text' => t('Main menu'),
	            'level' => 'h2',
	            'class' => array('element-invisible'),
	          ),
	        )); ?>
    	
	
Darryn Nyberg's picture

Darryn Nyberg

Posted Friday 19th 2012

Login to comment

This is not an in depth thesis on the philosophy of integrity. Rather a litmus test to see how you stand up in our world of business and organization.

Do you DO what you say

I’ll be there at noon (you showed up at 12:15pm)
Lets do lunch soon (you never called them back)
Don’t worry, I’ll handle that (you didn’t, or did it poorly)

Everyday you say many things. Do them. Everyday you have many opportunities to embed in others that your word is good.

Do you SAY what you do

We love to travel (you go maybe one place each year)
I love the outdoors (so long as it’s a cabin by the lake)
I’m studying law (you started your general ed a few years ago)

Be painfully strict with yourself regarding your claims. Show people you know how to measure yourself in little things and they will trust you to measure big things that can affect them.

Do you DO what you DO

Regardless of your status or position, your labor should be one of love. If you don’t love what you do the learn to love it. If this too fails, find something you can love and do that.

It is far better to do a job well and get paid very little then to get paid much and be thought poorly for it.

Darryn Nyberg's picture

Darryn Nyberg

Posted Monday 10th 2012

Login to comment

GOAL:

Win more traffic

FOUNDATION:

Successful websites have content people want to consume. Over the lifetime of your website you must be adding content.

The 4 pillars of content:

  1. Information people can read
  2. Resources people can download
  3. Applications people can use
  4. Products people can purchase

INTERPRETIVE CHALLENGES:

The Hoax

Do not be fooled by marketing gimmicks. Paid and social services such as Google, Facebook, and Twitter will not make a website successful. Content makes a website successful. Google, Facebook, and Twitter can give your content the exposure it needs.

All the paid ads, social buss, and search traffic in the world will not compel individuals to be loyal to you or your website. Good content earns loyalty and fuels peoples passion.

LOYALTY:

In the words of Jeffrey Gitomer - “Customer satisfaction is worthless, customer loyalty is priceless”.

Loyalty is the difference between getting 1,000 new visitors weekly and getting 1,000 new visitors to come back each week. New visitors can be purchased, returning visitors can only be won.

Loyalty is earned when you do work for people.

The content on your site must save people time. If a visitors time is not saved then your content will never earn their loyalty.

How content saves people time:

  1. Information that condenses hours of Googling research info.
  2. Hand made solutions in the form on pdf's and documents.
  3. Top 20 lists of a category - Example: "Top 20 church accounting firms in Dallas Texas". Or "Top 30 mistakes church founders make".
  4. Comparisons of two thoughts/items - Example: "Bonds VS Stocks" etc.
  5. Education on a subject
  6. etc.

EXECUTION

Assuming good content is what is being published to our website then the next tasks are ready to be cued up and accomplished.

TASKS

  1. Post a new article every week
    Share new articles on LinkedIn, Facebook, and Twitter.
  2. post articles with documents attached that save churches time and money (example: church specific HR docs)
    Share new articles on LinkedIn, Facebook, and Twitter.
  3. XML Site-map
    COMPLETED (this is a programming tool that all the large search engines say to use, and submit to them, so that they can be strongly aware of what pages you have and how often they change or are added.
  4. Meta data tools in code
    This is another code based tasks that the search engines instruct us to use. I will be adding this one in addition to the already completed sitemap.xml page.
  5. Contribute to LinkedIn groups
    Contribute to LinkedIn groups. When a question you are knowledgeable comes up in one of your LinkedIn groups, give a great reply. I do this in tech groups and every time I do I see a host of new people visit my LinkedIn page/website
  6. Facebook account
    Use it to show the “people” in your organization. While your website will have your professional “about” page, Facebook is where your lifes work and personality will earn their trust and educate them on your capabilities (but don’t ever “sell” on Facebook, people don’t like it).
  7. Facebook sponsored stories
    Facebook permits you to “sponsor stories”. This means that a post that you write on your Facebook page is “boosted” and seen by far more people than a normal wall post. Facebook ads, unlike Google Ads, can target a much more specific group of people. You can target age groups, religious affiliations, what type of occupation they have, what cities they live near to, target only people that like xyz pages, etc.
  8. Create videos
    The internet adores a webpage with a good video on it. An about page or a landing page that has a video in it will win you far more attention than if you did not have that video.
  9. YouTube channel
    This is like having a facebook page. YouTube is now the world SECOND most used search engine. This need not be more complex then you reading your FAQ or articles into your computers video camera. Those videos will be posted to your YouTube channel and you will see how many people will want that type of info.
  10. Twitter usage
    Most people know to tweet new content that is published to their site. Many business owners are unaware that twitter is fast becoming the new “news” source for millions of people. If you use your twitter to tweet about your business, you will get little traffic to your website. If you use twitter to update on important aspects of your industry as they happen, or tweet about other peoples resources if you find them interesting/useful, then your twitter following will grow and the traffic to your website will as well.

NOTES

Regarding Content - More content is needed to attract organic and viral traffic.

Regarding Social Media - Do work for people and promote that you and your organization are real people. Don’t sell your services. Give people things to consume, watch, laugh at, and they will trust your brand and use your services when the time comes.

Why all the content? - Even if you could tell your whole story in one paragraph, that is no longer enough to organically or socially start growing more people to your site. People want to save time or be entertained and that takes content. Content is where many people start to trust your organization.

What about more options? - There are more ways to grow traffic. But the biggest part is getting a critical amount of good, consummible content so visitors can become loyal to you and your brand.

Darryn Nyberg's picture

Darryn Nyberg

Posted Friday 31st 2012

Login to comment

SCENARIO

I need to theme the edit page for ONLY article node type

GIVEN you have a node type of "article"
AND you want the node type to have its own edit template
WHEN you add/edit a node type of "article"
THEN the custom node type (edit "edit article") template is used.

The following works in Drupal 7

The steps

  1. Create a template file (the name is completely up to you).
  2. Drop some code in your themes template.php file
  3. Clear site cache.
  4. Code for your new "edit" template

1 - Create template file

Name the file whatever you want. For the sake being simplistic, we will name it "article--edit.tpl.php"

Place that article--edit.tpl.php file in your theme directory where your other tpl files are.

WHY DO THIS?
There is no template suggestion for a specific node edit form. You can do a global edit form page such as is in the documentation on Drupal "page--edit.tpl.php but this is not specific to one node type. So, you need to create a tpl file with the name you desire to be used for the "article edit" page. We edit the template.php file so that your site knows to use this new tpl file you created when editing any article node type.

2 - The template.php file

The following code is to be used in your template.php file. If you don't have one then create it.


function mythemename_theme() {
  return array(
    'casm_node_form' => array(
      'arguments' => array(
          'form' => NULL,
      ),
      'template' => 'templates/article--edit', // this must be the name of the file you created. Our file was title "article--edit.tpl.php" so we use article--edit
      'render element' => 'form',
    ),
  );
}

3 - Clear your site cache

If you miss this step then this will will not work.

4 - Code for your new "edit" template

Use the following so that your edit page has content. The "themeing" is up to you.


<div><?php print drupal_render($form['title']); ?></div>
	
	<!--Print the body input field-->
	
	<div><?php print drupal_render($form['body']); ?></div>
		
	<!--Print the rest of the form-->
	<div>
		<?php print drupal_render_children($form); ?>
	</div>

Darryn Nyberg's picture

Darryn Nyberg

Posted Monday 20th 2012

Login to comment

First, thank you "Code Geeks" for the great app on CodeCanyon.net.

I purchased it and love it but the set up was not as simple as the author had stated... but for a really simple reason.

The install page provides some fields that are not notated. So I am filling in the notation here.

STEP 1: upload files to your directory

Be sure that all the files/folders are there on the directory you want.

STEP 2: the install page.

1. The first field is titled "Application name". Use this to title this apps work-space. This is the title that will go in your tag in the page header (visible in the browser tabs).
2. The second field is titled "Domain". In this field you place the domain name as you would if your were purchasing it. As in, not "HTTP://...". I chose NOT to use 'www' before my domain. Your text that should be in this box should look be in the format "nybergbusinesssystems.com"
3. The third filed is titled "Path". This is the one that messed me up. What you DO put here is the directory page AFTER your domain name (used above). Why is this important? Because if you do this wrong you will get either a server error, or odd url structure.

If you use "public_html/directory/nybergbusinesssystmes.com/project/goform/" you will get server error.
If you use "/project/goform" you will get a double "//" in your url that looks like this http://nybergbusinesssystems.com//project/goform"

So ONLY use the directory and/or the "/" between sub directories.

What the system is doing is placing the "Domain" from the fist field, and connecting it to the "Path" field. And it assumes that you need a "/" between them.

PLEASE NOTE: If you have done this step wrong you will not be able to edit the install.settings.php file to fix it. You will need to delete the app and start over.

4. The forth field is titled "Hostname". This should be "localhost".
5. The fifth field is titled "Username". This is the user name of the mysql user that is assigned to the db user you created.
6. The sixth field is titled "Password". This is the password to the mysql user you created.
7. The seventh filed is titled "Database". This is the name of the database you created.

STEP 3.1: create a mysql user and database and connect them.

If you need help with this step... Google it.

STEP 4: Install the app

Once you have placed all of the info into the install fields, select "install". You will be redirected to the url yourwebsite.com/install.php and you will see a message.

STEP 5: delete the install.php file

Go to your directory that hold this app and delete the "install.php" file. Once you have done that you need to go back to the directory like you did when you first installed the app. If you select "refresh" it will warn you that you are doing a step again. so I simply type in the full url of the app again. You should now see a log in screen. If your login screen has no css styeing... than you did something wrong.

STEP 6.

Log in and enjoy the project management app.

STEP 7: I did something wrong and need to start over.....

Delete the "settings.install.php" file from the apps directory and re add the install.php file that you deleted in an earlier step. You can get that file from the zip folder that the app was downloaded in.

Darryn Nyberg's picture

Darryn Nyberg

Posted Friday 17th 2012

Login to comment

You can bake a drop down menu directly into a theme but we are going a different direction today. We are going to install "nice menu", a contributed module that creates blocks that are based on your menu. It has infinitely deep fly out depth. Nice.

We will install and than style this module so that it does not have the default grey theme that it comes with.

We will be getting rid of the Main Menu on my Bartik theme and using Nice Menu in the header region. This helps to balance the header area (see picture). Keep in mind that I have a sub theme of "Bartik" and that is why my site is black, but that will not affect what you are doing. In fact... i am using a sub theme of the Bartik sub theme Dartik. Crazy, I know.

STEP 1: install nice menu module

http://drupal.org/project/nice_menus
If you need more help with installing a module than you need to read a different post.

STEP 2: remove main mane from Bartik theme.

Navigate to "appearance > settings (in your bartik theme) > "uncheck the 'main menu' option" (this removes the main menu from the site).

STEP 3: setup a "nice menu" block

1. Navigate to "structure > blocks > "find the block 'Nice menu 1" > Select 'configure'". You should now be in the configuration are for that block
2. Block title: In the "block title" (this is probably empty) place the text ". This will make sure that the menu will not have a title on the display page.
3. Under "menu parent" select "main menu". This is probably already the selection but I am making sure that it is. You do this so that this "nice menu" blockv uses the same menu as "main menu". You will manage the "main menu" like you normally would. This simply provide a menu tree without baking that code into the theme.
4. Under "menu depth" select -1 for one level deep or -2 for two levels deep etc.
5. Under "menu style" select "down". We are creating a "drop down" menu so "left" and "right" would not help us.
6. Under "region" for your main theme select "header". This puts the navigation in the header of your Bartik theme. This is a great location to balance your page.
7. Under "menu name" select a title so that you remember what this block is called when you need to find it next.
8. Save the block.

 

STEP 4: applying the css

Here is The code that I have used to create the manu style in the image above. If you would like to change the colors use the code and alter the hex codes. If you need help with how to style using css this is not the post for you.


/* nice menu 1 */

#block-nice-menus-1 {
		
	}
	
#nice-menu-1 li{
		border:0px;
		border-bottom:1px solid #000000;
		background:#000000;
		padding:30px 0px 5px 0px;
		display:block;
	}
	
#nice-menu-1 li:hover{
		border:0px;
		border-bottom:2px solid #FF9911;
		background:#000000;
		padding:30px 0px 5px 0px;
		display:block;
	}
	
#nice-menu-1 li a {
		color:#ededed;
		text-decoration:none;
	}
	
#nice-menu-1 li ul{
		margin:37px 0px 0px 0px;
	}
	
#nice-menu-1 li ul li{
		border:0px;
		border-bottom:1px solid #ededed;
		background:#000000;
		padding:0px 0px 0px 0px;
		display:block;
	}
	
#nice-menu-1 li ul li:hover{
		border:0px;
		border-bottom:1px solid #000000;
		background:#292929;
		padding:0px 0px 0px 0px;
		display:block;
	}

-----------------------------------------------------
If there is anything that I am missing please let me know and I will try to update the article. Thank you and I hope this helps.

Darryn Nyberg's picture

Darryn Nyberg

Posted Friday 17th 2012

Login to comment