Forum Replies Created
-
In reply to: Get IP address that can pass current $user_ID?
ok, now in this code:
`function get_IP() {
if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else {
$ip_address = ”;
}
if(strpos($ip_address, ‘,’) !== false) {
$ip_address = explode(‘,’, $ip_address);
$ip_address = $ip_address[0];
}
return esc_attr($ip_address);`how do i edit it with:
`function my_member_list_id() {
global $members_template;
return $members_template->member->user_id;` so it will work like i want?In reply to: Get IP address that can pass current $user_ID?is there another function that can fetch the IP address??
Well than why does get_ip fetch the ip address?
In reply to: Get IP address that can pass current $user_ID?Where are all the functions located in wordpress???
If I could find where they created “ I would be good
In reply to: Get IP address that can pass current $user_ID?i also tried `member->user_id ) ; ?>`
In reply to: Get IP address that can pass current $user_ID?Uhh i m so frustrated I tried
`function bp_group_member_list_ip() {
global $bp;echo get_IP( ‘$bp->displayed_user->id’ );
}`
In reply to: Get IP address that can pass current $user_ID?anyone?
Im thinking it is this line: `if ( bp_has_forum_topic_posts() ) $bb_this_thread = $forum_template->topic->topic_id;`
@r-a-y, I found a little incompatibility with your code, and with The “bp unread posts” plugin, it seems that this code is making it not to appear
`function bp_unread_posts_record_activity() {
global $bp;
global $forum_template;
if ( bp_has_forum_topic_posts() ) $bb_this_thread = $forum_template->topic->topic_id;
if (empty($bb_this_thread)) {
return $null;
}
$bbtype = ‘last_visits_user_’;
$bbuser = $bp->loggedin_user->id;
$bb_this_visit_time = strtotime($forum_template->topic->topic_time);
$bb_last_visit = bb_get_topicmeta($bb_this_thread, $bbtype . $bbuser);
if($bb_last_visit != $bb_this_visit_time) {
bb_update_topicmeta($bb_this_thread, $bbtype . $bbuser, $bb_this_visit_time);
}
}`what is making it not appear?
Thanks so much! your my hero!
This works great, but now if a user is a mod, than the ip only shows on every post of the mod’s ip, not each and individual user’s ip
Nice!!!! Works great!!!
But it now shows even if the user is not logged in. How can I fix it?
bump
In reply to: How to display the User Post Count in Topic.phpThanks Man! that did it!
In reply to: How to display the User Post Count in Topic.phpand the:
`function bp_member_profile_stats_member_posts_daysince() {
echo bp_member_profile_stats_get_member_posts_daysince();`but i get unexpected errors mmmhm…
should i be putting the function in bp-custom?
In reply to: How to display the User Post Count in Topic.phpThanks for the reply.
I tried putting in: “
the topic.php by the poster avatar but I keep getting: “No Forum Posts yet” even though on their profile it says otherwise
can u help me @r-a-y?
In reply to: How to display the User Post Count in Topic.phpbump
In reply to: How do you show a member’s total post count?should I start a new topic?
In reply to: How do you show a member’s total post count?Hello, I want to display the total forum post count on the topic.php right next to the avatar.
I tried both @boonebgorges code, and the other, but all the counts some up as “2” when there clearly more than 2.
Can somebody help me?
In reply to: How to add a view counter to forums-loop??ok…. i dont know how to do that
i’ll pay you ray for a little small project?
nevermind! I was placing it wrong in the php file… i think it’s working
Hey Mercime! Thanks for the reply.
Unfortunately, I can’t get the text to appear
the “ is what is confusing me, because the user must be logged in to see it?In reply to: How to add a view counter to forums-loop??im confused!
In reply to: How to add a view counter to forums-loop??How do I do that? I’m not a programmer at all
In reply to: How to add a view counter to forums-loop??bump
In reply to: How to add a view counter to forums-loop??bump