[ABD] (Topic &) Post Rating System (with Karma module)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
wax_c_and_b
Registered User
Posts: 6
Joined: Fri Jun 27, 2008 7:42 am

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by wax_c_and_b »

I'm having some troubles installing this mod for some reason. I feel bad bothering you with question when it is likely I missed something, though I have tediously poured over the instructions and believe I have done everything correctly. I cannot get the ".Mod" to appear in the acp no matter what I try. Here is what I have done.

1. Followed all instructions in "install.xml" file, including: copying over all required files, making all modifications, and opening to "install/index.php".
2. Followed all suggestions in the faq found here http://prs.kruijff.org/forum/viewtopic.php?t=3 to no avail (which includes all the refreshing, cache, and recompile stale style components stuff).

At this point I was getting frustrated so I decided to take all the human error out of the equation by doing a fresh install. I then used the pre-modded files and took all necessary steps, including following all suggestions in the faq again.

I still have not been able to get the prs to show up in the acp. Any help would be greatly appreciated, this mod sounds fantastic and I'd love to get it going.

Cheers,
wax_c_and_b

P.S.
phpbb version: 3.0.1
prs version 0.4.0
User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by Alfatrion »

Tanks for reading the FAQ. Its a little easier for me to follow this if you post it in your own thread on my support forum.

Given the information on what you have done to resolve this, it looks like a bug in the install script. Please also answer this questions there: What happens if you install a page manually? If this solves it we have a workaround.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)
User avatar
wax_c_and_b
Registered User
Posts: 6
Joined: Fri Jun 27, 2008 7:42 am

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by wax_c_and_b »

I believe I already am installing files manually by doing the open file, find, copy/paste, save, upload routine. Is this what you mean by installing manually?
User avatar
wax_c_and_b
Registered User
Posts: 6
Joined: Fri Jun 27, 2008 7:42 am

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by wax_c_and_b »

Thanks a bunch, manually adding the .MOD tab did the trick.
User avatar
Jarode
Registered User
Posts: 48
Joined: Thu Feb 14, 2008 12:20 pm
Contact:

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by Jarode »

Hi,

there are 2 errors in moderator addon install file.
There is no "{L_SPLIT_AFTER}" in styles/prosilver/template/mcp_post.html and there are 2 possible lines for "S_CAN_LOCK_POST or S_CAN_DELETE_POST" in mcp_post.html too (line 105 and 129 on a clean phpBB3 install).

-MOD Version: 0.4.0
-My phbb version: 3.0.1


Please verify install file and give me a fix .
;)

Thanks
My english is Developement Quality, sorry
MyrmecoFourmis.com : Fourmis
agitoaus11
Registered User
Posts: 20
Joined: Tue Jun 03, 2008 12:24 pm

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by agitoaus11 »

First of all, again, really thank you for this great mod. But; it does not change anythink in my forums! yes, some changes in my acp but not in my pano. there is no starts or rating system visible anywhere, i deleted all the data from my database and deleted all the codes about the post rating system and installed again and again, but no change and, when i updated my not-working-in-pano mod to your last version (tried to install 2 times) in acp, stats; i got this:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prs/functions_prs_admin.php on line 203: Division by zero
[phpBB Debug] PHP Notice: in file /includes/prs/functions_prs_admin.php on line 203: Division by zero
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
and here is acp/update:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prs/functions_prs_admin.php on line 132: md5_file() [function.md5-file]: Unable to access ./../prs_uninstall.php
[phpBB Debug] PHP Notice: in file /includes/prs/functions_prs_admin.php on line 132: md5_file(./../prs_uninstall.php) [function.md5-file]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2956)
But theese are not important for me. just want to see in action in my forum. if you reply my p.m. i will be really happy.
Thanks.
sharathu7
Registered User
Posts: 173
Joined: Fri Jan 11, 2008 1:22 pm

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by sharathu7 »

i am also getting an error in viewtopic_body.html and in stats in acp...

Code: Select all

Parse error: syntax error, unexpected T_ELSE in /home/xgameri/public_html/cache/tpl_Xgamer_Theme_viewtopic_body.html.php on line 130

and


stats page in acp...

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prs/functions_prs_admin.php on line 203: Division by zero
[phpBB Debug] PHP Notice: in file /includes/prs/functions_prs_admin.php on line 203: Division by zero
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2968)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2968)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2968)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2968)
RashadH
Registered User
Posts: 1
Joined: Thu Jul 17, 2008 1:13 pm

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by RashadH »

i have the same problem :(
plz anybody can u tell me how can i fix it?
User avatar
viktorados
Registered User
Posts: 43
Joined: Wed Jan 02, 2008 11:43 pm

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by viktorados »

What do I have to change in the mod files if my forum is in located in:

Code: Select all

http://www.server.com/index.php
phpDummie
Registered User
Posts: 292
Joined: Thu Feb 16, 2006 12:09 am
Location: USA
Contact:

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by phpDummie »

viktorados wrote:What do I have to change in the mod files if my forum is in located in:

Code: Select all

http://www.server.com/index.php
Nothing. MOD's operation doesn't depend on the URL.
Bluesplayer
Registered User
Posts: 8
Joined: Sun Nov 18, 2007 12:02 pm

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by Bluesplayer »

Hi

When I include the code for the viewtopic_body.html - this part:

Code: Select all

					<!-- IF postrow.S_PRS_ENABLED -->
						<li class="{postrow.PRS_STAR1}">
<!-- IF postrow.S_PRS_VOTABLE --><a href="{postrow.U_PRS_STAR1}" title="{L_PRS_S
TAR1_EXPLAIN}"><!-- ELSE --><a title="{postrow.PRS_VOTEROUND_CLOSED_SCORE}"><!--
 ENDIF --><span>{L_PRS_STAR1}</span></a></li>
						<li class="{postrow.PRS_STAR2}">
<!-- IF postrow.S_PRS_VOTABLE --><a href="{postrow.U_PRS_STAR2}" title="{L_PRS_S
TAR2_EXPLAIN}"><!-- ELSE --><a title="{postrow.PRS_VOTEROUND_CLOSED_SCORE}"><!--
 ENDIF --><span>{L_PRS_STAR2}</span></a></li>
						<li class="{postrow.PRS_STAR3}">
<!-- IF postrow.S_PRS_VOTABLE --><a href="{postrow.U_PRS_STAR3}" title="{L_PRS_S
TAR3_EXPLAIN}"><!-- ELSE --><a title="{postrow.PRS_VOTEROUND_CLOSED_SCORE}"><!--
 ENDIF --><span>{L_PRS_STAR3}</span></a></li>
						<li class="{postrow.PRS_STAR4}">
<!-- IF postrow.S_PRS_VOTABLE --><a href="{postrow.U_PRS_STAR4}" title="{L_PRS_S
TAR4_EXPLAIN}"><!-- ELSE --><a title="{postrow.PRS_VOTEROUND_CLOSED_SCORE}"><!--
 ENDIF --><span>{L_PRS_STAR4}</span></a></li><li class="{postrow.PRS_STAR5}"><!-
- IF postrow.S_PRS_VOTABLE --><a href="{postrow.U_PRS_STAR5}" title="{L_PRS_STAR
5_EXPLAIN}"><!-- ELSE --><a title="{postrow.PRS_VOTEROUND_CLOSED_SCORE}"><!-- EN
DIF --><span>{L_PRS_STAR5}</span></a></li>
					<!-- ENDIF -->
I get this error:

Code: Select all

Parse error: syntax error, unexpected T_ELSE in /home/mkjsworld/QJ0K0H6W/htdocs/mainforum/includes/template.php(175) : eval()'d code on line 132
Any idea why? Leaving that part of the code out for now allows the forum to come back online. This happens on my prosilver template that is inactive at the moment.

Regards
Bluesplayer
SixReasons
Registered User
Posts: 80
Joined: Sat Jul 19, 2008 3:09 pm

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by SixReasons »

SWEET!!
eleni25
Registered User
Posts: 198
Joined: Wed Apr 26, 2006 10:30 am

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by eleni25 »

I try to open modx.subsilver.en.xsl and i get this :

Code: Select all

  <?xml version="1.0" encoding="utf-8" ?> 
- <!--  MODX by the phpBB MOD Team XSL file v1.2.0 copyright 2005-2008 the phpBB MOD Team.
	$Id: modx.subsilver.en.xsl 1854 2008-06-01 12:31:04Z paul $ 
  --> 
  <!DOCTYPE xsl:stylesheet (View Source for full doctype...)> 
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:mod="http://www.phpbb.com/mods/xml/modx-1.2.0.xsd">
  <xsl:output method="html" omit-xml-declaration="no" indent="yes" /> 
  <xsl:variable name="title" select="mod:mod/mod:header/mod:title" /> 
- <xsl:template match="mod:mod">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
  <meta http-equiv="Content-Language" content="en" /> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <style>/* Style for a "Recommendation" */ /* Copyright 1997-2003 W3C (MIT, ERCIM, Keio). All Rights Reserved. The following software licensing rules apply: http://www.w3.org/Consortium/Legal/copyright-software */ /* $Id: modx.subsilver.en.xsl 1854 2008-06-01 12:31:04Z paul $ */ /* Updated by Jon Stanley for use in phpBB XML MOD */ /* Updated by David Smith to look subSilvery for phpBB */ html, body { font-family: Verdana, Arial, Helvetica, sans-serif; color: black; background: #E5E5E5; background-position: top left; background-attachment: fixed; background-repeat: no-repeat; } :link { color : #006699; background: transparent } :visited { color : #006699; background: transparent } a:active { color : #006699; background: transparent } a:hover { text-decoration: underline; color : #DD6900; } a:link img, a:visited img { border-style: none } /* no border on img links */ a img { color: white; } /* trick to hide the border in Netscape 4 */ @media all { /* hide the next rule from Netscape 4 */ a img { color: inherit; } /* undo the color change above */ } th, td { /* ns 4 */ font-family: sans-serif; } h1, h2, h3, h4, h5, h6 { text-align: left } /* background should be transparent, but WebTV has a bug */ h1, h2, h3 { color: #006699 } h1 { font: 170% sans-serif } h2 { font: 140% sans-serif } h3 { font: 120% sans-serif } h4 { font: bold 100% sans-serif } h5 { font: italic 100% sans-serif } h6 { font: small-caps 100% sans-serif } .hide { display: none } div.head { margin-bottom: 1em } div.head h1 { margin-top: 2em; clear: both } div.head table { margin-left: 2em; margin-top: 2em } p.copyright { font-size: small } p.copyright small { font-size: small } @media screen { /* hide from IE3 */ a[href]:hover { background: #ffa } } pre { margin-left: 2em } /* p { margin-top: 0.6em; margin-bottom: 0.6em; } */ dt, dd { margin-top: 0; margin-bottom: 0 } /* opera 3.50 */ dt { font-weight: bold } pre, code { font-family: monospace } /* navigator 4 requires this */ ul.toc { list-style: disc; /* Mac NS has problem with 'none' */ list-style: none; } @media aural { h1, h2, h3 { stress: 20; richness: 90 } .hide { speak: none } p.copyright { volume: x-soft; speech-rate: x-fast } dt { pause-before: 20% } pre { speak-punctuation: code } } /* Additional styles */ div.editFile {border: 2px solid #333333; margin: 0em 0em 2em; padding: 1em 1em; background: #D1D7DC;} div.editFile h2 { font-size: 170%; margin: 0.4em 0em; } div.action { border: 2px solid #DD6900; padding: 1em; background: #DEE3E7; margin: 1em 0em; } div.action p { font-weight: normal; margin-top: 0px; margin-bottom: 0px; font-size: 0.8em; } div.action h3 { margin-top: 0px; margin-bottom: 0px; } div.action pre { padding: 0.2em; background: #EFEFEF; border: 2px solid #006699; overflow: scroll; width: 95%; } div.editFile pre { padding: 0.2em; background: #EFEFEF; border: 2px solid #006699; overflow: scroll; width: 95%; } #pageBody { background-color: #FFFFFF; border: 1px #98AAB1 solid; padding: 1em 1em;} hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} strong.red { color: red; }</style> 
- <script type="text/javascript">
  var i = 0; var box = new Array(); 
- <xsl:for-each select="mod:action-group/mod:open/mod:edit">
- <xsl:for-each select="mod:find|mod:action">
  box[i] = ' 
  <xsl:value-of select="generate-id()" /> 
  '; i += 1; 
  </xsl:for-each>
- <xsl:for-each select="mod:inline-edit">
- <xsl:for-each select="mod:inline-find|mod:inline-action">
  box[i] = ' 
  <xsl:value-of select="generate-id()" /> 
  '; i += 1; 
  </xsl:for-each>
  </xsl:for-each>
  </xsl:for-each>
- <![CDATA[ var selectedElement = -1;
var boxes = box.length;
var pre_count = 0;

// The following line from http://www.ryancooper.com/resources/keycode.asp
document.onkeydown = mod_doKeyPress;

function select_text(id)
{
	var o = document.getElementById(id);
	if( !o )
	{
		return;
	}
	
  // Not IE
	if (window.getSelection)
	{
		var s = window.getSelection();
		// Safari
		if (s.setBaseAndExtent)
		{
			s.setBaseAndExtent(o, 0, o, o.innerText.length - 1);
		}
		// Firefox and Opera
		else
		{
			var r = document.createRange();
			r.selectNodeContents(o);
			s.removeAllRanges();
			s.addRange(r);
		}
	}
	// Some older browsers
	else if (document.getSelection)
	{
		var s = document.getSelection();
		var r = document.createRange();
		r.selectNodeContents(o);
		s.removeAllRanges();
		s.addRange(r);
	}
	// IE
	else if (document.selection)
	{
		var r = document.body.createTextRange();
		r.moveToElementText(o);
		r.select();
	}

	find_selected(id);
	return o;
}

function find_selected(id)
{
	for( x = 0; x < box.length; x++ )
	{
		if ( box[x] == id )
		{
			selectedElement = x;
		}
	}
}

// function findPosY taken from http://www.quirksmode.org/js/findpos.html
function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
	{
		curtop += obj.y;
	}
	return curtop;
}

function selectNextBox()
{
	selectedElement += 1;
	if (selectedElement >= boxes) selectedElement = 0;
	obj = select_text(box[selectedElement]);
	window.scrollTo(0, findPosY(obj) - 100);
}

function selectPrevBox()
{
	selectedElement -= 1;
	if (selectedElement < 0) selectedElement = boxes - 1;
	obj = select_text(box[selectedElement]);
	window.scrollTo(0, findPosY(obj) - 100);
}

function selectFirstBox()
{
	selectedElement = 0;
	obj = select_text(box[selectedElement]);
	window.scrollTo(0, findPosY(obj) - 100);
}

function mod_doKeyPress(e)
{
	/* section from w3 schools starts here http://www.w3schools.com/jsref/jsref_onkeypress.asp */
	var keynum;
	/* section from w3 schools ends here */

	// The following line from http://www.ryancooper.com/resources/keycode.asp
	if (window.event) keynum = window.event.keyCode;
	else if (e) keynum = e.which;

	if (keynum == 84 || keynum == 40) // t / down keys
	{
		selectNextBox();
		return false;
	}
	if (keynum == 38) //up key
	{
		selectPrevBox();
		return false;
	}
	if (keynum == 83 || keynum == 37)
	{
		selectFirstBox();
		return false;
	}
	return true; // true allows browser to take care of any further key press combinations such as ctrl + c
}
//-->
  ]]> 
  </script>
- <title>
  phpBB MOD » 
  <xsl:value-of select="$title" /> 
  </title>
  </head>
- <body>
- <div id="pageBody">
- <div id="modInfo">
- <xsl:for-each select="mod:header">
  <xsl:call-template name="give-header" /> 
  </xsl:for-each>
- <div id="modInstructions">
- <xsl:for-each select="mod:action-group">
  <xsl:call-template name="give-actions" /> 
  </xsl:for-each>
  </div>
  <hr /> 
- <div class="endMOD">
  <h1>Save all files. End of MOD.</h1> 
  <p>You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.</p> 
  </div>
  </div>
  </div>
- <p class="copyright" style="text-align: center; font-size: 10px;">
  MOD UA XSLT File Copyright © 2006 The phpBB Group, this MOD is copyright to the author 
  <xsl:if test="count(author) > 1">s</xsl:if> 
  listed above. 
  </p>
  </body>
  </html>
  </xsl:template>
- <xsl:template name="give-header">
- <h1>
  Installation instructions for ' 
  <xsl:value-of select="$title" /> 
  ' Version 
- <xsl:for-each select="mod:mod-version">
  <xsl:value-of select="current()" /> 
  </xsl:for-each>
  </h1>
  <h2>About this MOD</h2> 
- <dl>
  <dt>Title:</dt> 
- <dd>
- <xsl:if test="count(mod:title) > 1">
- <dl id="title">
- <xsl:for-each select="mod:title">
- <dl id="{generate-id()}">
- <dt>
  <xsl:value-of select="@lang" /> 
  </dt>
- <dd style="white-space:pre;">
  <xsl:value-of select="current()" /> 
  </dd>
  </dl>
  </xsl:for-each>
  </dl>
  </xsl:if>
- <xsl:if test="count(mod:title) = 1">
  <xsl:value-of select="mod:title" /> 
  </xsl:if>
  </dd>
  <dt>Description:</dt> 
- <dd>
- <xsl:if test="count(mod:description) > 1">
- <dl id="description">
- <xsl:for-each select="mod:description">
- <dl id="{generate-id()}">
- <dt>
  <xsl:value-of select="@lang" /> 
  </dt>
- <dd>
- <xsl:call-template name="add-line-breaks">
- <xsl:with-param name="string">
  <xsl:value-of select="current()" /> 
  </xsl:with-param>
  </xsl:call-template>
  </dd>
  </dl>
  </xsl:for-each>
  </dl>
  </xsl:if>
- <xsl:if test="count(mod:description) = 1">
- <xsl:call-template name="add-line-breaks">
- <xsl:with-param name="string">
  <xsl:value-of select="mod:description" /> 
  </xsl:with-param>
  </xsl:call-template>
  </xsl:if>
  </dd>
  <dt>Version:</dt> 
- <dd>
- <xsl:for-each select="mod:mod-version">
  <xsl:value-of select="current()" /> 
  </xsl:for-each>
  </dd>
- <xsl:for-each select="mod:installation">
  <xsl:call-template name="give-installation" /> 
  </xsl:for-each>
  </dl>
- <xsl:for-each select="mod:author-group">
- <h2>
  Author 
  <xsl:if test="count(mod:author) > 1">s</xsl:if> 
  </h2>
  <xsl:call-template name="give-authors" /> 
  </xsl:for-each>
  <h2>Files To Edit</h2> 
