Quote:
|
Originally Posted by Anubis the replacwmwnt you're suggesting, im supposed to then have something like this? You must first be a registered member to view any code. and use $isdata $isdata2 $isdata3 and such on the main template? or i just need to use the same variable $isdata with all the array data? |
That's nearly right ;).
This is the code you need:
You must first be a
registered member to view any code.
Say you have 2 users in your user table. One is called "Matt", with the userid "1". His fav_url is set to "http://www.vbhackers.com", and his fav_coulor is set to "red".
Then there's "Tedd", he's got the userid "2". His fav_url is set to "http://www.flosoft.biz", and his fav_coulor is set to "Blue". With this information the above could would output:
You must first be a
registered member to view any code.
If there would be a third user with userid 3, a fav_url of "http://www.vbulletin.org" and a fav_coulor of Pink it'd be the following:
You must first be a
registered member to view any code.
As you can see, it's not very clear but it should do as an example. Once you understand that concept you can move onto using templates, allowing you to add more complex features like an html comment (<!-- -->), which is useful for debugging.
A vital element of this method which you must understand is the ".=". This is very different from the "=", as ".=" basicly adds to the value. It's quite hard to explain, but I guess you understand from the above code.
If you don't understand something, or have something else you'd like to ask please do post it.. we're here to help ;).
EDIT: Oh, and, with the above code you'd simply need to add "$isdatabits" to the template in order to output the above code.