just thought I would share with the people who are looking for help.
my vB version is 3.8.1
I needed to query a table I created myself to display all the tutorials of that specific user.
here is the code I used and it works like a charm
Code:
function prepare_output($id = '', $options = array())
{
$sql = mysql_query("SELECT * FROM tutorials WHERE approved = 1 AND user_id=".$this->profile->userinfo[userid]."");
$test = "<ul>";
while($result = mysql_fetch_array($sql))
{
$test .= "<li> <img src='http://cmstutorials.org/".$result['tutorial_thumb']."' width='50' height='50' alt='' />
<a href='http://cmstutorials.org/tutorial/".$result['tutorial_id']."' target='_blank'>".$result['title']."</a></li>
";
}
$test .= "</ul>";
$this->block_data['mymodification'] = $test;
}
--------------- Added [DATE]1252407273[/DATE] at [TIME]1252407273[/TIME] ---------------
how do you call a specific tab with a url?
http://cmstutorials.org/forums/member.php?u=1#tabname ????
--------------- Added [DATE]1252407322[/DATE] at [TIME]1252407322[/TIME] ---------------
ok I found it
http://cmstutorials.org/forums/membe...1&tab=favorite
Quote:
For About Me: ?tab=aboutme
For Contacts: ?tab=contact
For Friends: ?tab=friends
For Statistics: ?tab=stats
|