Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Post Field on Friends Pages


Nick Watson
Participant

@nickbwatson

Solved!

<script language="javascript" type="text/javascript">
function addtext(text) {
document.whatsnewform.whatsnew.value = (text+=document.whatsnewform.whatsnew.value);
}
</script>

I did have to change the names of the forms for this to work because they contained “-” marks (ex whats-new-form).

But basically you just have that script above your form, and then within the submit button of the form, just add:

onclick="addtext('@<?php bp_displayed_user_username() ?> ');

MAKE SURE THERE IS A SPACE AT THE END OF <?php bp_displayed_user_username() ?>

or else it won’t work when you post.

Now all I need to do is get it so that when you post, it doesn’t change your personal status!!!

Skip to toolbar