Jump to content

Product Images


Recommended Posts

Hi Steve. I cannot find any such file as admin header.tpl only admin/templates/v4/header.tpl Is this the file you mean?

 

Anyway, I placed the above code in that as instructed to no effect even clearing /templates_c The editor still shows up on my admin home page, not that I really mind. Any advice appreciated. My thanks.

 

Edit

Actually, yes I do mind the editor on the admin home page now under Admin Notes because it is totally messing up that section by displaying HTML that I cannot now get rid of.

Edited by redrat
Link to comment
Share on other sites

Thanks Steve. I'm still not able to get rid of the extra unwanted occurrences but will persevere. The most annoying thing is that the admin notes occurrence just took control the moment I started using it to format my notes and now won't allow me to delete them or remove the html formatting code which is displayed. EG: No problem until I hit save.

 

No biggy though. I love the editor and obviously just need to try and get my silly old head around sorting this out. I just know this will be so useful once I get it under some control. Awesomely useful in fact. I might need some help Steve but (I'm not allowed to say here *cough*) would never offer any form of payment against forum rules. :)

Edited by redrat
Link to comment
Share on other sites

Hi Steve. I cannot find any such file as admin header.tpl only admin/templates/v4/header.tpl Is this the file you mean?

 

Anyway, I placed the above code in that as instructed to no effect even clearing /templates_c The editor still shows up on my admin home page, not that I really mind. Any advice appreciated. My thanks.

 

Edit

Actually, yes I do mind the editor on the admin home page now under Admin Notes because it is totally messing up that section by displaying HTML that I cannot now get rid of.

 

I have the same problem.

 

Probably the easiest fix is to move the admin notes so that it streches across the page, below the three columns, instead of being in a column.

Link to comment
Share on other sites

You can also use this. we must only see that the ID or Name is unique. Then it shows only on the Textfield with Name or ID.

<textarea name="" id=""

 

tinyMCE.init({

mode : "exact", // Exact Mode

elements : "description, nextid", // here the textarea ID or Name form HTML Code

theme : "advanced",

Edited by spaceman
Link to comment
Share on other sites

Now i have found how we can start without <p>my text</p>

 

add this forced_root_block : false,

 

tinyMCE.init({

mode : "exact",

elements : "description,announcement,article,post", //

forced_root_block : false,

theme : "advanced",

 

(header.tpl then {include_php file="editor/editor.php"} better this)

Edited by spaceman
Link to comment
Share on other sites

  • 4 weeks later...
To make the include a little easier for some and also to show just on the configproducts page insert this in your admin header.tpl template just under the <body> tag
{if $SCRIPT_NAME|substr:-19 == '/configproducts.php'}

{include_php file="editor/editor.php"}

{/if}

 

is there a way of doing this so that we can just add the extra "pageweneediton.php" to a list as I need it on also on /admin/clientsnotes.php

Link to comment
Share on other sites

is there a way of doing this so that we can just add the extra "pageweneediton.php" to a list as I need it on also on /admin/clientsnotes.php

 

I think I have done it :

 

{if $SCRIPT_NAME eq "/admin/configproducts.php"}

{include_php file="editor/editor.php"}

{elseif $SCRIPT_NAME eq "/admin/clientsnotes.php"}

{include_php file="editor/editor.php"}

{/if}

 

but there may be a better way of doing it?

Edited by thehost5968
Link to comment
Share on other sites

  • 4 weeks later...

I need some help this has just stopped working on me dose any one now why this may happen?

 

This is the code I have in my admin header:

{if $SCRIPT_NAME eq "/admin/configproducts.php"}

{include_php file="editor/editor.php"}

{elseif $SCRIPT_NAME eq "/admin/clientsnotes.php"}

{include_php file="editor/editor.php"}

{/if}

Link to comment
Share on other sites

  • 3 weeks later...

type {debug} in Template and see whats in row "{$SCRIPT_NAME}"

 

in my case there is whcmsroot

{if $SCRIPT_NAME eq "whcmsroot/admin/configproducts.php"}

{include_php file="editor/editor.php"}

{elseif $SCRIPT_NAME eq "whcmsroot/admin/clientsnotes.php"}

{include_php file="editor/editor.php"}

{/if}

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

We have just finished setting up custom images located on in various places by simply using the {if} tags.

 

For exmaple

 

{if $productgroup.name eq "Dedicated Servers"}<img src="">{else}

Something here{/if}

 

It works extreamly well, i shall be sticking up a post in the showcase section once everything is finished because we have pretty much customised everything from orderforms to customer side etc.

Link to comment
Share on other sites

As far as getting the editor to appear in specific areas, this is what we did. Put this right before the </head> tag.

 

admin/templates/v4/header.tpl

{* Begin HTML editor in Product Configuration *}
{assign var='admbase' value=$smarty.server.PHP_SELF|basename}
{if ($admbase == 'configproducts.php' || $admbase == 'supportdownloads.php') && $smarty.get.action=='edit'}{include_php file="editor/editor.php"}{/if}
{* End HTML editor in Product Configuration *}
</head>

Link to comment
Share on other sites

  • 3 months later...
The Bug is fixed now. Now you can register on my Page and download the Editor.

best regards,

enrico

 

 

Hi spaceman,

 

I can't download full editor i tried to registered but i can't i use a real email, but i'm freelancer i don't have number.

 

i'm french sorry for my bad english

 

Sylvie

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated