Creates room with picture

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

    #31
    and remove the:
    ????: Coding-Talk Creates room with picture - Coding-Talk lol

    Comment


      #32
      something,
      I do not understand why you can not see picture. I am in the database, table ibwf_rooms I only added this line
      pic varchar(255) default=""
      Perhaps I should say more .. boh

      Comment


        #33
        if your having trouble with trim remove it
        change it to:

        $ilink = $room[3];
        if($ilink=="")
        {
        $ilink = "<img src=\"default_image.gif\" alt=\"*\"/>";
        }else{
        $ilink = "<img src=\"$ilink\" alt=\"*\"/>";
        }


        also check to make sure the url is in the database

        Comment


          #34
          Something_else, the imageis not seen

          Comment


            #35
            If(!$ilink=="") i thnk it is lyk that. . uhm btw i already fix ths coding bout ur thread in my own site so wl gonna post it when my pc works again. . hehe
            com site: http://vampist.net
            download site: http://wapdloads.net
            fb: http://www.facebook.com/pmplx

            Comment


              #36
              changed, but the image is not seen

              Comment


                #37
                can u post ur code ...maybe i have idea for that
                com site: http://vampist.net
                download site: http://wapdloads.net
                fb: http://www.facebook.com/pmplx

                Comment


                  #38
                  sorry, I was wrong to put the codes in the file, I put them right now! But there is a problem, when I create private room and insert an image from the image folder, the image you see in the database, but not in a private room, why? I tried with all codes and 2
                  PHP Code:
                  $ilink $room[3]; 
                  if(
                  $ilink==""

                  $ilink "<img src=\"../images/logo.gif\" alt=\"*\"/>"
                  }else{ 
                  $ilink "<img src=\"$ilink\" alt=\"*\"/>"

                  and
                  PHP Code:
                  $ilink trim($room[3]);
                    if(
                  $ilink=="")
                    {
                     
                  $ilink "<img src=\"../images/logo.gif\" alt=\"*\"/>";
                    }else{
                     
                  $ilink "<img src=\"../uploaded/files/$ilink\" alt=\"*\"/>";
                    } 
                  but not seen, is seen only in the database ..
                  Last edited by Leviathan73; 11.01.11, 15:29.

                  Comment


                    #39
                    something else heeelppp!!!!!

                    Comment


                      #40
                      chat.php files but perhaps lacking a reference code?

                      Comment


                        #41
                        right click on the unloaded image and copy location.
                        is the url correct? or is it blank...

                        if you cant see the image at all to right click on ....view page source to find out if the url is correct or not

                        Comment


                          #42
                          I am with riderz have the pics on the chatroom menu b4 u enter a chatroom

                          <?php
                          define('WCS',true);
                          include('../core/main.inc');
                          header_type();
                          cleardata();
                          if(ipbanned(ip(),browser())){
                          if(!shield(getuid_sid($sid))){
                          echo head_tag("Ip Blocked!!!",0,0);
                          echo ipbanned_msg();
                          echo foot_tag();
                          exit();
                          }
                          }
                          if(!islogged($sid)){
                          echo head_tag("Error!!!",0,0);
                          echo session_expired();
                          echo foot_tag();
                          exit();
                          }
                          if(banned(getuid_sid($sid))){
                          echo head_tag("Error!!!",1,getnick_sid($sid));
                          echo banned_msg($sid);
                          echo foot_tag();
                          exit();
                          }
                          if(chatbanned(getuid_sid($sid))){
                          echo head_tag("Error!!!",1,getnick_sid($sid));
                          echo chatbanned_msg($sid);
                          echo foot_tag();
                          exit();
                          }
                          mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

                          /////////////////////////PUBLIC CHATROOMS/////////////////////////

                          addonline(getuid_sid($sid),"Chatroom List","");
                          echo head_tag(getnick_sid($sid)."@Chatroom List",1,getnick_sid($sid));
                          $title="<img src=\"../phpThumb/phpThumb.php?src=../smilies2/chatroom.gif\"alt=\"".sitename()."\"/>";
                          $main="<p align=".align().">\n";
                          $gallery=mysql_fetch_array(mysql_query("SELECT uid, path FROM gallery3_files ORDER BY RAND() LIMIT 8"));
                          $main.="<img src=\"$gallery[1]\" width=\"180\" height=\"180\"/a><br/>
                          <br/>\n";
                          $rooms=mysql_query("SELECT id, name FROM chatrooms WHERE public='1' AND clubid='0'");
                          while($room= mysql_fetch_array($rooms)){
                          $noi=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM chatonline WHERE rid='".$room[0]."'"));
                          $main.="<a href=\"chat.php?action=chat&amp;sid=$sid&amp;rid=$ room[0]\">$room[1] $noi[0]</a><br/>\n";
                          }
                          $main.="<br/>$sixkey<a $key6 href=\"./private.php?sid=$sid\">Private Rooms</a>\n</p>\n";
                          $L1="$sevenkey<a $key7 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
                          $L2="$eightkey<a $key8 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
                          $L3="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
                          $L4="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
                          echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,0,0,0,0,$main) ;
                          echo foot_tag();
                          ?>

                          Comment

                          Working...
                          X