smilies are playing with me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    smilies are playing with me

    the smilies are visible in my phone wml mode but in xhtml phone it doesnt but in xhtml if i visit from pc it the smilies are visible example the code is visible not the smile when i am visiting my site from mobile but when i visit from my pc the smilies are visible i am going mad to solve this also tried copying the smilies functions from wml to xhtml and made a comparison on parse pm function parse other pm function and also get smilies function the codes in both i mean wml and xhtml c both functions are seem to be same but still the problem exists
    Nice Effects

    #2
    your probably missing alt="" in your image code

    Comment


      #3
      is it some thing to dow tih the core functions or what?

      Added after 5 minutes:

      but the same smile is visible in wml but it doesnt in xhtml whats the problem?
      Last edited by pretend; 19.07.10, 20:02.
      Nice Effects

      Comment


        #4
        if you can see the image on 1 browser and not another it suggests you are missing alt="something" on your xhtml core (pc browser is excepting this a valid html without it)

        Comment


          #5
          but i did make a comparison with the functions of wml and xhtml almost the smilies and parse pm those are same i dont find any alt on this
          Nice Effects

          Comment


            #6
            rules of alt
            HTML The Rules of ALT - HTML Code Tutorial

            Comment


              #7
              post ur function getsmilies in core xhtml

              Comment


                #8
                PHP Code:
                ///////////////////////////////////////////////Get the smilies

                function getsmilies($text)
                {
                  
                $sql "SELECT * FROM ibwf_smilies";
                  
                $smilies mysql_query($sql);
                  while(
                $smilie=mysql_fetch_array($smilies))
                  {
                    
                $scode $smilie[1];
                    
                $spath $smilie[2];
                    
                $text str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
                  }
                  return 
                $text;

                and you see
                PHP Code:
                 $text str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text); 
                the alt is specified

                it is already posted mate and i have made comparison with my wml core and the xhtml core this is my xhtml cores get smilie and it still doesnt show
                Nice Effects

                Comment


                  #9
                  theres no problem with that code m8...pm me ur addy

                  Comment


                    #10
                    Have you protected your images against hotlinking? as some phones dont support refferer

                    Comment


                      #11
                      i was thinking it sumat to do with ur phone...

                      Comment


                        #12
                        not a solution yet
                        Nice Effects

                        Comment


                          #13
                          looks like its a host problem ...here is the only fix i know of ... but will cause warning messages while on pc
                          PHP Code:
                          function getsmilies($text)
                          {
                          $sql "SELECT * FROM ibwf_smilies";
                          $smilies mysql_query($sql);
                          while(
                          $smilie=mysql_fetch_array($smilies))
                          {
                          $scode $smilie[1];
                          $spath $smilie[2];
                          $text str_replace($scode,"<img src=\"http://%20@sitename.com/$spath\" alt=\"$scode\"/>",$text);
                          }
                          return 
                          $text;

                          By adding full address with %20@ at the start of it ..... but it will cause warnings about going to a page with a username on it whilst on pc

                          Comment

                          Working...
                          X