| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 8664|Reply: 5
Collapse the left

Global images

[Copy link]
Post time: 2014-07-21 21:19
| Show all posts |Read mode
Improved version is coming but I would like to know how to change global images.

Example of global image:
  1. http://codersclub.org/discuzx/static/image/common/forum.gif
Copy the Code


Path of this image is placed not in CSS but TEMPLATE. This makes image global for ALL skins.

It would be nice to find solution for it. Of course, I can change path in template file but it will change also structure of some graphic elements.

 Russia

Post time: 2014-07-22 12:20
| Show all posts
So, you can try to do this

 Russia

Post time: 2014-07-22 09:56
| Show all posts
I have the next idea:

We can replace every icon placed directly into templates to a special styled span having that icon as a background.

I.e.
WAS:
<img src="http://codersclub.org/discuzx/static/image/common/forum.gif">

BECAME:
<span style="icon forum">
and plus the icon style:
  1. .icon .forum {
  2.    background: url(/discuzx/static/image/common/forum.gif) no-repeat;
  3.    width: 31px;
  4.    height: 29px;
  5. }
Copy the Code


When we have switched to another style,
we just replace the default style to what we need with a new image.
 Author| Post time: 2014-07-22 12:09
| Show all posts
Yes, this is what I mean.
 Author| Post time: 2014-08-24 22:29
| Show all posts
There is a code that shows new/old topic icons.

  1. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  2.                                                                 <!--{if $forum[icon]}-->
  3.                                                                         $forum[icon]
  4.                                                                 <!--{else}-->
  5.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  6.                                                                 <!--{/if}-->
  7.                                                         </td>
Copy the Code
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-21 23:26 GMT+3 , Processed in 0.060670 sec., 14 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list