Forum Replies Created
-
In reply to: Remove “Edit” link in reply header for certain roles
Yes, Robin. The codes run without any error. Appreciated your effort in helping me to solve the issue.
In reply to: Remove “Edit” link in reply header for certain rolesThere it is:
$bbp_roles['bbp_prime_moderator'] = array(
I’ve tried the two options below but both return errors:
if ($user_role == bbp_get_bbp_prime_moderator_role()) unset ($links['edit']) ;
if ($user_role == bbp_get_prime_moderator_role()) unset ($links['edit']) ;
In reply to: Remove “Edit” link in reply header for certain rolesYes. It works beautifully! 🙂
I just found out something when I thought the issue is solved. The code works well with native bbpress role, but not work with new role created. I have a new role “prime_moderator” created using your plugin, but the code return error when I apply this new role to the codes. Any suggestions?
Regards.
In reply to: Remove “Edit” link in reply header for certain rolesHi Robin, thanks for your prompt reply.
The code does not work. Perhaps something missing?
I only take this
if ($user_role == bbp_get_moderator_role()) unset ($links['edit']) ;
When moderator log in, he still can see the “edit” link.Regards.
In reply to: Remove “Edit” link in reply header for certain rolesThey are all bbpress roles.
In reply to: Pagination not showing correctlyOh ok. Thanks.
Now I shifted back to
[bbp-topic-index]
and limit the number of displayed topics in WordPress dashboard setting>forum. And it finally displays page number.In reply to: Close topic labelIt works.
Thanks for helping me despite your tight schedule!In reply to: Close topic labelTwo forums:
“Medical and Health Takaful”
and
“Endowment/Saving Plan”
In reply to: Close topic labelHi, these two topics are closed:
https://paste.pics/NKT55In reply to: Close topic labelWith [Closed] label one. 🙂
In reply to: Close topic labelHere is my site link.
In reply to: Close topic labelThanks Robin.
The CSS seems not working. The highlight is still visible for closed topic.
In reply to: Close topic labelI’m looking for a transparent background (Topic/Reply Display item 4) since I have already set two different colours for odd & even forum listing background (Forum Index Styling > Forum Content > Background Color).
If I use single colour in Topic/Reply Display item 4, this colour will be visible in either odd/even forum background settings.
In reply to: Close topic labelHi, I recently saw this topic and it helps me solve one problem.
I can finally use this CSS to disable the grey-out effect when the topic is closed:
#bbpress-forums .status-closed, #bbpress-forums .status-closed a { color: #000 !important; }
From this previous topic also, CSS can do equally well to add [Closed] label beside the closed topic title in topic list page:
#bbpress-forums .status-closed > li.bbp-topic-title > a.bbp-topic-permalink:after { content: "[Closed]"; text-shadow: 1px 1px 0 #ffffff; color: #ff0000; margin-right: 5px; }
I wonder if we can use CSS (instead of PHP codes) to add another [Closed] label beside the topic title in single topic page. Any solution?
See https://paste.pics/N5WS0Also, I’m still searching for ways to disable the defaulted pink font highlight when the topic is closed. Hope somebody can help.
See https://paste.pics/N8U5TRegards.
In reply to: Close topic labelYes. It’s done beautifully. Thanks!
One last closed topic customization job: to DISABLE the default font highlight & grey-out effect if the topic is closed. Hope this is not as tricky as it may appear.
See screenshot:
https://paste.pics/N8U5TRegards
In reply to: Close topic labelYou’re right. This code does not work in my theme. Well, think we just put this part on hold first.
Next, I want to change font label [Closed] to RED colour. Can we do that?
Regards.
In reply to: Close topic labelHi, thanks a lot! … feel amazed to see how coding can do the changes to our forum layout.
This code just works fine in topic listing page.
For topic page, it would be perfect if user can still see the [Closed] label beside the topic title.
See https://paste.pics/N5WS0Regards.
In reply to: Close topic labelHi, do u mean we replace
add_filter ('the_title' , 'rew_add_close_to_topics') ;
with
add_action ('bbp_theme_before_topic_title' , 'rew_add_close_to_topics', 15);
?In reply to: Close topic labelI notice that [Closed] label appears beside forum name as well:
See screenshot:
https://paste.pics/N3JIWWe need to get rid of it also.
Regards.
In reply to: Close topic labelThank you so much, Robin!
Two more things to make it perfect:
1) to disable the default font highlight & grey-out effect;
2) to change font colour [Closed] to red to make it stands out the rest.Regards.
In reply to: Customizing lead topicYes sir.
In reply to: Customizing lead topicAfter checked, this is related to all replies, not just the lead topic affected.
Within same topic, some replies that created few days ago shows “4 hours, 12 minutes ago” today. Other replies may show “sometime ago”. The freshness display seems like all mess up.
eg,
first post (lead topic): 10 hours, 51 minutes ago
2nd reply: 2 hours, 36 minutes ago
3rd reply: 15 hours, 52 minutes ago
4th reply: 7 hours, 21 minutes ago
5th reply: 16 hours, 27 minutes agoIn reply to: Customizing lead topicRecently I found that all freshness display all showing “sometime ago”.
I came across a topic related to same issue Notifications – Date Received = “Sometime Ago”. It seems that the problem is related to time zone that makes this freshness display totally unworkable. If I don’t want to change to the actual display of date/time, any solution for this?
Regards.
In reply to: Show nickname instead of usernameBrilliant! Thanks for the codes. Just tested and it works like a charm! 😀
In reply to: Show nickname instead of usernameHi, here is my test site. Still under construction.
I found that most of the time WordPress display correctly in “display name publicly as” using NICKNAME. But there are times where it displays USERNAME in “display name publicly as” even though users have already registered their nickname in Ultimate Member profile.