[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
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania
Contact:

Re: [DEV]Post Rating System

Post by tupeu »

I`m a member on your forum from february 2008

I already posted there!
2day I tried to post in your forum but it just gave me an empty page, my message didn`t post !

User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

When you run in to that kind of a problem its likely that I made some changes. If it happens try it again a day later. In this case: I made some changes to the forum code. It should be fine now. But when you do run in to this kind trouble again than it handy to know the exact time, so I can look in the log.

I renamed all function names and split the files in oder to make it less likely that there will be a conflict between this mod and other mods. I included a compat file so edited files do not need to be reedited directly. But this is all for the next version. I'm also working on a updater signal page like phpbb3 has.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

HiddenKiller
Registered User
Posts: 11
Joined: Wed Mar 26, 2008 8:12 pm

Re: [DEV]Post Rating System

Post by HiddenKiller »

HI.. i have problem in acp -> mods -> PRS...

[phpBB Debug] PHP Notice: in file /adm/index.php on line 149: Cannot modify header information - headers already sent by (output started at /language/cs/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /language/cs/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /language/cs/mods/posts_ratings.php:125)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /language/cs/mods/posts_ratings.php:125)

anyone help me? very thanks...

User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

phpDummie
Registered User
Posts: 292
Joined: Thu Feb 16, 2006 12:09 am
Location: USA
Contact:

Re: [DEV]Post Rating System

Post by phpDummie »

Alfatrion,

except for a couple of non-find's it all looks pretty good. Somehow I was missing .MOD parent, well, so I just parented to System. All the controls seem to be working.

One possible issue: although I set voting period to 240 days, all the existing topics still say that "Voting round closed. Score: 3 # 0". New posts and topics a fine - can be rated.

Also, I just thought it may be a good idea to have an option to disable rating for announcements - it hard enough to administrate a forum without users giving you bad marks on your executive decisions. :lol:

User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

except for a couple of non-find's it all looks pretty good. Somehow I was missing .MOD parent, well, so I just parented to System. All the controls seem to be working.
PHP 3.0.1. is officially not supported jet. I plan to test it and then update. I can also included your comments a onsupported new xml file.
One possible issue: although I set voting period to 240 days, all the existing topics still say that "Voting round closed. Score: 3 # 0". New posts and topics a fine - can be rated.
Thats feels like a feature not a bug. Could you try using the mcp to re-open the voting round?
Also, I just thought it may be a good idea to have an option to disable rating for announcements - it hard enough to administrate a forum without users giving you bad marks on your executive decisions. :lol:
Its a planned feature for 1.2. In the mean time you can close the voting round for those post / threads using the mcp. Locking the topic or post doesn't close the voting round but does prevent users from voting.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

phpDummie
Registered User
Posts: 292
Joined: Thu Feb 16, 2006 12:09 am
Location: USA
Contact:

Re: [DEV]Post Rating System

Post by phpDummie »

Alfatrion wrote:PHPBB 3.0.1. is officially not supported jet. ...:
I know. I am testing it unofficially. :mrgreen:
Alfatrion wrote:Thats feels like a feature not a bug. Could you try using the mcp to re-open the voting round?
Yes, selecting "Open voting rounds" did it. I can rate this particular topic now.

This menu line - "Open voting rounds" - is not available in View Forum in MCP, only "Reset score" and "Set score #" are available.

Language Idea: you should probably use "rate" and "rating" whenever possible to avoid confusion with voting in polls. If a topic contains a poll, it may not be immediately obvious that "Open voting rounds" refers to rating and stars, not to voting in polls.

User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

I can't do that. The term rate and vote mean two different things. A rating is the average som of all votes cast. I'm option to suggestion about another word. (Reset score does the same thing. Need to look at that do)
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

User avatar
RickieIzfazt
Registered User
Posts: 115
Joined: Mon Feb 04, 2008 12:21 pm
Contact:

Re: [DEV]Post Rating System

Post by RickieIzfazt »

Hello I am trying to display the stars in viewforum in a slightly modified prosilver environement, only a few css statement are added (47) for this I have copied the code from prosilver viewforum like this:

Code: Select all

		<th>&nbsp;{L_AUTHOR}&nbsp;<ul class="topiclist topics"><li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
			<dl class="icon" style="background-image: url({topicrow.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;"><dt style="<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS -->background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;<!-- ENDIF -->" title="{topicrow.TOPIC_FOLDER_IMG_ALT}"><!-- IF S_POSTS_RATINGS_ENABLED -->{topicrow.POSTS_RATINGS_STARS} <!-- ENDIF --></dt></dl></li></ul></th>
