Welcome to Geeklog Tuesday, January 23 2018 @ 10:39 am EST


Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia
I've just uploaded simple private messages add-on for Geeklog.

I'm the beginner at PHP programming and this module is my first completed script, but it seems to work and I use it at my site.

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/2002
Posts: 725
In the php block code you left hardcoded url
PHP Formatted Code
$result = "There are no incoming messages.<br><a href=\"http://ubrus.ru/privmessages/\">Create</a>";
 

Geeklog Polish Support Team

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia
Yes. It must be replaced with:
PHP Formatted Code
        $result = 'There are no incoming messages.<br><a href="' . $_CONF['site_url'] . '/privmessages/">Create</a>';

 

and further
PHP Formatted Code
        $result .= 'Sum total messages: <b>' . $nrows . '</b>. <br><a href="' . $_CONF['site_url'] . '/privmessages/">View</a>';

 

Status: offline

bieffe

Forum User
Junior
Registered: 30/11/2002
Posts: 16
hi,

i have no problem to install this plugin but, the problem occurs when i make a first PM to another uid. Once I logout, i cant login back to my website because there are an error. So i look at my error log & find solution to settle this problem.

in ur phpblock_privmessages coding, need to tweak a bit.

change this:
$sql = "SELECT * FROM privmessages WHERE to_uid = $uid";

to:
$sql = "SELECT * FROM privmessages WHERE to_uid='$uid'";

AND change this:
$sql = "SELECT * FROM privmessages WHERE to_uid = $uid AND status = 1";

to:
$sql = "SELECT * FROM privmessages WHERE to_uid='$uid' AND status = 1";

after that, all problem gone.

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia
In english.php I have overlooked to translate some lines:
PHP Formatted Code
pmsm1 => 'The message is sent',
pmsm2 => 'The message is sent. Email notification is sent',
pmsm3 => 'The message is sent. Email notification is not sent because of an error',

 

Status: offline

vadertech

Forum User
Full Member
Registered: 26/05/2003
Posts: 329
leaving the hardcoded url to your site is gonna cause alot of problems for people that download it. Shouldn't this be replaced with a new plugin version?

Also what if someone doesn't have the forum installed. Should the images be included with the plugin?

I got an error for including language folder when I tried to install. After I got it to work, I get an sql error when I log out.
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia
If someone has no forum plugin, the primary way is to replace img paths with corresponding words in language file. I decided, that there is no sense to include in plugin the same pictures.

The language folder must be in public_html/privmessages directory.

What sql error do you have?

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia

guest

Anonymous
I see no PM system in your site. Can someone post a screenshot of this thing so I'd see if it's worth it?

Or at least give a little description above "it sends private messages".

Thanks!

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia
I use it in another site. Try it, it's free! But it's just "sends private messages", nothing more . Well, it sends email notifications. And what would you want to get?

here is the screenshot

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/2005
Posts: 103
Location:Turkey



i think this block not show to anonymous user..

And must place in User Functions...




_KEMAL_

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/2005
Posts: 34
Location:Russia
You can make it invisible for anonimous users in menu Admins only / Blocks. Uncheck the box "Anonimous R" in Privmessages block.

All times are EST. The time is now 10:39 am.

  • 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