2012-12-23, 10:58 PM
I have worked with a lot of HTML and done some work with Bash, PHP, AHK, CSS... so I know some of the basics just from years of hands on usage, but it's all self-taught by trial and error coupled with online research.
I'm having trouble making my brain come to terms with exactly how some of these things work... Here are the quickest explanations of the situations that have arisen for me.
Let's say I'm looking in a template and I see {$goat_master_load} and I sit there with my eyes bugging out because I have NO idea what that could be loading up in that template. What EXACTLY is the correct method of locating the spot that the variable is created? In other words, how do I find and go to the spot that tells that variable what to say? And how do I edit it myself? (assuming I have NO CLUE where it could be by its name, which is why I used a random example nobody would recognize lol)
Next up... (very important: please help!)
Let's say I'm editing the PHP page that, when converted to template, will show the code {$goat_master_load} but obviously when I am editing the raw PHP file, you cannot just slap that in there. I need to know the PHP equivalent to calling that same information. How do I literally write that out in PHP-file-friendly format to output the same variable content as {$goat_master_load}?
I found a perfect example of what I mean!
Take this:
cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"
What's the method for looking at that and knowing exactly how to find AND edit those 2 variables' values? This is one I have yet to figure out specifically. I can figure out their values by looking at converted coding on the source of the page it creates, but what I'm trying to do is locate where it physically gets created and I want to edit those values.
Currently what I do when I come to something like the above problems, is start searching for both filenames and file content that matches the terms I am confused about. So in the above example I'd start going into SSH and grep for "goat" related terms to see what comes up. I'd also go into the Admin CP of MyBB and start using the search options for templates and template titles. Sometimes though... I still can't find the answer I'm looking for. I've even experimented with searching through the MySQL database in some occasions; sometimes having partial luck in getting answers and other times not. Sometimes I'll search for something like
$var = "definition is written here"
and end up finding it in a file, and can edit it! ...but other times, I can't even find anything close to the things I am looking for. There just seems to be no rhyme or reason so I know I'm missing something.
What are the more efficient and effective ways to figure out the source/location/definition/etc for variables and functions I run into?
I'm having trouble making my brain come to terms with exactly how some of these things work... Here are the quickest explanations of the situations that have arisen for me.
Let's say I'm looking in a template and I see {$goat_master_load} and I sit there with my eyes bugging out because I have NO idea what that could be loading up in that template. What EXACTLY is the correct method of locating the spot that the variable is created? In other words, how do I find and go to the spot that tells that variable what to say? And how do I edit it myself? (assuming I have NO CLUE where it could be by its name, which is why I used a random example nobody would recognize lol)
Next up... (very important: please help!)
Let's say I'm editing the PHP page that, when converted to template, will show the code {$goat_master_load} but obviously when I am editing the raw PHP file, you cannot just slap that in there. I need to know the PHP equivalent to calling that same information. How do I literally write that out in PHP-file-friendly format to output the same variable content as {$goat_master_load}?
I found a perfect example of what I mean!
Take this:
cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"
What's the method for looking at that and knowing exactly how to find AND edit those 2 variables' values? This is one I have yet to figure out specifically. I can figure out their values by looking at converted coding on the source of the page it creates, but what I'm trying to do is locate where it physically gets created and I want to edit those values.
Currently what I do when I come to something like the above problems, is start searching for both filenames and file content that matches the terms I am confused about. So in the above example I'd start going into SSH and grep for "goat" related terms to see what comes up. I'd also go into the Admin CP of MyBB and start using the search options for templates and template titles. Sometimes though... I still can't find the answer I'm looking for. I've even experimented with searching through the MySQL database in some occasions; sometimes having partial luck in getting answers and other times not. Sometimes I'll search for something like
$var = "definition is written here"
and end up finding it in a file, and can edit it! ...but other times, I can't even find anything close to the things I am looking for. There just seems to be no rhyme or reason so I know I'm missing something.
What are the more efficient and effective ways to figure out the source/location/definition/etc for variables and functions I run into?