obviously it doesnt't show yet, can you please give me appropriate calls to css I would be very gratefull for them sice I also have to modify some stuff in UCP and viewforum. If you want to check anything see my board link in signature.

this is the css I added, perhaps you see a conflict in here:

Code: Select all

.tb2{
	width: 100%;
	table-layout:auto;
}

td.thl {
	color: #CCCCCC;
	background-image: url(images/b___01.png);
	background-repeat: no-repeat;
	background-position: right bottom;
	height: 40px;
	width: 40px;
	text-align: right;
}

td.thc {
	background-image: url(images/b___02.png);
	background-repeat: repeat-x;
	background-position: center bottom;
	overflow: hidden;
	color: #CCCCCC;
	height: 40px;
	width: auto;
	text-align: center;
}

td.thr {
	color: #CCCCCC;
	background-image: url(images/b___03.png);
	background-repeat: no-repeat;
	background-position: left bottom;
	height: 40px;
	width: 40px;
}


td.tfl {
	color: #CCCCCC;
	background-image: url(images/b___07.png);
	background-repeat: no-repeat;
	background-position: right top;
	height: 40px;
	width: 40px;
	text-align: right;
}

td.tfc {
	background-image: url(images/b___08.png);
	background-repeat: repeat-x;
	background-position: center top;
	overflow: hidden;
	color: #CCCCCC;
	height: 40px;
	width: auto;
	text-align: center;
}

td.tfr {
	color: #CCCCCC;
	background-image: url(images/b___09.png);
	background-repeat: no-repeat;
	background-position: left top;
	height: 40px;
	width: 40px;	
}


td.tbl {
	background-image: url(images/b___04.png);
	background-repeat: repeat-y;
	overflow: hidden;
	height: auto;
	width: 40px;
	background-position: right;
}

td.tbc {
	background-image: url(images/b___05.png);
	width: auto;
	overflow: hidden;
	height: auto;
	background-repeat: repeat;
}

td.tbr {
	background-image: url(images/b___06.png);
	width: 40px;
	overflow: hidden;
	background-repeat: repeat-y;
	height: auto;
}

.tb1{
	width: 100%;
	margin-top: 5px;
	table-layout:auto;
	
}

td.thl1 {
	color: #CCCCCC;
	background-image: url(images/b_01.png);
	background-repeat: no-repeat;
	background-position: right bottom;
	height: 35px;
	width: 25px;
	text-align: right;
}

td.thc1 {
	background-image: url(images/b_02.png);
	background-repeat: repeat-x;
	background-position: center bottom;
	overflow: hidden;
	color: #CCCCCC;
	height: 35px;
	width: auto;
	text-align: center;
}

td.thr1 {
	color: #CCCCCC;
	background-image: url(images/b_03.png);
	background-repeat: no-repeat;
	background-position: left bottom;
	height: 35px;
	width: 25px;
}


td.tfl1 {
	color: #CCCCCC;
	background-image: url(images/b_07.png);
	background-repeat: no-repeat;
	background-position: right top;
	height: 30px;
	width: 25px;
	text-align: right;
}

td.tfc1 {
	background-image: url(images/b_08.png);
	background-repeat: repeat-x;
	background-position: center top;
	overflow: hidden;
	color: #CCCCCC;
	height: 30px;
	width: auto;
	text-align: center;
}

td.tfr1 {
	color: #CCCCCC;
	background-image: url(images/b_09.png);
	background-repeat: no-repeat;
	background-position: left top;
	height: 30px;
	width: 25px;	
}


td.tbl1 {
	background-image: url(images/b_04.png);
	background-repeat: repeat-y;
	overflow: hidden;
	height: auto;
	width: 25px;
	background-position: right;
}

td.tbc1 {
	width: auto;
	height: auto;
	padding: 0px;
	border: 1px solid #000033;
	background-image: url("{T_THEME_PATH}/images/bg_header.gif");
}

td.tbr1 {
	background-image: url(images/b_06.png);
	width: 25px;
	overflow: hidden;
	background-repeat: repeat-y;
	height: auto;
}

.tb3{
	width: 100%;
	margin-top: 5px;
	table-layout:auto;
	
}

