Remove Date/Time from Recent Topics Widget

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Remove Date/Time from Recent Topics Widget

Re: Remove Date/Time from Recent Topics Widget

by axew3 » Sat Sep 05, 2020 4:57 pm

WilboBaggins wrote: Sat Sep 05, 2020 3:54 pm
axew3 wrote: Sat Sep 05, 2020 3:07 pm<strong>$value->topic_last_poster_name</strong>
That worked perfectly! Thanks again, this plug-in is great!
if you tested

Code: Select all

<span style="font-weight:900;color:#FF0000">$value->topic_last_poster_name</span>
or

Code: Select all

<span class="myclass">$value->topic_last_poster_name</span> 
won't work, because " (double quotes) needs to be escaped (going to update the previous post) ... i didn't test and had not think on this, so right versions are:

Code: Select all

<span class=\"myclass\">$value->topic_last_poster_name</span>
or

Code: Select all

<span style=\"font-weight:900;color:#FF0000\">$value->topic_last_poster_name</span>

Re: Remove Date/Time from Recent Topics Widget

by WilboBaggins » Sat Sep 05, 2020 3:54 pm

axew3 wrote: Sat Sep 05, 2020 3:07 pm<strong>$value->topic_last_poster_name</strong>
That worked perfectly! Thanks again, this plug-in is great!

Re: Remove Date/Time from Recent Topics Widget

by axew3 » Sat Sep 05, 2020 3:07 pm

np! yes, you can post the line you changed so we can see where to apply the html or css markup

Or, if it is not relevant what you changed (by the default) on the line of code you use to output, then this should work:

change
$value->topic_last_poster_name

into
<strong>$value->topic_last_poster_name</strong>

or
<span class=\"myclass\">$value->topic_last_poster_name</span>
and apply css via .myclass selector

or inline style it
<span style=\"font-weight:900;color:#FF0000\">$value->topic_last_poster_name</span>

[EDITED]
double quotes needs to be escaped in this case

Re: Remove Date/Time from Recent Topics Widget

by WilboBaggins » Sat Sep 05, 2020 2:41 pm

OK. Last question, I swear (hope)! :) How can I bold just the poster name?

I've used "$w3all_lastopics_style_ul" to style the widget/shortcode in the "phpbb_last_topics_forums_ids_shortcode.php" file, but can I change the style of just the poster name, such as to make it bolded text?

Thanks!

Re: Remove Date/Time from Recent Topics Widget

by WilboBaggins » Sat Sep 05, 2020 1:17 pm

Thanks and sorry for the confusion. It wasn't that file either, but actually the "phpbb_last_topics_forums_ids_shortcode.php" file that needed to be edited since I'm using forum ID's to identify which ones are shown.

Thanks again for your help!

Re: Remove Date/Time from Recent Topics Widget

by axew3 » Sat Sep 05, 2020 8:17 am

Hello! Sorry, then what you are using is a shortcode, not the widget, the file to aim to is:
/wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_output_shortcode.php

and not the phpbb_last_topics.php!

Top