Advertisement:

Author Topic: Recent Forum Topics on Boardindex  (Read 56588 times)

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #200 on: September 18, 2019, 12:29:11 PM »
On the mobile version of my site I'm having trouble with the width issue of this mod. I changed the settings that are mentioned 2 pages back which made the box contents smaller but I still have the empty space to the right as shown in the attatchment

Find this file in your forum: RecentForumTopics.template.php
It will be in the Themes/default folder...

Code: [Select]
echo'
<th scope="col" width="15%">', $txt['replies'], ' / ', $txt['views'], '</th>
<th scope="col" class="lefttext last_th" width="24%">', $txt['last_post'], '</th>';

and change this to

Code: [Select]
echo'
<th scope="col" class="stats" width="15%">', $txt['replies'], ' / ', $txt['views'], '</th>
<th scope="col" class="lastpost lefttext last_th" width="24%">', $txt['last_post'], '</th>';
Unfortunately it didn't work for me. Must be due to theme I am using :-(

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #201 on: September 18, 2019, 12:31:49 PM »
Very well possible. These edits work on his forum since he is using responsive curve. No clue what you are using... can you post a link to your forum? I can have a look...
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #202 on: September 18, 2019, 12:58:45 PM »
Found your site...

In addition to the changes listed you will need to change the responsive.css file...

Code: [Select]
/* Remove */
table.table_list tbody.content td.stats {
display: none;
}

and change to

Code: [Select]
/* Remove */
table.table_list tbody.content td.stats, table.table_grid .stats, table.table_grid .lastpost {
display: none;
}
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline Pipke

  • Full Member
  • ***
  • Posts: 477
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #203 on: September 18, 2019, 05:06:14 PM »
On the mobile version of my site I'm having trouble with the width issue of this mod. I changed the settings that are mentioned 2 pages back which made the box contents smaller but I still have the empty space to the right as shown in the attatchment

Find this file in your forum: RecentForumTopics.template.php
It will be in the Themes/default folder...

Code: [Select]
echo'
<th scope="col" width="15%">', $txt['replies'], ' / ', $txt['views'], '</th>
<th scope="col" class="lefttext last_th" width="24%">', $txt['last_post'], '</th>';

and change this to

Code: [Select]
echo'
<th scope="col" class="stats" width="15%">', $txt['replies'], ' / ', $txt['views'], '</th>
<th scope="col" class="lastpost lefttext last_th" width="24%">', $txt['last_post'], '</th>';
Unfortunately it didn't work for me. Must be due to theme I am using :-(

@PFigo you didnt do the edits (right) as i told you in this post. https://www.simplemachines.org/community/index.php?topic=522114.msg4028118#msg4028118
if i look in dev tools on your site you still have this code , you must change that.
Code: [Select]
<th scope="col" width="15%">Respostas / Visualizações</th>
and
Code: [Select]
<th scope="col" class="lefttext last_th" width="24%">Última mensagem</th>



Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #204 on: September 20, 2019, 07:02:09 AM »
I didn´t.....I don´t know why!

Done it already but didn´t work totally...is much better but still have you MOD (now all uniform) bigger than my theme.
Is probably something to do with theme I am using…
Thanks for your help and support.


Best regards
Pedro Figo

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #205 on: September 20, 2019, 07:11:31 AM »
Make the changes I suggested...
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #206 on: September 20, 2019, 10:09:34 AM »
Found your site...

In addition to the changes listed you will need to change the responsive.css file...

Code: [Select]
/* Remove */
table.table_list tbody.content td.stats {
display: none;
}

and change to

Code: [Select]
/* Remove */
table.table_list tbody.content td.stats, table.table_grid .stats, table.table_grid .lastpost {
display: none;
}
This was for me?
Thought it was for oneteaminsouthend.

