N1CK3RS0N Posted January 29, 2009 Share Posted January 29, 2009 Hello, I'm trying to include the $pageicon in my header file, so it can display the icon for the type of page your viewing. If your viewing clientarea, it displays the clientarea icon. If you view Knowledgebase, it displays the icon for the knowledgebase, etc. The problem I'm having is I cannot edit the URLS of those icons, since they are in the php files themselves, and they are ioncube encoded. I saw someone else site that does it and it looked real nice and I wanted to add it to mine. <img src="templates/{$template}/{$pageicon}" alt=""/> Is what I'm currently using for it. The URL to an actual icon should be like this <img border="0" alt="" src="templates/nickerson2.0/images/icons/clientarea.png"/> But the way its coded it goes to this image. <img alt="" src="templates/nickerson2.0/images/clientarea_big.gif"/> How can I change the image locations in those files? 0 Quote Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted January 29, 2009 Share Posted January 29, 2009 why can't you just over write the original image with your image? 0 Quote Link to comment Share on other sites More sharing options...
N1CK3RS0N Posted January 29, 2009 Author Share Posted January 29, 2009 why can't you just over write the original image with your image? The pages are encoded with ioncube. 0 Quote Link to comment Share on other sites More sharing options...
N1CK3RS0N Posted January 29, 2009 Author Share Posted January 29, 2009 The pages are encoded with ioncube. I don't get why the current page images are coded as that. Those images don't even exist. They must have been from an old version and they forgot to change them when they updated the images to .png's and _big isn't even in the title. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted January 29, 2009 Share Posted January 29, 2009 There's a couple o ways to do it, including (I believe) a regex replace in the header file. However, i just found it easier to rename my icons to match the standard naming convention & overwrite the original files with my own for those cubed pages. Just be aware of overwriting that directory on upgrades. 0 Quote Link to comment Share on other sites More sharing options...
N1CK3RS0N Posted January 29, 2009 Author Share Posted January 29, 2009 I would rename icons but that is a pain, and I'd have to make them .gif which is lower quality. I could manually insert the breadcrumb into each template file then manually insert the icon, but thats a lot of work. Much easier to keep it in the header. 0 Quote Link to comment Share on other sites More sharing options...
N1CK3RS0N Posted January 30, 2009 Author Share Posted January 30, 2009 FOR FUTURE REFERENCES. Support advised me to use the code from the default templates to display the icons on the pages. {if "templates/$template/images/icons/$filename.png"|file_exists}<img src="templates/{$template}/images/icons/{$filename}.png" align="right" alt="" />{/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.