PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Mon Jan 11, 2010 11:06 am Reply with quote Back to top

I tried to change this login to an imagen but it dissappear. I guess this one is a little different than Membership login. Can u correct me what is wrong.

from this one
Code:
echo "[ <a href=\"modules.php?name=$module_name\">"._LOGIN."</a> \n";


Replace with (but it doesnt show)

Code:
echo " <a href=\"modules.php?name=$module_name\"><img src=\"images/bblogin1.gif\" alt=\"Login\" </a> \n";


Ok let's validate it right now


Last edited by unicornio on Mon Jan 11, 2010 4:06 pm; edited 2 times in total
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Jan 11, 2010 11:56 am Reply with quote Back to top

First off you can't have a <td> tag inside of your <a> tags. Unless you are adding columns then you need to remove it. If you are it needs to be in front of the <a> tag. Second if you are just looking to have an image link to the lokgin area you should not be using an input tag. All you need to do is something like this: <a><img /></a> .


Last edited by Palbin on Mon Jan 11, 2010 3:57 pm; edited 1 time in total
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Mon Jan 11, 2010 1:48 pm Reply with quote Back to top

Thanks Palbin. I already did it and it is working fine. Can u validate it to see if it is correct.?
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Jan 11, 2010 3:59 pm Reply with quote Back to top

I think you need to have an "alt" attribute, for the image, for it to validate.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Mon Jan 11, 2010 4:03 pm Reply with quote Back to top

Also this is how you should be writing this. At least the way I think you should Smile. There are reason, but I don't feel think explaining them now Smile

Code:
echo '[ <a href="modules.php?name=' . $module_name . '"><img src="images/bblogin1.gif"alt="" /></a>' . "\n";
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Jan 11, 2010 6:52 pm Reply with quote Back to top

I also usually don't bother with the ending . "\n" because if I am debugging a site, I am always going to use FireFox and I just use the Tidy extension and can click a button and have all the HTML perfectly formatted for my viewing/reviewing pleasure... Wink
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum