forum.coppermine-gallery.net
Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Stramm on October 31, 2007, 01:59:25 am
-
This plugin allows you to send private messages to other registered users.
Actually this plugin works for an unbridged coppermine. It'll add a send pm functionality and one to view PMs. Also there is bridge support built in. For now the smf10 works too. It's not that easy to add other bridges cause the bridge files aren't written in the same style. Therefore the way to go would be to hardcode some routines.
In bridged mode the plugin uses the forums PM functions and just adds 'send PM' links in thumbnail view, above the intermediate image and if you copy/ paste the contents of theme_changes.txt to your theme.php another 'send PM' link next to commenter names.
In the admin menu a 'PMS' button will appeare. You can make some settings here
- enable/ disable pm
- a bunch of other stuff like smilies etc... some are not yet implemented
important is
Display pm status info when logged in - this will add some statistics (Private Messages: 2 unread, total 9)
Display login form - will show a login box if a user isn't logged in, the above stats at that place when logged in
An english lang file is added. You can add new lang files... the sheme is similar to the other cpg lang files.
Installation:
- unzip and upload to your plugins folder, use the plugin manager to install it
- have a look into the folder images_to_move
-> copy all images within this folder to your themes images folder (eg themes/classic/images)
-> copy/ paste the contents from css_changes.txt to your themes css file (eg themes/classic/style.css)
-> copy/ paste the contents of theme_changes.txt to your theme.php (eg themes/classic/theme.php)
[no biggie if you don't do that, however the 'send PM' link won't then display next to the username within comments]
-> if you want to display a 'send PM' link in the user profile, you'll have to manually edit profile.php. Version 1.1 of the plugin introduces a plugin hook in profile.php to reduce the editing amount.
in profile.php find (at the end of the code)
make_form($display_profile_form_param, $form_data);
and replace with
//added for plugin support - PMS
$profile_data = CPGPluginAPI::filter('profile_add_data', array ( 0 => $display_profile_form_param, 1 => $form_data ));
make_form($profile_data[0], $profile_data[1]);
that's it with editing
The login form by default is placed after the sub menu. If you want it to appeare somewhere else, then add
{LOGIN_FORM}
to your template.html.
New version (1.1 uploaded on 11/02/2007)
- added plugin hook in profile.php and changed code in codebase.php to make use of that hook to add data to the profile (send PM link)
-
Very nice Stramm; thanks.
-
Hi there Great plug in thx. just 1 thing i found is that the Pm link in the comments dont work. click on pm next to user name and it just comes up with The webpage cannot be found HTTP404. But all the other pm links work.
ive installed it all as it says, checked it. Is it the same for anyone else? or is it just me.
thx
-
Yes, seems I have added an older version of the theme changes to the zip.
Find below what I intended to put there
if ($CONFIG['pms_enabled']) {
$pm_link = "<cite><a href=\"{PM_LINK}{AUTHOR_ID}\"><img src='{THEME_DIR}images/pm.gif' width=\"16\" height=\"11\" border=\"0\" alt=\"Send PM\" /></a></cite>";
}
$template_image_comments = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="tableh2_compact" nowrap="nowrap">
<b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}"></a>
$pm_link
<!-- BEGIN ipinfo -->
({IP})
<!-- END ipinfo -->
</td>
<td class="tableh2_compact" align="right" width="100%">
<!-- BEGIN report_comment_button -->
<a href="report_file.php?pid={PID}&msg_id={MSG_ID}&what=comment" title="{REPORT_COMMENT_TITLE}"><img src="images/report.gif" width="16" height="16" border="0" align="middle" alt="{REPORT_COMMENT_TITLE}" /></a>
<!-- END report_comment_button -->
<!-- BEGIN buttons -->
<a href="javascript:;" onclick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0" align="middle" /></a>
<a href="delete.php?msg_id={MSG_ID}&what=comment" onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="middle" /></a>
<!-- END buttons -->
</td>
<td class="tableh2_compact" align="right" nowrap="nowrap">
<span class="comment_date">[{MSG_DATE}]</span>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="tableb_compact">
<div id="cbody{MSG_ID}" style="display:block">
{MSG_BODY}
</div>
<div id="cedit{MSG_ID}" style="display:none">
<!-- BEGIN edit_box_smilies -->
<table width="100%" cellpadding="0" cellspacing="0">
<form name="f{MSG_ID}" method="POST" action="db_input.php">
<input type="hidden" name="event" value="comment_update" />
<input type="hidden" name="msg_id" value="{MSG_ID}" />
<tr>
<td>
<input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
</td><td>
</tr>
<tr>
<td width="80%">
<textarea cols="40" rows="2" class="textinput" name="msg_body" onselect="storeCaret_f{MSG_ID}(this);" onclick="storeCaret_f{MSG_ID}(this);" onkeyup="storeCaret_f{MSG_ID}(this);" style="width: 100%;">{MSG_BODY_RAW}</textarea>
</td>
<td class="tableb_compact">
</td>
<td>
<input type="submit" class="comment_button" name="submit" value="{OK}" />
</td>
</form>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td>
</tr>
</table>
{SMILIES}
<!-- END edit_box_smilies -->
<!-- BEGIN edit_box_no_smilies -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<form name="f{MSG_ID}" method="POST" action="db_input.php">
<input type="hidden" name="event" value="comment_update" />
<input type="hidden" name="msg_id" value="{MSG_ID}" />
<td>
<input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
</td>
</tr>
<tr>
<td width="100%">
<textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>
</td>
<td class="tableb_compact">
</td>
<td>
<input type="submit" class="comment_button" name="submit" value="{OK}" />
</td>
</form>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td>
</tr>
</table>
<!-- END edit_box_no_smilies -->
</div>
</td>
</tr>
</table>
EOT;
function theme_html_comments($pid)
{
global $CONFIG, $USER, $CURRENT_ALBUM_DATA, $comment_date_fmt, $HTML_SUBST;
global $template_image_comments, $template_add_your_comment, $lang_display_comments, $THEME_DIR;
$html = '';
// report to moderator buttons
if (!(($CONFIG['report_post']==1) && (USER_CAN_SEND_ECARDS))) {
template_extract_block($template_image_comments, 'report_comment_button');
}
if (!$CONFIG['enable_smilies']) {
$tmpl_comment_edit_box = template_extract_block($template_image_comments, 'edit_box_no_smilies', '{EDIT}');
template_extract_block($template_image_comments, 'edit_box_smilies');
template_extract_block($template_add_your_comment, 'input_box_smilies');
} else {
$tmpl_comment_edit_box = template_extract_block($template_image_comments, 'edit_box_smilies', '{EDIT}');
template_extract_block($template_image_comments, 'edit_box_no_smilies');
template_extract_block($template_add_your_comment, 'input_box_no_smilies');
}
$tmpl_comments_buttons = template_extract_block($template_image_comments, 'buttons', '{BUTTONS}');
$tmpl_comments_ipinfo = template_extract_block($template_image_comments, 'ipinfo', '{IPINFO}');
if ($CONFIG['comments_sort_descending'] == 1) {
$comment_sort_order = 'DESC';
} else {
$comment_sort_order = 'ASC';
}
$result = cpg_db_query("SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid='$pid' ORDER BY msg_id $comment_sort_order");
while ($row = mysql_fetch_array($result)) {
$user_can_edit = (GALLERY_ADMIN_MODE) || (USER_ID && USER_ID == $row['author_id'] && USER_CAN_POST_COMMENTS) || (!USER_ID && USER_CAN_POST_COMMENTS && ($USER['ID'] == $row['author_md5_id']));
$comment_buttons = $user_can_edit ? $tmpl_comments_buttons : '';
$comment_edit_box = $user_can_edit ? $tmpl_comment_edit_box : '';
$comment_ipinfo = ($row['msg_raw_ip'] && GALLERY_ADMIN_MODE)?$tmpl_comments_ipinfo : '';
if ($CONFIG['enable_smilies']) {
$comment_body = process_smilies(make_clickable($row['msg_body']));
$smilies = generate_smilies("f{$row['msg_id']}", 'msg_body');
} else {
$comment_body = make_clickable($row['msg_body']);
$smilies = '';
}
$ip = $row['msg_hdr_ip'];
if ($row['msg_hdr_ip'] != $row['msg_raw_ip']) {
$ip .= ' [' . $row['msg_raw_ip'] . ']';
}
$params = array('{EDIT}' => &$comment_edit_box,
'{BUTTONS}' => &$comment_buttons,
'{IPINFO}' => &$comment_ipinfo
);
$template = template_eval($template_image_comments, $params);
$params = array('{MSG_AUTHOR}' => stripslashes($row['msg_author']),
'{MSG_ID}' => $row['msg_id'],
'{PID}' => $row['pid'],
'{EDIT_TITLE}' => &$lang_display_comments['edit_title'],
'{CONFIRM_DELETE}' => &$lang_display_comments['confirm_delete'],
'{MSG_DATE}' => localised_date($row['msg_date'], $comment_date_fmt),
'{MSG_BODY}' => bb_decode($comment_body),
'{MSG_BODY_RAW}' => $row['msg_body'],
'{OK}' => &$lang_display_comments['OK'],
'{SMILIES}' => $smilies,
'{IP}' => $ip,
'{REPORT_COMMENT_TITLE}' => &$lang_display_comments['report_comment_title'],
'{WIDTH}' => $CONFIG['picture_table_width'],
'{THEME_DIR}' => $THEME_DIR,
'{AUTHOR_ID}' => $row['author_id'],
'{PM_LINK}' => PM_LINK
);
$html .= template_eval($template, $params);
}
if (USER_CAN_POST_COMMENTS && $CURRENT_ALBUM_DATA['comments'] == 'YES') {
if (USER_ID) {
$user_name_input = '<tr><td><input type="hidden" name="msg_author" value="' . stripslashes(USER_NAME) . '" /></td>';
template_extract_block($template_add_your_comment, 'user_name_input', $user_name_input);
$user_name = '';
} else {
if (isset($USER['name'])) {
$user_name = strtr($USER['name'], $HTML_SUBST);
} else {
$user_name = $lang_display_comments['your_name'];
}
}
$params = array('{ADD_YOUR_COMMENT}' => $lang_display_comments['add_your_comment'],
// Modified Name and comment field
'{NAME}' => $lang_display_comments['name'],
'{COMMENT}' => $lang_display_comments['comment'],
'{PIC_ID}' => $pid,
'{USER_NAME}' => $user_name,
'{MAX_COM_LENGTH}' => $CONFIG['max_com_size'],
'{OK}' => $lang_display_comments['OK'],
'{SMILIES}' => '',
'{WIDTH}' => $CONFIG['picture_table_width'],
);
if ($CONFIG['enable_smilies']){
$params['{SMILIES}'] = generate_smilies();
} else {
template_extract_block($template_add_your_comment, 'smilies');
}
$html .= template_eval($template_add_your_comment, $params);
}
return $html;
}
-
Hi Stramm
I've moved the {LOGIN_FORM} around to where I want it and I have it on the right side of my gallery where everything is aligned left. I've tried aligning it left in my template.html but it still stays on the right. Is there anywhere in the plugin that I can change to make it align left?
Thanks ;)
-
codebase.php, function pms_loginform ... have a look at the html there
-
Works a treat now Stramm. many thx
-
Gone into the codebase.php changed what I think is the right piece of code so I've changed it to 'left' like so:
if (USER_ID) {
$loginFormHtml = "<div align=\"left\" class=\"smallfont\">".$lang_pms_sys['welcome']." <strong>".(USER_NAME)."</strong><br/></div>";
But is still aligned right! ???
Am I missing something, by the way its the section of the plugin when logged in and showing how many pms I have is the bit what I need aligning.
Thanks
-
link?
-
http://cdcoverhideout.com/gallery
u/n = test
p/w = test ;)
-
user/ pass doesn't work for me
-
Did you log into the forum here as my gallery is bridged:
http://cdcoverhideout.com/newforum
You will see a gallery link in the forum once logged in ;)
-
sorry my bad:
u/n = test
p/w = emmahurry ;)
-
had a look at your code... here I see that
$loginFormHtml = "<div align=\"right\" class=\"smallfont\">".$lang_pms_sys['welcome']." <strong>".(USER_NAME)."</strong><br />";
hasn't been changed to
$loginFormHtml = "<div align=\"left\" class=\"smallfont\">".$lang_pms_sys['welcome']." <strong>".(USER_NAME)."</strong><br />";
or you have another plugin/ mod tunning that overrides the pm function (modpack is one and there's my login form plugin)
That's the output (from your sites source)
<h2>My Account</h2>
<left></left><div class="smallfont" align="right">Welcome back <strong>test</strong><br><a
you see... still align right (btw. what's the use of <left></left>)
-
haven't added that, I'll take another look ;)
-
I must of added that anyway took it out I've attached the file to show that I have changed to left but still the same ???
-
your change in that file doesn't reflect on your site. Are you sure you've uploaded and overwritten the original codebase.php in the photo_shop plugin dir?
I've seen that you use IPB... that's not yet supported unless you write bridge support for it
Actually this plugin works for an unbridged coppermine. It'll add a send pm functionality and one to view PMs. Also there is bridge support built in. For now the smf10 works too.
-
ok, didn't read that part of the thread, I'll wait for IPB support has I'm not good with PHP coding ;D
-
Bonjour,
Voici ma modeste contribution à ce magnifique plugin qu'est "Messages privés".
Vous trouverez en pièce jointe, la version française de cpg_pms.
Tous les fichiers du plugin ont été traduit en français.
Bonne installation
DPH91
-
thanks for your contribution
-
thanks for your contribution
Hello,
I have given you script private messages tailored to my photo album but now is my next problem, typically allows the user in his or her profile checked whether he wants an email sent to his e-mail or not someone tell him or her email .. In your website that you can see but not my website .. What should I do to in the profile to adjust that they can check it received from the email on or off.
Thank you very much, indeed very beautiful script
-
On my website not the plugin is running but the modpack version of the private messaging system. Till now the feature you're talking about has been prepared but is not yet implemented.
-
On my website not the plugin is running but the modpack version of the private messaging system. Till now the feature you're talking about has been prepared but is not yet implemented.
Hello
Can I get this mod http://stramm.st.funpic.org/displayimage.php?album=13&pos=0 on my website ..?
I would also like to see who is online .. And that you can make friends ...
Like to suggest you to install or not?
Because I do not know much for php
Thank you
-
Hi Stramm,
I am right now writing a translation of the language file for your plugin. I do not use this plugin - therefore I am not sure about some phrases - what their intent is (in order to find a suiting translation):
Message deleted, redirecting...' (What does redirecting mean in that content?)
'Remember me', (What does that mean? Is that something like this "logg in automatically"?
No name (is that a placeholder, a user...?)
OK - thats all. Sorry to bother you - but I want a good translation - not just some crap.
Bye
noi
-
Message deleted, redirecting...' (What does redirecting mean in that content?)
Means in a few secs the pm list will load again
'Remember me', (What does that mean? Is that something like this "logg in automatically"?
yes
No name (is that a placeholder, a user...?)
Is used for eg. guests (if they have uploaded a pic, then the uploader name is 'no name', same for pms)
Thanks for translating it ;)
-
OK - then I am done with translating.
I add the german language file to this post.
If someone has suggestions for better phrases please contact me via PN.
-
I installed this but when I PM someone and hit "send" I get this
There was an error while processing a database query
-
I add the spanish language file ;D.
-
I installed this but when I PM someone and hit "send" I get this
There was an error while processing a database query
you'll need to enable debug mode and post the more detailed error message (but not the debug output itself). Make sure, that you're bridged to one of the supported apps (if you're bridged).
-
I add the spanish language file ;D.
Thanks for your contribution ;)
-
Hi Stramm
If you take a look here you will the login form where its situated goes off the page >> http://cdcoverhideout.com/covers
I need it be:
username box
password box
login button
I don't want them to be on the same line all on seperate lines but I've played with the code but they won't budge, plus its aligned right when logged in and I need it to be aligned left, I changed this code but that won't budge too:
$loginFormHtml = "<div align=\"left\" class=\"smallfont\">".$lang_pms_sys['welcome']." <strong>".(USER_NAME)."</strong><br />";
Any help would be perfect
Thanks ;)
-
If you're using a not bridged coppermine, then this is what you need to modify
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><input type="text" class="textinput" name="username" size="10" /></td>
<td><input type="password" class="textinput" name="password" size="10" /></td>
<td><input name="submitted" type="submit" value="Login" />
<input name="remember_me" type="hidden" class="checkbox" value="1" checked="checked" /></td>
</tr>
<tr>
<td class="smallfont">$lang_pms_sys[user]</td>
<td class="smallfont">$lang_pms_sys[pass]</td>
<td></td>
</tr>
</table>
-
hi stramm
i have the same problem as wj1927
i tried modifying codebase.php
didn't work, same problem once logged in.
http://www.rebel-station.org (http://www.rebel-station.org)
any help would be appreciated :)
-
I could not find the Dutch translation so here you have it :-)
-
MadMaxx, the code you need to change is in the plugins include/init.inc.php ... not codebase.php
nielsp, thanks for your contribution ;)
-
MadMaxx, the code you need to change is in the plugins include/init.inc.php ... not codebase.php
that explains it :D
works now, thank you.
-
Cool plugin Stramm.
One question, is there a way how to send PM to multiple/all users (restricted to admin only)?
thx,
mahdi
-
Would be possible if you use a db manipulation tool like phpmyadmin. The PM system itself doesn't have such a feature.
-
Cool plugin Stramm.
One question, is there a way how to send PM to multiple/all users (restricted to admin only)?
thx,
mahdi
If you bridge Coppermine with something like smf you can send mass pm whilst using Stramm's mod.
-
How do you mass PM to users? from admin,...
-
Once Stramm's mod pack is up and running and you've installed smf and bridged it you would go to smf>admin>news and compile your message, then choose to send to all or group by pm. That's it! the users you chose will get a pm and the ones you left out will not get the pm.
If you need more help on this I would suggest logging onto smf for support as this forum is for Coppermine really.
Hope this helps?
-
whats smf ? lċng story man... why dont you just add a page in this mod to mass pm all users ? I mean, this mod has admin panel and all, why dont just put in in there..
-
@Meastroo
This is because the people who make and support Coppermine do this voluntarily. They spend huge amounts of there time to developing and maintaining the software for us to use for free. You can request a mod in the mod section or if you are in a hurry you can pay for a freelancer to mod this up for you.
I have to say as a side note that this site has better and faster support than most paid sites, it's something that makes Coppermine a world leader.
The smf suggestion is a good work around for your circumstance and will give you what you need.
Version 1.5 is in development, you could request this for a future feature.
-
okey, thank for the info, sorry..
-
Sorry I should explain that smf (simple machine forum) is a forum that can be run alongside Coppermine. It can manage your members and administrators. You will need to bridge the two software's together... but they work perfectly as one. Search for smf and bridging in the documents part of this site and it will explain more. ;)
-
I strategies available to members of the site as an Assistant to the PM appear Annex:
Using this script that is already in operation at the site mei.
-
Don't use auto-translators; they just produce gibberish. Ask a friend to translate if you can. I can't understand what you're trying to say.
Use more words to illustrate your issues.
-
is possible to place an automated assistant for "Private Messaging System" to the User make your login automaticate the wizard that appears warning messages.
-
I still have no idea what you mean, sorry. Maybe someone else can understand what the question is.
-
He wants an out of office assistant for his pm's. He also wants to be warned that he has unanswered pm's
-
in profile.php find (at the end of the code)
make_form($display_profile_form_param, $form_data);
and replace with
//added for plugin support - PMS
$profile_data = CPGPluginAPI::filter('profile_add_data', array ( 0 => $display_profile_form_param, 1 => $form_data ));
make_form($profile_data[0], $profile_data[1]);
Added the plugin hook to cpg1.5.x for easier portability of the plugin.
-
I do not understand, why the PM icon shows at the guest who writes a comment?
When I click the error shows up :
NOT FOUND
The requested URL /PM_LINK0 was not found on this server.
Unless a guest does not need this icon, because there is no profile
-
Stramm I install yr mod today and it work, but i have one question.
If i have the captcha mod enabled the captcha doesn't appear under the login:password form. But when i add username and password the first time the gallery return "the confirmation code is wrong" and when it returns me to index page the captcha appear under the fields.
The 2nd time if i put my username/password and captcha the gallery tells me "wrong confirmation code".
3rd time when i put my username password and captcha my gallery tells me "im already logged in"
How can i fix that to keep the captcha and fast login?
-
Dear. I have version 1.4.24. greenweek the theme, everything works within the table but I get smeared. As the center the content of private messages to make it better?
Furthermore, no desire to leave the login and password boxes on the left side menu, as it disables?
Thank you very much
Nicolas
-
Start a thread of your own, refering to this thread and doing as suggested per board rules: post a link to your gallery in your individual support thread that deals with customization of your theme to work with this particular plugin.
-
Sorry, I understood what you sent me ... my english is not very good. Can you explain me better?
My gallery is in www.eleggans.com/contactos [Edit Joachim] Warning: link is not safe for work! [/Edit]
Thank you
-
I told you to stop replying to this thread and instead to start a thread of your own on the support board. If you can not understand that sentence, please ask a friend to translate it for you.
I told you to read board rules: when posting a link to your gallery that contains adult material, you need to post a warning with it. I edited your posting accordingly. Respect board rules in the future. If you don't understand those rules, don't post at all.
-
Hi is there a way to get rid of one of the login buttons. installed this plugin works good but there are 2 ways to login now, the coppermine way or the pms way, mite confuse some ppl not bridged btw.
thx
-
Did you care to have a look at the plugins configuration?
Find within the admin buttons the one named PMS (PrivateMessagingSystem), click it, find the entry 'Display login form' and set this to 'no'.
-
many thx and my apologies need to look closer next time.
-
Is there going to be a version for 1.5?
-
Stop that nonsense. From a thread that contained a similar question to yours, here's my answer:
Anyway, please don't clutter threads with requests for other versions. We have been through this many times over: every time a new coppermine version comes out, users flood the threads for the old version with requests to see the mod / plugin / theme /whatever ported to the new version. We're not fond of this, as it doesn't help at all and only is confusing. If a developer wants to port a plugin, he will. If you need it badly, you're welcome to port it or hire someone to do that for you. But please don't clutter the board with requests for ports.
-
Anyway, please don't clutter threads with requests for other versions. We have been through this many times over: every time a new coppermine version comes out, users flood the threads for the old version with requests to see the mod / plugin / theme /whatever ported to the new version. We're not fond of this, as it doesn't help at all and only is confusing. If a developer wants to port a plugin, he will. If you need it badly, you're welcome to port it or hire someone to do that for you. But please don't clutter the board with requests for ports.
And how would I know if he will do it or if I need to hire someone, if I don't ask?
-
And how would I know if he will do it or if I need to hire someone, if I don't ask?
If the creator of this plugin would have planned to port the plugin or if a port already existed, there would have been a posting that says so within this very thread. The fact that it doesn't exist should be enough for you, especially since I told you to stop this discussion. Continuing it (i.e. not respecting moderation) leads to getting banned. That's what you are now. Farewell.
-
Is this plugin supposed to work with php 5.3?
I've recently updated my testbed to 5.3 and PMS is causing problems which look like CSS is totally ignored (see attached). Unfortunately it's my local machine and I don't have it open to world; my webhost is still using 5.2 and it works well there; I know it's not compliant with board rules, sorry for that. Would you give me some hints how to debug what could cause this issue (I've looked into error logs from apache and it indicates no problem)?
cpg 1.4.27
PHP 5.3.3-pl1-gentoo
thanks in advance
-
So I've figured out the problem lies here
/include/plugin_api.inc.php
* Warning line 213: Parameter 1 to pms_loginform_start() expected to be a reference, value given
which is this line
$value = call_user_func($plugin_function,$value);
and then changing
function pms_loginform_start(&$html)
to below solved that for me
function pms_loginform_start($html)
-
/index.php?file=cpg_pms/codebase
Here what we would get:
Fatal error: Call to a member function add_action() on a non-object in W:\home\localhost\www\plugins\cpg_pms\codebase.php on line 21
It's not very critical, but it is a bug.
-
Thanks for the helpful information