TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 739
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 228
  • Total: 228

personal message and signature sa=?

Started by falguni1, November 04, 2007, 05:10:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

falguni1

<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

Dragooon

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.

falguni1

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

Dragooon

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.

falguni1

<a href="', $scripturl, '?action=pm;u=;sa=statPanel">my pm[/url]

is this code correct now
sorry for dumb questions  :idiot2:

Dragooon

Yeah it should.
But why are you closing it with [/url]? It should be </a>
EDIT: But what you want?

falguni1

<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:

Dragooon

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.

falguni1

<a href="', $scripturl, '?action=signature;u=;sa=statPanel">my signatue </a

you are helping me so much thank you  :D

falguni1

<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

This website is proudly hosted on Crocweb Cloud Website Hosting.