News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Theme Changer

Started by SMFHacks.com Team, April 23, 2012, 06:38:02 PM

Previous topic - Next topic

Shades.

Is there a way to change the default to show "Change the theme" instead of showing the first theme?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

vbgamer45

Untested you can add after in sources/cls.php
<optgroup label="', $txt['cls-head'], '">

add
<option value="0">Change the Theme</option>
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shades.

I changed it in all 3 different places (? ? ?) in the file but the first theme still shows as default and when I click to choose it shows the "Change the Theme" twice.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

vbgamer45

It's this code that needs to be removed then too
(($settings['theme_id'] == $theme['id']) ? ' selected="selected"' : '')

That will stop it from being preselected.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shades.

That did it but had to remove the comma at the end of it too! ;D

(($settings['theme_id'] == $theme['id']) ? ' selected="selected"' : ''),
Took me a minute to figure that out! :laugh:

Great job, I love it! 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Recursos

I have a problem, selection is not working:



Theme "DefaultCopy (unchanged)" was selected from "Manage and Install themes", and from "Manage and Install themes" I can select any of the 4 themes.
But "SMF Theme Changer" does not allow me to selected another one of the 4 items.
I uninstalled mod, deleted and installed "Last Updated October 22, 2022, 06:42:26 AM" to no avail.

Where should I look?

Shades.

Quote from: Recursos on October 25, 2022, 08:08:00 AMWhere should I look?
Right above where it says "Overall forum default:" look for "Themes that the user is able to select:" and click on "[ Show the list of themes ]" and make sure all the themes you want to be able to be selected are checked. Hope that helps! 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Recursos

Thanks, it is working now.

Advertisement: