How to manually display a users "friends" in thier user profile via the user-profile.tpl.php using the user relationships module

On the user profile page in drupal 7 I would like to display a list of the users friends. If user1 is viewing user2's profile I would like to display user2's friends.

Something like this...

<div id="users_friends">
   <?php print $user_relationships_friends_list;?>
</div>

I would also like to display the top 5 or 10 friends, but do not know if that is possible. Here is the website I am working on.

http://elusivewarfare.com

How to remove specific form element using #ajax?

hi,

how to remove a specific form element using ajax? all the examples (ajax example in developer examples) just use decrement itemcount.

I tried this:

Changing Menu Title font size in Sidebar?

Hi,

Im trying to fix a font size issue on this website: www.cocreationforum.com/net. Currently the font size for the titles in the sidebar are disproportionately large

I cant seem to find the code for the sidebar in the style.css file where I can fix the font issue. The only code that is related to the sidebar in the stye.css file is

/* 4.2 Generic Widgets */
.block { margin: 0 0 20px 0; padding: 15px 15px 20px; background: #fff; }
.block ul { clear:both;}
#sidebar .block h3 { margin: 0; padding: 0 0 10px; font-size: 16px; text-transform:uppercase; border-bottom: 1px solid #eee; }
#sidebar .block ul li { border-bottom: 1px solid #eee; background: url(images/d/widgetbullet.png) no-repeat 7px 12px; }
#sidebar .block ul li a { padding: 0 0 0 20px; line-height: 30px; text-decoration: none; color:#666; }
#sidebar .block ul li a:hover { color: #000; }
#sidebar .block ul ul { padding: 0 0 0 15px; border-top: none; }

#sidebar .widget_recent_comments li { padding-left: 20px!important; background: url(images/widgetbullet.png) no-repeat 7px 12px!important; }
#sidebar .widget_recent_comments li, #sidebar .widget_woo_twitter li { padding: 6px 0; line-height: 18px; border-bottom: 1px solid #eee; } /* RESET LI STYLING FOR RECENT COMMENT & TWITTER */

Body field suddenly hiding content after upgrade to Drupal 7.7; lots of error messages

I just updated my Drupal installation to 7.7, and suddenly all my page content is disappearing. I checked the relevant fields, and they tell me that my Body field is suddenly marked as "[hidden]". They give me no option to display the field; "[hidden]" is all I get.

I don't get errors on the node adding or editing pages, but when I go to edit the content type, I get this:

Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 382 of /home/oadmin/public_html/broadstreet/modules/field/field.info.inc).
Notice: Undefined index: module in _field_info_prepare_instance_display() (line 350 of /home/oadmin/public_html/broadstreet/modules/field/field.info.inc).
Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 382 of /home/oadmin/public_html/broadstreet/modules/field/field.info.inc).
Notice: Undefined index: module in _field_info_prepare_instance_display() (line 350 of /home/oadmin/public_html/broadstreet/modules/field/field.info.inc).
Notice: Undefined index: module in _field_info_prepare_instance_display() (line 350 of /home/oadmin/public_html/broadstreet/modules/field/field.info.inc).
Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 382 of /home/oadmin/public_html/broadstreet/modules/field/field.info.inc).

three column create content page

Hi,
My site is alomst ready. I have one problem that I'll be glad if you will help me.
I need to make it possible for me to creat one content type that the content creating page will be arrange in 3 columns.
there is a module fo two columns ('node form columns') but not for three may you help me please?

Help building a block form - Textbox within a block

Im trying to build a form on a block. The form would have a single textbox and button. The button takes the value of the textbox and appends it to a string which it then uses as a link.

I know how to create the form fields, but im not sure how to get the value from the textbox and append it to a string on the click event of the button. Im fairly new at coding in html and php so any help would be appreciated. Below is my current attempt.

Thanks

Paul

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x