Jump to content

(SD32) Reputation Reason


Spanner

Recommended Posts

%7Boption%7D



File Name: (SD32) Reputation Reason

File Submitter: Spanner

File Submitted: 23 Mar 2012

File Category: User and Social Engagement

Supported Versions: IP.Board 3.2.x, IP.Board 3.3.x



Author: Dawid Baruch (IPSBeyond.pl)

Opis: Hook dodaje funkcjonalność dodawania powodów wystawianej reputacji.
Description: Hook give you the ability to attach a short message when you give a reputation point.



here to download this file

Link to comment
Share on other sites


Exellent hook!


Thank you!



But how I can make it work with Russian words ?



Once reputation comment is on English it is ok. But once on Russian it displays like this



post-186732-0-23154600-1332559913_thumb.

Probably is problem with read topic title. I use normal

array(

                                        'select'    => 't.title,t.tid',

                                        'from'      => array( 'topics' => 't' ),

                                        'where'     => 'p.topic_id=t.tid',

                                        'type'      => 'left',

                                    )

It's difficult to say what is wrong in Russian





English version uploaded

Link to comment
Share on other sites


Probably is problem with read topic title. I use normal [code]array(



Thank you for reply.

Topic title may affect to comment proper displaying ?

I'll take a look later

No, something different. That also gives same problem on any other non english comments
Link to comment
Share on other sites


Do you have permissions from AH Modding for using his old code from IP.Board 3.0 in this mod? Huge parts of code I must say.


If not you guys will delete this great hook? That guy not updated this hook for billion years and it doesnt looks like Spanner trying make money on this hook. So I think he did goo job! Thank you!




Unfortunately, the problem remained not solved



Same here!
Link to comment
Share on other sites

Russian - try to change Ajax method to POST (now GET) in reputationJavascriptOverride template and use convertAndMakeSafe() in sd32ReputationAjaxActionOverloader....php in hooks.


	// Send ping

	new Ajax.Request( rep.sendUrl + '&rating=' + value + "&md5check=" + ipb.vars['secure_hash'],

		{

			method: 'post',

			evalJSON: 'force',

			parameters: {

				rep_msg: $(id + '_msg').getValue().encodeParam()

			},



   	

   	 $msg = trim( $this->convertAndMakeSafe( $_POST['rep_msg'] ) );

Link to comment
Share on other sites

For correct work with Russian comments

open Look & Feel > Manage Skin Sets & Templates > Yourskin

Template skin_sd32ReputationReason > sd32ReputationAjaxActionOverloader

Find


new Ajax.Request( rep.sendUrl + '&rating=' + value + '&rep_msg=' + $(id + '_msg').getValue().encodeParam(),

Change to


new Ajax.Request( rep.sendUrl + '&rating=' + value + '&rep_msg=' + encodeURIComponent($(id + '_msg').getValue()),

Link to comment
Share on other sites


For correct work with Russian comments





Template skin_sd32ReputationReason > sd32ReputationAjaxActionOverloader



Find




new Ajax.Request( rep.sendUrl + '&rating=' + value + '&rep_msg=' + $(id + '_msg').getValue().encodeParam(),

Change to


new Ajax.Request( rep.sendUrl + '&rating=' + value + '&rep_msg=' + encodeURIComponent($(id + '_msg').getValue()),


Спасибо!

Great, work for me!
Link to comment
Share on other sites


Is anybody else have this issue:


post-148255-0-69394900-1332915464_thumb.

System not showing how many likes was given. Any good advices how to fix it?



Thank you




Try to turn off third party hooks. I don't have that bug with this hook

post-186732-0-83780300-1333033724_thumb.

или рекеш скинов сделать
Link to comment
Share on other sites

  • 5 weeks later...

Like this please?:

-> After leaving your comment feedback, it displays on the post.
[+] So say I left pressed +1, typed my comment and hit submit it displays on the post where I pressed +1 instead of on the profile (or both)

Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...