View Full Version : Change module titles to graphic elements?
SilentNoise
04-15-2006, 01:10 AM
I'm wondering if it might be possible to set up the all of the module titles to display as a graphic instead of text?
I've still got a little work to do on the final look of this thing, but this is how I've gotten things set up at this point:
http://members.shaw.ca/lmalarsky/red1.gif
This is the Photoshop example of what I've got mocked up and hope to get:
http://members.shaw.ca/lmalarsky/red2.gif
g7jgq
04-19-2006, 02:46 PM
Hi Steve
I am VERY new to VB and VBA so may have this totally wrong. I set the module title to the html required to produce the graphic i.e. goto 'Edit Module' and change the title to something like
<img src="/images/wibble/wobble.gif" width=100 border=0>
Regards
Alex
SilentNoise
04-19-2006, 05:55 PM
Ya, that's simple HTML, but if you change that in your module_shell template you'll have the same graphic show up for every module.
scsa20
04-19-2006, 06:16 PM
It's easy to do, I just gaved it a try not too long ago, so here's how you do:
log into your ACP>vBa CMPS>Edit Modules
Choose a module you want to have an image for
scroll down til you find Main Options
look through there for Module Title
Replace the title with the following:
<img src="URL to the image you want" border="0" />
scroll down, hit save, and your done.
Just make sure you edit your template to remove the »
edit: looking over what g7jgq said, he's pretty much telling you the same thing I just told you which was to edit the module and NOT the template itself.
Tom M
04-19-2006, 06:24 PM
Ya, that's simple HTML, but if you change that in your module_shell template you'll have the same graphic show up for every module.Each module has a unique id that may be referenced within the template. This may be used to combine with the graphic name to provide a unique name. The images could be named things like mygrahics/modtitle99.gif (in the template this would look something like 'mygraphics/modtitle$mods[modid].gif). I don't recall the exact syntax to reference the module id but that's close. Alternatively, I'm also pretty sure the module name is available for you to reference if you like. All you need to do is poke around a bit to locate the information, create the images and modify the template.
scsa20
04-19-2006, 06:26 PM
eh, I'm too lazy to do all those leg work so just editing the module name is fast and simple for me if I ever want to do something like this :p
SilentNoise
04-19-2006, 06:58 PM
Each module has a unique id that may be referenced within the template. This may be used to combine with the graphic name to provide a unique name. The images could be named things like mygrahics/modtitle99.gif (in the template this would look something like 'mygraphics/modtitle$mods[modid].gif). I don't recall the exact syntax to reference the module id but that's close. Alternatively, I'm also pretty sure the module name is available for you to reference if you like. All you need to do is poke around a bit to locate the information, create the images and modify the template.
Just found this thread actually. I think this is what you're hinting at.
http://www.vbadvanced.com/forum/showthread.php?t=12696
Tom M
04-19-2006, 09:26 PM
Just found this thread actually. I think this is what you're hinting at.
http://www.vbadvanced.com/forum/showthread.php?t=12696That be it :D
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.