Friday, May 22, 2009

NettiMarkkina Website Design, Creative website Design


NettiMarkkina.com is the leading market place for used vehicles in Finland. The NettiMarkkina web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.

URL: http://www.nettimarkkina.com/

Tools: Photoshop - CS3, Dreamweaver


Friday, May 8, 2009

NetiKone Website Design, Creative website Design

NetiKone Website Design, Creative website Design
NetiKone Website Design, Creative website Design

Nettikone Website Design, Creative website Design
Nettikone Website Design, Creative website Design

NettiKone.com is the leading market place for used vehicles in Finland. The NettiKone web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.

URL: http://www.nettikone.com/

Tools: Photoshop - CS3, Dreamweaver


Sunday, April 26, 2009

NettiKaravaani Website Design, Creative Website Design


NettiKaravaani.com is the leading market place for used vehicles in Finland. The NettiKaravaani web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.

URL: http://www.nettikaravaani.com/

Tools: Photoshop - CS3, Dreamweaver






Wednesday, April 8, 2009

NettiMokki, NettiMokki Website Design, Creative website Design

NettiMokki.com is the leading market place for used vehicles in Finland. The NettiMokki web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.

URL: http://www.nettimokki.fi/

Tools: Photoshop - CS3, Dreamweaver


Sunday, April 5, 2009

Deko - Website Design


Deko is an online shopping website. In the Gallery you can find the custom made solutions. In the Internet shop you can find their standard products.

You can ask for offers about our products by clicking the pencil icon. The dollar icon inside the Gallery takes you to the Internet shop with the similar range of products. The portrait icon inside the Internet shop takes you to the Gallery with the similar range of products. The shopping trolley icon takes you straight to the fill in ordering form. Typing down your e-mail address you get the order confirmation to the address you have given.

URL: http://www.deko.fi/

Tools: Photoshop - CS3, Dreamweaver



Thursday, March 19, 2009

Ayush Website Design, Creative website Design

Ayush Retails Pvt. Ltd is designed to benefit each person who desires to get Prosperity, Happiness and Better future for Life time. Our Vision is to establish resources like Ayush Hospital, Ayush Engg. College, Ayush Gaushala and Ayush Retails E-commerce. So, it can benefit to all human beings of the nation.

URL: http://www.ayushretails.com/

Tools: Photoshop - CS3, Dreamweaver



Wednesday, March 18, 2009

Vendep Website Design, Creative Website Design

Vendep has a strong expertise required for network planning and implementation. Yhtiömme on kahdeksan This Company is an eight-year period provided to this highly successful series of network services, including, for example, online car has become Finland's territory, the market leader.

URL: http://www.vendep.com
Tools: Photoshop - CS3, Dreamweaver





Tuesday, March 17, 2009

Carusell Website Design, Creative Website Design


Carusell Provides hair dressing services for women as well as barbering service for men. It also provides the complete beautician treatments including facial, Body sugaring, Makeup service and solarium.

URL: http://www.carusell.fi/

Tools: Photoshop - CS3, Dreamweaver

Sunday, March 15, 2009

Nettivene Website Design, Creative website Design


Nettivene.com is the leading market place for used vehicles in Finland. The Nettivene web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.


URL: http://www.nettivene.com/
Tools: Photoshop - CS3, Dreamweaver





Saturday, March 14, 2009

Vendep Website Design, Creative Website Design

Vendep has a strong expertise required for network planning and implementation. Yhtiömme on kahdeksan This Company is an eight-year period provided to this highly successful series of network services, including, for example, online car has become Finland's territory, the market leader.
URL: http://www.vendep.com
Tools: Photoshop - CS3, Dreamweaver

Friday, March 13, 2009

Raati Website Design, Creative Website Design


Raati.fi site's purpose is to provide consumers with the tools and forum to share with the consumers of information and use its experience to use the products and services.
URL: http://www.raati.fi/
Tools: Photoshop - CS3, Dreamweaver


Creative Website Designs, Hiusmaailma website design

World hair skilled team is served by customer success, since 1990. The world of hair you get from one place in hairdressing and nail care services. Their shop is located in Ruoholahti - just next to the metro.

