Results 1 to 3 of 3

Thread: Socialengine greetings plugin, beta

  1. #1
    Administrator GumSlone's Avatar
    Join Date
    Mar 2005
    Location
    Mars, GumCity
    Posts
    1,495
    Thanks
    125
    Thanked 573 Times in 201 Posts
    Blog Entries
    2
    Rep Power
    10

    Default 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 Thumbnails Attached Thumbnails Bildschirmfoto 2010-04-26 um 14.12.53.jpg  
    Attached Files Attached Files
    Advertise your mobile site for FREE with [Only registered and activated users can see links. Click Here To Register...]

    [Only registered and activated users can see links. Click Here To Register...]


  2. The Following User Says Thank You to GumSlone For This Useful Post:

    youngbobby (26-04-10)

  3. #2
    Member youngbobby's Avatar
    Join Date
    Jun 2009
    Location
    On the web
    Posts
    55
    Thanks
    4
    Thanked 3 Times in 2 Posts
    Rep Power
    4

    Default

    Thanks Gum

  4. #3
    Administrator GumSlone's Avatar
    Join Date
    Mar 2005
    Location
    Mars, GumCity
    Posts
    1,495
    Thanks
    125
    Thanked 573 Times in 201 Posts
    Blog Entries
    2
    Rep Power
    10

    Default

    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 [Only registered and activated users can see links. Click Here To Register...]

    [Only registered and activated users can see links. Click Here To Register...]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SocialEngine 4
    By mobile in forum SocialEngine
    Replies: 5
    Last Post: 24-04-12, 11:01
  2. Socialengine map of faces mod
    By GumSlone in forum SocialEngine
    Replies: 11
    Last Post: 25-10-10, 12:41
  3. SocialEngine GumPercentage
    By GumSlone in forum SocialEngine
    Replies: 0
    Last Post: 17-04-10, 10:53
  4. Social Engine Mobile Plugin Registration Page
    By opticalpigion in forum SocialEngine
    Replies: 2
    Last Post: 07-04-10, 07:23
  5. Joomla VBulletin Bridge jvb LATEST plugin from bbpixel
    By MaD-DoC in forum Scripts Forum
    Replies: 2
    Last Post: 28-12-09, 11:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19