td.thl3 {
	color: #CCCCCC;
	background-image: url(images/bs__01.png);
	background-repeat: no-repeat;
	background-position: right bottom;
	height: 15px;
	width: 12px;
	text-align: right;
}

td.thc3 {
	background-image: url(images/bs__02.png);
	background-repeat: repeat-x;
	background-position: center bottom;
	overflow: hidden;
	color: #CCCCCC;
	height: 15px;
	width: auto;
	text-align: center;
}

td.thr3 {
	color: #CCCCCC;
	background-image: url(images/bs__03.png);
	background-repeat: no-repeat;
	background-position: left bottom;
	height: 15px;
	width: 12px;
}


td.tfl3 {
	color: #CCCCCC;
	background-image: url(images/bs__07.png);
	background-repeat: no-repeat;
	background-position: right top;
	height: 15px;
	width: 12px;
	text-align: right;
}

td.tfc3 {
	background-image: url(images/bs__08.png);
	background-repeat: repeat-x;
	background-position: center top;
	overflow: hidden;
	color: #CCCCCC;
	height: 15px;
	width: auto;
	text-align: center;
}

td.tfr3 {
	color: #CCCCCC;
	background-image: url(images/bs__09.png);
	background-repeat: no-repeat;
	background-position: left top;
	height: 15px;
	width: 12px;	
}


td.tbl3 {
	background-image: url(images/bs__04.png);
	background-repeat: repeat-y;
	overflow: hidden;
	height: auto;
	width: 12px;
	background-position: right;
}

td.tbc3 {
	width: auto;
	height: auto;
	padding: 0px;
	background-color: #ECF1F3;
}

td.tbr3 {
	background-image: url(images/bs__06.png);
	width: 12px;
	overflow: hidden;
	background-repeat: repeat-y;
	height: auto;
}

.tr1{
	width: 100%;
	margin-top: 5px;
	table-layout:auto;
	
}

td.rl {
	background-image: url(images/r_01.png);
	background-repeat: no-repeat;
	background-position: right top;
	height: 26px;
	width: 13px;
	
}

td.rc {
	background-image: url(images/r_02.png);
	background-repeat: repeat-x;
	background-position: center top;
	overflow: hidden;
	height: 26px;
	width: auto;
}

td.rr {
	background-image: url(images/r_03.png);
	background-repeat: no-repeat;
	background-position: left top;
	height: 26px;
	width: 13px;	
}


b.gensmall {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000033;
}


td.cata, td.catadiv {
	color: #FF9900;
	font-size: 1.1em;
	font-weight: bold;
	background-color: #000033;
	background-image: url(./images/th1.png);
	height: 22px;
	border: 1px solid #000000;
	background-position: center;
}

td.header{
	float: left;
}

div.mg{
	background-color: #1B2436;
	border: 1px solid #000000;
	padding-top: 2px;
	padding-right: 5px;
	padding-bottom: 2px;
	padding-left: 5px;
}

.row1, .row2, .row3 {
	background-color: #ECF1F3;
	padding-top: 2px;
	padding-right: 5px;
	padding-bottom: 2px;
	padding-left: 6px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #91BBDD;
	border-right-color: #3C85C1;
	border-bottom-color: #1E4260;
	border-left-color: #1E4260;
	background-repeat: repeat-x;
	background-position: top;
}	

.row4{
	background-position: center center;
	overflow: hidden;
	clear: both;
	padding: 4px !important;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #91BBDD;
	border-right-color: #3C85C1;
	border-bottom-color: #1E4260;
	border-left-color: #1E4260;
	
}

.genmed {
	margin: 1px 1px;
	font-size: 1.1em;
	color: #E6F4FF;
}

p.genmed, span.genmed {
	color: #E6F4FF;
}

#logodesc {
	background-image: url(./images/logodesc.png);
	height: 150px;
	width: auto;
	background-color: #232B3A;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999999;
	background-repeat: no-repeat;
	background-position: center center;
	clear: both;
	overflow: hidden;
	border-top-width: 1px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-left-style: solid;
	border-top-color: #000033;
	border-right-color: #000033;
	border-left-color: #000033;
}

.tablebg {
	background-color: #98C6F3;
	width: 100%;
	height: 100%;
}

.nav {
	margin: 0;
	color: #0555AD;
	font-weight: bold;
}

a.forumlink {
	color: #0F0F39;
	font-weight: bold;
	font-family: Lucida Grande, Helvetica, "Arial", sans-serif;
	font-size: 1.2em;
}

