1
kahumbu
NewBB PM Hack
  • 2004/1/31 20:44

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


A user requested for a way to PM from within the forums without clicking on the username. I tried searching for a hack but can't find any, so I just developed one.

<a href="javascript:openWithSelfMain('<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$topic_post.poster_uid}>', 'pmlite', 450, 380);"><img src="<{$xoops_url}>/images/icons/pm.gif" alt="<{$topic_post.poster_sendpmtext}>" />a>


This script has been working on my site for over a month. It's good to go. Just open your newbb_thread.html template and add that piece of code beside the other buttons inside the conditionals. Choose wisely where you place this button in the template. Do not use this code if you do not understand the conditionals for the buttons in the newbb_thread.html template.

Thanks!

2
Stewdio
Re: NewBB PM Hack
  • 2004/1/31 20:50

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Another fine tip posted! Thanks for the usfull addition

I think we should have a dedicated forum for little tid bit's like this. The more that people get used to Xoops, the more little (non-complex) tweaks start to show up

3
irmtfan
Re: NewBB PM Hack
  • 2004/2/21 21:04

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


add this code to where in newbb_thread.html at template ???
i add this to any way but display nothing?

Login

Who's Online

317 user(s) are online (214 user(s) are browsing Support Forums)


Members: 0


Guests: 317


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits