Jump to content
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

(BN23) Reputation


Batman

Recommended Posts

Nazwa pliku: (BN23) Reputation

Autor: Batman

Data wysłania: 03 wrz 2009

Data aktualizacji: 13 lut 2010

Kategoria: Modyfikacje

Wersja modyfikacji: 1.1

INFO :Modyfikacja dodaje do forum punktowy system reputacji.

Eng :This modification add to your forum reputation system.

Modyfikacja wymaga do zainstalowania :

* Universal Mod Installer

This mod was designed to be installed using the following components:

* Universal Mod Installer

Najważniejsze Opcje(Most important Option):

- Ocenianie dodatnie i ujemne (z możliwością blokady oceny ujemnej)

- Evaluating positive and negative (with the possibility to blockade negative)

- Możliwośc oceny wszystkich lub tylko pierwszych postów.

- Possibility evaluated first post or all posts.

- Wybór for na których jest możliwośc oceny.

- Choice forums in which by able to used reputation.

- Wybór grup które mogą widzieć system

- Choice user groups which can see system.

- Wybór grup które mogą używać systemu.

- Choice user groups which can use system.

- Możliwośc zbanowania konkretnych userów

- Possibility ban concrete users

- Poziomy reputacji można dodawać, usuwać lub edytowac.

- Reputation levels can be added, deleted or edit.

acfa614bbfc4244a.png

17ecb703562bb7b6.png

Ten mod używa AJAX

This mod uses AJAX

update 1.1 - IE 6,7,8 Ajax bug and other small bugs fixed

new features added

Pobierz plik

  • Like 1
jam_artists_button.png

Link to comment
Share on other sites

Witam

1. zainstalowałem wszystko w profilu w widoku tematu pokazuje Reputacja: 0 jak i obrazki "plus", "minus" "licznik" "oraz strzałkę" po kliknięciu w obrazek nic się nie dzieje tylko na końcu adresu pojawia się "#plus"

2. Jak wchodzę w statystyki reputacji to są krzaczki w języku Polskim

Link to comment
Share on other sites

ok plik reputation.js jest uszkodzony , nawalił js packer

zaktualizowałem plik jak tylko boss zatwierdzi pliczek będzie do pobrania

na razie daję tutaj pliczek js.

zawartość pliku zip należy wgrać do katalogu jscripts

Pozdrawiam Batman

EDIT by DawPi:

zaktualizowane, załącznik usunięty. :P

jam_artists_button.png

Link to comment
Share on other sites

Nie znajduje tego fragmentu kodu RenderRow

<td class="catend" colspan="2">

Pełny kod RenderRow poniżej:

