Jump to content


* * * - - 2 votes

[Unsupported] Thanks Mod Light - ajax


  • Please log in to reply
67 replies to this topic

#1 ThiagoInfo

ThiagoInfo

    Member

  • Members
  • PipPipPip
  • 32 posts
  • IPB Version:v2.2.x
Contributor

Posted 11 September 2007 - 05:26 AM

File Name: [Unsupported] Thanks Mod Light - ajax
File Submitter: ThiagoInfo
File Submitted: 11 Sep 2007
File Updated: 26 Sep 2007
File Category: IP.Board v2.3.x & v2.2.x Mods

It adds a button to thank other members.
1- Thanks Total - in Topics.
2- Enable or Disable Visualization thanks total.
3- Disable mod total in Admin CP.
4- Option in Admin CP buttom in topics and posts.

This mod adapted of Thanks Hack (Ajax) by meo and Thx Advanced 2.3 By ThiagoInfo.

Click here to download this file

#2 EvilHeat

EvilHeat

    Member

  • Members
  • PipPipPip
  • 21 posts
  • Real Name:EvilHeart
  • IPB Version:v2.2.x

Posted 11 September 2007 - 08:44 AM

ummm Thanksss

#3 D Aquarian

D Aquarian

    Member

  • Members
  • PipPipPip
  • 42 posts
  • IPB Version:v2.3.x

Posted 11 September 2007 - 10:57 AM

does this work with hide hack?

#4 ThiagoInfo

ThiagoInfo

    Member

  • Members
  • PipPipPip
  • 32 posts
  • IPB Version:v2.2.x
Contributor

Posted 11 September 2007 - 11:52 AM

QUOTE(D Aquarian @ Sep 11 2007, 05:57 AM) <{POST_SNAPBACK}>
does this work with hide hack?

I did not test, later I will try to give one looked at, however I find that it does not go to work.

#5 D Aquarian

D Aquarian

    Member

  • Members
  • PipPipPip
  • 42 posts
  • IPB Version:v2.3.x

Posted 11 September 2007 - 03:38 PM

if it works with the hide hack then this cld b the greatest mod ever

#6 ThiagoInfo

ThiagoInfo

    Member

  • Members
  • PipPipPip
  • 32 posts
  • IPB Version:v2.2.x
Contributor

Posted 11 September 2007 - 04:24 PM

QUOTE(D Aquarian @ Sep 11 2007, 10:38 AM) <{POST_SNAPBACK}>
if it works with the hide hack then this cld b the greatest mod ever



D Aquarian,

I made some attempts, however without success.  wacko.gif
Unhappyly I did not obtain. If somebody that has greater knowledge to want to análisar. The form as the two works is different. Valley to remember despite to function itself it would have that to adapt all hide hack to work in ajax, senão when clicar in the button thanks all page would bring up to date, annulling the main function of mod.

#7 D Aquarian

D Aquarian

    Member

  • Members
  • PipPipPip
  • 42 posts
  • IPB Version:v2.3.x

Posted 12 September 2007 - 07:13 AM

its a kind request
If u can make ur own version of the hide hack which would work with this .please

#8 Cameron07

Cameron07

    Member

  • Banned
  • PipPipPip
  • 42 posts
  • Real Name:Tommy
  • IPB Version:N/A
Contributor

Posted 14 September 2007 - 10:27 PM

thank u
Posted Image

#9 GoppoBuro

GoppoBuro

    Advanced Member

  • Members
  • PipPipPipPip
  • 77 posts
  • IPB Version:v2.3.x

Posted 16 September 2007 - 01:50 PM

today i have installed the Thanks Mod Advanced 2.3 written by ThiagoInfo. its working fine. thanx for that mod. but i have faced one problem with this. whenever somebody is giving thanks it is counting 2 times. donno no why. help me plz.

#10 Rocky

Rocky

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 442 posts
  • IPB Version:v3.0.x

