Page Index Toggle Pages: [1] 2 3 ... 8 Send TopicPrint
Very Hot Topic (More than 25 Replies) RateIT V2.0 for YaBB 2.1 (Read 13900 times)
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
RateIT V2.0 for YaBB 2.1
Jul 30th, 2006 at 10:20pm
Print Post  
Hello YaBBer,

MF-B and I are happy to release RateIT Mod for YaBB 2.1, after get Carsten's Answer.  8)

----------------------------------------------------------
RateIT V 2.0 for YaBB 2.1
----------------------------------------------------------


Descriptions:
This mod add Ratings in your forum.

General Feature:
  • Enable Rating
  • Show 'Rating List' button on YaBB menu
    • Off
    • Members only
    • Guests and Members
  • Enable comments in Rating List
  • Stars instead of bars in Rating List
  • Place Rating in Thread (new Feature)
    • Off
    • Above Thread
    • Below Thread
  • Enable comments in Thread
  • Allow UBBC in comments
  • Max. characters in comments
  • Specific MemberGroups to add item in Ratings List?
  • Allow Moderator to add Rating in Thread (new Feature)
  • Allow Guests to rate
  • Open rate in new window
  • Items per page
  • Default sort
    • Category - Rating
    • Category - Name
    • Category - Klicks
    • All - Rating
    • All - Name
    • All - Clicks
  • SSI dir
  • Directory for store data for RateIT files: (new Feature)
    ex.: './Messages/Ratings'
  • Rebuild Ratings (new Feature)
  • Rating Converter for old Y1 Ratings (new Feature)

Board Rating Feature
  • Allow Rating (enable to add Rating for Thread)
  • Auto-apply Rating (enable to auto-add Rating for all current and new Threads)
  • Set option for view Rating on Message Index (Enable or Disable, Show graphics only, Stars or Bars)
  • Enable show Board in Rating List (new Feature)


User Feature:
  • users can undo/redo rating
  • users can add a comment to their rate
  • users can sort items by "Category/Rating", "Category/Name", "Category/Clicks", "All/Rating", "All/Name" and "All/Clicks"
  • users can jump to category (if more than one)
  • users can view "Item Breakdown" by clicking on a Rating-bar


Installation:
1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

Admin/AdminEdit.pl (ASCII)
Admin/AdminSubList.pl (ASCII)
Admin/ManageBoards.pl (ASCII)
Admin/ModList.pl (ASCII)
Sources/BoardIndex.pl (ASCII)
Sources/MessageIndex.pl (ASCII)
Sources/Display.pl (ASCII)
Sources/MoveTopic.pl (ASCII)
Sources/ModifyMessage.pl (ASCII)
Sources/Subs.pl (ASCII)
Sources/SubList.pl (ASCII)
Sources/SetStatus.pl (ASCII)
Variables/Menu0.def (ASCII)
Variables/Menu1.def (ASCII)
Variables/Menu2.def (ASCII)
Languages/English/Menu.lng (ASCII)
Templates/default/Display.template (ASCII)
Templates/default/MessageIndex.template (ASCII)

Upload RateIT Files to your YaBB 2.1 Directory.

Mod History:
Status RateIT V2.0 (January 05 2007)
- fix guest acess to boards to read topics if Rating menu button only for members viewable

Update information:
no deinstall of this mod needed  Wink
- Upload RateIT.pl to Sources

Status RateIT V1.9 (September 04 2006) (32 Downloads)
- fix Layout if no Message in MessageIndex

Status RateIT V1.8a (Aug 29 2006) (8 Downloads)
- fix img2.gif url in RateIT.pl

Update information:
no deinstall of this mod needed  Wink
- Upload RateIT.pl to Sources

Status RateIT V1.8 (Aug 29 2006) (2 Downloads)
- fix modfile for UpdateSession Update

Status RateIT V1.8 (Aug 01 2006) (28 Downloads)
- Add missing files (Ratessi.pl, Ratetoplist.pl)
- improve Performance (RateIT.pl)

Update information:
no deinstall of this mod needed  Wink
- Upload RateIT.pl to Sources
- Upload Ratessi.pl and Ratetoplist.pl to your YaBB Directory where your YaBB.pl is and set it to 755


