Re: image-manager don't use the image-set icons

Anybody can help me with this please? The time for code freeze is coming fast.

http://on.fb.me/x5lEdX
Report
Topic


image-manager don't use the image-set icons

Hello,

as you can see in the code, I did some commits yesterday and my target is to use the icons from images-set. This step is very important for an admin theme.

But I have a problem with the image-manger. The image-manager use templates and the icons are in the templates included.

like this:

<img src="images/delete_big.png" /></a>


In my other commits I could use the function for the image-set. But how can I use this for a template? It's possible to use a smarty?

like this:
<img src="<{$ICMS_IMAGES_SET_URL}>/actions/delete_big.png" /></a>

http://on.fb.me/x5lEdX
Report
Topic


Re: admin theme - some barriers

Ticket with more details

https://sourceforge.net/apps/trac/impresscms/ticket/802

http://on.fb.me/x5lEdX
Report
Topic


Re: function $icms_images_setname

I'll rework your commits in a bit. You shouldn't use $icms_images_setname at all. In fact, this is not a function rather than a variable. That's all.

Please use the constant ICMS_IMAGES_SET_URL instead. It's available throughout the code and defined as follows:

define('ICMS_IMAGES_URL', ICMS_URL . '/images'); $icms_images_setname = 'crystal'; define('ICMS_IMAGES_SET_URL', ICMS_IMAGES_URL . '/' . $icms_images_setname);

the german icms website : www.impresscms.de
Report
Topic


Re: function $icms_images_setname

  • 2011/8/30 1:17:14
  • david

Really we need to add a prefference to look at the imageset directory in images, and see what subdirectories exist.

Report
Topic


Re: admin theme - some barriers

Yes, right. The core will not use admin templates.

http://on.fb.me/x5lEdX
Report
Topic


Re: admin theme - some barriers

Does that mean that it is not possible to override system templates in a theme?

Report
Topic


Re: admin theme - some barriers

Quote:


Madfish wrote:
Maybe you could change the name of the image set in /include/common.php?

Quote:

/**
* @todo make this $icms_images_setname as an option in preferences...
*/
$icms_images_setname = 'crystal';
define("ICMS_IMAGES_SET_URL", ICMS_IMAGES_URL."/" . $icms_images_setname);



This is an other topic too http://community.impresscms.org/modules/newbb/viewtopic.php?topic_id=4916&forum=10&post_id=44041#forumpost44041

I changed, but for example the the templates from the image manager dont use the "crystal" icons. I know, I can add the templates in my theme, but the core would not use my templates.

@Dev: I like to change the templates from the system module and change the image url

from
<a href="admin.php?fct=images&op=delcat&imgcat_id=<{$cat_id}>" title="<{$lang_imanager_cat_del}>"><img src="images/delete_big.png" /></a>

to
<a href="admin.php?fct=images&op=delcat&imgcat_id=<{$cat_id}>" title="<{$lang_imanager_cat_del}>"><img src='" . ICMS_IMAGES_SET_URL . "actions/images/delete_big.png' alt="<{$lang_imanager_cat_del}>" /></a>

http://on.fb.me/x5lEdX
Report
Topic


Re: admin theme - some barriers

Maybe you could change the name of the image set in /include/common.php?

Quote:

/**
* @todo make this $icms_images_setname as an option in preferences...
*/
$icms_images_setname = 'crystal';
define("ICMS_IMAGES_SET_URL", ICMS_IMAGES_URL."/" . $icms_images_setname);

Report
Topic


admin theme - some barriers

For the moment it is not possible to create a full ACP theme, I can find some barriers.

