function return_custom_price($price, $product) { IF (i4w_has_tag(‘1330’)) : { global $post, $blog_id; $price = get_post_meta($post->ID, ‘_regular_price’); $post_id = $post->ID; $price = i4w_get_contact_field(‘_HalfofShowCost’); return $price; } ELSEIF (i4w_has_tag(‘1328’)) : { global $post, $blog_id; $price = get_post_meta($post->ID, ‘_regular_price’); $post_id = $post->ID; $price = i4w_get_contact_field(‘_HalfofShowCost’); return $price; } ELSEIF (i4w_has_tag(‘1332’)) : { global $post, $blog_id; $price = get_post_meta($post->ID, ‘_regular_price’); […]
iMember360
iMember360 User Directory View Profile Button
[i4w_member_dir tagid=’110′ fields=’,FirstName,LastName,Email,Phone1,_Industry,Company,JobTitle,_ShirtSize,_DietaryRestrictions,_HotelAccommodations,Id’ header_labels=’,First Name,Last Name,Email,Phone,Industry,Company,Title,Shirt,Diet,Hotel’ pagelength=’500′]
Format Member Directory Date Field
[i4w_member_dir_editable tagid=’161′ fields=’FirstName,LastName,_PSCStoreName,_PSCAppointmentDate,_PSCAppointmentTime,_PetReferenceNumber,_AppointmentStatus’ header_labels=’First Name,Last Name,Store,Apt Date,Apt Time,Reference Number,Apt Status’ _PSCAppointmentDate=’F j, Y’] For each date field that you want formatted, you simply add the field name to the shortcode, with the format string (using PHP syntax), as shown above.
Force Uppercase/Lowercase Using PHP
To do that you would need to use a structure such as this: [i4w_set myvalue=”[i4w_db__xxx]”] {{:i4w_compare value1=’yyy’ cmp=’EQ’ value2=”[i4w_exec]echo strtolower(‘{:myvalue:}’);[/i4w_exec]”:}} TRUE {{:ELSE_compare:}} FALSE {{:/i4w_compare:}} where xxx is the custom field and yyy is your lower case comparison value.
Google Analytics and iMember360 setup
Download the latest version of iMemebr360 plugin
You can download the latest plugin here: http://download.iMember360.com/
Change User Roles When Logged In
You can control the role set using tags. Please install our Alternate Role Extension Plugin. http://extend.imember360.com/downloads/im360_alternate_role.zip If you edit the .php file it is self documented.
PHP Max Vars
Once in the sftp file find .htaccess: then input: php_value max_input_vars 6000 php_value max_execution_time 6000 NOTE: If on GoDaddy Shared WordPress hosting, you need to make a “.user.ini” file and add it to the root directory. The contents of the file should be: max_execution_time = 6000; max_input_vars = 6000;
iMember 360 Menu PHP Codes
SHOW THE MENU OPTION IF THE USER IS LOGGED IN: is_user_logged_in() SHOW THE MENU OPTION IF THE USER IS LOGGED OUT: ! is_user_logged_in() SHOW THE MENU OPTION IF THE USER IS HAS TAGS 123 OR 345: i4w_has_tag(‘123,345’) IF YOU HAVE TAGS 123 OR 345, DON’T SHOW THIS MENU OPTION !i4w_has_tag(‘123,345’) […]
How to hide/show on mobile/desktop IF client has iMember360 installed
Add the below code to your css file.. [i4w_is_mobile] .hideonmobile { visibility: hidden; display: none; } [ELSE_is_mobile] .hideondesktop { visibility: hidden; display: none; } [/i4w_is_mobile]