Posted 16 September 2007 - 01:57 PM

please check all your file edits.. may be you must have posted same piece of code twice in some file while editing the file.

#11 GoppoBuro

GoppoBuro

    Advanced Member

  • Members
  • PipPipPipPip
  • 77 posts
  • IPB Version:v2.3.x

Posted 16 September 2007 - 05:07 PM

thanks rocky..i did mistake with topics.php tongue.gif now it working fine smile.gif

#12 Rocky

Rocky

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 442 posts
  • IPB Version:v3.0.x

Posted 16 September 2007 - 05:13 PM

thumbsup.gif

#13 yogi

yogi

    n00b

  • Members
  • Pip
  • 2 posts
  • IPB Version:N/A

Posted 22 September 2007 - 08:58 AM

Where i can change language this text:

CODE
The Following 1 Users Say Thank You to Marcinus For This Useful Post:


im edit in index.php , but don't work when refreshing and delete cookies :|

Please help.

#14 Depot

Depot

    Invision Modding.com Helper - Type - Person

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 5,573 posts
  • Location:NE Florida
  • Real Name:Larry C
  • IPB Version:v2.3.x
Contributor

Posted 22 September 2007 - 10:55 AM

QUOTE(yogi @ Sep 22 2007, 04:58 AM) <{POST_SNAPBACK}>
Where i can change language this text:

CODE
The Following 1 Users Say Thank You to Marcinus For This Useful Post:


im edit in index.php , but don't work when refreshing and delete cookies :|

Please help.

In index.php find:

CODE
//===========================================================================
// REQUIRE AND RUN
//===========================================================================

Add below:

CODE
        // Thanks Light - Adapted By ThiagoInfo - Start
        if($ipsclass->input['act'] == "thanks")
        {
            $output = "";
            $thpid = $ipsclass->input['pid'];
            $divid = "thank_".$ipsclass->input['pid'];
            $userpost = $ipsclass->input['usp'];
            $userpostid = $ipsclass->input['tid'];
                if (!$thpid || !$ipsclass->member['id'])
                {
                    return;
                }
            $userid = $ipsclass->member['id'];
            $username = $ipsclass->member['members_display_name'];
            
            $ipsclass->DB->query("INSERT INTO ibf_post_thanks (userid, username, postid) VALUES('$userid', '$username', '$thpid')");
            $query = $ipsclass->DB->query("SELECT  thanks_point FROM ibf_members WHERE id = '$userpostid'");
            $row = $ipsclass->DB->fetch_row($query);
            $thanks_point = $row['thanks_point'];
            ++$thanks_point;
            $ipsclass->DB->query("UPDATE ibf_members SET  thanks_point ='$thanks_point'  where id = '$userpostid'");
            $query = $ipsclass->DB->query("SELECT * FROM ibf_post_thanks WHERE postid = '$thpid' ORDER BY username ASC");
            $thank_tot = $ipsclass->DB->get_num_rows($query);
            if ($thank_tot)
            {
                $thank_text1 = "<div class=\"row1\" colspan=\"2\" align=\"top\"><strong>The Following {$thank_tot} Users Say Thank You to {$userpost} For This Useful Post:</strong></div>";
                while($row = $ipsclass->DB->fetch_row($query))
                {
                    $thank_text .= "<a href=\"index.php?showuser=".$row['userid']."\">".$row['username']."</a>, ";
                }
                $thank_text = preg_replace( "/,\s+$/", "" , $thank_text);
                $output =    "{$thank_text1} {$thank_text}";
                $output = str_replace("|", "", $output);
            }
            echo "$divid|$output";
            exit;
        }
        // Thanks Light - Adapted By ThiagoInfo - End

Modify this part to your liking before saving and uploading:

CODE
                $thank_text1 = "<div class=\"row1\" colspan=\"2\" align=\"top\"><strong>The Following {$thank_tot} Users Say Thank You to {$userpost} For This Useful Post:</strong></div>";


