-
Posts
467 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by rootKID
-
i know about the sql_injection, ill do that when i have made up the working code and about the query, can i make an another query line (inside) the while loop, would that not just give an error?, or did i misunderstood something?...
-
Hello w3s.i'm not sure if i have asked in the right forum, was unsure if i should put the question in PHP or SQL area, anyways. i have attached a image where i show my so called forum so far made myself without trouble.Now i have ran into trouble that i would like to ask help for. LOOK AT PICTURE FOR THE IDEA here is my code: Menu: $HTMLOUT .= box_start("Forum Menu");$fm_res = mysql_query("SELECT * FROM mod_forum_menu ORDER BY fm_id ASC");$get_fc_id = (isset($_GET['fc_id']) ? '?fc_id='.$_GET['fc_id'].'&' : '?');//if isset...if (mysql_num_rows($fm_res) > 0)//if bigger than 0...{while($fm_array = mysql_fetch_assoc($fm_res))//fm = forum_menu{ $HTMLOUT .= "(<a href='forums_v1.php".$get_fc_id."fm_id=".$fm_array['fm_id']."' alt='".$fm_array['fm_name']."'>".$fm_array['fm_name']."</a>) ";}}else{$HTMLOUT .= "No forum menu added yet, please contact First Line Support for further information!...";}$HTMLOUT .= box_end(); Forum Categories: /*Category Forums...*/if(isset($_GET['fm_id'])){$fc_res = mysql_query("SELECT * FROM mod_forum_cats WHERE fc_id = ".$_GET['fm_id']);}else{$fc_res = mysql_query("SELECT * FROM mod_forum_cats ORDER BY fc_id ASC");}/*Category Forums...*/$get_fm_id = (isset($_GET['fm_id']) ? '?fm_id='.$_GET['fm_id']."&" : '?');//if isset...if (mysql_num_rows($fc_res) > 0)//if bigger than 0...{//$HTMLOUT .= "Forum(s) succes showed...<br />";while($fc_array = mysql_fetch_assoc($fc_res))//fc = forum_category{ $HTMLOUT .= "<div id='forum_cats_title_wrapper'>"; $HTMLOUT .= "<a href='forums_v1.php".$get_fm_id."fc_id=".$fc_array['fc_id']."'>".$fc_array['fc_name']."</a><-FORUM CATEGORY LIKE LH!..."; $HTMLOUT .= "</div>"; $HTMLOUT .= "<div id='under_forum_cats_title_wrapper'>"; $HTMLOUT .= "--<a href='#'>ACTUAL FORUM 1 HERE...</a><br />"; $HTMLOUT .= "--<a href='#'>ACTUAL FORUM 2 HERE...</a>"; $HTMLOUT .= "</div>";}}else{if($CURUSER['class'] >= UC_ADMIN)//equal or over ADMIN level for this message...{ $HTMLOUT .= " Admin Message:<br /><br /> Remember to add a Forum category before the real forums can be showed!...";}else{ $HTMLOUT .= "No forum categories added yet, please contact First Line Support for further information!...";}} now, i have done almost everything correct, i think, i have not errors so far.My trouble now lies in that i need to output the actual forums lying under the Forum Categories...how to do this in an another SQL?, the current one as you see is inside a while loop, and i should as far as i have been thinking, be in the same while loop... ideas?... PS:if you need more info, tell me so and i will try to explain in details of what i am doing, thanks again! ...
-
thanks, well i would not say im totally new in to the subject, i do know the difference between if/else statements ... anyhow, thanks, i just thought that it could be done with CSS, but since i have alot of pages to cover, something close up to 20 , my guess is that i would be needing some programming... again, crap x).... any idea to how i could do this? I did think of making a Table in the DB called 'menu' or something similar to that, and then giv id as always, and 2 more called m_name,m_id... m_id for ID for each and one menu, and name... will, a bonus for the admin's on my website hehe, now im at the programming part, i can just right away code it now im at it, you understand ... what you think?
-
hello, i have been wondering, and this might be a rookie question, but one i simply need to ask, coz it is making me a little bit insane... i have this CSS right now: /* unvisited link */#forum_cats_title_wrapper a:link { color:#0087DC; text-decoration:none;}/* visited link */#forum_cats_title_wrapper a:visited { color:#0087DC; text-decoration:none;}/* mouse over link */#forum_cats_title_wrapper a:hover { color:#172aba; text-decoration:none;}/* selected link */#forum_cats_title_wrapper a:active { color:#172aba; text-decoration:none;} what i wish, is for the links to show what page i am at, for instance, if i am in a forum, the forum link will be highlighted, meanwhile the others will go down to a more darker blue kind of color... Any ideas? Oo...
-
for my wrapper, i use % usually.. but not always, there are times when i use static-width/height... depends on what kind fo project i am running, but usually i'm using % x)...
-
nice idea, but like golme said, showing nothing in firefox... HOLY MY X)..
-
sorry for late reply, as usual... but a header?, what?, you mean like a normal html document basicly where css goes into header?, i dont really follow that part hehe, but nice idea anyways! ... just that i was thinking to (try) and develop some sort of self-designing tool to my website.. if possible, so inside the css, it will get some sort of id from the database, where (example) the shoutbox_id has an extra row called shoutbox_css_bg_color or so, and then it will be int as always, and chose the css... just a long shot, but from what i hear you are saying, then it is possible, cool! x)...
-
hello, a quick question that might be obvoisly to me, but still needed to be answered due to my stupidness X)... is it possible to write php INTO a css file?.. like if/else statements with user sessions?.. coz i was thinking, im about to create a shoutbox for my panel, and was thinking if i somehow could get in the user table a row called like shout_background_color or something like that, with INT, then they would be able to choose like colors, background color, and so on by making if/else statements in there.. never tried it, but would like to ask here first if possible, and will it ruin the XHTML valid?... and yes, a rookie question, but even a rookie question can be wise.. lol, you get my point i suppose ...
-
hello again...i have been thinking, when im making a table, lets say 100% to fill out the div i just gave, it DOES go out.. but when i have like 3 td's to fill out, it keeps pushing to the other site.... i would like it like shown below: PICTURE ATTACHED in the picture you can see however much text you now put in, the boxes still have the same width.. is that a normal css class editing with width?, or some sort of speciel method you guys use?... Hoping you understood what i said, had a little bit trouble explaining about it, lol X)...
-
my original plans, was to create a kind of facebook chat combined with a shoutbox that both was ajax-based.. so first off, i would (by the friends) link, open up a kind of div-box above that link/line, and it will show the friends i have in my friend-list, and if they are online, i would be able to click on them, and an another box would appear with a private live chat with that person, exacly as facebook actually, just trying to make it more simpler somehow.. still working on the idea itself... that, and then about shoutbox, i hat plans on making something similar to I.P.Board forum chat module, a live-chat/shoutbox that can allow you to chat to everyone and anyone, like the new picture i attached also says on the left, public chat room. then click that, and a box will appear just like friends, BUT, in this box, i had plans on making a ''somehow'', a box to appear like the friends box, just with the shoutbox in there, and this box would appear right above the line, and centered... that was the plan, but like i said, im still working on the design as a start, and then code it after that... i also have plans on adding users to the chat, which i am sure if i remember right, also is possible to I.P.Board forum chat module, so i/user can see who is online IN the actual chat-box.. so, now you know my plan/idea... if that helps anyway X)... anyhow, why or how can i only use the span, as you say?... can i use the span as a link, so i could be opening the window above the line as i refer to above here?... PS: if you wonna have a detailed explanation, just say, it a little late right now, so not sure what im writing anyways X)... anyhow, talk to ya tomorrow, hoping an answer by then, if i did not fixed the damn problem myself ...
- 2 replies
-
- div
- background
- (and 4 more)
-
Hello once again, i will do this one short, since i feel stupid asking about it, but its a must since i cannot remember, and might be a rookie question -.-'... anyhow, here is my css: .chat_div_bottom_global_friend_list_button a:hover { text-decoration:none; color:#CDCDCD; background-color:#900; } .chat_div_bottom_global_friend_list_button a:link,a:visited,a:active { text-decoration:none; color:#CDCDCD; } here is my html: <span class='chat_div_bottom_global_chat_rooms_button'> Chat Room (Public)</span> <span class='chat_div_bottom_global_friend_list_button'> <a href='#'>Friend list (0)</a></span> now the question, i have a background to the link, but i would like that background, to cover the whole span if possible, any ideas? X)... [PICTURE ATTACHED]
- 2 replies
-
- div
- background
- (and 4 more)
-
how to make a box show at one place all the time?...
rootKID replied to rootKID's topic in HTML/XHTML
haha, oops.. my bad ^^'... -
hello w3 once again, i have a question. for the momment being, im trying to play a little bit with the scrollbars, to edit the colors on the and stuff like that. well, a question is needed to be asked X).. as you can see on the attached picture i have added, there is a little annoying white box if the scroll-bars ARE going horizontal ect... is there a way to edit that part also?... right now i have following in my css style: ::-webkit-scrollbar { width: 10px;background-color:#333;}::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 10px;background-color:#333;}::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);background-color:#666;} is there something i need to add?, or something i just can add to the following i already has here?... thanks in advance!
-
how to make a box show at one place all the time?...
rootKID replied to rootKID's topic in HTML/XHTML
i get the point with the fixed position.. but where to put the div then?..just outside where body tag starts?.. or inside?.. coz i need it to follow the screen at all time, even when they scroll down X)... EDIT: got it fixed, thanks alot! X).. now, a new and probably last question, what if i wished it to stay at the bottom of the screen in the browser?... ideas?... -
Hello, not sure if it's this board i should ask (html)...but tell me if im wrong. i have seemed on some few site's im comming on sometimes, that they have some sort of div-box that follows the screen all the time, evem if you scroll down on the page. is it possible to do this?.. i mean, how to do this in css/html.. is it possible?, or DO i need Jquery/Javascript or wtf i now need? Oo.. i just think it would be a smart thing to have on my own website ...
-
hello w3s again.. i have a question, since its not against the rules, i was thinking of asking before doing anything stupid action. the question is if i could release my work?, i mean. for instance. not WHOLE websites, but parts of the codes, i mean. for instance when i am done with a project to my website (lets say a news-tool) that can have drop-down boxes with jquery and so on,would it be against the rules to release those codes to the board here to share the codes i have been developing and others might find usefull in the feature?.. -thanks in advance!
-
hmm.. you were right, it was because i stacked them. but just to clarifie till next time, how can i avoid this is i would like to stack them?..just that i think for my own sick that i have a better overview of the coding if i stack them. maybe just me, but is it possible to avoid this problem?.. i tried your css by the way. did not work. here is my while code that grabs everything i need to the shout: while ( $arr = mysql_fetch_assoc( $res ) ){ if($arr['pms'] > 0 && $gotpm == 0) { $HTMLOUT .= ' <tr> <td align=\'center\'> <a href=\'messages.php\' class=\'shoutbox_row1\' target=\'_parent\'> You have '.$arr['pms'].' new private message'.($arr['pms'] > 1 ? 's' : '').' </a> </td> </tr>'; $gotpm++; }$del = ( $CURUSER['class'] >= UC_MODERATOR ? "<a href='shoutbox.php?del=" . $arr['id'] . "'><img src='pics/shout/del.png' border='0' alt=\"Delete Single Shout\" title=\"Delete Single Shout\" /></a> " : "" );$pm = "<span class='date'> <a target='_blank' href='./sendmessage.php?receiver=$arr[userid]'><img src='pics/shout/button_pm.gif' border='0' alt=\"Pm User\" title=\"Pm User\" /></a></span>\n";$delall = ( $CURUSER['class'] >= UC_SYSOP ? "[<a href='shoutbox.php?delall' class='shoutbox_row1' onclick=\"confirm_delete(); return false;\"> Empty Shout!</a>]" : "" ); //$date = get_date($arr["date"], 0,1); $who_shouted_this_one = $arr['username'].":";$HTMLOUT .= "<tr bgcolor='$bg'> <td> <span class='shoutbox_text_color'> ".$who_shouted_this_one." $pm $del ". format_comment( $arr["text"] ) . " </span> </td></tr>\n";}//Ending While-Loop here... $HTMLOUT .="</table>"; i have fixed the stacking for now, but just to know how to fix till next time. ideas?....
-
ok, i have been having this kind of trouble before as i remember, but i cannot remember how to fix it inside the freaking css, lol -.-'. i have been developping a shoutbox to my forum im also developping in a later point.anyways, i have attached a pic to the post here... you can see i have a little annoying blue under-score line besides the pictures in the shoutbox, and i can't simply remember how to remove them.. the shoutbox is comming out in a (<iframe>) tag.. no clue if that is why, but as i also remember, then inside the css, i just needed to write this: img { border:0px;} please tell me, am i wrong as usually, or is there an another way.. the pics are freaking me out, and i have tried anything.. also tried to add a class to the pics, but nothing is happening to them OO'... this is how i take them out to the shoutbox: EXAMPLE: $del = ( $CURUSER['class'] >= UC_MODERATOR ? "<a href='shoutbox.php?del=" . $arr['id'] . "'> <img src='pics/shout/del.png' border='0' alt=\"Delete Single Shout\" title=\"Delete Single Shout\" /></a> " : "" ); and then i echo out the $del variable later on... ideas?...
-
im getting this error in phpmyadmin Unknown column 'Hyperion' in 'where clause' if im using this sql SELECT * FROM users WHERE username = 'Hyperion' AND passhash = 'e5035533a816cac4c54012281f58543d' AND enabled = 'yes' AND status = 'confirmed' ???
-
well... i have done as you said, even tho i did do it last night, but anyhow. i tested with these in the code: $HTMLOUT .= "Username = " . $uname . "<br />";$HTMLOUT .= "pass = " . $pass . "<br />";$HTMLOUT .= "MD5 pass = " . $passhash . "<br />";$HTMLOUT .= $query_result . "<br />"; just for seeing if i got lucky, and i did not.i compared like you said with the user(s) in the Database... still nothing... Screen of what is happening: ATTACHED... so i know you were saying that you dont wonna hear me say it, but im saying anyhow. it (should) work as i see this...any idea, im a little bit lost Oo...
-
yeah, why?... and yes jsg... i understand that part hehe , but what i dont understand is that the password (Should) be the same since im taking the passhash variable and making a MD5 on it before checking with the query... so it should be a match...