Status RateIT V1.7 (Jul 31 2006) (9 Downloads)
- mod compatible Restore Recycle bin and UpdateSession Update

Status RateIT V1.7 (Jul 30 2006)
- First release (11 Downloads)

Beta Testers:
- Xonder for Convert old Y1 Ratings to Y2 Format  Cheesy
- Jet Li for testing/Feature Idea

Credits:
Mod: Rating 4.6 incl. MBCO2 addon (YaBB 1.3)
Original code by Carsten

Extended Version RateIT YaBB 2.1 by
- Boris Tjuvanov (MF-B)
http://www.mf-b.ru

Grafics:
- Jet Li
http://www.grafix-world.nl

Translation:
- Russian by Boris Tjuvanov (MF-B)
- German (Sie & Du) by Jeffrey Man (Jet Li)

Download:

Sorry! The Download Folder is full in this forum, so you can download the RateIT Mod here ...

--> rate_it_v2_0.zip
« Last Edit: Feb 20th, 2007 at 1:55pm by Administrator »  

rate_it_v1_9_yabb21.zip ( 84 KB | Downloads )

greetings
Jeff
Back to top
WWW  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #1 - Jul 31st, 2006 at 6:57am
Print Post  
Quote:
YaBBer

Sounds crazy Smiley

Installed it, it's working very good, but i had some litte problems at installation:

Step 14 and 18 fails if "restore recyclebin"-mod is installed
Step 27 and 28 fails if "UpdateSessionUpdate"-Mod is installed
(i fixed these 4 steps for me so install worked)


And i have some wishes:
I enabled automatic rating, so that to any new thread rating is added, my wish to it is, that i can remove a rating from a thread if automatic rating is enabled (this function only works if automatic rating is disabled)

It would cool if there is a function to enable rating at all boards, because i had to modify every board to add the ratings to my boards.

Larian
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #2 - Jul 31st, 2006 at 7:37am
Print Post  
Hi Larian,

if you can explain to me how you have repaired the mistakes in step 27 and 28  Roll Eyes

Greetz ThM
  

Greeting ThM
Back to top
 
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #3 - Jul 31st, 2006 at 7:45am
Print Post  
No problem:

For UpdateSessionUpdate installed the new steps 27 and 28 are (replace the old steps):

27:
Code
Select All
<search for>
		$menusep<form name="return_to" action="$scripturl?action=revalidatesession" method="post"><input type="hidden" name="urlref" value="" /></form><a href="javascript:returnto(document.location.href);">$img{'sessreval'}</a>
		~;
</search for>

<add after>
	if(-e("$vardir/RatingConf.txt"))  { require "$vardir/RatingConf.txt"; }
</add after>
 



28:
Code
Select All
<search for>
		$yymenu .= qq~
			<script language="JavaScript1.2" type="text/javascript">
			<!--
			function returnto(GOTO) {
				GOTO = GOTO.replace(/=/g, "%3d");
				GOTO = GOTO.replace('$scripturl?', '');
				document.return_to.urlref.value = GOTO;
				document.return_to.submit();
			}
			-->
			</script>
		$menusep<form name="return_to" action="$scripturl?action=login" method="post"><input type="hidden" name="urlref" value="" /></form><a href="javascript:returnto(document.location.href);">$img{'login'}</a>
			~;
</search for>

<add before>
		if ($enable_ratings && $en_ratingsmenu == 2) { $yymenu .= qq~$menusep<a href="$scripturl?action=rateshow;editmode=new;start=0">$img{'rating'}</a>~; }
</add before>
 



And if someone other has restore_recycle_bin the new steps 14 and 18 are (also replace the old steps):

14:
Code
Select All
<search for>
	my ($template_move, $template_remove, $template_splice, $template_lock, $template_hide, $template_sticky, $template_multidelete, $recycle);
	$recycle = $currentboard eq $binboard ? 1 : 0;
</search for>

