TinyPortal

Development => Support => Topic started by: falguni1 on November 04, 2007, 05:10:25 PM

Title: personal message and signature sa=?
Post by: falguni1 on November 04, 2007, 05:10:25 PM
<a href="', $scripturl, '?action=profile;u=;sa=statPanel">sai1</a>

with this u can see your stats

___________________________________________

my question is wot is the code to display the avatar

and my next question is wot should i write in front of sa= to link to
personal message and signature
Title: Re: personal message and signature sa=?
Post by: Dragooon on November 04, 2007, 05:15:41 PM
Well......
You have to run several queries to grab all these stuff
URL TO PM is ?action=pm and signature is stored in the database, so do avatar AFIAK.
Title: Re: personal message and signature sa=?
Post by: falguni1 on November 04, 2007, 05:20:51 PM
if (!empty($context['user']['avatar']))
      echo '
                     <td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';

to display avatar is this correct

____________________________________________



<a href="', $scripturl, '?action=pm">', $txt['unread_since_visit'], '</a>

and this to display pm
Title: Re: personal message and signature sa=?
Post by: Dragooon on November 04, 2007, 05:22:15 PM
PM has no relation between Unread Replies Since last visit.
Why would you be wanting that?
And yes, I forgot that this is already stored in $user_info array.
Title: Re: personal message and signature sa=?
Post by: falguni1 on November 04, 2007, 05:25:09 PM
<a href="', $scripturl, '?action=pm;u=;sa=statPanel">my pm[/url]

is this code correct now
sorry for dumb questions  :idiot2:
Title: Re: personal message and signature sa=?
Post by: Dragooon on November 04, 2007, 05:25:58 PM
Yeah it should.
But why are you closing it with [/url]? It should be </a>
EDIT: But what you want?
Title: Re: personal message and signature sa=?
Post by: falguni1 on November 04, 2007, 05:32:38 PM
<a href="', $user_info array, '?action=signature;u=;sa=statPanel">my signature </a>

is this correct

______________________________

I am closing it with a only but smf turns it to url  :smiley6600:
Title: Re: personal message and signature sa=?
Post by: Dragooon on November 04, 2007, 05:38:53 PM
Ahh Nope.
1 Is no ?action=signature
2 The URL will go incorrect as there is no need to have $user_info array in it.
Title: Re: personal message and signature sa=?
Post by: falguni1 on November 04, 2007, 05:41:14 PM
<a href="', $scripturl, '?action=signature;u=;sa=statPanel">my signatue </a

you are helping me so much thank you  :D
Title: Re: personal message and signature sa=?
Post by: falguni1 on November 04, 2007, 05:59:11 PM
<a href="', $scripturl, '?action=signature;u=;sa=statPanel">my signatue </a

with this code when I click on the signature I go to the board index
wot is wrong with it
Title: Re: personal message and signature sa=?
Post by: G6Cad on November 04, 2007, 06:19:03 PM
The code render wrongly because you dont use the code tags when you post code in a topic.
If you go back to post 3 and repost the code but this time use the codetags it would have been fixed right there.
Please go back to SMF and read their "how to" and learn the basic functions, that way we will be even greater with our support for tinyportal ;)