- <xsl:for-each select="../mod:action-group">
  <xsl:call-template name="give-files-to-edit" /> 
  </xsl:for-each>
  <h2>Included Files</h2> 
- <xsl:if test="count(../mod:action-group/mod:copy/mod:file) = 0">
  <p>No files have been included with this MOD.</p> 
  </xsl:if>
  <h2>Additional MODX Files</h2> 
- <xsl:if test="count(mod:link-group) = 0">
  <p>No addtional MODX files have been included with this MOD</p> 
  </xsl:if>
- <xsl:if test="count(mod:link-group) > 0">
- <ul>
- <xsl:for-each select="mod:link-group/mod:link">
- <li lang="@lang">
  <xsl:value-of select="@lang" /> 
    
- <strong style="text-transform: capitalize;">
  <xsl:value-of select="@type" /> 
  : 
  </strong>
    
- <a href="{@href}">
  <xsl:value-of select="current()" /> 
  </a>
  </li>
  </xsl:for-each>
  </ul>
  </xsl:if>
- <xsl:for-each select="../mod:action-group">
  <xsl:call-template name="give-files-included" /> 
  </xsl:for-each>
  <hr /> 
- <div id="modDisclaimer">
  <h1>Disclaimer</h1> 
- <p>
  For Security Purposes, Please Check: 
  <a href="http://www.phpbb.com/mods/">http://www.phpbb.com/mods/</a> 
  for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered in our MOD-Database, located at: 
  <a href="http://www.phpbb.com/mods/">http://www.phpbb.com/mods/</a> 
  </p>
  <h2>Author Notes</h2> 
- <xsl:if test="count(mod:author-notes) > 1">
- <dl id="author-notes">
- <xsl:for-each select="mod:author-notes">
- <dl id="{generate-id()}">
- <dt>
  <xsl:value-of select="@lang" /> 
  </dt>
- <dd>
- <xsl:call-template name="add-line-breaks">
- <xsl:with-param name="string">
  <xsl:value-of select="current()" /> 
  </xsl:with-param>
  </xsl:call-template>
  </dd>
  </dl>
  </xsl:for-each>
  </dl>
  </xsl:if>
- <xsl:if test="count(mod:author-notes) = 1">
- <xsl:call-template name="add-line-breaks">
- <xsl:with-param name="string">
  <xsl:value-of select="mod:author-notes" /> 
  </xsl:with-param>
  </xsl:call-template>
  </xsl:if>
- <xsl:for-each select="mod:history">
  <xsl:call-template name="give-mod-history" /> 
  </xsl:for-each>
  <h3>License</h3> 
  <p>This MOD has been licensed under the following license:</p> 
- <p style="white-space:pre;">
  <xsl:value-of select="mod:license" /> 
  </p>
  <h3>Other Notes</h3> 
  <p>Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD</p> 
- <p>
  This MOD was designed for phpBB 
  <xsl:value-of select="mod:installation/mod:target-version" /> 
  and may not function as stated on other phpBB versions. MODs for phpBB3.0 will 
  <strong>not</strong> 
  work on phpBB2.0 and vice versa. 
  </p>
- <xsl:for-each select="./mod:mod-version">
- <xsl:if test="substring(current(), 3, 1) mod 2 != 0 or substring(current(), 0, 1) = 0">
- <p>
  <strong class="red">This MOD is development quality. It is not recommended that you install it on a live forum.</strong> 
  </p>
  </xsl:if>
  </xsl:for-each>
  </div>
  <hr /> 
  </xsl:template>
- <xsl:template name="give-authors">
- <xsl:for-each select="mod:author">
  <xsl:call-template name="give-author" /> 
  </xsl:for-each>
  </xsl:template>
- <xsl:template name="give-author">
- <dl>
  <dt>Username:</dt> 
- <dd>
- <a href="http://www.phpbb.com/community/memberlist.php?mode=viewprofile&un={mod:username}">
  <xsl:value-of select="mod:username" /> 
  </a>
  </dd>
- <xsl:if test="mod:email != 'N/A' and mod:email != 'n/a' and mod:email != ''">
  <dt>Email:</dt> 
- <dd>
- <a href="mailto:{mod:email}">
  <xsl:value-of select="mod:email" /> 
  </a>
  </dd>
  </xsl:if>
  <dt>Realname:</dt> 
- <dd>
  <xsl:value-of select="mod:realname" /> 
  </dd>
- <xsl:if test="mod:homepage != 'N/A' and mod:homepage != 'n/a' and mod:homepage!=''">
  <dt>WWW:</dt> 
- <dd>
- <a href="{mod:homepage}">
  <xsl:value-of select="mod:homepage" /> 
  </a>
  </dd>
  </xsl:if>
  </dl>
  <br /> 
  </xsl:template>