<add after>
if ($enable_ratings && ${$uid.$currentboard}{'brate_enable'}) {

	$admin_rate = "";
	if ((($iammod && $allow_modrate) || $iamadmin || $iamgmod) && $sessionvalid == 1 && $tviewrate != 0 && $mstate !~ /l/i ) {

		if(!-e ("$RatesDir/$viewnum.rate") && ${$uid.$currentboard}{'apply_arate'}) {
		if(!-e ("$vardir/rateitlist.txt")) {
			fopen(FILE, ">$vardir/rateitlist.txt", 1);
			print FILE "|1|1|1\n";
			fclose(FILE);
		}

		fopen(FILE, "$vardir/rateitlist.txt");
		@ratelist = <FILE>;
		$listnum = @ratelist;
		fclose(FILE);

		$namestart = "";
		$namestart .= qq($msubthread|$date|$mstate);
		$ratelink = qq~$scripturl?num=$viewnum~;

		fopen( FILE, ">$RatesDir/$viewnum.rate", 1);
		print FILE "$currentboard|$boardname\n";
		print FILE "$namestart\n";
		print FILE "\n";
		print FILE "0.00|0\n";
		print FILE "$ratelink\n";
		fclose(FILE);

		fopen(FILE, ">$vardir/rateitlist.txt", 1);
		foreach $currate (@ratelist) {
			chomp $currate;
			print FILE "$currate\n";
		}
		print FILE "$mnum|$username|$currentboard|$mstate\n";
		fclose(FILE);
		}

		if(!${$uid.$currentboard}{'apply_arate'}) {
			if(-e ("$RatesDir/$viewnum.rate")) {
				$admin_rate = qq~$menusep<a href="$scripturl?action=raterem;thread=$viewnum">$img{'rem_rating'}</a>~;
			} else {
				$admin_rate = qq~$menusep<a href="$scripturl?action=rateadd;thread=$viewnum;yabbcat=$currentboard;ratecat=$boardname;ratename=$msubthread;ratestatus=$mstate">$img{'add_rating'}</a>~;
			}
		}
	}

	if(-e ("$RatesDir/$viewnum.rate") && $tviewrate != 0){
		require "$sourcedir/RateIT.pl";
		&RatingTopic($mstate);

		$topic_topicbrating = "";
		$topic_topicarating = "";

		if ($tviewrate == 1 ) {
			$topic_topicbrating .= $yymainrating;
			$display_template =~ s/<yabb topicbrating>/$topic_topicbrating/g;
		}
		if ($tviewrate == 2 ) {
			$topic_topicarating .= $yymainrating;
			$display_template =~ s/<yabb topicarating>/$topic_topicarating/g;
		}
	}
}
</add after>
 



18:
Code
Select All
<search for>
				$adminlink = qq~<img src="$imagesdir/locked.gif" alt="$messageindex_txt{'104'}" border="0" /><img src="$imagesdir/sticky.gif" alt="$messageindex_txt{'781'}" border="0" /><img src="$imagesdir/admin_move.gif" alt="$messageindex_txt{'132'}" border="0" /><img src="$imagesdir/admin_rem.gif" alt="$messageindex_txt{'54'}" border="0" />~;
			}

		}
		$adminheader =~ s/<yabb admin>/$adminlink/g;
	}
</search for>

<add after>
		$colspan2 = 7;
	if(${$uid.$currentboard}{'brate_enable'} && ${$uid.$currentboard}{'view_arate'} == 1 && $enable_ratings && $tviewrate) {
		$colspan2 = 8;
		$colspan = ++$colspan;
		$rating_title .= qq~<td class="titlebg" align="center">$mbcrate{'04'}</td>~;
		$messageindex_template =~ s/<yabb rating title>/$rating_title/g;
	}
</add after>
 



Larian
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #4 - Jul 31st, 2006 at 7:49am
Print Post  
Hi
ok, I will make 2 compatible mods of these.

@Larian
for your Ideas I have notice. And will in next RateIT version.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Hagi01
New Member
*
Offline


I love WSUS

Posts: 15
Location: Essen
Joined: Jul 3rd, 2006
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #5 - Jul 31st, 2006 at 7:54am
Print Post  
Hi,

The installation runs successfully.
I want to change my board configuraton and got this error message:



Is it a bug or a feature?!

Hagi
  
Back to top
WWW  
IP Logged
 
kibonge
New Member
*
Offline


I love YaBB Foren!

Posts: 15
Location: Burkhardtsdorf
Joined: Sep 15th, 2003
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #6 - Jul 31st, 2006 at 8:02am
Print Post  
hy

after the installation i become a error

Scalar found where operator expected at ./Admin/ManageBoards.pl line 70, near "${$uid.$moveitem}{'cat'} = qq~$FORM"

please help

thx
  

first Kenya ........... for ever Kenya
Back to top
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #7 - Jul 31st, 2006 at 8:05am
Print Post  
Hi
do you have upload all files of this mod and all your modified files?


Upload ManageBoards.pl  Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Hagi01
New Member
*
Offline


I love WSUS

Posts: 15
Location: Essen
Joined: Jul 3rd, 2006
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #8 - Jul 31st, 2006 at 8:10am
Print Post  
Hi Jet Li,

yes I have upload all files!
  
Back to top
WWW  
IP Logged
 
kibonge
New Member
*
Offline


I love YaBB Foren!

Posts: 15
Location: Burkhardtsdorf
Joined: Sep 15th, 2003
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #9 - Jul 31st, 2006 at 8:13am
Print Post  
yes all files upload.


in german

also der teil wo der fehler liegen soll sieht bei mir so aus

           } else {
                 if ($category ne $FORM{"selectcategory"}) {
                       ${$uid.$moveitem}{'cat'} = qq~$FORM{'selectcategory'}~;
                       my (@bdlist) = split(/\,/, $cat{$category});
                       my $k = 0;
                       foreach $bd (@bdlist) {
                             if ($moveitem eq $bd) { splice(@bdlist, $k, 1); }
                             $k++;
                       }
                       my $boardlist = join(',', @bdlist);
                       $cat{"$category"} = $boardlist;
                       my $ncat   = $FORM{"selectcategory"};
                       my $newcat = $cat{$ncat};
                       if ($newcat ne "") { $newcat .= ",$moveitem"; }
                       else { $newcat .= "$moveitem"; }
                       $newcat =~ s/,\Z//;
                       $cat{$ncat} = $newcat;
                       $category = qq~$FORM{"selectcategory"}~;
                 }

« Last Edit: Jul 31st, 2006 at 10:00am by kibonge »  

first Kenya ........... for ever Kenya
Back to top
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #10 - Jul 31st, 2006 at 8:15am
Print Post  
please upload again in ASCII. MF-B and I have not this Error.
This is because we have test more than 1 month until release now
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Hagi01
New Member
*
Offline


I love WSUS

Posts: 15
Location: Essen
Joined: Jul 3rd, 2006
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #11 - Jul 31st, 2006 at 8:32am
Print Post  
The error remains Sad
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #12 - Jul 31st, 2006 at 8:37am
Print Post  
hm. Strange.

@Larian
Do you have Error? I can't see Hagi's and Kibonge's bug.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #13 - Jul 31st, 2006 at 9:16am
Print Post  
on ThM Forum I have test it now. Works no Problem with RateIt V1.7
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
kibonge
New Member
*
Offline


I love YaBB Foren!

Posts: 15
Location: Burkhardtsdorf
Joined: Sep 15th, 2003
Gender: Male
Re: RateIT V1.7 for YaBB 2.1
Reply #14 - Jul 31st, 2006 at 9:58am
Print Post  
hallo JetLi

also ich habe das noch mal alles getestet. der fehler den ich habe liegt anscheinend nicht an dem ratit mod. nur ist er mir hier aufgefallen.

nur kann ich leider nicht nachvollziehen wann oder mit welchem mod das eingebaut wurde.

den der fehler tritt auch bei anderen mods auf. aber nur im adminbereich.

vieleicht weiss jemand was da an dem teil falsch ist.


danke hat sich erledigt habe den fehler gefunden

für eure mühe vielen dank.

kibonge
« Last Edit: Jul 31st, 2006 at 1:19pm by kibonge »  

first Kenya ........... for ever Kenya
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 8
Send TopicPrint