MyBB Community Forums

Full Version: ProfileComments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
(2010-11-24, 09:44 PM)~Rs Wrote: [ -> ]
(2010-11-24, 08:51 PM)RocketFoot Wrote: [ -> ]Is there any way to move this module to the left side of the profile page? The right side of my profile is way too long!

templates, profile

I've been trying but when I move the language bit, it hoses the whole page!
(2010-11-24, 09:51 PM)RocketFoot Wrote: [ -> ]
(2010-11-24, 09:44 PM)~Rs Wrote: [ -> ]
(2010-11-24, 08:51 PM)RocketFoot Wrote: [ -> ]Is there any way to move this module to the left side of the profile page? The right side of my profile is way too long!

templates, profile

I've been trying but when I move the language bit, it hoses the whole page!

don't move the language bit! just the {$ php code

post your profile.php here, i will edit for you...
what is wrong with these ??

plz what i mat to do ?
what is that error ?!
when i go to :

ACP >> Users & Groups >> Groups >> *group* >> Users & Permissions

it's show these error !!!
[Image: attachment.php?aid=19893]

(2010-11-24, 09:51 PM)RocketFoot Wrote: [ -> ]I've been trying but when I move the language bit, it hoses the whole page!

In the member_profile template, you need to find this code:
<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
Move it AFTER this code:
</tr>
<tr>
<td class="{$bgcolors['aim']}"><strong>{$lang->aim_screenname}</strong></td>
<td class="{$bgcolors['aim']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="{$bgcolors['msn']}"><strong>{$lang->msn}</strong></td>
<td class="{$bgcolors['msn']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>
</table>
This way it will be shown at the bottom of the left side.

(2010-11-25, 12:15 AM)mazin46 Wrote: [ -> ]what is wrong with these ??

plz what i mat to do ?
what is that error ?!
when i go to :

ACP >> Users & Groups >> Groups >> *group* >> Users & Permissions

it's show these error !!!
[Image: attachment.php?aid=19893]

Did you updated the plugin from a previous version? (0.4, probably?)
If you did, you need to execute the updater from the v0.5, and then the updater from the v0.6.

If it's a clean install... tell me and I will try to find a reason. :/
Thx for answer Aquilez:
yes i updated the plugin from a previous version 0.4 to 0.6 ...
what i must to do know >?! how can solve that ?!
(2010-11-25, 01:01 AM)mazin46 Wrote: [ -> ]Thx for answer Aquilez:
yes i updated the plugin from a previous version 0.4 to 0.6 ...
what i must to do know >?! how can solve that ?!

Save this code into a file "update.php". Upload it to your MyBB root installation and execute it (yourforum.com/example/update.php)

<?php

