Advertisement:

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

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,104
  • Gender: Male
    • Macedonian electronics forum
Re: Recent Forum Topics on Boardindex
« Reply #160 on: October 25, 2018, 09:03:56 AM »
Yeah, no problem on my forum... though I don't own a smartphone, so I can't confirm.

I recall viewing my forum from my wife's smartphone a few days ago, it seemed fine.

Also, a request directed at Pipke. Could you add a setting to limit the number of pages or recent topics shown (either will do) in the next version? Thanks :).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Pipke

  • Full Member
  • ***
  • Posts: 478
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #161 on: October 25, 2018, 03:01:09 PM »
mobile screenshot in attachment, btw russian is abracadabra to me lol


Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #162 on: October 25, 2018, 03:04:44 PM »
Did this start happening over night or was it always like this?
It's hard to say. I have two web browsers on my phone (Chrome and Opera Beta) and for as long as I can remember the site looks fine.
Two days ago one of my moderators posted a screenshot from his phone. Then I used the built-in Chrome DevTools and saw the same bahaviour. The site still looks good on my phone.

I've just used the Chrome DevTools to check GigaWatt's forum and there is no such problem.


Is there anything I can do to fit the table to the main content section?

Can you provide a link to your forum, so we can see this behavior in action. At GigaWatt's site this looks all fine.
Sure. Here it is -> http://splawikigrunt.pl/forum/

Offline Pipke

  • Full Member
  • ***
  • Posts: 478
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #163 on: October 25, 2018, 03:12:15 PM »
@FishingManMatt your site looks ok with chrome, can you ask the particular moderator wich browser and phone he made the screenshot.

Offline Pipke

  • Full Member
  • ***
  • Posts: 478
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #164 on: October 25, 2018, 03:22:02 PM »
Also, a request directed at Pipke. Could you add a setting to limit the number of pages or recent topics shown (either will do) in the next version? Thanks :).

in RecentForumsTopics.php change this as desired
Code: [Select]
if (isset($_REQUEST['start']) && $_REQUEST['start'] > 95)
$_REQUEST['start'] = 95;

and find all '100' in file, to the desired number of topics, that should do the task.

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #165 on: October 25, 2018, 04:03:21 PM »
@FishingManMatt your site looks ok with chrome, can you ask the particular moderator wich browser and phone he made the screenshot.
Yeah, it looks OK with Chrome. But why doesn't it look OK in DevTools?
Take a look at this recording -> http://splawikigrunt.pl/pliki/misc/RFT.avi

I wrote to the moderator and will post the info as soon as he writes back.

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #166 on: October 25, 2018, 04:54:20 PM »
I got the answer. He used a native web browser in Samsung Galaxy S4 Mini.

And here is his screenshot:

Offline Pipke

  • Full Member
  • ***
  • Posts: 478
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #167 on: October 25, 2018, 05:04:57 PM »
on my dev tools chrome all is fine, btw Viewport meta tag should exist to define device scaling

Viewport meta tag was not found in page header.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,502
  • Gender: Male
    • Kindred-999 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #168 on: October 25, 2018, 05:07:34 PM »
s4 is ancient....   probably not matching modern standards
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,104
  • Gender: Male
    • Macedonian electronics forum
Re: Recent Forum Topics on Boardindex
« Reply #169 on: October 25, 2018, 09:55:36 PM »
mobile screenshot in attachment, btw russian is abracadabra to me lol

It's not Russian :D. It's a Cyrillic language, but it's not Russian :D.

Also, a request directed at Pipke. Could you add a setting to limit the number of pages or recent topics shown (either will do) in the next version? Thanks :).

in RecentForumsTopics.php change this as desired
Code: [Select]
if (isset($_REQUEST['start']) && $_REQUEST['start'] > 95)
$_REQUEST['start'] = 95;

and find all '100' in file, to the desired number of topics, that should do the task.

Thanks :).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #170 on: October 30, 2018, 07:37:20 AM »
Sorry for the delayed response. I had to leave for a few days.

on my dev tools chrome all is fine
Indeed. I have no idea why it looks different in my DevTools. Really a mystery  :o

btw Viewport meta tag should exist to define device scaling

Viewport meta tag was not found in page header.
Ah, I see.
Is it recommended to add this meta tag (even to the default non-responsive theme)?

Offline Pipke

  • Full Member
  • ***
  • Posts: 478
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #171 on: October 30, 2018, 10:41:28 AM »
@FishingManMatt you can always try it out, i guess it will do no harm
Code: [Select]
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #172 on: October 30, 2018, 03:16:50 PM »
Thanks Pipke!
After adding this meta I got the following preview in the DevTools which is, I suppose, even more strange.
I thought it could be related to the custom font DPI (125%) which I set in my Windows, but nothing changed after setting it to the default 100%.
Also, in my desktop Chrome shortcut I have the following target command:
"...\chrome.exe" /high-dpi-support=1 /force-device-scale-factor=1
I launched Chrome without this addition but it didn't change anything either.

