Author Topic: SMF and PMs  (Read 3850 times)

0 Members and 1 Guest are viewing this topic.

Offline Semi Kolon

  • Newbie
  • *
  • Posts: 20
  • Doodling is geil :P
    • View Profile
    • doodling.DE - express yourself!
SMF and PMs
« on: February 13, 2009, 05:34:56 PM »
English:
Hey, i always had a special mod providing a pm service on my page.
but now i integraded SMF in my 4images gallery and i would like to find out if there is a way to get the SMF PMs work on the gallery site.
I would like to have a link on my userlogin_info.html that shows: "Messages (x New)" everything that needs to be done, is that the x shows the number of new messages(PMs) i currently have in SMF and when i click on it i should be transfered to that page.

---------------------------------------------------------------------------------------------------------------------------------------------------------------
Deutsch:
Hi, ich hatte immer eine mod für meine PMs installiert, aber nun habe ich SMF in der Gallerie laufen und würde gerne die PMs von dort verwenden.
Ich hätte gerne einen Link der in der userlogin_info.html ist und folgendes anzeigt: "Messages (x New)" alles was passieren sollte ist das, dass x durch die nummer der neuen Pms in SMF ersetzt wird und ich durch einen klick darauf dorthin geleitet werde.
Ist soetwas leicht umzusetzen?

Liebe Grüße  :)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: SMF and PMs
« Reply #1 on: February 14, 2009, 12:37:44 AM »
If you are using the integration that I posted at
http://www.4homepages.de/forum/index.php?topic=22672.0

then I can part way help you...
I have my site set so the user can see how many messages they have under the login screen
see attached capture.jpg file
The only thing is you can not click on it to take you to the messages, it just tells you there are some waiting for you.

This is what my user_logininfo.html looks like in my template folder if it gives you the idea of how to place this info on your site.
(look at the <?php smf_api_pm2('echo');?>  line)

Code: [Select]
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
  {lang_loggedin_msg}<br /><br />
      &raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />
  &raquo; <a href="{url_control_panel}">{lang_control_panel}</a><br />
      &raquo; <a href="{url_logout}">{lang_logout}</a></td>
  </tr>
     <tr>
<tr>
<td class="head2" height="20" background="{template_url}/images/top_bg.gif" align="center"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Message Center</td>
</tr>
<tr><td align='center'><font class="Forum">
<?php smf_api_pm2('echo');?></font>
</td></tr>
<tr><td align="center" class="imagerow2"><font class="Forum">
go to forums<br>to retrieve messages</font>
</td></tr>


</table>

hope that helps!
Buddy Duke
www.budduke.com

Offline Semi Kolon

  • Newbie
  • *
  • Posts: 20
  • Doodling is geil :P
    • View Profile
    • doodling.DE - express yourself!
Re: SMF and PMs
« Reply #2 on: February 15, 2009, 08:10:06 PM »
Hey budduke,
thanks for your answer :) i tried it, but it didn't work for me. i just get a page that tells me i got an error in my templates.php site. do i need to change other files? i use your integration  :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: SMF and PMs
« Reply #3 on: February 15, 2009, 08:38:04 PM »
What integration do you use? Please reply to the appropriate topic, this has nothing to do with 4images itself.

Topic locked.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)