Eric Ridolfi
Nuke Newbie Posts:9
|
07/21/2006 12:54 PM |
|
Does anybody know how to make the links such as search, login/logout, and register into images that can be used as links? |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/21/2006 10:56 PM |
|
You could try to add the following into the xml file for Text and LogoffText. Alternatively you could just update the ascx file directly. Set the Text and LogoffText attributes to have . Where XXX is the location of your image files. Hopefully this makes sense. Cheers Jim. |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/21/2006 11:00 PM |
|
Seems like my previous post did not get formatted correctly. Hopefully it comes thorugh OK now: Set the Text and LogoffText attributes to have . Where XXX is the location of your image files. Please note that I have eliberately mispelt Immg so that it formats better in this post.
Cheers Jim. |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/21/2006 11:04 PM |
|
Sorry. Seems I cannot win. Basically you need to specify a html image tag for the attributes Text and LogOffText.
Lee, if you are reading this post, are you able to give me a basic instruction of how to make reference to an image tag for example that will format correctly in this forum.
It's gotten me a few times now.
Cheers Jim. |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/22/2006 12:47 AM |
|
Just to mention that if you use the xml file to sepcify the image of your Text and LogOffText attributes, you will need to use encoding. Otherwise, you will probably find that the xml file will not be parsed properly.
So for the Text and LogOffText tokens, use a value of <IMG border="1" SRC="XXX">
Cheers Jim. |
|
|
|
|
Eric Ridolfi
Nuke Newbie Posts:9
|
07/22/2006 10:20 AM |
|
Jim,
Thanks for the reply but I still cannot get it to work. I typed it directly into the ascx file like this: Submit="<img src="xxx.gif"/> />
All I get is a broken image with quotes around it. |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/23/2006 1:47 AM |
|
OK try this. Open up the ascx file and locate the login component. Make it look like so:
<
Let me know how you get on.
Cheers Jim.
dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="SkinItem" Text="<img border="0" src=xxx"> LogOffText="<img border="0" src=xxx"> /> |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/23/2006 7:37 AM |
|
I probably be more precise:
====================
<dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="SkinItem" Text="<img border='0' src='xxx' />" LogOffText="<img border='0' src='xxx' />" /> |
|
|
|
|
Eric Ridolfi
Nuke Newbie Posts:9
|
07/23/2006 9:19 AM |
|
Jim,
Thanks again for not responding but I still get a broken link. The only difference is that I don't have the quotes and the closing tag around it this time. It seems like I am not typing the path to the image out correctly but I don't know what I am doing wrong. I have the image in the same file as the ascx file.
Thanks. |
|
|
|
|
Eric Ridolfi
Nuke Newbie Posts:9
|
07/23/2006 9:50 AM |
|
Sorry for that last reply I didn't mean "not responding" I meant thanks for responding.
Anyways, I noticed something really weird. When I logged out of DNN the image showed up. However, once I clicked to login again, the image would appear as a broken image again. So, I guess it's kind of working.
Anybody have any thoughts? Is it a DNN thing or is it me?
Thanks. |
|
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/23/2006 7:42 PM |
|
Probably best to send me an email by pasting what your dnn:Login looks like. I think if you try any sort of html on this forum, it sometimes displays correctly and sometimes not. |
|
|
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
07/24/2006 3:15 AM |
|
ok, I got this to work by entering the code into Visual Web Developer Express first. - Copying the code from VWD and then pasting it into the forum.
I also tried this with Visual Studio 2003, but pasting the code from there just tried to add the image directly into the forum.
So if you have VWD this is an easy way to solve the problem. - I have asked this question of adding code in the main active forums forum (probably over a year ago now) but didn't receive a response.
Thanks,
Lee |
|
Lee Sykes Site Administrator Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
Twitter: www.twitter.com/DNNCreative
|
|
|
Jim Pandaz
Nuke Active Member Posts:22
|
07/25/2006 7:16 AM |
|
Hi. I've just sent you an email and I think it will solve your problem.
For the interest of anyone else, in a nutshell, manofvalor24 wanted to apply an image on the actual search link. He specified an image tag for the Submit attribute for the dnn search component, but made relative reference to it instead of an absolute reference. He was noticing that if he tried to log on, the image kept breaking because the image was being picked up relatively.
I did a basic test and found the same. I then defined the location of the image using the absolute location, and all went fine.
Cheers Jim. |
|
|
|
|
Eric Ridolfi
Nuke Newbie Posts:9
|
07/26/2006 8:51 PM |
|
Thanks Jim for all of your help. What you suggested worked out. |
|
|
|
|
sajid parvez
Nuke Newbie Posts:2
|
08/01/2006 4:35 AM |
|
Try this, I have aslo spent a lot of time to make it work.
<a href="<%= DotNetNuke.Common.NavigateURL(36, "Login") %>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image109','','<%= SkinPath %>login_on.gif',1)">
<img src="<%= SkinPath %>login_off.gif" alt="Login" name="Image109" width="30" height="30" border="0">
</a>
Where 36 is the Tabid and "Login" is the control key. To know the correct tabid just click on the default login hyperlink and that will give u the correct url details...
Hope this info is enough to solve ur problem.
Cheers!!! |
|
|
|
|
sajid parvez
Nuke Newbie Posts:2
|
08/01/2006 5:02 AM |
|
Posted By sajid.parvez on 01 Aug 2006 4:35 AM Try this, I have aslo spent a lot of time to make it work.
Make the above changes in the .ascx file.
Where 36 is the Tabid and "Login" is the control key. To know the correct tabid just click on the default login hyperlink and that will give u the correct url details... Hope this info is enough to solve ur problem. Cheers!!!
|
|
|
|
|