Even so if is for me were is responsive.css file?  ;)

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #207 on: September 20, 2019, 11:51:03 AM »
Yes, that was for you , mind you TOGETHER with the other fix I posted
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #208 on: September 20, 2019, 03:57:57 PM »
Yes, that was for you , mind you TOGETHER with the other fix I posted
Thanks😉...but I don't have that file...

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #209 on: September 20, 2019, 03:59:50 PM »
Yes you do. Its in the theme/css folder...

https://foruminovarnaconstrucao.pt/Themes/SunRise20_v2/css/responsive.css

But if I look at your site now it seems it is fixed already...
Not sure what the problem is you are trying to fix now...

can you explain?
« Last Edit: September 20, 2019, 04:23:13 PM by @rjen »
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #210 on: September 20, 2019, 04:29:39 PM »
mmm, I think I see your issue: it's that the recent block is wider than the rest I guess...

That is caused by the title being too long for the screen and set to nowrap...
Caused by this section in index.css.

Code: [Select]
table.table_grid thead tr.catbg th
{
white-space: nowrap;
}

the nowrap prevents the long title from wrapping to the next line...
You can take that out to fix it... just make sure you check what is doe to other tables in your theme...
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #211 on: September 20, 2019, 07:22:05 PM »
Yes you do. Its in the theme/css folder...

https://foruminovarnaconstrucao.pt/Themes/SunRise20_v2/css/responsive.css [nofollow]
You are correct....my bad.

mmm, I think I see your issue: it's that the recent block is wider than the rest I guess...

That is caused by the title being too long for the screen and set to nowrap...
Caused by this section in index.css.

Code: [Select]
table.table_grid thead tr.catbg th
{
white-space: nowrap;
}

the nowrap prevents the long title from wrapping to the next line...
You can take that out to fix it... just make sure you check what is doe to other tables in your theme...
Exactly the problem like you said.
Before I try your changes do you know where I can change the words on the header that can be the cause of width?
I believe I can write in other way, meaning the same, but shorter...

Offline @rjen

  • Full Member
  • ***
  • Posts: 505
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #212 on: September 21, 2019, 02:33:43 AM »
It uses these text strings that are in your language file...
The rtf_ strings are in RecentForumTopics.xxx.php

$txt['rft_name']
$txt['rft_to']
$txt['started_by']
$txt['rft_in_Board']

But that will changes the strings also on desktop view. I personally would suppress the started by and in Board strings on mobile.
In your theme you can do that by updating the file RecentForumTopics.template.php

Find
Code: [Select]
echo'<th scope="col" class="lefttext ',$class,'" >', $txt['rft_name'], ' <span style="color: #'.$modSettings['rft_color_viewnumbers'].';">&laquo; ', $counter = $_REQUEST['start'] + 1 ,' '.$txt['rft_to'].' ', $sum['counter'], ' &raquo;</span> / ', $txt['started_by'], ' / ', $txt['rft_in_Board'], '</th>';
}

and change that to:

Code: [Select]
echo'<th scope="col" class="lefttext ',$class,'" >', $txt['rft_name'], ' <span style="color: #'.$modSettings['rft_color_viewnumbers'].';">&laquo; ', $counter = $_REQUEST['start'] + 1 ,' '.$txt['rft_to'].' ', $sum['counter'], ' &raquo;</span><span class="phoneNone"> / ', $txt['started_by'], ' / ', $txt['rft_in_Board'], '</span></th>';
}
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #213 on: September 21, 2019, 04:42:27 AM »

But that will changes the strings also on desktop view.


Thanks for your reply.
Top of recent topic, on my case has this in Portuguese:
Quote
TÓPICOS RECENTES NO FÓRUM « 1 A 10 » / INICIADO POR / NO GRUPO
I changed it to:
Quote
TÓPICOS RECENTES  « 1 A 10 » / INICIADO POR / GRUPO
Meaning is the same and I "bypass" width issue.
Now is okay for me also on mobile version.

Thanks for those who help me...

Best regards

Pedro Figo