<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>using the rating system to rate a page from a different one</title>
		<link>http://community.wikidot.com/forum/t-163352/using-the-rating-system-to-rate-a-page-from-a-different-one</link>
		<description>Posts in the discussion thread &quot;using the rating system to rate a page from a different one&quot; - is this possible?</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 13 Feb 2012 14:13:43 +0000</lastBuildDate>
		
					<item>
				<guid>http://community.wikidot.com/forum/t-163352#post-512262</guid>
				<title>Re: using the rating system to rate a page from a different one</title>
				<link>http://community.wikidot.com/forum/t-163352/using-the-rating-system-to-rate-a-page-from-a-different-one#post-512262</link>
				<description></description>
				<pubDate>Thu, 18 Jun 2009 17:08:02 +0000</pubDate>
				<wikidot:authorName>RobElliott</wikidot:authorName>				<wikidot:authorUserId>111301</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There is a method you can use with an external widget which does what you want and allows you to rate either on the original page or in a table on a different page. This uses the ratings code from JS-Kit at <a href="http://www.js-kit.com" >http://www.js-kit.com</a></p> <p>Once you've signed up (free) and told it which site you want to apply the ratings code on it gives you some div and script code which you put inside an html codeblock on the page where you want your rating. Change the title= to uniq= and give it a unique name. In this case I've given it the page name but it could be anything as long as it's unique.</p> <p>For this example we've added the code to a page called support:javascript:</p> <div class="code"> <pre> <code>[!-- [[code type="HTML"]] &lt;html&gt; &lt;body&gt; &lt;div class="js-kit-rating" uniq="support:javascript" permalink=""&gt;&lt;/div&gt; &lt;script src="http://js-kit.com/for/strathviewconsultants.wikidot.com/ratings.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; [[/code]] --]</code> </pre></div> <p>As usual you must then refer to that codeblock in an iframe. So underneath the codeblock add:</p> <div class="code"> <pre> <code>[[iframe http://strathviewconsultants.wikidot.com/support:javascript/code/3 frameborder="0" scrolling="no" width="200px" height="40px"]]</code> </pre></div> <p>(the codeblock was the third one on that page, hence the /code/3).</p> <p>This will put the rating on the page like this:</p> <p><iframe src="http://strathviewconsultants.wikidot.com/support:javascript/code/3" align="" frameborder="0" height="40px" scrolling="no" width="200px" class="" style=""></iframe></p> <p>Do that with your other pages where you want the rating.</p> <p>But on another page you can put all the ratings together by using a table and adding in the iframes, like this:</p> <div class="code"> <pre> <code>||~ Page ||~ Rate it || || [*http://strathviewconsultants.wikidot.com/support:pages Support:Pages] || [[iframe http://strathviewconsultants.wikidot.com/support:pages/code/1 width="25%" height="40px" frameborder="0" scrolling="no"]] || || [*http://strathviewconsultants.wikidot.com/support:javascript Support:Javascript] ||[[iframe http://strathviewconsultants.wikidot.com/support:javascript/code/3 frameborder="0" scrolling="no" width="25%" height="40px"]] || || [*http://strathviewconsultants.wikidot.com/support:network Support:Network] ||[[iframe http://strathviewconsultants.wikidot.com/support:network/code/6 frameborder="0" scrolling="no" width="25%" height="40px"]] ||</code> </pre></div> <p>This gives you:</p> <table class="wiki-content-table"> <tr> <th>Page</th> <th>Rate it</th> </tr> <tr> <td><a href="http://strathviewconsultants.wikidot.com/support:pages" >Support:Pages</a></td> <td><iframe src="http://strathviewconsultants.wikidot.com/support:pages/code/1" align="" frameborder="0" height="40px" scrolling="no" width="25%" class="" style=""></iframe></td> </tr> <tr> <td><a href="http://strathviewconsultants.wikidot.com/support:javascript" >Support:Javascript</a></td> <td><iframe src="http://strathviewconsultants.wikidot.com/support:javascript/code/3" align="" frameborder="0" height="40px" scrolling="no" width="25%" class="" style=""></iframe></td> </tr> <tr> <td><a href="http://strathviewconsultants.wikidot.com/support:network" >Support:Network</a></td> <td><iframe src="http://strathviewconsultants.wikidot.com/support:network/code/6" align="" frameborder="0" height="40px" scrolling="no" width="25%" class="" style=""></iframe></td> </tr> </table> <p>Your users can then either rate your pages (or whatever it is on your pages you want to rate) from this table or from the original page. And if you make the text a link as I have they can go straight to the page if they want to. I've used external links here as I'm linking from the comubnity site. Normally you would use standard [[[page]]] links. The advantage with the js-kit method though is that it allows you to pull in ratings into a table from multiple sites if you want.</p> <hr /> <p><strong>Warning</strong><br /> As admin you would need to make the first rating and while you are testing it you <span style="text-decoration: underline;">must</span> keep clearing your cookies before you do each subsequent rating because otherwise it doesn't register the rating. It is a mechanism designed to reduce the chance of multiple ratings by a single user.</p> <hr /> <p>It is also possible to have a table of top posts but I have so far not got that to work well, probably because I keep changing the unique name. Anyway, that table is also on my page <a href="http://strathviewconsultants.wikidot.com/support:javascript" >support:javascript</a> if you want to have a look.</p> <p>It is probably overkill and is certainly a bit fiddly. So although it works I hope someone gives you a solution using native wikidot syntax.</p> <p>Edit: By the way I'm not expecting anyone to rate those pages, the ratings are there purely as an example of the method.</p> <p>Rob</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-163352#post-512035</guid>
				<title>Re: using the rating system to rate a page from a different one</title>
				<link>http://community.wikidot.com/forum/t-163352/using-the-rating-system-to-rate-a-page-from-a-different-one#post-512035</link>
				<description></description>
				<pubDate>Thu, 18 Jun 2009 10:49:29 +0000</pubDate>
				<wikidot:authorName>wstone</wikidot:authorName>				<wikidot:authorUserId>285528</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ok, tried out the listpages method. It just displays the raw text [[module rate]] :-(</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-163352#post-512023</guid>
				<title>Re: using the rating system to rate a page from a different one</title>
				<link>http://community.wikidot.com/forum/t-163352/using-the-rating-system-to-rate-a-page-from-a-different-one#post-512023</link>
				<description></description>
				<pubDate>Thu, 18 Jun 2009 10:34:23 +0000</pubDate>
				<wikidot:authorName>wstone</wikidot:authorName>				<wikidot:authorUserId>285528</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi, there should be no reason you can't see the source: it's open to all wikidot members (although I have moved the page options to the top!).</p> <p>The "include" method didn't work, unfortunately, as it did what you suspected and rated the page it was on :-s</p> <p>I will give the listpages method a go in a bit and let you know.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-163352#post-511615</guid>
				<title>Re: using the rating system to rate a page from a different one</title>
				<link>http://community.wikidot.com/forum/t-163352/using-the-rating-system-to-rate-a-page-from-a-different-one#post-511615</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 23:11:24 +0000</pubDate>
				<wikidot:authorName>David Marseilles</wikidot:authorName>				<wikidot:authorUserId>29608</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I don't know. And I can't see your wikidot source so I'll have to explain my best guess method from scratch, but what I'd do is use the ListPages module for the names list, like so:</p> <p>[[module ListPages category="bb10"]]<br /> %%linked_title%% (%%rating%%) %%content{x}%%<br /> [[/module]]</p> <p>Where x is the section you keep the rating module on the contestant pages. To make sections on those pages, you'll need to use a divider made up of four equal signs ====. If the only divider you have is between the rest of the page and the rating module, then it will be %%content{2}%%. For more information on dividers in templates, check out the <a href="http://www.wikidot.com/doc:templates">template section</a> of wikidot documentation.</p> <p>Will that module successfully rate the page it's grabbed off of? Will it work at all? Might accidentally rate the page the listpages module is on instead (I'm sure that is what would happen if you used [[include]] instead of listpages)? I don't know. Tell me what happens.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-163352#post-511469</guid>
				<title>using the rating system to rate a page from a different one</title>
				<link>http://community.wikidot.com/forum/t-163352/using-the-rating-system-to-rate-a-page-from-a-different-one#post-511469</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 19:44:23 +0000</pubDate>
				<wikidot:authorName>wstone</wikidot:authorName>				<wikidot:authorUserId>285528</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,<br /> I am trying to set-up a list of names with the +/-rating next to each name.<br /> See: <a href="http://bigbrotheruk.wikidot.com/bb10:housemates" >http://bigbrotheruk.wikidot.com/bb10:housemates</a></p> <p>I'd prefer it if visitors could just click the +/- next to each name rather than having to visit the individual pages.</p> <p>Can this be done?</p> <p>Thanks.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
