Socialengine greetings plugin, beta

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Socialengine greetings plugin, beta

    Here is a gretings plugin which ive recently created, it works the same way like kiss/wink/etc plugin but has more options.

    here are the install instructions:

    upload the content of the attached zip file to your site,

    and then add this code to mysql:

    PHP Code:
    CREATE TABLE IF NOT EXISTS `gum_greeting` ( 
      `
    greeting_idint(11NOT NULL AUTO_INCREMENT
      `
    greeting_from_user_idint(11NOT NULL
      `
    greeting_to_user_idint(11NOT NULL
      `
    greeting_typevarchar(30NOT NULL
      `
    greeting_newvarchar(10NOT NULL DEFAULT '1'
      `
    greeting_timeint(11NOT NULL
      
    PRIMARY KEY (`greeting_id`), 
      
    KEY `greeting_to_user_id` (`greeting_to_user_id`,`greeting_new`,`greeting_time`) 
    ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 


    INSERT INTO `se_notifytypes` (`notifytype_id`, `notifytype_icon`, `notifytype_name`, `notifytype_title`, `notifytype_url`, `notifytype_desc`, `notifytype_group`) VALUES 
    (21'greetings.png''greeting'198230200'user_greetings.php?mod=new'1982302091); 

    INSERT INTO `se_languagevars` (`languagevar_id`, `languagevar_language_id`, `languagevar_value`, `languagevar_default`) VALUES 
    (1982302001'Greetings''gum_greeting'), 

    (
    1982302011'Send a greetings''gum_greeting'), 

    (
    1982302021'Greeting sent''gum_greeting'), 

    (
    1982302031'Greeting is not sent''gum_greeting'), 

    (
    1982302041'Answer''gum_greeting'), 

    (
    1982302051'New Greetings''gum_greeting'), 

    (
    1982302061'All Greetings''gum_greeting'),  

    (
    1982302071'Delete Greeting''gum_greeting'), 

    (
    1982302081'When I receive a Greeting''gum_greeting'),  

    (
    1982302091'New Greetings: %1$d''gum_greeting'), 

    (
    1982302101'Greetings Settings''gum_greeting'), 

    (
    1982302111'Edit your greetings privacy settings.''gum_greeting'), , 

    (
    1982302121'Who can send you greetings?''gum_greeting'), 

    (
    1982302131'Greetings notification.''gum_greeting'), 

    (
    1982302141'Yes, notify me when someone sends me a greeting.''gum_greeting'), 

    (
    1982302151'No Greetings.''gum_greeting'), 

    (
    1982302161'Outgoing Greetings.''gum_greeting'), 

    (
    1982302201'Kiss''gum_greeting'), 
    (
    1982302211'Sends you a kiss.''gum_greeting'), 

    (
    1982302221'Wink''gum_greeting'), 
    (
    1982302231'Winked you.''gum_greeting'), 

    (
    1982302241'Smile''gum_greeting'), 
    (
    1982302251'Sent you a smile.''gum_greeting'), 

    (
    1982302261'Hug''gum_greeting'), 
    (
    1982302271'Sent you a hug.''gum_greeting'), 

    (
    1982302281'Tickle''gum_greeting'), 
    (
    1982302291'Tickeled you.''gum_greeting'), 

    (
    1982302301'Declare you love''gum_greeting'), 
    (
    1982302311'Loves you.''gum_greeting'), 


    (
    1982302321'Bite''gum_greeting'), 
    (
    1982302331'Bit you.''gum_greeting'), 

    (
    1982302341'Send Beer''gum_greeting'), 
    (
    1982302351'Sent you a beer.''gum_greeting'), 

    (
    1982302361'Send Poison''gum_greeting'), 
    (
    1982302371'Sent you a poison.''gum_greeting'), 

    (
    1982302381'Kick''gum_greeting'), 
    (
    1982302391'Kicked you.''gum_greeting'); 
    open header.php
    and after:
    PHP Code:
    include "include/functions_stats.php"
    add:
    PHP Code:
    include "include/class_gum_greeting.php"
    include 
    "include/functions_gum_greeting.php"
    find and add after:
    PHP Code:
    $plugin_vars = array(); 
    this code:
    PHP Code:
    $plugin_vars['menu_user'] = array('file' => 'user_greetings.php''icon' => 'greetings.png''title' => 198230200); 
    save changes.

    now open profile.php
    and after:
    PHP Code:
    // ASSIGN VARIABLES AND INCLUDE FOOTER 
    add this:
    PHP Code:
    $smarty->assign('gum_greetings'greetings_menu()); 
    save changes.

    open templates/profile.tpl
    and after:
    PHP Code:
    {* SHOW SEND MESSAGE MENU ITEM *} 

        {if (
    $user->level_info.level_message_allow == || ($user->level_info.level_message_allow == && $is_friend)) && $owner->level_info.level_message_allow != 0

          <
    tr><td class='profile_menu1' nowrap='nowrap'><a href="javascript:TB_show('{lang_print id=784}', 'user_messages_new.php?to_user={$owner->user_displayname|escape:url}&to_id={$owner->user_info.user_username}&TB_iframe=true&height=400&width=450', '', '/images/trans.gif');"><img src='/images/icons/sendmessage16.gif' class='icon' border='0'>{lang_print id=839}</a></td></tr

          {
    assign var='showmenu' value='1'

        {/if} 
    add this:
    PHP Code:
    {include file='gum_profile_greetings.tpl'
    this plugin should work will all SE versions over 3.14
    Attached Files
    Advertise your mobile site for FREE with AdTwirl


    #2
    Thanks Gum

    Comment


      #3
      you will get error like this:
      Fatal error: Call to undefined method SEDatabase::database_fetch_row() in /home/users/p/мой сайт/domains/мой сайт.ru/include/class_gum_greeting.php on line 31
      open class_gum_greeting.php and replace database_fetch_row with database_fetch_array
      Advertise your mobile site for FREE with AdTwirl

      Comment

      Working...
      X