- - - - nsMod Community Forums - - - -

Posted Image Services System Modification Installation FAQ Invision Modding Store Posted Image

I DO: IPB UPGRADES, MOD INSTALLS, DATABASE BACKUPS & RESTORATION, CUSTOM SKINS, SITE TRANSFERS

IMPORTANT - READ THIS BEFORE YOU PM ME!!!

Do not ask me for assistance / provide me with your url if you own a nullified board - IM Staff will be notified.


#15 matrixtech

matrixtech

    n00b

  • Banned
  • Pip
  • 1 posts
  • IPB Version:v2.3.x

Posted 22 September 2007 - 11:48 AM

This mod compatible with 2.3.1?

#16 Depot

Depot

    Invision Modding.com Helper - Type - Person

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 5,573 posts
  • Location:NE Florida
  • Real Name:Larry C
  • IPB Version:v2.3.x
Contributor

Posted 22 September 2007 - 12:05 PM

View the first post: "File Category: IP.Board v2.3.x & v2.2.x Mods".

- - - - nsMod Community Forums - - - -

Posted Image Services System Modification Installation FAQ Invision Modding Store Posted Image

I DO: IPB UPGRADES, MOD INSTALLS, DATABASE BACKUPS & RESTORATION, CUSTOM SKINS, SITE TRANSFERS

IMPORTANT - READ THIS BEFORE YOU PM ME!!!

Do not ask me for assistance / provide me with your url if you own a nullified board - IM Staff will be notified.


#17 Colibri

Colibri

    Coder

  • Members
  • PipPipPipPipPip
  • 245 posts
  • IPB Version:v2.3.x

Posted 22 September 2007 - 03:25 PM

Im testing this out, I notice the Thanks button but how do I make the ajustment for other skins?
I mean I have a few other skins but that default button is on everyskin & Id like to use the skins I have button insted of the defalut on them.

Thanks
Posted Image

#18 Depot

Depot

    Invision Modding.com Helper - Type - Person

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 5,573 posts
  • Location:NE Florida
  • Real Name:Larry C
  • IPB Version:v2.3.x
Contributor

Posted 22 September 2007 - 03:35 PM

Perform STEP 4: SKIN EDITS: on all of your skins, if I understand you correctly.

- - - - nsMod Community Forums - - - -

Posted Image Services System Modification Installation FAQ Invision Modding Store Posted Image

I DO: IPB UPGRADES, MOD INSTALLS, DATABASE BACKUPS & RESTORATION, CUSTOM SKINS, SITE TRANSFERS

IMPORTANT - READ THIS BEFORE YOU PM ME!!!

Do not ask me for assistance / provide me with your url if you own a nullified board - IM Staff will be notified.


#19 Colibri

Colibri

    Coder

  • Members
  • PipPipPipPipPip
  • 245 posts
  • IPB Version:v2.3.x

Posted 23 September 2007 - 08:56 AM


I have these two skins installed but this image is on both of them & wanted to know what the adjustment for them 2 skins

Thanks
Posted Image

#20 Depot

Depot

    Invision Modding.com Helper - Type - Person

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 5,573 posts
  • Location:NE Florida
  • Real Name:Larry C
  • IPB Version:v2.3.x
Contributor

Posted 23 September 2007 - 10:54 AM

Ahhhhhhhhhhhh NOW I get you Colibri!  smile.gif

Simply upload these new images to the appropriate skin's style_images folder, ensuring that your image is named identically and in the same format.  wink.gif

- - - - nsMod Community Forums - - - -

Posted Image Services System Modification Installation FAQ Invision Modding Store Posted Image

I DO: IPB UPGRADES, MOD INSTALLS, DATABASE BACKUPS & RESTORATION, CUSTOM SKINS, SITE TRANSFERS

IMPORTANT - READ THIS BEFORE YOU PM ME!!!

Do not ask me for assistance / provide me with your url if you own a nullified board - IM Staff will be notified.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users