/**
 * MyBB 1.4
 * Copyright © 2008 MyBB Group, All Rights Reserved
 *
 * ProfileComments by Santiago Dimattia
 * http://www.teleportz.com.ar
 * 
 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'update.php');

require_once "./global.php";

$lang->load('profilecomments');

// New comments alert
$db->write_query("ALTER TABLE `".TABLE_PREFIX."users` DROP `visiteprofile`;");
$db->write_query("ALTER TABLE `".TABLE_PREFIX."users` ADD `newcomments` INT(10) NOT NULL DEFAULT '0';");

// New group-based permissions! :)
$db->write_query("ALTER TABLE `".TABLE_PREFIX."usergroups` ADD `cansendcomments` INT(1) NOT NULL DEFAULT '0';");
$db->write_query("ALTER TABLE `".TABLE_PREFIX."usergroups` ADD `caneditselfcomments` INT(1) NOT NULL DEFAULT '0';");
$db->write_query("ALTER TABLE `".TABLE_PREFIX."usergroups` ADD `candeleteselfcomments` INT(1) NOT NULL DEFAULT '0';");

// Give access to send and edit own comments to ALL USERGROUPS
$db->write_query('UPDATE '.TABLE_PREFIX.'usergroups SET canmanagecomments = "0", cansendcomments = "1", caneditselfcomments = "1"');
// Give access to EDIT & DELETE (all comments) to Administrators
$db->write_query('UPDATE '.TABLE_PREFIX.'usergroups SET canmanagecomments = "1", candeleteselfcomments = "1" WHERE gid = "4"');
// Delete all access for guests
$db->write_query('UPDATE '.TABLE_PREFIX.'usergroups SET cansendcomments = "0", caneditselfcomments = "0" WHERE gid = "1"');
// Delete all access for banned users
$db->write_query('UPDATE '.TABLE_PREFIX.'usergroups SET cansendcomments = "0", caneditselfcomments = "0" WHERE gid = "7"');
// Delete all access for 'awaiting activation' users
$db->write_query('UPDATE '.TABLE_PREFIX.'usergroups SET cansendcomments = "0", caneditselfcomments = "0" WHERE gid = "5"');

// Update usergroups cache
$cache->update_usergroups();

$query = $db->simple_select('settinggroups', 'gid', 'name="profilecomments"');
$group = $db->fetch_field($query, 'gid');

// Create new values
$new_config = array();

$new_config[] = array(
	'name' => 'profilecomments_allow_html',
	'title' => $db->escape_string($lang->profile_comments_allow_html),
	'description' => $db->escape_string($lang->profile_comments_allow_html_info),
	'optionscode' => 'yesno',
	'value' => '0',
	'disporder' => 6,
	'gid' => $group
);

$new_config[] = array(
	'name' => 'profilecomments_allow_smilies',
	'title' => $db->escape_string($lang->profile_comments_allow_smilies),
	'description' => $db->escape_string($lang->profile_comments_allow_smilies_info),
	'optionscode' => 'yesno',
	'value' => '1',
	'disporder' => 7,
	'gid' => $group
);

$new_config[] = array(
	'name' => 'profilecomments_allow_bbcode',
	'title' => $db->escape_string($lang->profile_comments_allow_bbcode),
	'description' => $db->escape_string($lang->profile_comments_allow_bbcode_info),
	'optionscode' => 'yesno',
	'value' => '1',
	'disporder' => 8,
	'gid' => $group
);

	$new_config[] = array(
	'name' => 'profilecomments_allow_imgcode',
	'title' => $db->escape_string($lang->profile_comments_allow_imgcode),
	'description' => $db->escape_string($lang->profile_comments_allow_imgcode_info),
	'optionscode' => 'yesno',
	'value' => '1',
	'disporder' => 9,
	'gid' => $group
);

$new_config[] = array(
	'name' => 'profilecomments_filter_badwords',
	'title' => $db->escape_string($lang->profile_comments_filter_badwords),
	'description' => $db->escape_string($lang->profile_comments_filter_badwords_info),
	'optionscode' => 'yesno',
	'value' => '1',
	'disporder' => 10,
	'gid' => $group
);

$new_config[] = array(
	'name' => 'profilecomments_show_editor',
	'title' => $db->escape_string($lang->profile_comments_show_editor),
	'description' => $db->escape_string($lang->profile_comments_show_editor_info),
	'optionscode' => 'yesno',
	'value' => '0',
	'disporder' => 10,
	'gid' => $group
);

foreach($new_config as $array => $content)
{
	$db->insert_query("settings", $content);
}

rebuild_settings();

echo 'New settings in ProfileComments 0.6.0 were created.<br /><span style="display: block; font-size: 24px; color: #F00; margin-top: 20px;">Don\' forget to delete this file.</span>';
Aquilez You Are Great Man Wink thax for helping and sporting know it's Ok .
When I try to change the version to 1.6 I get this error
Quote:Fatal error: Cannot redeclare find_replace_templatesets() (previously declared in /home/pixelmom/public_html/blabandblurt.info/inc/adminfunctions_templates.php:22) in /home/pixelmom/public_html/blabandblurt.info/inc/adminfunctions_templates.php on line 101
Hello
i have a problem with this plugin i can send a message and "message sent" screen appears but there is no comment in the profile and it says there is no comment. i checked database and i find profilecomment table trough phpmyadmin and the comments are exist in the database but they just don't appear on the profile.

i have checked every tamplates and everything seems to be ok. the {$comments_index} exists in memebr_profile template.

------------------------------------------------------------------------------------------------------------------------
here is a list of my installed plugins :
1. Date of birth on registration
2. Google seo
3. Profile buddies
4. SCD hide from groups
5. Thanks
Hi! I really like your plugin is very popular on my forum, Good job! However, I have a few questions:
-What will happen with comments if I move a forum on another engine (like IPB)?
- Does moving forum on another server will delete the comments?
- Does deactivating and re-activating the plugin will delete all comments or not?

I have a few suggestions that you could use in this plugin, for example:
- each user can set how many comments on the page will be displayed
- user get notification when about new comment appeared on his profile.
also that the comments will be displayed immediately, or after acceptance
that any user can delete comments on his profile.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45