Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 02:57 pm EST

Geeklog Forums

Privmessages module


Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
I've just uploaded simple private messages add-on for Geeklog.
Big Celebration
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.
 Quote

Status: offline

Robin

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

Geeklog Polish Support Team
 Quote

Status: offline

romantaran

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

 

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

 
 Quote

Status: offline

bieffe

Forum User
Junior
Registered: 11/30/02
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. Mr. Green
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
In english.php I have overlooked to translate some lines:
Text 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',

 
 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
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.
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
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?
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
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!
 Quote

Status: offline

romantaran

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

here is the screenshot
 Quote

Status: offline

kemal

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



i think this block not show to anonymous user..

And must place in User Functions...




_KEMAL_
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 03/19/05
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.
 Quote

All times are EST. The time is now 02:57 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