- the core would not use my Template files (theme_name/modules/system/admin/images/*.*)
- the core use different images (modules/system/images/*.* and images/crystal/actions/*.*)

My Result: I can create a theme and change some CSS styles, but not change the templates / images.*/

http://on.fb.me/x5lEdX
Report
Topic


function $icms_images_setname

Hello,

at the moment we have the function $icms_images_setname for our crystal icons, but this function is not in the preferences added for the moment.

I like to change this icon set with my admin theme. It's not a problem to add PHP code in the beginning from my theme.html, but how can I change the this?

Like this?

if (!defined('ICMS_ROOT_PATH')) { define('ICMS_ROOT_PATH', XOOPS_ROOT_PATH); } if (!defined('ICMS_TRUST_PATH')) { define('ICMS_TRUST_PATH', XOOPS_TRUST_PATH); } if (!defined('ICMS_URL')) { define('ICMS_URL', XOOPS_URL); } if (!defined('ICMS_GROUP_ADMIN')) { define('ICMS_GROUP_ADMIN', XOOPS_GROUP_ADMIN); } if (!defined('ICMS_GROUP_USERS')) { define('ICMS_GROUP_USERS', XOOPS_GROUP_USERS); } if (!defined('ICMS_GROUP_ANONYMOUS')) { define('ICMS_GROUP_ANONYMOUS', XOOPS_GROUP_ANONYMOUS); } $icms_images_setname = 'MY_FOLDER_NAME'; if (!defined('XOOPS_XMLRPC')) { define('XOOPS_DB_CHKREF', 1); } else { define('XOOPS_DB_CHKREF', 0); }

http://on.fb.me/x5lEdX
Report
Topic


Re: working on templates for iForum

  • 2011/8/27 8:58:13
  • Will

I like the idea of putting the postrow icons on top of the avatar.

Report
Topic


Re: working on templates for iForum

Quote:

You have understood correctly, I do not like the arguments about avatar dimensions. The header from the posting is too big. Important from a posting is not the info from the user, important is what he wrote.


I never said anything different. I just said that the way you're doing it is the wrong approach.
ImpressCMS provides an option to specify the avatar size. In a basic installation, without any modifications, the avatar should be treated the same whereever it is shown. This doesn't mean that you can't design iForum in a way that it isn't modifyable.
By default, things should be designed to fit the default theme. Any modifications can be done afterwards in custom themes.
To allow this modification, add a class attribute to the img tag. Adding an ID attribute in this positon isn't possible since we're in a loop of posts. ID attributes have to be unique. Webmasters can then modify the avatar without suffering headaches. Adding static sizes is the wrong approach because it would upscale the avatar in case the webmaster wants to have smaller ones by default. CSS is the only suitable solution in this case.

Designers won't tell you any different.

the german icms website : www.impresscms.de
Report
Topic


Re: working on templates for iForum

  • 2011/8/25 1:39:42
  • david

Any way to have a prefference to allow either a set size, or an over-ridden size, then everyone's happy?

Anyway - other than this - the templates are coming along well!

Report
Topic


Re: working on templates for iForum

Thank your for prompt feedback.

About font-size. I changed the counter and font-size, please view it here.
http://dev.internet-box.info/modules/forum/viewforum.php?forum=1

It's better now?

About avatar dimensions
You have understood correctly, I do not like the arguments about avatar dimensions. The header from the posting is too big. Important from a posting is not the info from the user, important is what he wrote.

http://on.fb.me/x5lEdX
Report
Topic


Re: working on templates for iForum

1) You don't like my arguments about static avatar dimensions, do you?
2) McDonalds remark is a good one. I used to have topics with 10.000+ replies in my forum. Even though I like the figures to be like that, I guess it might cause issues.

the german icms website : www.impresscms.de
Report
Topic


Re: working on templates for iForum

The templates look very good!

One thing: The font-size for replies, views, posts and topics seems to be pretty big. What will happen if the value(s) will increase, say be greater than 100 or 1000?

McDonalds Store
Report
Topic


working on templates for iForum

I work for better Templates in the iForum module. If you like to test and to discuss about it, I'm happy.

Overview (80%finished):
http://dev.internet-box.info/modules/forum/index.php?lang=en

Category (80%finished):
http://dev.internet-box.info/modules/forum/index.php?cat=2

Forum (80%finished):
http://dev.internet-box.info/modules/forum/viewforum.php?forum=3

Subforum (60%finished):
http://dev.internet-box.info/modules/forum/viewforum.php?forum=7

Topic (15%finished):
http://dev.internet-box.info/modules/forum/viewtopic.php?topic_id=10&forum=7

http://on.fb.me/x5lEdX
Report
Topic


Re: use blocks in mega-drop-down-navigation?!

This is solved. Solution was a twoliner.

the german icms website : www.impresscms.de
Report
Topic


use blocks in mega-drop-down-navigation?!

  • 2011/8/21 7:47:27
  • lotus

Hi guys,
I want to handle Blocks in a drop-down-area.

I did some experiments with the ixt-theme (ixt00905_2.2).
In this theme are already 12 Blocks (like "search", "new member",..) exist for the footer, but it use own templates, for it.

I'm looking for a "mega-drop-down"-navigation and i found this:
http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/

Now I made a new block-postion for the headnavigation and add with multiMenu my dynamic navigation.

This works for me. The code looks like that:

<{foreach from=$xoBlocks.headnavi item=block}> <div class="ixt-PostContent"><{$block.content}></div> <{/foreach}>

headnavi is the blockpostion.


After that I want to but blocks into the drop-down-area, but this does not work with own blocks. Only the 12 Theme-Blocks works.

Maybe somebody can help me?!

Webdesign: http://netzstrand.de
Report
Topic



 Top