BluroSoft Posted September 30, 2012 Posted September 30, 2012 (edited) I have coded most of the html into mccodes, but im having a problem, on the right user panel i can not get the name to display, as you can see this part of the code once removed it works fine..can some one help me solve this please, -Code removed due to request. Edited October 1, 2012 by Djkanna Quote
JamesRage Posted September 30, 2012 Posted September 30, 2012 If you mean this <h2><?= $u.$d ?> [<?= $ir['userid'] ?>]</h2> <div class="alert-box"> You could duplicate it like this for the username :-) <h2><?= $u.$d ?> [<?= $ir['username'] ?>]</h2> <div class="alert-box"> Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 its nothing to do with that bit its the php bit i posted Quote
sniko Posted September 30, 2012 Posted September 30, 2012 Some tips: Supply the raw css & html files Supply a raw header file Supply a screenshot of what you wish the outcome to be We're not mind readers. Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 (edited) its nothing to do with css or html, its in the header basically in the content i got a user panel on the right side, [ATTACH=CONFIG]716[/ATTACH] The problem is when i add this bit of php code in the content div - Code removed due to request. Edited October 1, 2012 by Djkanna Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 (edited) if the php code is added at the bottom of the page then username works fine but content displays out of the template...it is something to do with the placement of the php code but can not figure it out and i did provide a header file are you having problems seeing it? Edited September 30, 2012 by BluroSoft Quote
sniko Posted September 30, 2012 Posted September 30, 2012 if the php code is added at the bottom of the page then username works fine but content displays out of the template...it is something to do with the placement of the php code but can not figure it out and i did provide a header file are you having problems seeing it? Where are you looking? <div class="r-side"> <div id="user-panel"> <div class="padding"> <h2><?= $u.$d ?> [<?= $ir['userid'] ?>]</h2> Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 I did not understand what you said, i think you are not understanding the problem, the php code is causing the problem, the variable are defined and they work when that bit of php code is placed else where, at the bottom of the content.. Quote
sniko Posted September 30, 2012 Posted September 30, 2012 Let's start from scratch. With no PHP, does it all behave as you want it to with just HTML and CSS? Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 (edited) Html/css is not a problem, im trying to code it into the header file, what i done is paste the whole html file then using another header files i took the bits of php coding and added them in, yes can we start from the scratch this is my html code ---Code removed due to request. Btw i do not need to include mainmenu file or staff menu cause i dont need them i took the include bits off Edited October 1, 2012 by Djkanna Quote
sniko Posted September 30, 2012 Posted September 30, 2012 (edited) Try this (Not tested with browser output - Although, in theory, should work.): ---Code removed due to request (by the OP). Edited October 1, 2012 by Djkanna Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 Nope the username still does not display plus what change did you make here? Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 The content everything is in place, as it should be according to design but due to that bit of php coding the username or any of the stats, crystals wont display from the database it could be because the php is covering the userpanel to when it shouldnt do..at the end you could see the closing brackets so the php is cover all the coding in between, thats why i think its not displaying Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 Ill post up a image of whats the problem Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 worked but why does it display 0 as the username Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 ok i know why thanks alot! the only mistake you made is you use the $u variable again as donator days but overall omg thanks! Quote
sniko Posted September 30, 2012 Posted September 30, 2012 ok i know why thanks alot! the only mistake you made is you use the $u variable again as donator days but overall omg thanks! No worries at all! Can we request topic lock? Quote
BluroSoft Posted September 30, 2012 Author Posted September 30, 2012 sure, the issue is solved thanks to you! Quote
Djkanna Posted September 30, 2012 Posted September 30, 2012 (edited) Thread locked. Edit: Additional, the code has been removed (well the more relevant parts anyway) due to a request by the OP. Thread not deleted to keep post amounts etc in tact. Edited October 1, 2012 by Djkanna Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.