WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: achalesas on October 17, 2023, 04:15:23 AM

Title: Categories
Post by: achalesas on October 17, 2023, 04:15:23 AM
Hello,
sorry for my bad English....

I would like to have more categories in a row, where can I change that?
Thanks for the reply


lg

acha
Title: Re: Categories
Post by: achalesas on October 20, 2023, 01:00:18 PM
No Idea/Answer ?
Title: Re: Categories
Post by: Dave on October 21, 2023, 03:50:31 AM
There are times when Chen doesn't come on here for days.
Title: Re: Categories
Post by: achalesas on October 21, 2023, 08:25:52 AM
aha, it's ok
Title: Re: Categories
Post by: Chen Zhen on October 26, 2023, 05:46:29 PM

You'll have to edit a source file to make that change as I used inline styling elements for some of the display.

Use FTP & a proper Unix file editor ( such as Notepad++ )

File: ../ArcadeSources/Subs-ArcadePlus.php

find:
display: table-cell;vertical-align: bottom;padding-top: 15px;border: 0px;width: 20%;
Edit the width value to a lower percentage.

Notepad++ link: https://notepad-plus-plus.org/downloads/


Title: Re: Categories
Post by: achalesas on October 27, 2023, 02:45:38 AM
Quote from: Chen Zhen on October 26, 2023, 05:46:29 PMYou'll have to edit a source file to make that change as I used inline styling elements for some of the display.

Use FTP & a proper Unix file editor ( such as Notepad++ )

File: ../ArcadeSources/Subs-ArcadePlus.php

find:
display: table-cell;vertical-align: bottom;padding-top: 15px;border: 0px;width: 20%;
Edit the width value to a lower percentage.

Notepad++ link: https://notepad-plus-plus.org/downloads/


Thank you Chen Zhen,

but this row is available 4 times, no matter how and where I do it, for example. B, change it to 5%, it only works "halfway". What am I doing wrong?

1.jpg

LG acha
Title: Re: Categories
Post by: Chen Zhen on November 03, 2023, 06:01:18 PM

My apologies as I gave you an incomplete edit in error.

Download the attached file to replace the file I asked you to edit.
You can adjust this part of the code in the file to achieve your objective:

(approx. line# 1862)
list($catCellWidth, $catsPerLine) = array(
'20%',
5,
);

.. adjust the 2 numbers to your desired settings.


The next official release of the arcade will include admin settings for these.


Title: Re: Categories
Post by: achalesas on November 04, 2023, 03:04:43 AM
1.jpg

 It worked, thank you very much
Title: Re: Categories
Post by: bolang on November 04, 2023, 07:50:08 AM
Thanks Chen for the tips, keep up your good work ;)
EhPortal 1.39.6 © 2024, WebDev