Simple Messaging in Pligg v 9.8 and lower

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2008, 04:18 AM
AnAlienHolakres3's Avatar
Pligg Donor/Coder
 
Join Date: Jul 2007
Location: Prague
Posts: 116
Send a message via ICQ to AnAlienHolakres3
As you have noticed, file structure in Pligg version 9.9 was changed. Private messaging module was for many people (including me) buggy and especially in Internet Explorer often useless. Thanx to Ash there is another option - Simple messaging module. If you try to install this module on older version of Pligg ( < 0.98) it will fail. You will have to do some modifications if you want to get it working.

Step 1:
Disable current private messaging system. This can be done by modules management in your admin panel.

Step 2:

Download Pligg v 9.9 and copy simple messaging folder from modules folder to your older Pligg version modules folder.

Step 3:
Open inbox.tpl and inbox_link_in_menu.tpl from simple messaging templates folder. In both files change config_load file to {config_load file="/libs/lang.conf"}

Step 4:
Install this module with module management.

Step 5:
Open user.php in your main folder and find
PHP Code:
'<td><a href="#view_message" rel="view_message~!~view=small_msg_compose~!~login=' .$myfriend->user_login '" class="lbOn"><img src='.my_pligg_base.'/templates/'.$the_template.'/images/user_message.png border=0></a></td>' 
Replace this code with:
PHP Code:
'<td><a href="' my_pligg_base '/module.php?module=simple_messaging&view=compose&return=' urlencode($_SERVER['REQUEST_URI']) .'&to=' .$myfriend->user_login '"<img src='.my_pligg_base.'/templates/'.$the_template.'/images/user_message.png border=0></a></td>' 
Thats all. Hope it helps someone
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS 6.0 W2K3 & Pligg 9.9.5 - Install (Step by Step) yfki Questions and Comments 2 01-12-2009 03:01 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development