Notifications
Clear all

Suggestion User's post count in simplified layout

11 Posts
3 Users
5 Likes
845 Views
selsebil
Posts: 72
Topic starter
(@selsebil)
Estimable Member
Joined: 2 years ago

Dear wpforo developers,

I like simplified layout than others. But simplified layout don't show the post count of users. So, I am obliged to use extended layout. But I like simplified layout's appearance. Can you add this feature also to simplified layout?

10 Replies
Tutrix
Posts: 826
(@tutrix)
Noble Member
Joined: 3 years ago

@selsebil

you can customize the post.php from layout 2

/wp-content/plugins/wpforo/wpf-themes/classic/layouts/2

open the post.php from layout 2 with an Editor

search for

<div class="author-title">
<?php wpforo_member_title($member) ?>
</div>

add after

<div class="author-posts"><?php wpforo_phrase('Posts') ?>: <?php echo intval($member['posts']) ?></div>
  1. Create / wpforo / folder in your current active theme folder.
  2. Create / layouts / folder in / wpforo / folder
  3. Create / 2 / folder in / wpforo / layouts / folder
  4. add the customize post.php in this folder

looks like this

wp-content / themes / your aktiv theme / wpforo / layouts / 2 / post.php

Theme Customization

Reply
9 Replies
Macky
(@percysgrowroom)
Joined: 4 years ago

Noble Member
Posts: 977

@tutrix This guy is a legend!

Reply
selsebil
(@selsebil)
Joined: 2 years ago

Estimable Member
Posts: 72

@tutrix Thank you for answer. One more question; If the plugin takes update, will the customization be cancelled?

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 826

@selsebil 

if you did it as described above, no

Theme Customization (upgrade-safe way)

Reply
selsebil
(@selsebil)
Joined: 2 years ago

Estimable Member
Posts: 72

@tutrix I made your instructions, but it did not worked. Photo is attached. Check it please

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 826

@selsebil 

if you did everything right it works 😉 
clear forum and browser cache

Reply
selsebil
(@selsebil)
Joined: 2 years ago

Estimable Member
Posts: 72

@tutrix Is my attached photo's customization correct? Is it true that the line begins from the far left? I suspect only my post.php regulation.

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 826

@selsebil 

yes is correct
if you are using a cache plugin, remove the forum from it

>>>> wpForo and Cache Plugins <<<<

Reply
selsebil
(@selsebil)
Joined: 2 years ago

Estimable Member
Posts: 72

@tutrix I cleared the cache and perform CTRL+F5, and open the page in incognito tab, But I didn't accomplish

Reply
Tutrix
(@tutrix)
Joined: 3 years ago

Noble Member
Posts: 826

@selsebil 

give us a link to your forum

Reply