Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 03:53 pm EDT

Geeklog Forums

linking to pm from other sections


Uten

Anonymous
:

by clicking on user name or a special icon and getting TO the pm page
directly is very handy

Thread Privmessages module & forum - viewtopic.php?forum=8&showtopic=58205
illustrates this very nicely.

However can there be a way to generalize this ?

For example, if this can be done for the ADVT plugin, eg by clicking on the
name of the person who has given the AD I can get to the PM page

I tried this but without success as I do not know how to generate the $uid
in the ADVT detail.php or similar files there - PM does not work if linked to
username - it has to be fed in the uid, I guess.

Any help will be more than gratefully acknowledged.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The user id of the current user is available through the global variable $_USER['uid'].

Note that when that variable is not set or is = 1, it's an anonymous user.

bye, Dirk
 Quote

All times are EDT. The time is now 03:53 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content