Welcome to Geeklog, Anonymous Sunday, October 06 2024 @ 04:28 pm EDT
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.
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.
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.
12
10
Quote
Status: offline
romantaran
Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
Yes. It must be replaced with:
and further
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>';
10
14
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.
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.
10
12
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:
pmsm2 => 'The message is sent. Email notification is sent',
pmsm3 => 'The message is sent. Email notification is not sent because of an error',
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',
12
13
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.
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.
14
14
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?
The language folder must be in public_html/privmessages directory.
What sql error do you have?
13
11
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!
Or at least give a little description above "it sends private messages".
Thanks!
13
11
Quote
Status: offline
romantaran
Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
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.
13
12
Quote
All times are EDT. The time is now 04:28 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