Jump to content

Debug, Explore your PHP Help


cyote101

Recommended Posts

Hi all,

 

Well new to the forum. And New to PHP. I have a quick question.

 

I'm trying to figure out what the best pratice would be to get familier with a php installation. More specificly how to discover what php is specificly producing a specific part of the final rendered HTML. I have a MyBB Forum me and my cuzin are setting up and for the life of me i can find the right place to add our own HTML to change a specific Div in the Final page output.

 

here is the link to our URL http://destroyrebuilduntilgodshows.net/forum/ I specificly want to find out where i can edit the contents of the "wrapper_container" Div. I have searched for the source on my local machine. but all i can find is the CSS responsible for the styling and as it turns out the images being held in that div. My end goal is to replace the "advertise here" image with come JS that does our ad managment.

 

 

So, I guess my question is How would you find it. How would you find the responsible php for that section of the HTML.

 

 

 

Thanks All.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/225705-debug-explore-your-php-help/
Share on other sites

The image.

http://destroyrebuilduntilgodshows.net/forum/images/gamesmania/advertise.png

 

 

By viewing your page source - see the  <img src="images/gamesmania/advertise.png" class="advertise">

 

<div id="wrapper_container">

<div class="logo"><a href="http://www.destroyrebuilduntilgodshows.net/forum/index.php"><img src="http://www.destroyrebuilduntilgodshows.net/forum/images/gamesmania/logo.png" alt="D.R.U.G.S Forum" title="D.R.U.G.S Forum" /></a></div>

 

 

 

<img src="images/gamesmania/advertise.png" class="advertise">

 

 

</div>

 

 

 

Looking in your css  - highlighted the area red

http://www.destroyrebuilduntilgodshows.net/forum/cache/themes/theme3/global.css

 

#wrapper_container {

padding: 10px;

width:910px;

margin:auto auto;

}

 

.logo {

    padding: 10px 0 0 0;

float:left;

    }

 

.advertise {

    padding: 10px 0 0 0;

float:right;

}

 

 

Ya selecting that Div and styling it with CSS is a breeze. No problems there.

 

But i can't find the source php that creates the Final HTML for that div.

 

Ok so, pretent you wanted to add a new Div "admenu" to that div, how would you go about finding the PHP source to add that HTML.

 

ok,  Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.