<!--Begin Msg Number {$post['pid']}-->
<table class='ipbtable' cellspacing="1">
<tr>
	<td valign="middle" class="row2" width="1%">
		<a name="entry{$post['pid']}"></a>
		<if="$author['id']">
			<div id="post-member-{$post['pid']}" class='popmenubutton-new-out'>
				<span class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_members_display_name']}</span>
			</div>
			<!-- member menu -->
			<div class='popupmenu-new' id='post-member-{$post['pid']}_menu' style='display:none;width:230px'>
				<div class='popupmenu-item-last'>
					<if="$author['members_display_name_short'] != $author['members_display_name']">
						<div class='popupmenu-item'><strong>{$author['members_display_name']}</strong></div>
					</if>
					<div style='float:right'>
						<div class='pp-image-thumb-wrap'>
							<img src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}' height='{$author['pp_thumb_height']}' alt='' />
						</div>
						<if="$this->ipsclass->vars['pp_allow_member_rate']">
							<div style='margin-top:5px;margin-left:6px;'>
								<img src="{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_real']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}: {$author['_pp_rating_real']}' style='vertical-align:middle' border='0' />
							</div>
						</if>
					</div>
					<div class='popupmenu-item'>
						{$author['_pp_gender_image']} <a href="{$this->ipsclass->base_url}showuser={$author['id']}">{$this->ipsclass->lang['dd_view_profile']}</a>
					</div>
					<if="$author['has_blog'] AND $author['_cache']['my_blog']">
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}autocom=blog&blogid={$author['_cache']['my_blog']}'>{$this->ipsclass->lang['dd_my_blog']}</a>
						</div>
					</if>
					<if="$author['has_gallery']">
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}autocom=gallery&req=user&user={$author['id']}'>{$this->ipsclass->lang['dd_my_albums']}</a>
						</div>
					</if>
					<if="$this->ipsclass->member['id']">
						<div class='popupmenu-item'>
							<if="in_array( $author['id'], array_keys( $this->ipsclass->member['_cache']['friends'] ) )">
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=remove&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_remove_friend']}</a>
							<else />
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=add&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_add_friend']}</a>
							</if>
						</div>
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&CODE=4&MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
						</div>
						<div class='popupmenu-item'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=gettopicsuser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
						</div>
						<div class='popupmenu-item-last'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=getalluser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
						</div>
					</if>
				</div>
			</div>
			<!-- member menu -->
			<script type="text/javascript">
				ipsmenu.register( "post-member-{$post['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );
			</script>
		<else />
			<span class="{$post['name_css']}">{$author['_members_display_name']}</span>
		</if>

	</td>
	<td class="row2" valign="middle" width="99%">
		<!-- POSTED DATE DIV -->
		<div style="float: left;">
			<span class="postdetails">{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span>
		</div>
		<!-- REPORT / DELETE / EDIT / QUOTE DIV -->
		<div align="right">
			<span class="postdetails">{$post['ip_address']} {$this->ipsclass->lang['posted_on']}
				<a title="{$this->ipsclass->lang['tt_link']}" href="{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showtopic={$post['topic_id']}&view=findpost&p={$post['pid']}" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a>
				<if="$this->ipsclass->member['is_mod']">
					| <a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a>
				</if>
			</span>
		</div>
	</td>
</tr>
<tr>
	<td valign="top" class="{$post['post_css']}">
       	<span class="postdetails">
			<if="$author['id'] AND $author['avatar']">
				<a href="{$this->ipsclass->base_url}showuser={$author['id']}" title="{$this->ipsclass->lang['dd_view_profile']}">{$author['avatar']}</a><br /><br />
			<else />
       			{$author['avatar']}<br /><br />
			</if>
       		{$author['title']}<br />
       		{$author['member_rank_img']}<br /><br />
       		{$author['member_group']}<br />
                 {$author['member_reputation']}
       		{$author['member_posts']}<br />
       		{$author['member_joined']}<br />
       		{$author['member_location']}
       		{$author['member_number']}<br />
                 {$author['member_time_spent']}<br />
			<if="$author['custom_fields'] != """>
				{$author['custom_fields']}
			</if>
			<br />
       		{$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
       	</span><br />
       	<img src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160" height="1" /><br /> 
      </td>
      <td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>
		<!-- THE POST {$post['pid']} -->
		<div class="postcolor" id='post-{$post['pid']}'>
			{$post['post']}
			{$post['edit_by']}
			<if="$post['post_edit_reason'] != ''">
				<div class='post-edit-reason'>
					{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
				</div>
			</if>
			<!--IBF.ATTACHMENT_{$post['pid']}-->
		</div>

		{$post['signature']}
		<!-- THE POST -->		
	</td>
</tr>
<tr>
	<td class="formbuttonrow" nowrap="nowrap">
		<div style='text-align:left'><a href="javascript:scroll(0,0);"><{P_UP}></a>{$post['report_link']}</div>
	</td>
	<td class="formbuttonrow" nowrap="nowrap">
		<!-- PM / EMAIL / WWW / MSGR -->
		<div style="float: left;">
			 
		</div>
{$post['reputation_sys']}
		<!-- REPORT / UP -->
        	<div align="right">
        		{$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
        	</div>
        </td>
</tr>
</table>
<if="$post['edit_button']!=''">
<script type='text/javascript'>
//<![CDATA[
if ( ajax_loaded && use_enhanced_js )
{
menu_build_menu( 'edit-but-{$post['pid']}',
new Array(  img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",
			img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );
}
//]]>
</script>
</if>

Po naciśnięciu plusa nic się nie dzieje - identyczna sytuacja jak opisana powyżej.

render.js znajduje się we właściwym katalogu.

Link to comment
Share on other sites

Po kliknęciu na plus lub minus IE wskazuje, że jest błąd na stronie. W szczegółach błędu:

Szczegóły błędu na stronie sieci Web
Wiadomość: Niedopasowanie typu.

Wiersz: 8
Znak: 270
Kod: 0
Identyfikator URI: http://forum.prawnikow.pl/jscripts/reputation.js

Link to comment
Share on other sites

Sorry że dopiero teraz ale remont w domu i rzadko zaglądam .

co do pierwszego , nie jestem pewien końcowego efektu jako że nie widziałem skina ale myślę że to zadziała prawidłowo:

Dodaj to :

<tr>
<td class="catend" id="rep-general-{$post['pid']}" style="font-size:12px;"></td><td class="catend" colspan="2" id="topic_who{$post['pid']}" style="font-size:12px">
<!-- no content -->
</td>
</tr>

po tym :

       <div align="right">
                       {$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
               </div>
        </td>
       </tr>

Jeżeli chodzi o drugi post jaka wersja ie i czy dodaje /odejmuje punkt czy jest tylko błąd?

ja sam nie posiadam ie ale postaram się to sprawdzić.

jam_artists_button.png

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Hi There, very nice and good mod i really appreciate you work and appreciate DawPi's management where you share this good work.

i have try it on my localhost on my board copy 2 where installed Calypso iReputation System. then i try to install your modification and during install from UMI it show me IPS Driver Error but i reload the page then its RUN Again and creating Tables in database. so i feel your modification will conflict when any one installed calpso's iReputation system ? because i think you used reputation filed name ? that also used in calypso's modification ?

here is the cache error file.


===================================================
Date: Tue, 17 Nov 2009 14:00:50 +0500
Error Number: 1054
Error: Unknown column 'rep_id' in 'field list'
IP Address: 127.0.0.1
Page: /board/admin/index.php?adsess=f51cf7958ac3281278f726993587010&section=components&act=umi&code=work&mod=(BN23)reputation&step=4&st=0
mySQL query error: INSERT INTO ibf_reputation (rep_id,rep_to_id,rep_by_id,rep_pos,rep_neg,rep_text,rep_time) VALUES(1,10,2,1,0,'<b>nice funny pic and baby pics</b>',1207744664)

EDIT:

found a BUG

this modification only work with Mozilla/firefox in IE this will not give + and - reputation. when you click to positive reputation its show that reputation will be submitted but when you refresh the page then you see all positive negative buttons appears again and show that you not give reputation. it only happend in IE6 IE7. but work fine in Mozilla firefox.

and its show the error as above members said in IE

Line: 9
Char: 270
Error: typemismatch
Code: 0
URL: http://localhost/forum/index.php?showtopic=5

and i think if you fix this error this mod will completed.

Edited by Intasar
Link to comment
Share on other sites

  • Manager

Author made mistake somewhere in code.

Used 'rep_id' than 'r_id' ID in inserted row. I'll try contact with him and speak about it. Please be patient. :thumbsup:

  • Like 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Link to comment
Share on other sites

Hi,

Sorry for my absence lately, but work , work, work :)

now, about calypso mod is of course possible.

about IE problems ,well IE is stupid and that why not working :)

anyway IE bug fixed (working in my main forum)

update ready after Boss confirm.

cheers

Batman

jam_artists_button.png

Link to comment
Share on other sites

thanks batman. now its working fine .. but have two small issue.

1.when we admin delete any + or - reputation of member then redirect page not showing the message of deleting.

2.in the statistics of reputation have no link of members personal reputation viewing in navigation. just like "my reputations" (i m talking about this CODE=search_profile&id=1)

3.i have installed calypso' i reputation and now i want to uninstall that but all of members reputation not want to drop. so is there any way that all reputations will be converting in your reputations or not?

thanks and good work.

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...

I found a bug and provide a solution:

FILE

\sources\action_public\reputation.php

$adress     = 'showtopic='.$post['topic'].'&viev=findpost&p='.$post['post'];

INTO

$adress     = 'showtopic='.$post['topic'].'&view=findpost&p='.$post['post'];

viev -> view

Link to comment
Share on other sites

Also there would be a suggestion for this mod

- to make WORST rated members TOP 25 or top 10

and another bug

- visible in IE7 (dunno about other browsers) but works good in firefox

When viewing any one of those the heading looks bad:

- 25 most evaluated forums

- 25 most evaluated topics

- 25 most evaluated posts

in others it is ok, and in FF it looks okay in all of them, but not IE7

gggr.png

BAD

gghgb.png

GOOD

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.