cyote101 Posted January 26, 2011 Share Posted January 26, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/225705-debug-explore-your-php-help/ Share on other sites More sharing options...
QuickOldCar Posted January 26, 2011 Share Posted January 26, 2011 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; } Quote Link to comment https://forums.phpfreaks.com/topic/225705-debug-explore-your-php-help/#findComment-1165381 Share on other sites More sharing options...
cyote101 Posted January 26, 2011 Author Share Posted January 26, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/225705-debug-explore-your-php-help/#findComment-1165548 Share on other sites More sharing options...
BlueSkyIS Posted January 26, 2011 Share Posted January 26, 2011 search all source for the DIV id wrapper_container and/or DIV's with class="logo" Quote Link to comment https://forums.phpfreaks.com/topic/225705-debug-explore-your-php-help/#findComment-1165554 Share on other sites More sharing options...
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.