- <xsl:template name="give-installation">
  <dt>Installation Level:</dt> 
- <dd>
  <xsl:if test="mod:level='easy'">Easy</xsl:if> 
  <xsl:if test="mod:level='intermediate'">Intermediate</xsl:if> 
  <xsl:if test="mod:level='advanced'">Advanced</xsl:if> 
  </dd>
  <dt>Installation Time:</dt> 
- <dd>
  ~ 
  <xsl:value-of select="floor(mod:time div 60)" /> 
  minutes 
  </dd>
  </xsl:template>
- <xsl:template name="give-mod-history">
- <xsl:if test="count(mod:entry)>1">
  <h2>MOD History</h2> 
- <dl>
- <xsl:for-each select="mod:entry">
  <xsl:call-template name="give-history-entry" /> 
  </xsl:for-each>
  </dl>
  </xsl:if>
  </xsl:template>
- <xsl:template name="give-history-entry">
- <dt>
  <xsl:value-of select="substring(mod:date,1,10)" /> 
  - Version 
- <xsl:for-each select="mod:rev-version">
  <xsl:value-of select="current()" /> 
  </xsl:for-each>
  </dt>
- <dd>
- <xsl:if test="count(mod:changelog) > 1">
- <xsl:for-each select="mod:changelog">
  <xsl:call-template name="give-history-entry-changelog" /> 
  </xsl:for-each>
  </xsl:if>
- <xsl:if test="count(mod:changelog) = 1">
- <xsl:for-each select="mod:changelog">
  <xsl:call-template name="give-history-entry-changelog-single" /> 
  </xsl:for-each>
  </xsl:if>
  </dd>
  </xsl:template>
- <xsl:template name="give-history-entry-changelog">
- <dl>
- <dt>
  <xsl:value-of select="@lang" /> 
  </dt>
- <dd>
- <ul>
- <xsl:for-each select="mod:change">
- <li>
  <xsl:value-of select="current()" /> 
  </li>
  </xsl:for-each>
  </ul>
  </dd>
  </dl>
  </xsl:template>
- <xsl:template name="give-history-entry-changelog-single">
- <ul>
- <xsl:for-each select="mod:change">
- <li>
  <xsl:value-of select="current()" /> 
  </li>
  </xsl:for-each>
  </ul>
  </xsl:template>
- <xsl:template name="give-files-to-edit">
- <ul>
- <xsl:for-each select="mod:open">
  <xsl:call-template name="give-file" /> 
  </xsl:for-each>
  </ul>
  </xsl:template>
- <xsl:template name="give-files-included">
- <ul>
- <xsl:for-each select="mod:copy">
  <xsl:call-template name="give-file-copy" /> 
  </xsl:for-each>
  </ul>
  </xsl:template>
- <xsl:template name="give-file">
- <li>
  <xsl:value-of select="@src" /> 
  <xsl:if test="position()!=last()">,</xsl:if> 
  </li>
  </xsl:template>
- <xsl:template name="give-file-copy">
- <xsl:for-each select="mod:file">
- <li>
  <xsl:value-of select="@from" /> 
  <xsl:if test="position()!=last()">,</xsl:if> 
  </li>
  </xsl:for-each>
  </xsl:template>
- <xsl:template name="give-actions">
- <xsl:if test="count(mod:sql) > 0">
  <h1 onclick="select_text('sql');">SQL</h1> 
  </xsl:if>
- <div id="sql">
- <xsl:for-each select="mod:sql">
  <xsl:call-template name="give-sql" /> 
  </xsl:for-each>
  </div>
- <xsl:if test="count(mod:copy) > 0">
  <h1>File Copy</h1> 
  </xsl:if>
- <xsl:for-each select="mod:copy">
  <xsl:call-template name="give-filez" /> 
  </xsl:for-each>
  <h1>Edits</h1> 
- <p>
  Click on the action name or in the code box to select the code. You may also hit ' 
  <em>s</em> 
  ' on your keyboard to go to the first code box and the 
  <em>up</em> 
  and 
  <em>down</em> 
  arrows to scroll through the code boxes. 
  </p>
- <xsl:for-each select="mod:open">
  <xsl:call-template name="give-fileo" /> 
  </xsl:for-each>
  <xsl:call-template name="give-manual" /> 
  </xsl:template>
- <xsl:template name="give-sql">
- <div class="action">
- <h3>
  <xsl:value-of select="@dbms" /> 
  </h3>
- <pre>
  <xsl:value-of select="current()" /> 
  </pre>
  </div>
  </xsl:template>
- <xsl:template name="give-manual">
- <xsl:for-each select="mod:diy-instructions">
- <div class="editFile">
- <h2 onClick="select_text('{generate-id()}')">
  DIY Instructions 