URL: http://www.hiusmaailma.fi/
Tools: Photoshop - CS3, Dreamweaver




Thursday, March 12, 2009

Nettiaika Website Design, Creative Website Design















Nettiaika.fi is the leading market place for used vehicles in Finland. The Nettiaika web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.

URL: http://www.nettiaika.fi/

Tools: Photoshop - CS3, Dreamweaver




Monday, March 9, 2009

NettiAuto Website Design, Creative Website Design















“Web Auto - Buy or Sell convertible cars and new cars - Shop visit” Nettiauto is a B2B car portal.
Nettiauto.com is the leading market place for used vehicles in Finland. The Nettiauto web site has expanded into other sectors publishing private and company ads from flea markets to boats, machinery and real estate. Currently NettiX web pages are visited by more than 500,000 users weekly and 2,000 companies publish their ads on the site. Otava-Kuvalehdet media concern develops and maintains the service together with Fiare.

URL: http://www.nettiauto.com/

Tools: Photoshop - CS3, Dreamweaver




Webmarket.fi















Webmarket is an online shopping website which provides every thing you required to have in your home on monthly Installments for 6 to 36 months. Webmarket includes Cell phones, Cell phone accessories, Computers, monitors, Computer Accessories, Digi Description, Consumer Electronics, Home Appliances, Home and Leisure, Children’s accessories.

URL: http://www.webmarket.fi

Tools: Photoshop - CS3, Dreamweaver




Monday, February 9, 2009

Hire Zencart developer

At Virtueinfo we have a talented pool of Zencart developers that are always ready to work with complete dedication on the given assignment. They all are certified from reputed Universities and colleges. We have different level of Zencart Developers as per your budget, time and requirements.

Good Communication, prompt reply and regular communication and availability are some of the highlight of the Zencart dedicated developers we provide.

You can have developer, who can update you for your Zencart project on daily basis, weekly basis as and when you want. You can communicate to developer through any IM that you are comfortable with.

All the developers are Degree Holders from a reputed University so they are having good logic as well as good IQ, good understanding of your requirements, explanation skills and English communication are some of the added advantage.

At virtue info an offshore web development company we offer Zencart Developers to hire, Zencart Development, Zencart Customization within your budget and time.

For a complete quote for Zencart Development, Zencart Customization and to hire Zencart developer requirements, contact us at info@virtueinfo.com.

We are proud of our professional proficiency and confident to meet each of your professional necessities.

Get ready to experience excellence with us!

Monday, February 2, 2009

Add/delete to/from buddylist snippet

PLEASE NOTE! These snippets are user submitted. It is impossible to check them all, so please use at your own risk! For users who have setup drupal using an alternate database to the default (MYSQL), please note that the snippets may contain some database queries specific to MYSQL.

Description

This php snippet inserts the ADD TO BUDDYLIST link

Dependencies: buddylist.module must be installed and enabled. The snippet checks to see if the user viewing the profile page has the access permission to maintain buddy list before displaying the link

Usage

  • For use in your user profile page override
  • Using a text editor like NOTEPAD.EXE or an equivalent, copy and paste the code into your user_profile.tpl.php file
  • Change the div class name or the link text to suit.
global $user;
if (
$user->uid != $account->uid) {
if (@
in_array($account->uid, array_keys(buddylist_get_buddies($user->uid))) && user_access('maintain buddy list')) {
print
l(t('Remove !username from your buddylist',array('!username' => $account->name)), 'buddy/delete/'. $account->uid);
}
else {
if (
$account->uid != $user->uid && user_access('maintain buddy list')) {
print
l(t('Add !username to your buddylist',array('!username' => $account->name)), 'buddy/add/'. $account->uid);
}
}
}
?>

Several people I know are

pribeh - February 22, 2008 - 01:50

Several people I know are reporting that this doesn't work past 5.3. And I don't know why.

Would be nice to know how to get this to work in a block as well. Someone posted this as a starting point but I don't know php.

$uid = arg(1); // second part of the path user/1 on user profile page
Loading a user:
$account = user_load(array('uid' => $uid));
Get the name:
$name = $account->name;
?>

