Notifications
Clear all

wpForo 1.x.x [Solved] How can Admin set up a default signature to all posts?

12 Posts
4 Users
0 Likes
842 Views
Posts: 124
Topic starter
(@mplusplus)
Reputable Member
Joined: 4 years ago

Hi there

How can Admin set up a default signature to all posts please?

Thanks.

Topic Tags
11 Replies
Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @mplusplus,

I'm really sorry but we don't follow you well, please try to explain in other words or by using some screenshots.

Posts: 124
Topic starter
(@mplusplus)
Reputable Member
Joined: 4 years ago

Hi  there

Sure. I mean - I am the admin and I want certain text be appended to all posts. So when a user posts a message, at the bottom of that that specific text will be appended.

E.g.

-------- User posts --- 

Hello,

Does someone know how to start a forum on WordPress?

Thanks.

------ Admin's automatically appended message ---

Check out our store to buy new gear.

-----------------

Thanks.

2 Replies
Moderator
(@martin)
Joined: 8 years ago

Support Team
Posts: 986

@mplusplus,

Just put that text in the signature field of Your Profile > Account page:

 

(@mplusplus)
Joined: 4 years ago

Reputable Member
Posts: 124

@martin, that will work if a user wants to add Signature on his own posts.

I am looking for a way for site Admin to add Signatures on ALL the posts by all users.

Any thoughts please?

Thanks.

Tutrix
Posts: 1267
(@tutrix)
Noble Member
Joined: 4 years ago

Hi @mplusplus

try this
add to custom css

"before" user Signature

.wpforo-post-meta:before {
content:"Your Admin Signature";
background: #fff;
padding: 5px 10px;
width: 100%;
display:block;
}

or

"after" user Signature

.wpforo-post-meta:after {
content:"Your Admin Signature";
background: #fff;
padding: 5px 10px;
width: 100%;
display:block;
}

replace "Your Admin Signatur" with your Text

 

5 Replies
(@mplusplus)
Joined: 4 years ago

Reputable Member
Posts: 124

@tutrix Thanks so much, though this should work however I am looking for a more programmatic way to do this, like PHP file changes somewhere? 

With PHP, I can use random text instead of fixed text as is the case in CSS.

Thanks so much again.

Tutrix
(@tutrix)
Joined: 4 years ago

Noble Member
Posts: 1267

@mplusplus

ok, try

add the Admin Note under the Signature
and remove it from the header.php

post.php

add

<div class="wpforo-admin-note"><?php do_action( 'wpforo_header_hook' ); ?><?php echo wpautop( $note ) ?></div>

looks like

<?php if( wpforo_feature('signature') ): ?>
<?php if($member['signature']): ?><div class="wpforo-post-signature"><?php wpforo_signature( $member ) ?></div><?php endif; ?>
<?php endif; ?>
<div class="wpforo-admin-note"><?php do_action( 'wpforo_header_hook' ); ?><?php echo wpautop( $note ) ?></div>
(@mplusplus)
Joined: 4 years ago

Reputable Member
Posts: 124

@tutrix this is so promising. Sorry, I am a newbie and will really appreciate if you can please provide more details.

- "add the Admin Note under the Signature" Which file will I do this in please?

- "and remove it from the header.php" - Sorry, remove what from header.php?

- What exactly needs to be done in Post.php?

Thank you so much.

Tutrix
(@tutrix)
Joined: 4 years ago

Noble Member
Posts: 1267

@mplusplus

open post.php (example layout 2)

add this Code

 

<div class="wpforo-admin-note"><?php do_action( 'wpforo_header_hook' ); ?><?php echo wpautop( $note ) ?></div>

 

custom.css add this Code

/*remove Admin Note from Forum Top */

#wpforo #wpforo-wrap .wpforo-admin-note {
display:none;
}
/*add Admin Note on post */

#wpforo #wpforo-wrap .wpforo-post-content .wpforo-admin-note {
display:block !important;
margin-top: 10px;
}

that's all 😉 

watch the Video Admin-Signature

 

(@mplusplus)
Joined: 4 years ago

Reputable Member
Posts: 124

@tutrix You are a legend! Thanks so much 🙂

Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @mplusplus,

I'm sorry but there is no way to do that.

However, the wpForo allows you to customize the files as you need, you just need to find the file where displays the post content and manually add the information you want to display.

Please follow this instruction to customize the wpForo files:

https://wpforo.com/docs/root/forum-themes/theme-customization/

Also, I will suggest you check out the wpForo Ads Manager add-on. It might be very useful in such cases. The add-on allows you to add adverting banners between forums, topics, and posts. You can choose particular forums for certain advertising banner and manage the duration of advertising using start/end date options. More info here: https://gvectors.com/product/wpforo-ad-manager/