Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: durangod on December 10, 2023, 09:06:08 PM

Title: Show Your Rig Mod
Post by: durangod on December 10, 2023, 09:06:08 PM
Back in the day i modified  a "Show Your Rig" mod for phpbb from another mod.  Since i am no longer using phpbb i was wondering if anyone here has seen or heard of such a mod for SMF forums.

Basically what it does it is allows you to list your computer specs and or host environment so we know what the user is working with.  This helps with support issues that may be caused by different environments and speeds up the support process. 

I have been searching the mod database here and have yet to find anything like that. 

Any suggestions?
Title: Re: Show Your Rig Mod
Post by: Diego Andrés on December 10, 2023, 09:18:38 PM
An alternative would be to create custom profile fields so the users can select options or input their specs in a single or multiple fields.
Title: Re: Show Your Rig Mod
Post by: durangod on December 11, 2023, 03:06:40 AM
Ok great, i will work on that tomorrow... :)
Title: Re: Show Your Rig Mod
Post by: durangod on December 13, 2023, 12:40:21 AM
Wanted to update this to show the resolve.

I added the custom fields for server environment, then did some css.

I added fields for:
Apache Version,
Panel Type/Version,
OS,
MySQL Version,
Kernel Version,
PHP Version,
Browsers  (there is enough room to list 2 broswer names and versions (75 chars).

The one problem i had is this section on the custom  fields form called Show Enclosed Within Text (Optional):

Even the docs are not clear on this, they could do better explaining this.  The simple explanation is they want you to put your input inside an html code if you can.  The title of the data on the page will not show unless you enter the name here or put it inside some sort of html code.  So since mine are all text i just put it inside a span.  Like so:

this is what i put in that box, you can see that i gave it a css class, they all had the same class

<span class="server_data">Apache Version: {INPUT}</span>

Here is a sample of one of the fields, they are pretty much alike other than names.

(https://uc557dba9fc85d45732724fc27ac.previews.dropboxusercontent.com/p/thumb/ACHuQa5qbAyWcJD3hEMBr8s6O1JHbic9TXAPsU3BISM9WObqbuutuUVJnzzmdOebiUmZzvWQUgm-JB4ZJaKTrMjmR7eUujZVj8fKvWjlO9up7ZxlUINmY61Kiys7eScG5IHerCCRyzZEvufyZg0IyUnZiDI6I2c2jKn9MMBeyvxUXGGrB5BKQ_uvNOIgfgFEZt77H91VZxbFTHKn6ySjzNjVCp0sEmN8t_Aozrprbnhd_GZ866mBSyADQG0HrN5QmvLQwCBf6D2jtq1gXXyQleJTudyKyhfAGaNDwYeNw8qG53-QolDItRY5ouMd2FN7YkzXQV_ttldz6g1fZIYQPT7rTe0wg4IwSSqJAlqC_jANp48wve1Re0mW9wAMcjdqavA/p.jpeg)


Then i did the css..

span.server_data {
    font-size: small;
    color: #145414;
}



and here is what it looks like in board topic view

(https://uc4edae3b7b02ee4664d37da8238.previews.dropboxusercontent.com/p/thumb/ACEG7jtAE-lkBfHb20UHSTmfWAi4Pup4wiIXgLaQH9LhnfBu1hHF46mFqJMgbkfNZe-wqFlW22VUXuRVJarl_6Njl2vcOyvNpHIE41R7z7ag4WvClJkY5SPT5egdPyKmhoBVFGUJyRUsFHEiYS53GIgn4efV8GQxXQ0DTwiYru3M-Hi3y6a95cZryuSzwcR4m_5ppWTZ4rnlHTaLVXHZGpmgJgA4aH4UJdY7GJPtzK7QrDGRnyMRW0CBjHXNMh9mf1eKQOweWgrR5ZqBpgNehcCy3LjjdZUl2AFnE9cj3Q0BLJ9yKCScESuzXFcgncQNAPBBBuqVjmco9_VwZZs8Qq4OXouBvMEVVoZkuzPB-OT5I4sOOoRyLwMoYUnLDHIwTfw/p.jpeg)


Hope that helps someone that wants to do this :)