Any help would be uber appreciated. I currently don't have a way other than the template fix for my users to add buddies.

With the help of a few

pribeh - February 26, 2008 - 03:01

With the help of a few others the following code seems to do the trick:


if (@in_array($account->uid, array_keys(buddylist_get_buddies($user->uid))) && user_access('maintain buddy list')) {
print
".$account->uid."\">Remove " .$account->name. " from your buddylist";
}
else {
if (
$user->uid != $account->uid && user_access('maintain buddy list')) {
print
".$account->uid."\">Add " .$account->name. " to your buddylist";
}
}
?>

Make sure to specify this at the beginning of your user_profile.tpl.php:

global $user;
?>

and also make sure to specify your code in template.php to focus on $account (the profile being viewed) as opposed to $user (logged-in user viewing profile):

/**
* Catch the theme_user_profile function, and redirect through the template api
*/
function phptemplate_user_profile($account, $fields = array()) {
// Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
// will be assigned within your template.
/* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('account' => $account, 'fields' => $fields));
}
}

The above code was taken from Muslim Guy's posts and modified by Nevets.

Inserting image as link to Add or Delete from your buddylist

merto@drupal.org - July 21, 2008 - 13:59

These will override theme_user_profile and will insert image as link to Remove or Add to my buddylist below user_picture without calling _phptemplate_callback. It will also give me the flexibility to style all category name.

function phptemplate_user_profile($account, $fields) {
$output = '
';
$output .= '
';
$output .= theme('user_picture', $account);
global
$user;
if (
in_array($account->uid, array_keys(buddylist_get_buddies($user->uid))) && user_access('maintain buddy list')) {
$output .= l(theme('image', drupal_get_path('module', 'buddylist') .'/images/user_delete.png', t('Remove')), 'buddy/delete/' . $account->uid, array('title'=>t('remove from my buddylist')),drupal_get_destination(), NULL, NULL, TRUE, TRUE);
}
else {
if (
$user->uid != $account->uid && user_access('maintain buddy list')) {
$output .= l(theme('image', drupal_get_path('module', 'buddylist') .'/images/user_add.png', t('Add')),'buddy/add/' . $account->uid, array('title'=>t('add to my buddylist')),drupal_get_destination(), NULL, NULL, TRUE, TRUE);
}
}

$output .= '
'
;
$output .= '
';

foreach (
$fields as $category => $items) {
$category = str_replace(" ", "-", $category);
if (
strlen($category) > 0) {
$output .= '
. check_plain($category ). '">';
$output .= '

'. check_plain($category) .'

'
;
}

foreach (
$items as $item) {
if (isset(
$item['title'])) {
$output .= '
. $item['class'] .'">'. $item['title'].' :' .'
'
;
}
$output .= '
. $item['class'] .'">'. $item['value'] .'
'
;
}
$output .= '
'
;
}
$output .= '
'
;
$output .= '
'
;

return
$output;
}
?>

Buddylist 2

tucspl - May 28, 2008 - 18:39

In order to get this to work for buddylist 2, try this snippet (this goes in your user_profile.tpl.php):

if ($GLOBALS['user']->uid != $user->uid): ?>
//load all buddies from active user
$userbuddies = buddy_api_get_buddies($user->uid);
//buddylist links
if ($GLOBALS['user']->uid != $user->uid && user_access('maintain buddy list')) {
in_array($user->uid, array_keys($userbuddies)) ? print l(t('Remove @username from your contact list',array('@username'=>$user->name)), 'buddy/delete/'.$user->uid, array(), drupal_get_destination(), NULL, FALSE, FALSE) : print l(t('Add @username to your contact list',array('@username'=>$user->name)), 'buddy/add/'.$user->uid, array(), drupal_get_destination(), NULL, FALSE, FALSE);
}
?>

endif; ?>

Note: If used the snippet on this page (the comment above this comment) to replace $user with $account in your template.php, replace that snippet with this (this goes in template.php):

/**
* Catch the theme_user_profile function, and redirect through the template api
*/
function phptemplate_user_profile($user, $fields = array()) {
// Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
// will be assigned within your template.
/* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('user' => $user, 'fields' => $fields));
}
?>

Thursday, January 29, 2009

Magento a hope that will change the world....

Magento is a feature-rich eCommerce platform offering complete flexibility and control over the look, content and functionality
of an online store.

Key Features :-

Site Management
Control multiple websites and stores from one Administration Panel with ability to share as much or as little information as needed
Web Services API for easy integration between Magento and any third-party application

Marketing Promotions and Tools
Flexible Coupons (pricing rules) with ability to restrict to stores, customer groups, time period, products, and categories.

International Support
Multi-Lingual
Support for Multiple Currencies

Shipping
Shipping to multiple addresses in one order

Customer Accounts
Re-orders from account

Catalog Management
Batch Import and Export of catalog

Catalog Browsing

Layered / Faceted Navigation for filtering of products
Product comparisons

Wednesday, January 28, 2009

About symfony 1.3

Two years ago, it was about to release symfony 1.0. Since then, released symfony 1.1 in June 2008 and symfony 1.2 just two months ago. The 1.1 version of the framework was a major upgrade with a lot of changes to the internals. The 1.2 version finished the transition from the old form system to the new one with the new admin generator, and of course also came with its batch of other goodies.

Some time ago, Tim Ariyeh wrote a tweet about what he thinks about the latest releases:

"I think it's time we all admitted that symfony 1.2 should have been 2.0, and 1.1 should never have happened."

He is quite right, sometimes, we make mistakes. But this is now history and I'm quite happy with the state of symfony 1.2. The internals of symfony are rock solid, well decoupled, and easy to extend. It Now even support Doctrine natively. The documentation has also been updated accordingly with a new book, and a lot of new cookbook tutorials.
What?

First, don't expect big revolutions for symfony 1.3. The 1.3 release will be an evolution of the actual code base, made of polish, small enhancements, and optimisations. That means that one of the most important goal for symfony 1.3 is compatibility with 1.2. The tries are being done to ease the process of upgrading as much as possible. According to the symfony website statistics, symfony 1.2 is already, and by far, the most downloaded symfony version. And the Jobeet tutorial, which is based on symfony 1.2, has generated more than one million page views in less than two months.

You can now add your own ideas and vote for the ones you want to see implemented on a user voice page.

OUTDATED: Display user submitted images in their profile page

description

This snippet will display the thumbnail images of the most N most recently submitted images by the user. You can also optionally limit the images selected based on taxonomy term id's (see snippet for details)

instructions

  1. In a text editor paste the following snippet into your user_profile.tpl.php file
    (For instructions on how to get started with your own custom user profile layout click through to the Customising the user profile layout handbook page.)
  2. Upload your edited user_profile.tpl.php to your active theme folder
// Display N most recent thumbnails of images submitted by the user
// Each thumbnail is linked back to it's image node
// Can optional limit the photos shown by specififying one or taxonomy term id's

// The number of thumbnail images to show
$nlimit = 3;
$taxo_id = array();
// Add one line for each taxonomy term id you want to limit the thumbnails to
// As an example, the following two lines would select images associated with taxonomy terms 36 OR 37
// $taxo_id[] = 36;
// $taxo_id[] = 37;
// Note, if not taxonomy term ids are specified, the selection is from all the user submitted images

$userid=$user->uid;

if (
count($taxo_id) > 0 ) {
// Limit images based on taxonomy term id's
$taxo_str = implode(',', $taxo_id);
$sql = "SELECT n.created, n.title, n.nid, n.changed FROM node n INNER JOIN term_node ON n.nid = term_node.nid AND term_node.tid IN ($taxo_str) WHERE n.type = 'image' AND n.uid = $userid AND n.status = 1 ORDER BY n.changed DESC";
}
else {
$sql = "SELECT n.created, n.title, n.nid, n.changed FROM node n WHERE n.type = 'image' AND n.uid = $userid AND n.status = 1 ORDER BY n.changed DESC";
}

$result = db_query_range($sql, 0, $nlimit);
$output = '';
while (
$info = db_fetch_object($result) ) {
$node = node_load(array('nid' => $info->nid));
$img_tag = image_display($node, 'thumbnail');
$link = 'node/' . $node->nid;
$output .= l($img_tag, $link, array(), NULL, NULL, FALSE, TRUE);
}
print
$output;
?>

Tuesday, January 27, 2009

Who Wants a Free Web Application?

Looking for something to do with all that brain power? We're happy to announce an upcoming community event that will harness the power of the symfony community toward a variety of social causes. Help us get the word out!

This event will take on the basic structure of other 48 hour web application development competitions, such as Rails Rumble, but with a special twist unique to symfony. The applications we create during the course of the competition will be gifted to different socially-minded organizations around the world. Once the fun is over, our work will live on and hopefully do a lot of good.

A Call for Causes

The first thing we need is to determine who we're working for. If you are or know of a socially-minded organization that could benefit from an interactive web application, we want to hear from you.

Please submit a brief proposal for the application you would like built that includes the following:

  • A description of your organization (200 words or less)
  • A description of the application you would like built (400 words or less)

Please keep in mind these applications will be built in 48 hours or less by small development teams. If you're not sure how to gauge the effort involved in you proposal, just send in your idea and we'll help refine a reasonable scope.

Display recent nodes (titles & teasers) snippet

Description

This php snippet displays the 10 most recent nodes submitted by the user, restricting certain node types. In this example, pages, stories, and forum posts are excluded from the list.

Usage

• For use in a user profile page override
• Using a text editor like NOTEPAD.EXE or an equivalent, copy and paste the code into your user_profile.tpl.php file
• To increase/decrease the number of posts listed change the $nlimit value to suit. The default setting is 10.
• Tested and works with Drupal 4.6
• Change the div class names or the prefix text to suit.

= 10; ?>
=$user->uid; ?>
= pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.status = 1 AND n.uid = $userid AND n.type != 'page' AND n.type != 'poll' AND n.type != 'forum' AND n.type != 'story' ORDER BY n.created DESC"), variable_get('default_nodes_main', $nlimit)); ?>
while ($node = db_fetch_object($result1)) {$output2 .= node_view(node_load(array('nid' => $node->nid)), 1);}; ?>
print $output2; ?>

Friday, January 23, 2009

Customising the user profile layout

(Thanks to Dublin Drupaller for starting this section of the handbook)

The PHP Snippets below are intended for use within a customised USER PROFILE page that simply enables you to “pull” specific content from your drupal database specific to a particular user and display it in the way you want.

They are intended for use with a phptemplate based theme and for Drupal site developers who do not have php programming knowledge but want to push out the boundaries of user profile pages and control precisely how they look.

See also Advanced Profile Kit for an alternate method of sprucing up your user profile pages.

Simple step-by-step instructions are provided.
The concept

Drupal is an extremely powerful tool for building online communities, in particular, allowing users to submit their own content to a community hub. A good illustration of this working well online might be the World famous myspace.com site, where bands/artists are able to submit content into their own page.

Drupal has all the tools available to create your own myspace.com style community hub.

These snippets are intended as a mini-repository and as an aid for site designers without php programming skills to create sophisticated User Profile Pages for members of their community.

Customised User Profile Pages maybe applied to many applications. myspace.com is primarily a site for artists & bands, but, similar techniques could be used for other applications such as a rzye.com (Drupal powered community hub) style professional networking hub or terminus1525 (Drupal powered community hub) for studios.
Getting Started - (Drupal 4.x and Drupal 5.x)

Step 1 - is to override the default User Profile page layout by uploading the special template.php file to your active theme folder.

$account, ‘fields’ => $fields));
}
?>

If you already have a template.php file in your active theme folder, simply add the above to the existing template.php file and upload it.

Step 2 - (Drupal 4.x and 5.x) is to create your customised user_profile.tpl.php file and upload that to your active theme folder.

If you’re starting from scratch, simply open notepad.exe or a similar text editor and paste in the snippets linked below to build your custom user profile page. Save it with the user_profile.tpl.php filename and upload it to your theme folder along with the template.php file.

Once you have got started with your first user_profile.tpl.php file, you can experiment with adding in more snippets or including HTML layout controls to get a feel for the flexibility this allows.
Getting Started - (Drupal 6.x)

Step 1 - is to override the default User Profile page layout by uploading a custom user-profile.tpl.php* file to your active theme folder.

Drupal will automatically detect the presence of your custom user-profile.tpl.php and override the default user profile layout. To make this happen, you need to rebuild the theme registry, which you can do by clearing the caches (for example using the button on the admin/settings/performance page), or simply by visiting the admin/build/modules page.

* note that in Drupal 6.x, your custom user profile layout file name uses a hyphen, instead of an underscore.

Step 2 - is to customise your user-profile.tpl.php layout file.

By default, all user profile data is printed out with the $user_profile variable. If there is a need to break it up you can use $profile instead.

As an example, the following snippet inserted in your custom user-profile.tpl.php will display the default user profile layout.

Available variables:

* $user_profile: All user profile data. Ready for print.
* $profile: Keyed array of profile categories and their items or other data provided by modules.

To check for all available data within $profile, insert the following snippet at the bottom of your custom user-profile.tpl.php.

Available variables

The following is a list of variables that is available to your custom user-profile.tpl.php.

'. check_plain(print_r($profile, 1)) .'

‘; ?>

How to use these snippets

Simply copy and paste these snippets into your custom user profile layout file and upload it to your active theme folder. Check to make sure that the snippet you are using is compatible for the version of Drupal you are using.

It’s recommended that you test your customised user_profile.tpl.php(Drupal 4.x or Drupal 5.x) or user-profile.tpl.php file (Drupal 6.x) on a test installation before adding to a live site.
Adding new snippets

Simply click on the ADD NEW CHILD PAGE link below and create a new handbook page. Include any dependencies, such as which version of Drupal you have tested the snippet with or extra modules that need to be enabled for the snippet to work.

PLEASE NOTE! The following snippets are user submitted. Use at your own risk! For users who have setup drupal using an alternate database to the default (MYSQL), please note that the snippets may contain some database queries specific to MYSQL.

* A basic User Profile Page to help get you started
* Customising the user profile pages (a “before” and “after” example with screenshots)
* User Profile avatar/picture Snippet
* Handling single-line profile fields
* Handling multi-line profile fields
* Handling checkbox profile fields
* Handling freeform profile fields
* Handling URL profile fields
* Recent weblog entries (titles) snippet
* Recent weblog entries (titles & teasers) snippet
* Add/delete to/from buddylist snippet
* Display a list of buddies snippet
* Display list of (x) recent posts (titles) snippet
* User “history” or “member for: (time)” snippet
* Adding layout and content to the default user profile theme
* allow users to choose whether certain profile fields are visible or hidden
* Allowing users to customize their profile
* Custom User Blocks and User Tables PHP Snippets
* Customising the user profile layout per role
* Display link to user’s embedded gallery (or not if it does not exist)
* Display a customisable “this user is [online/offline]” status message in the User Profile page
* Display a user friendly text message when profile fields are left blank
* Display a user’s points value from the userpoints.module
* Display recent nodes (titles & teasers) snippet
* Displaying counts from the Invite module
* Drupal V5.x warning: Cannot add header information
* Handling date profile fields
* Howto: Make the user profile layout compact (with css only)
* Insert Subscribed Organic Groups List
* Messages for unpublished profiles
* My Comments Block for Profiles
* Outputting full civiCRM profile to custom profile
* Outputting individual CiviCRM profile fields into custom Drupal profile
* User Profile Page
* User referral module
* Weight sorting for input fields (when the user fill the form) doesn’t apply - fix
* Insert user friendly “click here to add your..” links when user profile fields are left blank
* Display a date related notice or countdown snippet
* Send private message snippet
* Display a Skype “Call me” or “leave a voicemail” button depending on Users’ online/offline status
* Display users age based on a date-of-birth field
* insert a “view your order history” and “view [username]s store” link
* Show/hide certain profile fields depending on user role or user permissions

Thursday, January 22, 2009

Remove unwanted tabs from pages

Description

Some modules add tabs to pages that are not needed for general users, or not needed at all. You may wish to link to the page in a different way, as some users don't understand that they can click on the tab above a node.

There is currently no way to alter the hook_menu() generated tabs from code, so this function will find and strip out a tab based on its name.

Step 1 of 2

Locate your theme's template.php file. If one doesn't exist create an empty one. This is where you can place customisation PHP code.

Step 2 of 2

Custom functions placed in the themes template.php file should begin with the theme name. In the code snippet below replace "yourthemename" with the actual name of your theme, such as "bluemarine".

You may already have a '_phptemplate_variables' function defined depending on what theme you are using, if so do not include the function again from the snippet below.

function _phptemplate_variables($hook, $vars = array()) {

if(
$hook == 'page') {
yourthemename_removetab('address book', $vars);
// add additional lines here to remove other tabs
}

return
$vars;
}

function
yourthemename_removetab($label, &$vars) {
$tabs = explode("\n", $vars['tabs']);
$vars['tabs'] = '';

foreach(
$tabs as $tab) {
if(
strpos($tab, '>' . $label . '<') === FALSE) {
$vars['tabs'] .= $tab . "\n";
}
}
}
?>

The tab removal work is done in the yourthemename_removetab() function, pass in a plain text tab label, along with the PHPTemplate variables, and the function will remove the tab.

In the above example snippet the 'address book' tab added by the eCommerce package is removed from the users profile page.

Notes

  • Call yourthemename_removetab('tab name', $vars); for each tab you wish to remove.
  • No other modules need to be installed to use this.

Wednesday, January 21, 2009

symfony 1.2.2 - Doctrine service release

The symfony team sat together on a bugfixing day on Tuesday, resulting in over 40 closed tickets for 1.2.2. Pretty much for a bug-fix release. So wait no more, symfony 1.2.2 is now available. The main bugfixes included in it take care of issues in the sfDoctrinePlugin and its admin generator. We also include the fresh Doctrine 1.0.6 release, so you are getting the newest and best support for your favorite ORM.

The other batch of bug fixes takes care of Form framework related issues, like file uploads or presets, and some testing facilities were fixed.

If you use neither Doctrine nor the Form framework, a few performance improvements which were put into symfony for 1.2.2 might be of interest for you. Especially Ticket #5356 could be of interest for users with many small files cached. Feel free to run the tests on your box and append your results to the ticket.

The whole list of closed tickets can be found in the Trac Roadmap for 1.2.2 or the Changelog file

Upgrade

Please upgrade your existing projects by updating the reference to the 1.2.2 subversion tag or by running the PEAR upgrade command:

$ pear upgrade symfony/symfony-1.2.2

If you use the 1.2 branch from our SVN repository, just run the svn update command to upgrade your project.

Last but not least, don't forget to clear your cache by running for doctrine:

$ php symfony doctrine:build-model
$ php symfony doctrine:build-forms
$ php symfony doctrine:build-filters
$ php symfony cache:clear

or when using propel:

$ php symfony propel:build-model
$ php symfony propel:build-forms
$ php symfony propel:build-filters
$ php symfony cache:clear

and enjoy your shiny new symfony 1.2.2!

symfony 1.3

As a side task, I created the symfony 1.3 branch, which will now be the main development stream. Kris Wallsmith will be taking over the responsibility for this branch, I will try to keep 1.2 in a good shape.

Blog to it - The social blog directory

Blog to it is a social blog directory developed using 100% contrib modules. Well, there were a few tweaks to one module and a few more tweaks in the theme. This case study has been written to give an insight into how and why Blog to it was developed.

What is it?

"Do you have a blog that you would like to share with others? Do you enjoy reading blogs but don’t know where to effectively look for them? If you’re in this predicament, drop by Blog.to.it and take a look at what they have for you to enjoy.

Blog.to.it is a website that allows users to import all of their blog posts via RSS or start a new blog directly on their site. The site has eight different blog categories including technology, business, science, gaming, lifestyle, entertainment, sports, and other. Whatever you want to write or read about is easy to find, just look through the categories that interest you most.

Once posts are in they can be voted on, commented on, and sorted by rating, category, or date. Blog.to.it hopes to be a great place to find new blogs to read. The site merges loads of features from current sites and brings them to a new audience, the personal blogger. There are many blogs world wide and it is often hard to get noticed between all the corporate blogs out there, this site is trying to help bloggers come together in a space that’s just for them."
From Killer Startups

Features

  • Hosted user blogs - Just like on Blogger or Wordpress a user can start blogging on Blog to it, this isn't a key feature but was more or less there, so why not use it.
  • RSS user blog import - This is the key driver of the site by allowing users to add their existing blog posts automatically to Blog to it.
  • Blog post commenting - It was never fully decided if this should be on the site or not, should comments be on Blog to it or on the original blog. Maybe one to work on?
  • Blog post rating / voting - This also another key feature. The main way to view posts is by number of votes. (Digg like)
  • Browse posts by rating
  • Browse posts by date
  • Browse posts by category
  • Browse posts by user / blog
  • Browse blogs by tag
  • Personal and site wide Twitter updates - This is a really great feature to have. It both helps the user integrate more with the site, and is a great marketing tool. A lot of the traffic is coming from Twitter and Twitter aggregation.

How was it done?

Modules

Blog to it screenshot
The whole site was developed using Drupal 6 and then moved to Acquia Drupal once live. It is heavily based around the core blog module because user blogs are created in the default Drupal way, and RSS imports are imported into the Blog content type.

By using the DrupalMU Helper module which is part of the Drupal MU install profile it helped turn the core blog module into a multi-user blogging system and gives vital functions that were used when creating views and the theme.

One of the other key modules was the FeedAPI module which is used to import an external blog into the blog content type via RSS feed. The Content Profile was used to add the RSS feed URL field to the user's profile. Simple feed was also looked into as a way of importing feeds, but it didn't seem to attach the imported nodes to the user who setup the import. This may of been a development error rather than a fault with the module, but FeedAPI was suggested a better module, and it worked.

Posts can be voted on using the VotingAPI and Plus1 modules. Voting API was an obvious choice when creating a site that requires voting, but which module to use with Voting API was a harder choice. Drigg seems the most advanced to allow +1 and -1 voting, but this was not available for Drupal 6 (it was tested once the first 6 release and seemed too specific), so after spending a few hours installing, testing and uninstalling Plus1 seemed to offer what was needed for the Blog to it use case.

This site is not very complex, but works well. The uptake has been good and by adding Twitter integration this helps with marketing. The Twitter module allows each user to import their Twitter posts, and announce their new posts on Twitter. It also allows the announcement of all new posts via Triggers and Actions on http://twitter.com/blogtoitnew.

Views also plays a big part in this site, much like it does in other sites. It allows many pages to be developed showing the posts in different ways. There is one main view for the site which creates three pages for each category.

Theming

The theme was based upon Raincity's Basic theme, this really helped speed up development. There was very little special development in the theme. The only exciting aspect is the use of the Drupal MU helper functions. The function returns the UID of the user whose blog or profile is being viewed. This allowed custom theming for user pages such as hiding the Blog to it logo and displaying the site name.

Infrastructure

The site was developed on a budget VPS from VPS Empire who has now merged with VA Serv. After launch and after a lot of hunting a hosting partnership was found with Castlegem, so far the site has been running very well, and Castlegem were great at getting the server setup, including custom nameservers, DNS and backup.

What next?

Blog to it screenshot
Blog to it has currently been released as an Alpha version so many of the bugs can be ironed out. Development will continue until the beta version is ready early 2009.

So far very few bugs have been found, the hardest aspect seems to be perfecting the usability. For example, should anonymous users be able to vote and comment? what should be displayed on each page? what is a "top post"?

Also because there are so many posts being imported cron needs to run every 2 mins. This means that on each cron run there is only 1-2 posts and twitter updates being imported, where as if cron was run every hour there many be 50+ posts and twitter updates being imported. This also helps the site stay very up to date, but puts a big strain on the server

There are many ideas of how to move the site and project forward, and by using an array of contrib and custom modules it is planned to add more social features to the site. Such as friends and / or followers, what posts your friends have added, other people who have voted on this post. It is also planned to launch a more feature rich profile page displaying a user's friends and what posts they have voted on.

Please head over to Blog to it, register, add your blog and vote up posts you like.