The fact is that the GigaWatt's site always looks good in DevTools.

Never mind, let's say it is something mysterious :)
The most important thing is that the site (and the RFT table) looks OK on most mobile devices.

Offline EthanR

  • Semi-Newbie
  • *
  • Posts: 27
Re: Recent Forum Topics on Boardindex
« Reply #173 on: March 18, 2019, 09:11:41 PM »
I'm getting this error message daily in my logs:

Code: [Select]
http://*********/forums/index.php?topic=5876.0
Use of undefined constant php - assumed 'php'
/public_html/forums/Themes/default/languages/RecentForumTopics.english.php (eval?)
Line: 1

Any ideas?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,502
  • Gender: Male
    • Kindred-999 on GitHub
Re: Recent Forum Topics on Boardindex
« Reply #174 on: March 19, 2019, 06:56:46 AM »
turn off eval....   but it looks like one of your files has a bad header
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline EthanR

  • Semi-Newbie
  • *
  • Posts: 27
Re: Recent Forum Topics on Boardindex
« Reply #175 on: April 01, 2019, 09:02:49 PM »
Turned off eval, new error pointed to "RecentForumTopics.english-UTF8.php".  Turned eval back on and removed the file for now. I assume it's used when your forum is in UTF8 format. Will look into it again when I convert to UTF8

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #176 on: August 18, 2019, 04:54:59 AM »
Dear Pipke,

First I would like to publicly thank you for your support and availability to change your MOD.
I am already using it on my fórum page but I have some issues and some requests (if possible).

Would like to have a option or eventually remove completely the 2 colluns on the left side of the topic (post).


On the topic would be nice to have date of when was changed.

On mobile version of my fórum luckily, when fórum is loades is justify all to the left....so is not so bad.
But If I zoom out we can see different boards (blocks) sizes.
Your MOD is not adapting to remaining theme.
Anything you can do with this? "Automatic resize" of topic block?



Best regards

Pedro Figo




Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #177 on: August 18, 2019, 06:27:55 AM »
Quote
On the topic would be nice to have date of when was changed.

Forget this....is already on the right column "LAST MESSAGE"...sorry

Offline Pipke

  • Full Member
  • ***
  • Posts: 478
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #178 on: August 18, 2019, 04:08:50 PM »
Would like to have a option or eventually remove completely the 2 colluns on the left side of the topic (post).
Mod updated v1.2
- Added option to show/hide first and/or second icon column

On mobile version of my fórum luckily, when fórum is loades is justify all to the left....so is not so bad.
But If I zoom out we can see different boards (blocks) sizes.
Your MOD is not adapting to remaining theme.
Anything you can do with this? "Automatic resize" of topic block?

Try this. NOTE:This apply only for your theme!
Open file /Themes/YOURTHEME/RecentForumTopics.template.php (v1.2)
find line 44:
Code: [Select]
<th scope="col" width="15%">', $txt['replies'], ' / ', $txt['views'], '</th>
replace by:
Code: [Select]
<th scope="col" class="taphoNone" width="15%">', $txt['replies'], ' / ', $txt['views'], '</th>

find line 45:
Code: [Select]
<th scope="col" class="lefttext last_th" width="24%">', $txt['last_post'], '</th>';
replace by:
Code: [Select]
<th scope="col" class="lefttext eightSixtyRemove last_th phoneNone" width="24%">', $txt['last_post'], '</th>';

find line 170:
Code: [Select]
<td class="stats ', $color_class, '">
replace by:
Code: [Select]
<td class="stats taphoNone ', $color_class, '">

find line 175:
Code: [Select]
<td class="lastpost ', $alternate_class, '">';
replace by:
Code: [Select]
<td class="lastpost eightSixtyRemove ', $alternate_class, '">';

Offline PFigo

  • Semi-Newbie
  • *
  • Posts: 20
Re: Recent Forum Topics on Boardindex
« Reply #179 on: August 18, 2019, 04:37:08 PM »
Hello,

New version in use and working. Nice.
Removing the 2 columns on the left helped on the mobile version but still issues :-(

Quote
"Try this. NOTE:This apply only for your theme!
Open file /Themes/YOURTHEME/RecentForumTopics.template.php (v1.2)"
I don´t have that file on the specific theme I am using. I have one called "Recent.template.php" but this file doesn´t match with your instructions :-( neither line number and content!
Can I send you the file I have called "Recent.template-php" so you see?.....or because is not your theme is bad?

P.S. On default SMF heme I have the file called "RecentForumTopics.template.php"

Best regards

Pedro Figo