Jump to content
MakeWebGames

Add a thumbnail for your themes


Uridium

Recommended Posts

This edit will allow you to add Thumbnails to your uploaded themes should work on all GL versions

 

you will need to edit the following files

modules/installed/themeManager/themeManager.admin.php

and

themes/ >>> theme.json file

first lets start with the themeManager,tpl,php file

 

find (on mine its line 100)

 <th width="60px">Actions</th>

and underneath that add

<th width="60px">Thumbnail</th>

 

now find ( on mine its line 112 )

[<a href="?page=admin&module=themes&action=edit&themeName={id}">View</a>] </td>

and underneath that add 

<td><img src="{imageloc}" height="150" width="150"></td>
                        </tr>

 

now goto your themes folder and you will need to edit the themes.json file

just add

"imageloc": "themes/NAME OF THEME FOLDER/images/thumb.jpg",

an example would be

 

"imageloc": "themes/default/images/thumb.jpg",

 

you can call yoour images what ever you want as long as the json matches the image name

 

  • Like 3
Link to comment
Share on other sites

nice idea, it can be simplified to just an image path ex: theme/NAME/thumbnail.png and posted directly with out any edit to the theme.json (to make it easy to upgrade the core)

oh while we on the topic @Dayo the view dont have any function (i removed the button as i see no need to see the theme details that dont exist xD )

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...