Jump to content
MakeWebGames

I need some helping adding my template to mccodes.


Recommended Posts

Posted (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 by Djkanna
Posted

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">
Posted (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.

SHin.jpg.89aa38808bd662a442b51b9895b530a0.jpg

Edited by Djkanna
Posted (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 by BluroSoft
Posted
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>
Posted

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..

Posted (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 by Djkanna
Posted (edited)

Try this (Not tested with browser output - Although, in theory, should work.):

---Code removed due to request (by the OP).

Edited by Djkanna
Posted

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

Posted
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?

Posted (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 by Djkanna

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...