PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old February 28th, 2013, 07:33 AM
Jacques1's Avatar
Jacques1 Jacques1 is offline
pollyanna
Click here for more information.
 
Join Date: Jul 2012
Location: Germany
Posts: 1,864 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 21 h 21 m 6 sec
Reputation Power: 813
I don't think that praying will help.

If you already have enough of the problem, simply leave the alt tag empty. Otherwise keep testing.

I basically see two possibilities: Either there are some really, really weird dependencies, which somehow shuffle the attributes before the output. Or you're making some really, really stupid mistake. I'm not saying that you do, but we had several occasions when people made weird typos or used different code than what they posted here.

In any case, PHP does not care about the HTML context. The parser simply evaluates everything between "<?php" and "?>", it does not "know" whether the output goes into an alt tag or an element or whatever.

Reply With Quote
  #17  
Old February 28th, 2013, 07:51 AM
Robotower Robotower is offline
Contributing User
Click here for more information
 
Join Date: Oct 2012
Location: Croatia
Posts: 66 Robotower User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 58 m 54 sec
Reputation Power: 1
Yes, this is true, but haw can i make mistakes when i copy paste your code. And all work well wen are out of img tag, and inside give something wrong. Maybe because this is img tag, and then from database do not witdraw name of games, they witdraw name of images. But whay, i don have clue. And sure i em not so stupid to make somy typo, because i use copy paste.
__________________
Internet games

Reply With Quote
  #18  
Old February 28th, 2013, 08:32 AM
Jacques1's Avatar
Jacques1 Jacques1 is offline
pollyanna
Click here for more information.
 
Join Date: Jul 2012
Location: Germany
Posts: 1,864 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 21 h 21 m 6 sec
Reputation Power: 813
Like I said, PHP knows nothing about the surrounding HTML. It does not "know" that it's inside an img, so it doesn't change its behaviour depending on the context. That would be rather weird, wouldn't it?

Anyway, if you don't wanna try out the suggestions, I'm out of ideas...

Reply With Quote
  #19  
Old February 28th, 2013, 08:49 AM
Robotower Robotower is offline
Contributing User
Click here for more information
 
Join Date: Oct 2012
Location: Croatia
Posts: 66 Robotower User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 58 m 54 sec
Reputation Power: 1
Quote:
Originally Posted by Jacques1
Like I said, PHP knows nothing about the surrounding HTML. It does not "know" that it's inside an img, so it doesn't change its behaviour depending on the context. That would be rather weird, wouldn't it?

Anyway, if you don't wanna try out the suggestions, I'm out of ideas...

I tray your sugestion, but this work out from imgages. :S Not in images.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Joomla - Php alt tag in images dont work

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap