Forum Replies Created
-
Author
-
vulkashParticipant
It is not working with your code in my style.css from child folder but i tryed with :
COPY CODE.page-id-844 .kleo-page.boxed-style { max-width: 100% !important; }
And now its working 🙂
vulkashParticipantI found a solution by changing the message-loop :
COPY CODE<td width="75%" class="thread-info"> <p><a href="http://www.lookingforpals.com/" title="<?php _e("View Message", "buddypress" ); ?>"><?php bp_message_thread_subject(); ?></a></p> <p class="thread-excerpt"><?php bp_message_thread_excerpt(); ?></p> </td>
The original :
COPY CODE<td width="75%" class="thread-info"> <p><a href="<?php bp_message_thread_view_link(); ?>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject(); ?></a></p> <p class="thread-excerpt"><?php bp_message_thread_excerpt(); ?></p> </td>
So as you can see i deleted
<?php bp_message_thread_view_link(); ?>
and put my personal link.
I guess there have a better way for do that ?^^vulkashParticipantYeah indeed its working now thank you 🙂
So i have another problem maybe you can help me 🙂 Its about the code for get free male membership :
COPY CODEfunction kleo_pmpro_default_level($user_id) { global $wpdb, $bp; //Change this with your field name $field_name= "I am a"; //Change the field value $value_to_match = "Woman"; //Membership level id $membership_level = 1; //Done editing $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) ); if ($_POST['field_'.$field_id] == $value_to_match) { pmpro_changeMembershipLevel($membership_level, $user_id); } } function kleo_mu_pmpro_default_level($user_id, $password, $meta) { global $bp, $wpdb; //Change this with your field name $field_name= "I am a"; //Change the field value $value_to_match = "Man"; //Membership level id $membership_level = 1; //Done editing $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $field_name ) ); $field_value = $meta['field_'.$field_id]; if ( $field_value == $value_to_match ) { pmpro_changeMembershipLevel($membership_level, $user_id); } } if (is_multisite()) { add_action( 'wpmu_activate_user', 'kleo_mu_pmpro_default_level', 10, 3); } else { add_action('user_register', 'kleo_pmpro_default_level'); }
This code is for set man members as free membership if i understood. Actually i have two rank in paid membership the first is called “VIP” and second “Regular members” so i would like to set all woman as “VIP” and man as “Regular members”. Can you tell me how to change this code for get that ?
Thank youvulkashParticipantHello i tryed to add the code for arrow chat so i wrote the code with the right path as you can see below :
COPY CODEfunction ChatCheckMemberships() { if(pmpro_hasMembershipLevel(array(2), get_current_user_id())){ echo ' <link type="text/css" href="/arrowchat/public/list/css/style.css" rel="stylesheet" charset="utf-8"/> <script type="text/javascript" src="/arrowchat/public/list/js/list_core.js" charset="utf-8"></script> ';} } add_action('wp_head', 'ChatCheckMemberships')
But actually isnt working and my website isnt accessible anymore with this code, the problem seem located on the last line :
add_action('wp_head', 'ChatCheckMemberships')
when i remove this line its okay the site is accessible again. So i wonder if this line is usefull or not ?
ps : Im using sweetdate themevulkashParticipantAnd if i want target with the “page-id” can i do that like that ?
COPY CODE.page-id-1028 div#members-list .four.columns {width: 25%;} .page-id-1028 #members-list .four.columns:nth-child(n+1) {clear:right !important;}
vulkashParticipant-if i understand yet i should write something like that for modify all
<H2>
from activity page :COPY CODE.directory.activity h2{ font-size: 1.2em; }
Its allways like that i mean if i want modify another page it should be
.directory.pageID
-Understood for row thanks laura 🙂
-
AuthorPosts