p.forumdesc {
	padding-bottom: 4px;
	color: #000033;
}

td.cata, td.catadiv {
	color: #FF9900;
	font-size: 1.1em;
	font-weight: bold;
	background-color: #000033;
	background-image: url(./images/th1.png);
	height: 22px;
	border: 1px solid #000000;
	background-position: center;
}

p.topicdetails {
	margin: 1px 0;
	color: #0000FF;
}

Running PHPbb3 canverPORTAL, SEO advanced URL MOD, SEO dynamic metatags, BRIDGED Ajax Chat & Coppermine, various small mods, Cutenews, Crawltrack (check http://www.crawltrack.fr if you don't now) SEO & crawler tracking on all scripts. Running phpBB Arcade and posts rating system.

have a look at http://tjoogle.com

User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

You could check if the 'display' setting is set to 'hidden'. I wouldn't copy the HTML from prosilver but create new HTML based on subsilver. Then you be less likely to run in to this kind of problems.

HTML reference
http://www.htmlhelp.com/reference/html40/olist.html

CSS reference (1.0 and 2.0)
http://www.meyerweb.com/eric/css/references/index.html

I can also recrement Firefox with the web developer addon. You then can use cntl-alt-y to show the relevant CSS and cntl-alt-F to show element information. I also find the 'display id and class details' from the information menu and 'outline block level elements' very handy.
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

User avatar
RickieIzfazt
Registered User
Posts: 115
Joined: Mon Feb 04, 2008 12:21 pm
Contact:

Re: [DEV]Post Rating System

Post by RickieIzfazt »

Alfatrion wrote:You could check if the 'display' setting is set to 'hidden'. I wouldn't copy the HTML from prosilver but create new HTML based on subsilver. Then you be less likely to run in to this kind of problems.

HTML reference
http://www.htmlhelp.com/reference/html40/olist.html

CSS reference (1.0 and 2.0)
http://www.meyerweb.com/eric/css/references/index.html

I can also recrement Firefox with the web developer addon. You then can use cntl-alt-y to show the relevant CSS and cntl-alt-F to show element information. I also find the 'display id and class details' from the information menu and 'outline block level elements' very handy.
thanks for the webdevelopper add-on, didn't know it, usefull tool
Running PHPbb3 canverPORTAL, SEO advanced URL MOD, SEO dynamic metatags, BRIDGED Ajax Chat & Coppermine, various small mods, Cutenews, Crawltrack (check http://www.crawltrack.fr if you don't now) SEO & crawler tracking on all scripts. Running phpBB Arcade and posts rating system.

have a look at http://tjoogle.com

phpDummie
Registered User
Posts: 292
Joined: Thu Feb 16, 2006 12:09 am
Location: USA
Contact:

Re: [DEV]Post Rating System

Post by phpDummie »

RickieIzfazt wrote:thanks for the webdevelopper add-on, didn't know it, usefull tool
Not to take it off topic, but do check out the Firebug also.
I started with WebDeveloper, but later discovered Firebug is also very good for some things.

pardesi
Registered User
Posts: 79
Joined: Mon May 05, 2008 2:27 am

Re: [DEV]Post Rating System

Post by pardesi »

i did whatever written in the .xml file can even see the .mod tab and see the overview and details module and can enable tme and alll...
but i can't get my ratings !!!!!
but when i go to styles and templates and choose to edit it i don't see a posts_rating_body.HTML
but i acne see with my Filezilla that the file does exist in the templates folder
also i uploaded the imagesets from the root folder of urs to my database still i can't see them...

User avatar
Alfatrion
Registered User
Posts: 166
Joined: Sat Feb 17, 2007 3:06 am

Re: [DEV]Post Rating System

Post by Alfatrion »

More people have had this problem, but all have worked it out.

Can you see if the html contains the relevant parts?
Can you see if the css contains the relevant parts?
Can you see the star is you manualy look them up?
My abandoned (for own reference). mod: Post Rating System (website | screenshots | demo | support)

pardesi
Registered User
Posts: 79
Joined: Mon May 05, 2008 2:27 am

Re: [DEV]Post Rating System

Post by pardesi »

sorry but i didn't get you...whcih html and css file shud look up for the relevant parts and what are the "relevant parts"
as for the stars i uploaded them from your imagesets to the /styles/prosilver/imagesets via Filezilla yet i can't view them

Locked

Return to “[3.0.x] Abandoned MODs”