summary refs log tree commit diff stats
path: root/theme/quotes/browse.tpl
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-08-09 09:14:58 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-08-09 09:14:58 -0400
commit893957c41481a0cd5eb624096337762ffa54ff28 (patch)
tree09d2487f8add5a6281e3482a471abf21faa4f819 /theme/quotes/browse.tpl
parentd27a3784c81f0c582e43655509e806978b7e65e4 (diff)
downloadfourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.gz
fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.bz2
fourisland-893957c41481a0cd5eb624096337762ffa54ff28.zip
Created layout 7
The following changes were also made in this revision:

* All HTML was changed to XHTML and a !DOCTYPE was included to reflect this
* Rewrote quotes tracking system to be much less complicated and actually working
* Changed quotes rendering to look more like Chirpy than Rash
* Fixed comment textarea bug
* Rewrote a ton of CSS so it's not as bloated
* Added a JavaScript confirmation when deleting a comment
* AJAXified voting on the POTW
* AJAXified voting and flagging quotes
* AJAXified commenting
* AJAXified voting on posts
* Added DateFinder back after it was accidentally deleted in Layout 4.5

The following database changes must be performed as soon as possible:

* Fix title of NO <!DOCTYPE> post (the &lt; is missing the semicolon)
* Restore post Frasty Tha Snaman from a backup
* Reset "flag" field of all rows in "rash_quotes" to 0
* Remove the "vote" and "flag" columns of "rash_tracking"
* Rename the "quote_id" column of "rash_tracking" to "vote"

The following external code changes must also be performed as soon as possible:

* Add the following line to the end of the // Four Island block in The Fourm's functions.php:
  require('/svr/www/hatkirby/fourisland/main/includes/specialdates.php');
Diffstat (limited to 'theme/quotes/browse.tpl')
-rwxr-xr-xtheme/quotes/browse.tpl92
1 files changed, 80 insertions, 12 deletions
diff --git a/theme/quotes/browse.tpl b/theme/quotes/browse.tpl index 8726802..d710d3f 100755 --- a/theme/quotes/browse.tpl +++ b/theme/quotes/browse.tpl
@@ -1,24 +1,92 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2
3<script type="text/javascript">
4
5function voteQuote(id, dir)
6{
7 jQuery("#quote-"+id+" .quote-rating-up").addClass("quote-action-done").text("+");
8 jQuery("#quote-"+id+" .quote-rating-down").addClass("quote-action-done").text("-");
9 jQuery("#quote-"+id+" .quote-update-result").text("Processing....");
10 jQuery.ajax({
11 type: "GET",
12 url: "/quotes/vote.php",
13 data: "id="+id+"&amp;dir="+dir,
14 dataType: "text",
15 success: function(msg) {
16 if (msg != "")
17 {
18 jQuery("#quote-"+id+" .quote-vote-count").text(msg);
19 jQuery("#quote-"+id+" .quote-update-result").text("Done");
20 } else {
21 jQuery("#quote-"+id+" .quote-update-result").text("Error");
22 }
23 },
24 error: function() {
25 jQuery("#quote-"+id+" .quote-update-result").text("Error");
26 }
27 });
28}
29
30function flagQuote(id)
31{
32 jQuery("#quote-"+id+" .quote-report").addClass("quote-action-done").text("[X]");
33 jQuery("#quote-"+id+" .quote-update-result").text("Processing....");
34 jQuery.ajax({
35 type: "GET",
36 url: "/quotes/flag.php",
37 data: "id="+id,
38 dataType: "text",
39 success: function(msg) {
40 if (msg == "1")
41 {
42 jQuery("#quote-"+id+" .quote-update-result").text("Done");
43 } else {
44 jQuery("#quote-"+id+" .quote-update-result").text("Error");
45 }
46 },
47 error: function() {
48 jQuery("#quote-"+id+" .quote-update-result").text("Error");
49 }
50 });
51}
52
53</script>
2 54
3<!--BEGIN PAGENUMBERS--> 55<!--BEGIN PAGENUMBERS-->
4<!--INCLUDE quotes/pagenumbers--> 56<!--INCLUDE quotes/pagenumbers-->
5<!--END PAGENUMBERS--> 57<!--END PAGENUMBERS-->
6 58
7<H2><!--ORIGIN--></H2> 59<h2 class="light-at-night"><!--ORIGIN--></h2>
8 60
61<ul class="quote-list">
9<!--BEGIN QUOTES--> 62<!--BEGIN QUOTES-->
10<P> 63 <li id="quote-<!--QUOTES.NUMBER-->" class="quote">
11 <A HREF="/quotes/<!--QUOTES.NUMBER-->.php">#<!--QUOTES.NUMBER--></A> 64 <h3 class="quote-header">
12 <A HREF="/quotes/vote.php?id=<!--QUOTES.NUMBER-->&amp;dir=plus">+</A> 65 <a class="quote-permalink" href="/quotes/<!--QUOTES.NUMBER-->.php">#<!--QUOTES.NUMBER--></a>
13 <SPAN>(<!--QUOTES.RATING-->)</SPAN> 66 <!--BEGIN QUOTES.CANVOTE-->
14 <A HREF="/quotes/vote.php?id=<!--QUOTES.NUMBER-->&amp;dir=minus">-</A> 67 <span class="quote-rating-up"><a href="javascript:voteQuote('<!--QUOTES.NUMBER-->','plus');" rel="nofollow">+</a></span>
15 <A HREF="/quotes/flag.php?id=<!--QUOTES.NUMBER-->">[X]</A> 68 (<span class="quote-vote-count"><!--QUOTES.RATING--></span>)
16 69 <span class="quote-rating-down"><a href="javascript:voteQuote('<!--QUOTES.NUMBER-->','minus');" rel="nofollow">-</a></span>
17 <BR> 70 <!--END QUOTES.CANVOTE-->
71 <!--BEGIN QUOTES.NOVOTE-->
72 <span class="quote-rating-up quote-action-done">+</span>
73 (<span class="quote-vote-count"><!--QUOTES.RATING--></span>)
74 <span class="quote-rating-down quote-action-done">-</span>
75 <!--END QUOTES.NOVOTE-->
76 <!--BEGIN QUOTES.CANFLAG-->
77 <span class="quote-report"><a href="javascript:flagQuote('<!--QUOTES.NUMBER-->');" rel="nofollow">[X]</a></span>
78 <!--END QUOTES.CANFLAG-->
79 <!--BEGIN QUOTES.NOFLAG-->
80 <span class="quote-report quote-action-done">[X]</span>
81 <!--END QUOTES.NOFLAG-->
82 <span class="quote-date"><!--QUOTES.DATE--></span>
83 <span class="quote-update-result"><!--QUOTES.COMMENTS--></span>
84 </h3>
18 85
19 <!--QUOTES.QUOTE--> 86 <blockquote class="quote-body"><!--QUOTES.QUOTE--></blockquote>
20</P> 87 </li>
21<!--END QUOTES--> 88<!--END QUOTES-->
89</ul>
22 90
23<!--BEGIN PAGENUMBERS--> 91<!--BEGIN PAGENUMBERS-->
24<!--INCLUDE quotes/pagenumbers--> 92<!--INCLUDE quotes/pagenumbers-->