- <xsl:if test="count(../mod:diy-instructions) > 1">
  ( 
  <xsl:value-of select="@lang" /> 
  ) 
  </xsl:if>
  </h2>
  <p>These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.</p> 
- <pre id="{generate-id()}">
  <xsl:value-of select="current()" /> 
  </pre>
  </div>
  </xsl:for-each>
  </xsl:template>
- <xsl:template name="give-fileo">
- <div class="editFile">
- <h2>
  Open: 
  <xsl:value-of select="@src" /> 
  </h2>
- <xsl:for-each select="mod:edit">
- <div class="action">
- <xsl:for-each select="mod:find|mod:action|mod:inline-edit|mod:comment">
- <xsl:if test="name() = 'find'">
  <h3 onClick="select_text('{generate-id()}')">Find</h3> 
- <p>
  <strong>Tip:</strong> 
  This may be a partial find and not the whole line. 
- <xsl:if test="@type = 'regex'">
  <br /> 
  <em>This find contains an advanced feature known as regular expressions, click here to learn more.</em> 
  </xsl:if>
  </p>
- <pre id="{generate-id()}">
  <xsl:value-of select="current()" /> 
  </pre>
  </xsl:if>
- <xsl:if test="name() = 'action'">
- <xsl:if test="@type = 'after-add'">
  <h3 onClick="select_text('{generate-id()}')">Add after</h3> 
- <p>
  <strong>Tip:</strong> 
  Add these lines on a new blank line after the preceding line(s) to find. 
  </p>
  </xsl:if>
- <xsl:if test="@type = 'before-add'">
  <h3 onClick="select_text('{generate-id()}')">Add before</h3> 
- <p>
  <strong>Tip:</strong> 
  Add these lines on a new blank line before the preceding line(s) to find. 
  </p>
  </xsl:if>
- <xsl:if test="@type = 'replace-with'">
  <h3 onClick="select_text('{generate-id()}')">Replace With</h3> 
- <p>
  <strong>Tip:</strong> 
  Replace the preceding line(s) to find with the following lines. 
  </p>
  </xsl:if>
- <xsl:if test="@type = 'operation'">
  <h3 onClick="select_text('{generate-id()}')">Increment</h3> 
- <p>
  <strong>Tip:</strong> 
  This allows you to alter integers. For help on what each operator means, click here. 
  </p>
  </xsl:if>
- <pre id="{generate-id()}">
  <xsl:value-of select="current()" /> 
  </pre>
  </xsl:if>
- <xsl:if test="name() = 'comment'">
- <dl>
- <dt>
  Comment: 
- <xsl:if test="count(../mod:comment) > 1">
  ( 
  <xsl:value-of select="@lang" /> 
  ) 
  </xsl:if>
  </dt>
- <dd>
- <xsl:call-template name="add-line-breaks">
- <xsl:with-param name="string">
  <xsl:value-of select="current()" /> 
  </xsl:with-param>
  </xsl:call-template>
  </dd>
  </dl>
  </xsl:if>
- <xsl:if test="name() = 'inline-edit'">
- <div class="action">
- <xsl:for-each select="mod:inline-find|mod:inline-action|mod:inline-comment">
- <xsl:if test="name() = 'inline-find'">
  <h3 onClick="select_text('{generate-id()}')">In-line Find</h3> 
- <p>
  <strong>Tip:</strong> 
  This is a partial match of a line for in-line operations. 
- <xsl:if test="@type = 'regex'">
  <br /> 
  <em>This find contains an advanced feature known as regular expressions, click here to learn more.</em> 
  </xsl:if>
  </p>
- <pre id="{generate-id()}">
  <xsl:value-of select="current()" /> 
  </pre>
  </xsl:if>
- <xsl:if test="name() = 'inline-action'">
- <xsl:if test="@type = 'after-add'">
  <h3 onClick="select_text('{generate-id()}')">In-line Add after</h3> 
  </xsl:if>
- <xsl:if test="@type = 'before-add'">
  <h3 onClick="select_text('{generate-id()}')">In-line Add before</h3> 
  </xsl:if>
- <xsl:if test="@type = 'replace-with'">
  <h3 onClick="select_text('{generate-id()}')">In-line Replace With</h3> 
  </xsl:if>
- <xsl:if test="@type = 'operation'">
  <h3 onClick="select_text('{generate-id()}')">In-line Increment</h3> 
- <p>
  <strong>Tip:</strong> 
  This allows you to alter integers. For help on what each operator means, click here. 
  </p>
  </xsl:if>
- <pre id="{generate-id()}">
  <xsl:value-of select="current()" /> 
  </pre>
  </xsl:if>
- <xsl:if test="name() = 'inline-comment'">
- <p>
  <strong>Comment:</strong> 
