Arathorn
02-22-2002, 05:14 AM
Attached is the itemshop.php file (no vbulletin code inside). It's slightly modified from the original one. As you can see, the code is quite huge cause it doesn't make proper use of loops and variables. Example: to parse the head variable, a set of code is used. To parse the body variable, the same code is repeated but points to the body variable instead of the head. If my explanation isn't clear, just look at the code and you'll see what I mean.
I'm a php newbie, so could someone show me how to modify it such that the code is used only once, but 'intelligently' picks the right variables? Please, any help at all would be much appreciated, since I'm trying to learn here.
I'm a php newbie, so could someone show me how to modify it such that the code is used only once, but 'intelligently' picks the right variables? Please, any help at all would be much appreciated, since I'm trying to learn here.