Creates room with picture

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

41 replies · 2,321 views · started 17 years ago · 1 min read

TL;DR · summary of 41 replies
  • - The code needs to be fixed so that when creating a new room, it displays an image above the room name.
  • - Adding another input box for pic in index.php?action=mkroom and collecting it in genproc.php?action=mkroom is suggested as a solution.
  • - There are two unresolved issues: one about images not loading properly and the other about multiple rooms showing duplicate pictures.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

7 participants
something else Fellow · 2,296 posts #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

carebear Developer · 68 posts #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=" \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> \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> \n"; } $main.=" $sixkey<a $key6 href=\"./private.php?sid=$sid\">Private Rooms</a>\n \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(); ?>

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close