- <em>
  <xsl:value-of select="current()" /> 
  </em>
  </p>
  </xsl:if>
  </xsl:for-each>
  </div>
  </xsl:if>
  </xsl:for-each>
  </div>
  </xsl:for-each>
  </div>
  </xsl:template>
- <xsl:template name="give-filez">
- <dl>
- <xsl:for-each select="mod:file">
- <dt>
  Copy: 
  <xsl:value-of select="@from" /> 
  </dt>
- <dd>
  To: 
  <xsl:value-of select="@to" /> 
  </dd>
  </xsl:for-each>
  </dl>
  </xsl:template>
- <xsl:template name="give-sub-action-find">
  <p>Find</p> 
- <pre>
  <xsl:value-of select="find-string" /> 
  </pre>
- <xsl:if test="count(in-line) > 0">
- <div class="action">
- <xsl:for-each select="in-line">
- <xsl:for-each select="find-in-line|edit-in-line">
- <xsl:if test="name() = 'find-in-line'">
  <xsl:call-template name="give-sub-action-in-line-find" /> 
  </xsl:if>
- <xsl:if test="name() = 'edit-in-line'">
  <xsl:call-template name="give-sub-action-in-line-edit" /> 
  </xsl:if>
  </xsl:for-each>
  </xsl:for-each>
  </div>
  </xsl:if>
  </xsl:template>
- <xsl:template name="give-sub-action-in-line-find">
  <p>In-line, Find</p> 
- <pre>
  <xsl:value-of select="find-string-in-line" /> 
  </pre>
  </xsl:template>
- <xsl:template name="give-sub-action-edit">
- <xsl:if test="@action = 'replace'">
  <p>Replace, Add</p> 
  </xsl:if>
- <xsl:if test="@action = 'add' and @where = 'after'">
  <p>After, Add</p> 
  </xsl:if>
- <xsl:if test="@action = 'add' and @where = 'before'">
  <p>Before, Add</p> 
  </xsl:if>
- <pre>
  <xsl:value-of select="current()" /> 
  </pre>
  </xsl:template>
- <xsl:template name="give-sub-action-in-line-edit">
- <xsl:if test="@action = 'replace'">
  <p>In-line, Replace With</p> 
  </xsl:if>
- <xsl:if test="@action = 'add' and @where = 'after'">
  <p>In-line, After, Add</p> 
  </xsl:if>
- <xsl:if test="@action = 'add' and @where = 'before'">
  <p>In-line, Before, Add</p> 
  </xsl:if>
- <xsl:if test="@action = 'operation'">
  <p>In-line, perform the following mathematical operation</p> 
  <xsl:variable name="oper_body" select="@operation" /> 
- <pre>
  <xsl:value-of select="$oper_body" /> 
  </pre>
  </xsl:if>
- <pre>
  <xsl:value-of select="current()" /> 
  </pre>
  </xsl:template>
- <!--  add-line-breaks borrowed from http://www.stylusstudio.com/xsllist/200103/post40180.html 
  --> 
- <xsl:template name="add-line-breaks">
  <xsl:param name="string" select="." /> 
- <xsl:choose>
- <xsl:when test="contains($string, ' ')">
  <xsl:value-of select="substring-before($string, ' ')" /> 
  <br /> 
- <xsl:call-template name="add-line-breaks">
  <xsl:with-param name="string" select="substring-after($string, ' ')" /> 
  </xsl:call-template>
  </xsl:when>
- <xsl:otherwise>
  <xsl:value-of select="$string" /> 
  </xsl:otherwise>
  </xsl:choose>
  </xsl:template>
  </xsl:stylesheet>
eleni25
Registered User
Posts: 198
Joined: Wed Apr 26, 2006 10:30 am

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by eleni25 »

can somebody explain me how to open this file? thanks :D and sorry for my english
User avatar
Jarode
Registered User
Posts: 48
Joined: Thu Feb 14, 2008 12:20 pm
Contact:

Re: [ALPHA] (Topic &) Post Rating System (with Karma module)

Post by Jarode »

When members (administrators or moderators) edit their posts, they have an sql error message.
SQL ERROR [ mysql4 ]

Duplicate entry '1218456921-99' for key 1 [1062]

SQL

INSERT INTO phpbb_prs_modpoints (user_id, post_id, time, points) VALUES (99, 3672, 1218456921, 8)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/prs/functions_prs_modpoints.php
LINE: 184
CALL: dbal_mysql->sql_query()

FILE: includes/prs/functions_prs_hooks.php
LINE: 36
CALL: prs_increase_modpoints()

FILE: posting.php
LINE: 1046
CALL: prs_new_posts()
Thanks to say me how I can resolve this problem.
My english is Developement Quality, sorry
MyrmecoFourmis.com : Fourmis
Locked

Return to “[3.0.x] Abandoned MODs”