CommentLuv - Version 2.6.1

Version Description

Download this release

Release Info

Developer teamplaylotto
Plugin Icon 128x128 CommentLuv
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.5.4 to 2.6.1

Files changed (7) hide show
  1. commentluv-pt_PT.mo +0 -0
  2. commentluv-pt_PT.po +116 -45
  3. commentluv.mo +0 -0
  4. commentluv.php +59 -212
  5. commentluv.po +81 -41
  6. js/commentluv.js +26 -13
  7. readme.txt +1 -1
commentluv-pt_PT.mo CHANGED
Binary file
commentluv-pt_PT.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: CommentLuv 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-09-20 10:41-0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Andy Bailey <andy@teamplaylotto.com>\n"
8
  "Language-Team: <andy@teamplaylotto.com>\n"
@@ -15,130 +15,201 @@ msgstr ""
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SearchPath-0: C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\commentluv\n"
17
 
18
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:295
19
- msgid "Do Not Show"
20
- msgstr "N&atilde;o Mostrar"
21
-
22
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:302
23
- msgid "Click to choose a different post to show"
24
- msgstr "Clicar para mostrar um artigo diferente"
25
 
26
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:364
 
27
  msgid "CommentLuv Wordpress Plugin"
28
  msgstr "CommentLuv Wordpress Plugin"
29
 
30
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:365
 
31
  msgid "This plugin takes the url from the comment form and tries to parse the feed of the site and display the last entry made"
32
  msgstr "Este plugin insere um link para o &uacute;ltimo artigo do url inserido no formul&aacute;rio dos coment&aacute;rios"
33
 
34
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:366
 
35
  msgid "If you have any questions, comments or if you have a good idea that you would like to see in the next version of CommentLuv, please visit"
36
  msgstr "Se tens alguma d&uacute;vida, coment&aacute;rios ou sugest&atilde;o, por favor visita"
37
 
38
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:366
 
39
  msgid "or"
40
  msgstr "ou"
41
 
42
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:366
 
43
  msgid "support forum"
44
  msgstr "f&oacute;rum de suporte"
45
 
46
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:366
 
47
  msgid "and let me know"
48
  msgstr "avisa-me"
49
 
50
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:367
 
51
  msgid "Options"
52
  msgstr "Op&ccedil;&otilde;es"
53
 
54
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:368
 
55
  msgid "Enter the text you want displayed in the comment."
56
  msgstr "Introduz o texto que ir&aacute; aparecer no coment&aacute;rio."
57
 
58
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:376
 
 
 
 
 
 
59
  msgid "Choose to have CommentLuv on by default?"
60
  msgstr "Deseja ter o CommentLuv activo por defeito?"
61
 
62
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:383
 
 
 
 
 
 
 
63
  msgid "Styling"
64
  msgstr "Estilo"
65
 
66
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:384
 
67
  msgid "Wordpress doesn't allow a class to be applied to a paragraph in the comment area so we have to wrap the last blog post text in nested tags and apply styling to that instead."
68
  msgstr "O Wordpress n&atilde;o permite que a uma class seja aplicado um par&aacute;grafo no &agrave;rea dos coment&aacute;rios, ent&atilde;o &eacute; necess&aacute;rio passar o &uacute;ltimo artigo para tags e aplicar os estilo."
69
 
70
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:385
 
71
  msgid "Enter css styling to apply to comment"
72
  msgstr "Introduza o estilo css para o coment&aacute;rio"
73
 
74
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:385
 
75
  msgid "inserted as"
76
  msgstr "inserido como"
77
 
78
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:391
 
79
  msgid "Comment Form Identification"
80
  msgstr "Formul&aacute;rio de Identifica&ccedil;&atilde;o do Coment&aacute;rio"
81
 
82
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:392
 
83
  msgid "Enter the ID or NAME value for the input fields on your comment form."
84
  msgstr "Introduza o ID ou o Nome para os campos de entrada do seu formul&aacute;rio de coment&aacute;rios."
85
 
86
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:393
87
- msgid "Check your comment form fields to see if they user ID= or NAME= and select the appropriate type below"
 
 
88
  msgstr "Verifique os campos do formul&aacute;rio de coment&aacute;rios para ter a certeza que eles usam ID= ou NAME= e seleccione o tipo apropriado abaixo"
89
 
90
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:394
 
91
  msgid "Visit CommentLuv.com if you need instructions"
92
  msgstr "Visite CommentLuv.com se necessitar de instru&ccedil;&otilde;es"
93
 
94
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:396
95
- msgid "Comment Form ID"
96
- msgstr "ID do Formul&aacute;rio de Coment&aacute;rios"
97
-
98
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:401
99
  msgid "Authors Name field ID"
100
  msgstr "ID do campo do Nome"
101
 
102
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:409
 
103
  msgid "Authors URL field ID"
104
  msgstr "ID do campo do URL"
105
 
106
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:417
 
107
  msgid "Comment Text Area ID"
108
  msgstr "ID da &agrave;rea de texto do coment&aacute;rio"
109
 
110
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:425
 
111
  msgid "Display Badge"
112
  msgstr "Mostrar Logo"
113
 
114
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:429
 
115
  msgid "Choose badge to display"
116
  msgstr "Escolher logo"
117
 
118
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:437
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  msgid "CommentLuv Member ID"
120
  msgstr "ID de membro do CommentLuv"
121
 
122
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:438
 
123
  msgid "If you register your site for free at"
124
  msgstr "Se registares o teu site gratuitamente em"
125
 
126
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:438
 
127
  msgid "you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked. Do NOT enter a number if you do not have one"
128
  msgstr "ter&aacute;s a possibilidade de ter mais funcionalidades que s&atilde;o exclusivas a membros como rastrear os links dos coment&aacute;rios que fez em blogs que utilizam o CommentLuv. N&Atilde;O introduzas um n&uacute;mero se n&atilde;o tiveres um"
129
 
130
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:440
 
131
  msgid "Your CommentLuv.com member ID"
132
  msgstr "O teu ID de membro do CommentLuv.com"
133
 
134
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:443
135
- msgid "Enable click tracking? (experimental for registered members)"
136
- msgstr "Activar rastreio de links? (apenas para utilizadores registados)"
 
137
 
138
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:450
139
- msgid "Update Options"
140
- msgstr "Actualizar Op&ccedil;&otilde;es"
 
 
 
 
 
 
 
 
 
 
141
 
 
 
 
 
 
 
 
 
142
  #~ msgid "do NOT use single quotes"
143
  #~ msgstr "N&Atilde;O usar plicas"
144
  #~ msgid "or double quotes"
2
  msgstr ""
3
  "Project-Id-Version: CommentLuv 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-24 14:52-0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Andy Bailey <andy@teamplaylotto.com>\n"
8
  "Language-Team: <andy@teamplaylotto.com>\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SearchPath-0: C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\commentluv\n"
17
 
18
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:77
19
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:207
20
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:531
21
+ msgid "Update Options"
22
+ msgstr "Actualizar Op&ccedil;&otilde;es"
 
 
23
 
24
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:107
25
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:430
26
  msgid "CommentLuv Wordpress Plugin"
27
  msgstr "CommentLuv Wordpress Plugin"
28
 
29
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:108
30
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:431
31
  msgid "This plugin takes the url from the comment form and tries to parse the feed of the site and display the last entry made"
32
  msgstr "Este plugin insere um link para o &uacute;ltimo artigo do url inserido no formul&aacute;rio dos coment&aacute;rios"
33
 
34
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
35
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
36
  msgid "If you have any questions, comments or if you have a good idea that you would like to see in the next version of CommentLuv, please visit"
37
  msgstr "Se tens alguma d&uacute;vida, coment&aacute;rios ou sugest&atilde;o, por favor visita"
38
 
39
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
40
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
41
  msgid "or"
42
  msgstr "ou"
43
 
44
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
45
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
46
  msgid "support forum"
47
  msgstr "f&oacute;rum de suporte"
48
 
49
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
50
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
51
  msgid "and let me know"
52
  msgstr "avisa-me"
53
 
54
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:110
55
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:433
56
  msgid "Options"
57
  msgstr "Op&ccedil;&otilde;es"
58
 
59
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:111
60
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:434
61
  msgid "Enter the text you want displayed in the comment."
62
  msgstr "Introduz o texto que ir&aacute; aparecer no coment&aacute;rio."
63
 
64
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:120
65
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:443
66
+ msgid "Text displayed in the select box"
67
+ msgstr ""
68
+
69
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:125
70
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:448
71
  msgid "Choose to have CommentLuv on by default?"
72
  msgstr "Deseja ter o CommentLuv activo por defeito?"
73
 
74
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:132
75
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:455
76
+ #, fuzzy
77
+ msgid "Choose to have CommentLuv Info box?"
78
+ msgstr "Deseja ter o CommentLuv activo por defeito?"
79
+
80
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:140
81
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:462
82
  msgid "Styling"
83
  msgstr "Estilo"
84
 
85
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:141
86
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:463
87
  msgid "Wordpress doesn't allow a class to be applied to a paragraph in the comment area so we have to wrap the last blog post text in nested tags and apply styling to that instead."
88
  msgstr "O Wordpress n&atilde;o permite que a uma class seja aplicado um par&aacute;grafo no &agrave;rea dos coment&aacute;rios, ent&atilde;o &eacute; necess&aacute;rio passar o &uacute;ltimo artigo para tags e aplicar os estilo."
89
 
90
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:142
91
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:464
92
  msgid "Enter css styling to apply to comment"
93
  msgstr "Introduza o estilo css para o coment&aacute;rio"
94
 
95
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:142
96
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:464
97
  msgid "inserted as"
98
  msgstr "inserido como"
99
 
100
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:148
101
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:470
102
  msgid "Comment Form Identification"
103
  msgstr "Formul&aacute;rio de Identifica&ccedil;&atilde;o do Coment&aacute;rio"
104
 
105
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:149
106
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:471
107
  msgid "Enter the ID or NAME value for the input fields on your comment form."
108
  msgstr "Introduza o ID ou o Nome para os campos de entrada do seu formul&aacute;rio de coment&aacute;rios."
109
 
110
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:150
111
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:472
112
+ #, fuzzy
113
+ msgid "Check your comment form fields to see if they use ID= or NAME= and select the appropriate type below"
114
  msgstr "Verifique os campos do formul&aacute;rio de coment&aacute;rios para ter a certeza que eles usam ID= ou NAME= e seleccione o tipo apropriado abaixo"
115
 
116
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:151
117
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:473
118
  msgid "Visit CommentLuv.com if you need instructions"
119
  msgstr "Visite CommentLuv.com se necessitar de instru&ccedil;&otilde;es"
120
 
121
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:155
122
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:478
 
 
 
123
  msgid "Authors Name field ID"
124
  msgstr "ID do campo do Nome"
125
 
126
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:163
127
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:486
128
  msgid "Authors URL field ID"
129
  msgstr "ID do campo do URL"
130
 
131
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:171
132
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:494
133
  msgid "Comment Text Area ID"
134
  msgstr "ID da &agrave;rea de texto do coment&aacute;rio"
135
 
136
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:179
137
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:502
138
  msgid "Display Badge"
139
  msgstr "Mostrar Logo"
140
 
141
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:183
142
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:506
143
  msgid "Choose badge to display"
144
  msgstr "Escolher logo"
145
 
146
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:189
147
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:512
148
+ msgid "Show nothing"
149
+ msgstr ""
150
+
151
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:192
152
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:515
153
+ msgid "Show text"
154
+ msgstr ""
155
+
156
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:192
157
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:515
158
+ msgid "Append badge to (DIV or object ID) optional"
159
+ msgstr ""
160
+
161
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:192
162
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:515
163
+ msgid "Prepend html before badge or text (optional)"
164
+ msgstr ""
165
+
166
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:194
167
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:517
168
  msgid "CommentLuv Member ID"
169
  msgstr "ID de membro do CommentLuv"
170
 
171
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:195
172
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:518
173
  msgid "If you register your site for free at"
174
  msgstr "Se registares o teu site gratuitamente em"
175
 
176
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:195
177
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:518
178
  msgid "you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked. Do NOT enter a number if you do not have one"
179
  msgstr "ter&aacute;s a possibilidade de ter mais funcionalidades que s&atilde;o exclusivas a membros como rastrear os links dos coment&aacute;rios que fez em blogs que utilizam o CommentLuv. N&Atilde;O introduzas um n&uacute;mero se n&atilde;o tiveres um"
180
 
181
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:197
182
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:520
183
  msgid "Your CommentLuv.com member ID"
184
  msgstr "O teu ID de membro do CommentLuv.com"
185
 
186
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:200
187
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:523
188
+ msgid "Enable click tracking?"
189
+ msgstr ""
190
 
191
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:208
192
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:530
193
+ msgid "Reset to Default Settings"
194
+ msgstr ""
195
+
196
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:208
197
+ msgid "Are you sure you want to reset your settings? Press OK to continue"
198
+ msgstr ""
199
+
200
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:158
201
+ #, fuzzy
202
+ msgid "Settings"
203
+ msgstr "Estilo"
204
 
205
+ #~ msgid "Do Not Show"
206
+ #~ msgstr "N&atilde;o Mostrar"
207
+ #~ msgid "Click to choose a different post to show"
208
+ #~ msgstr "Clicar para mostrar um artigo diferente"
209
+ #~ msgid "Comment Form ID"
210
+ #~ msgstr "ID do Formul&aacute;rio de Coment&aacute;rios"
211
+ #~ msgid "Enable click tracking? (experimental for registered members)"
212
+ #~ msgstr "Activar rastreio de links? (apenas para utilizadores registados)"
213
  #~ msgid "do NOT use single quotes"
214
  #~ msgstr "N&Atilde;O usar plicas"
215
  #~ msgid "or double quotes"
commentluv.mo CHANGED
Binary file
commentluv.php CHANGED
@@ -2,7 +2,7 @@
2
  Plugin Name: commentluv
3
  Plugin URI: http://www.commentluv.com/download/ajax-commentluv-installation/
4
  Description: Plugin to show a link to the last post from the commenters blog in their comment. Just activate and it's ready. Will parse a feed from most sites that have a feed location specified in its head html. See the <a href="options-general.php?page=commentluv">Settings Page</a> for styling and text output options.
5
- Version: 2.5.4
6
  Author: Andy Bailey
7
  Author URI: http://www.fiddyp.co.uk/
8
 
@@ -10,6 +10,10 @@ Author URI: http://www.fiddyp.co.uk/
10
  You can now edit the options from the dashboard
11
  *********************************************************************
12
  updates:
 
 
 
 
13
  2.5.4 - 6 oct 08 - changed included tip.php so it has curl too. added version number to url for easier remote file functions. and changed commentluv.js to prevent
14
  double firing of cl_dostuff (Marco Luthe from http://www.saphod.net/ (is a geek!))
15
  changed tip.php so it can work with curl or iframe so everyone can use it. thanks espen from http://www.espeniversen.com/ for testing
@@ -121,9 +125,50 @@ add_action('wp_head','cl_style_script');
121
  add_action('comment_form','cl_add_fields');
122
  add_filter('preprocess_comment','cl_post',0);
123
  add_filter('whitelist_options','commentluv_alter_whitelist_options');
 
124
  register_activation_hook(__FILE__, 'commentluv_activation');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  wp_enqueue_script('jquery');
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  // clean input string
128
  function cleanInput($input) {
129
  return htmlentities(trim($input), ENT_QUOTES);
@@ -172,14 +217,6 @@ function commentluv_setup()
172
  $commentluv_is_setup=1;
173
  }
174
 
175
- function commentluv_activation(){
176
- // set version for future releases if they need to change a value
177
- $version=get_option('cl_version');
178
- if($version<254){
179
- update_option('cl_version','254');
180
- }
181
- }
182
-
183
  // add fields for registered user so ajaxcl will work for logged on users
184
  function cl_add_fields($id){
185
  if (is_user_logged_in()){
@@ -226,32 +263,6 @@ function cl_post($comment_data){
226
  }
227
  }
228
 
229
- //function for menu
230
- function show_cl_options() {
231
- commentluv_alter_whitelist_options("");
232
- // Add a new submenu under Options:
233
- add_options_page('CommentLuv', 'CommentLuv', 8, 'commentluv', 'cl_options_page');
234
- add_option('cl_comment_text','[name]&#8217;s last blog post..[lastpost]');
235
- add_option('cl_default_on','TRUE');
236
- add_option('cl_heart_tip','TRUE');
237
- add_option('cl_style','border:1px solid #ffffff; background-color: #eeeeee; display:block; padding:4px;');
238
- add_option('cl_author_id','author');
239
- add_option('cl_site_id','url');
240
- add_option('cl_comment_id','comment');
241
- add_option('cl_commentform_id','#commentform');
242
- add_option('cl_badge','ACL88x31-white.gif');
243
- add_option('cl_member_id','');
244
- add_option('cl_author_type','name');
245
- add_option('cl_url_type','name');
246
- add_option('cl_textarea_type','name');
247
- add_option('cl_click_track','on');
248
- add_option('cl_showtext','CommentLuv Enabled');
249
- add_option('cl_badge_pos','');
250
- add_option('cl_prepend','');
251
- commentluv_activation();
252
- add_option('cl_version','254');
253
- add_option('cl_select_text','choose a different post to show');
254
- }
255
 
256
  // add style to head
257
  function cl_style_script(){
@@ -275,10 +286,6 @@ function cl_style_script(){
275
  $cl_author_id=get_option('cl_author_id');
276
  $cl_site_id=get_option('cl_site_id');
277
 
278
- // construct selector string based on ID or name (ternery yey!)
279
- $comment_selector= (get_option('cl_textarea_type')=="name")? "\"textarea[name='$cl_comment_id']\"" : "'#$cl_comment_id'";
280
- $author_selector= (get_option('cl_author_type')=="name")? "\"input[name='$cl_author_id']\"" : "'#$cl_author_id'";
281
- $url_selector= (get_option('cl_url_type')=="name")? "\"input[name='$cl_site_id']\"" : "'#$cl_site_id'";
282
  $cl_version=get_option('cl_version');
283
  $cl_comment_text=get_option('cl_comment_text');
284
  $cl_default_on=get_option('cl_default_on');
@@ -299,17 +306,21 @@ function cl_style_script(){
299
 
300
  // start the javascript output
301
  if(is_single()) {
302
- echo '<!-- Styling and script added by commentluv 2.5.4 http://www.commentluv.com -->';
 
303
  echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; } </style>';
304
- echo "\n<script type=\"text/javascript\" src=\"".WP_PLUGIN_URL."/commentluv/js/commentluv.js\"></script>";
 
 
305
  if(get_option('cl_heart_tip')=="TRUE"){
306
  echo "<link rel=\"stylesheet\" href=\"".WP_PLUGIN_URL."/commentluv/include/tipstyle.css\" type=\"text/css\" />\n";
307
  echo "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--\n";
308
- echo "jQuery(document).ready(function(){\n".
309
- "jQuery(\"abbr em a\").each(function(i){\n".
 
310
  "jQuery(this).after(' <a class=\'jTip\' id=\'' + i + '\' name=\'My CommentLuv Profile\' href=\'".
311
  WP_PLUGIN_URL."/commentluv/include/tip.php?width=375&url=' + jQuery(this).attr('href') +'\'><img src=\'".
312
- WP_PLUGIN_URL."/commentluv/images/littleheart.png\' alt=\'#\' /></a>');\n".
313
  "});\n".
314
  "JT_init();});\n";
315
  echo "//--><!]]></script>\n";
@@ -318,9 +329,9 @@ function cl_style_script(){
318
  echo "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--";
319
  echo "\n var cl_settings=new Array();\n";
320
  echo "cl_settings[0]=\"$append_id\";\n";
321
- echo "cl_settings[1]=$author_selector;\n";
322
- echo "cl_settings[2]=$url_selector;\n";
323
- echo "cl_settings[3]=$comment_selector;\n";
324
 
325
  // select text
326
  $cl_select_text=get_option('cl_select_text');
@@ -355,174 +366,10 @@ function cl_style_script(){
355
 
356
  echo "//--><!]]></script>";
357
 
358
- echo '<!-- end commentluv http://www.fiddyp.co.uk -->';
359
  $cl_script_added=1;
360
  }
361
 
362
  }
363
- // function to add menu page under options
364
-
365
- function cl_options_page(){
366
- // Pre-2.6 compatibility
367
- if ( ! defined( 'WP_CONTENT_URL' ) )
368
- define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
369
- if ( ! defined( 'WP_CONTENT_DIR' ) )
370
- define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
371
- if ( ! defined( 'WP_PLUGIN_URL' ) )
372
- define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
373
- if ( ! defined( 'WP_PLUGIN_DIR' ) )
374
- define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
375
-
376
- commentluv_setup();
377
- if(get_option('cl_reset')=="on"){
378
- update_option('cl_comment_text','[name]&#180;s last blog post..[lastpost]');
379
- update_option('cl_default_on','TRUE');
380
- update_option('cl_heart_tip','TRUE');
381
- update_option('cl_style','border:2px solid #ffffff; display:block; padding:4px;');
382
- update_option('cl_author_id','author');
383
- update_option('cl_site_id','url');
384
- update_option('cl_comment_id','comment');
385
- update_option('cl_commentform_id','');
386
- update_option('cl_badge','ACL88x31-white.gif');
387
- update_option('cl_author_type','name');
388
- update_option('cl_url_type','name');
389
- update_option('cl_textarea_type','name');
390
- update_option('cl_click_track','on');
391
- update_option('cl_showtext','CommentLuv Enabled');
392
- update_option('cl_reset','off');
393
- update_option('cl_badge_pos','');
394
- update_option('cl_prepend','');
395
- update_option('cl_select_text','Choose a different post to show');
396
- }
397
- ?>
398
- <div class="wrap">
399
-
400
- <form method="post" action="options.php" id="options">
401
- <?php
402
- if(function_exists('wpmu_create_blog'))
403
- wp_nonce_field('commentluv-options');
404
- else
405
- wp_nonce_field('update-options');
406
- ?>
407
- <h2><?php _e('CommentLuv Wordpress Plugin','commentluv')?></h2>
408
- <p><?php _e('This plugin takes the url from the comment form and tries to parse the feed of the site and display the last entry made','commentluv')?></p>
409
- <p><?php _e('If you have any questions, comments or if you have a good idea that you would like to see in the next version of CommentLuv, please visit','commentluv')?> <a href="http://www.fiddyp.co.uk" target="_blank">FiddyP Blog</a> <?php _e('or','commentluv')?> <a href="http://www.fiddyp.co.uk/support/"><?php _e('support forum','commentluv')?></a> <?php _e('and let me know','commentluv')?>.</p>
410
- <h3><?php _e('Options','commentluv')?></h3>
411
- <p><?php _e('Enter the text you want displayed in the comment.','commentluv')?></p>
412
- <table class="form-table">
413
- <tr>
414
- <td colspan="2">
415
- <input class="form-table" name="cl_comment_text" value="<?php echo get_option('cl_comment_text');?>">
416
- </td>
417
- </tr>
418
- <tr>
419
- <td colspan="2">
420
- <?php _e('Text displayed in the select box','commentluv');?>
421
- <input class="form-table" name="cl_select_text" value="<?php echo get_option('cl_select_text');?>">
422
- </td>
423
- </tr>
424
- <tr>
425
- <td width="29%"><?php _e('Choose to have CommentLuv on by default?','commentluv')?></td>
426
- <td width="71%"><select name="cl_default_on">
427
- <option <?php if(get_option('cl_default_on')=="TRUE") {echo "selected=selected";}?> >TRUE</option>
428
- <option <?php if(get_option('cl_default_on')=="FALSE") { echo "selected=selected";}?> >FALSE</option>
429
- </select></td>
430
- </tr>
431
- <tr>
432
- <td width="29%"><?php _e('Choose to have CommentLuv Info box?','commentluv')?></td>
433
- <td width="71%"><select name="cl_heart_tip">
434
- <option <?php if(get_option('cl_heart_tip')=="TRUE") {echo "selected=selected";}?> >TRUE</option>
435
- <option <?php if(get_option('cl_heart_tip')=="FALSE") { echo "selected=selected";}?> >FALSE</option>
436
- </select></td>
437
- </tr>
438
- </table>
439
- <h3><?php _e('Styling')?></h3>
440
- <p><?php _e('Wordpress doesn\'t allow a class to be applied to a paragraph in the comment area so we have to wrap the last blog post text in nested tags and apply styling to that instead.','commentluv')?></p>
441
- <p><?php _e('Enter css styling to apply to comment','commentluv')?></strong> (<em><?php _e('inserted as','commentluv')?></em> &lt;style type="text/css"&gt;abbr em { border:2px; etc }&lt;/style&gt;)</p>
442
- <table class="form-table">
443
- <tr>
444
- <td valign="top" colspan="2"><input class="form-table" name="cl_style" value="<?php echo get_option('cl_style');?>"></td>
445
- </tr>
446
- </table>
447
- <h3><?php _e('Comment Form Identification','commentluv')?></h3>
448
- <p><?php _e('Enter the ID or NAME value for the input fields on your comment form.','commentluv')?></p>
449
- <p><?php _e('Check your comment form fields to see if they use ID= or NAME= and select the appropriate type below','commentluv')?><br/>
450
- <?php _e('Visit CommentLuv.com if you need instructions','commentluv')?></p>
451
- <table class="form-table">
452
- <tr>
453
- <td><?php _e('Authors Name field ID','commentluv')?></td>
454
- <td><select name="cl_author_type">
455
- <option <?php if(get_option('cl_author_type')=="ID" ){echo "selected=selected";}?> >ID</option>
456
- <option <?php if(get_option('cl_author_type')=="name") {echo "selected=selected";}?> >name</option>
457
- </td>
458
- <td><input name="cl_author_id" value="<?php echo get_option('cl_author_id');?>"></td>
459
- </tr>
460
- <tr>
461
- <td><?php _e('Authors URL field ID','commentluv')?></td>
462
- <td><select name="cl_url_type">
463
- <option <?php if(get_option('cl_url_type')=="ID") {echo "selected=selected";}?> >ID</option>
464
- <option <?php if(get_option('cl_url_type')=="name") {echo "selected=selected";}?> >name</option>
465
- </td>
466
- <td><input name="cl_site_id" value="<?php echo get_option('cl_site_id');?>"></td>
467
- </tr>
468
- <tr>
469
- <td><?php _e('Comment Text Area ID','commentluv')?></td>
470
- <td><select name="cl_textarea_type">
471
- <option <?php if(get_option('cl_textarea_type')=="ID") {echo "selected=selected";}?> >ID</option>
472
- <option <?php if(get_option('cl_textarea_type')=="name" ){echo "selected=selected";}?> >name</option>
473
- </td>
474
- <td><input name="cl_comment_id" value="<?php echo get_option('cl_comment_id');?>"></td>
475
- </tr>
476
- </table>
477
- <h3><?php _e('Display Badge','commentluv')?></h3>
478
- <p>Many thanks to <a href="http://byteful.com">Byteful Traveller</a> for creating these images.</p>
479
- <table class="form-table">
480
- <tr>
481
- <td><?php _e('Choose badge to display','commentluv')?> </td>
482
- <?php $badge=get_option('cl_badge');?>
483
- <td><label><input type="radio" <?php if($badge=="CL91x17-white.gif"){echo "checked ";}?> name="cl_badge" value="CL91x17-white.gif"><img src="<?php echo WP_PLUGIN_URL;?>/commentluv/CL91x17-white.gif"/></label></td>
484
- <td><label><input type="radio" <?php if($badge=="CL91x17-black.gif"){echo "checked ";}?> name="cl_badge" value="CL91x17-black.gif"><img src="<?php echo WP_PLUGIN_URL;?>/commentluv/CL91x17-black.gif"/></label></td>
485
- <td><label><input type="radio" <?php if($badge=="ACL88x31-white.gif"){echo "checked ";}?> name="cl_badge" value="ACL88x31-white.gif"><img src="<?php echo WP_PLUGIN_URL;?>/commentluv/ACL88x31-white.gif"/></label></td>
486
- <td><label><input type="radio" <?php if($badge=="ACL88x31-black.gif"){echo "checked ";}?> name="cl_badge" value="ACL88x31-black.gif"><img src="<?php echo WP_PLUGIN_URL;?>/commentluv/ACL88x31-black.gif"/></label></td>
487
- <td><label><input type="radio" <?php if($badge=="nothing.gif"){echo "checked ";}?> name="cl_badge" value="nothing.gif"><?php _e('Show nothing','commentluv')?></label></td>
488
- </tr></table>
489
- <table class="form-table">
490
- <tr><td><label><input type="radio" <?php if($badge=="text"){echo "checked ";}?> name="cl_badge" value="text"><?php _e('Show text','commentluv')?></label> <input class="form-table" type="text" name="cl_showtext" value="<?php echo get_option('cl_showtext');?>"></input></td><td></td><td><label><?php _e('Append badge to (DIV or object ID) optional','commentluv')?><input class="form-table" type="text" name="cl_badge_pos" value="<?php echo get_option('cl_badge_pos');?>"></input></td><td></td><td><label><?php _e('Prepend html before badge or text (optional)','commentluv')?></label><input class="form-table" type="text" name="cl_prepend" value="<?php echo htmlspecialchars(get_option('cl_prepend'));?>"></input></tr>
491
- </table>
492
- <h3><?php _e('CommentLuv Member ID','commentluv')?></h3>
493
- <p><?php _e('If you register your site for free at','commentluv')?> <a href="http://www.commentluv.com">CommentLuv.com</a> <?php _e('you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked. Do NOT enter a number if you do not have one','commentluv')?></p>
494
- <table class="form-table">
495
- <tr><td><?php _e('Your CommentLuv.com member ID','commentluv')?></td>
496
- <td><input name="cl_member_id" value="<?php echo get_option('cl_member_id');?>"></td>
497
- </tr>
498
- <tr><td><?php _e('Enable click tracking?','commentluv')?></td>
499
- <td><input type="checkbox" name="cl_click_track" <?php if(get_option('cl_click_track')=="on"){echo "checked";};?> /></td>
500
- </tr>
501
- </table>
502
- <input type="hidden" name="page_options" value="cl_comment_text,cl_default_on,cl_style,cl_author_id,cl_site_id,cl_comment_id,cl_commentform_id,cl_badge,cl_member_id,cl_click_track,cl_form_type,cl_author_type,cl_url_type,cl_textarea_type,cl_reset,cl_showtext,cl_badge_pos,cl_prepend,cl_select_text,cl_heart_tip" />
503
- <input type="hidden" name="action" value="update" />
504
- <input type="hidden" name="option_page" value="commentluv" />
505
- <p><input type="checkbox" name="cl_reset"/><?php _e('Reset to Default Settings','commentluv')?>
506
- <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options') ?>" /></p>
507
- </form>
508
- <p>Andy Bailey<br/>
509
- Fiddyp.co.uk
510
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
511
- <input type="hidden" name="cmd" value="_donations">
512
- <input type="hidden" name="business" value="root@teamplaylotto.com">
513
- <input type="hidden" name="item_name" value="CommentLuv">
514
- <input type="hidden" name="no_shipping" value="0">
515
- <input type="hidden" name="no_note" value="1">
516
- <input type="hidden" name="currency_code" value="USD">
517
- <input type="hidden" name="tax" value="0">
518
- <input type="hidden" name="lc" value="GB">
519
- <input type="hidden" name="bn" value="PP-DonationsBF">
520
- <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
521
- <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
522
- </form>
523
-
524
- </div>
525
- <?php }
526
-
527
 
528
  ?>
2
  Plugin Name: commentluv
3
  Plugin URI: http://www.commentluv.com/download/ajax-commentluv-installation/
4
  Description: Plugin to show a link to the last post from the commenters blog in their comment. Just activate and it's ready. Will parse a feed from most sites that have a feed location specified in its head html. See the <a href="options-general.php?page=commentluv">Settings Page</a> for styling and text output options.
5
+ Version: 2.61
6
  Author: Andy Bailey
7
  Author URI: http://www.fiddyp.co.uk/
8
 
10
  You can now edit the options from the dashboard
11
  *********************************************************************
12
  updates:
13
+ 2.6.1 - 21 Dec 08 - add intense debate
14
+ 2.6 - 6 dec 08 - separate settings page. compatibility with 2.7
15
+ 21 nov 08 - use new javascript so set form field values as just the names instead of [textarea[name='comment'] just use comment
16
+ 2.5.5 - 31 oct 08 - add function for wp_prototype_before_jquery for added compatibility
17
  2.5.4 - 6 oct 08 - changed included tip.php so it has curl too. added version number to url for easier remote file functions. and changed commentluv.js to prevent
18
  double firing of cl_dostuff (Marco Luthe from http://www.saphod.net/ (is a geek!))
19
  changed tip.php so it can work with curl or iframe so everyone can use it. thanks espen from http://www.espeniversen.com/ for testing
125
  add_action('comment_form','cl_add_fields');
126
  add_filter('preprocess_comment','cl_post',0);
127
  add_filter('whitelist_options','commentluv_alter_whitelist_options');
128
+ add_filter('plugin_action_links', 'commentluv_action', -10, 2);
129
  register_activation_hook(__FILE__, 'commentluv_activation');
130
+
131
+ if (!function_exists('wp_prototype_before_jquery')) {
132
+ function wp_prototype_before_jquery( $js_array ) {
133
+ if ( false === $jquery = array_search( 'jquery', $js_array ) )
134
+ return $js_array;
135
+
136
+ if ( false === $prototype = array_search( 'prototype', $js_array ) )
137
+ return $js_array;
138
+
139
+ if ( $prototype < $jquery )
140
+ return $js_array;
141
+
142
+ unset($js_array[$prototype]);
143
+
144
+ array_splice( $js_array, $jquery, 0, 'prototype' );
145
+
146
+ return $js_array;
147
+ }
148
+
149
+ add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
150
+ }
151
+
152
  wp_enqueue_script('jquery');
153
 
154
+
155
+ function commentluv_action($links, $file) {
156
+ // adds the link to the settings page in the plugin list page
157
+ if ($file == plugin_basename(dirname(__FILE__).'/commentluv.php'))
158
+ $links[] = "<a href='options-general.php?page=commentluv/commentluv.php'>" . __('Settings', 'CommentLuv') . "</a>";
159
+ return $links;
160
+ }
161
+
162
+ // Add the administrative settings to the "Settings" menu by calling manage_page function
163
+ function show_cl_options() {
164
+ if ( function_exists( 'add_submenu_page' ) ) {
165
+ add_options_page( 'CommentLuv', 'CommentLuv', 8, __FILE__, 'commentluv_manage_page' );
166
+ }
167
+ }
168
+ // Include the Manager page from file in plugin directory
169
+ function commentluv_manage_page() {
170
+ include(dirname(__FILE__).'/commentluv-manager.php' );
171
+ }
172
  // clean input string
173
  function cleanInput($input) {
174
  return htmlentities(trim($input), ENT_QUOTES);
217
  $commentluv_is_setup=1;
218
  }
219
 
 
 
 
 
 
 
 
 
220
  // add fields for registered user so ajaxcl will work for logged on users
221
  function cl_add_fields($id){
222
  if (is_user_logged_in()){
263
  }
264
  }
265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
 
267
  // add style to head
268
  function cl_style_script(){
286
  $cl_author_id=get_option('cl_author_id');
287
  $cl_site_id=get_option('cl_site_id');
288
 
 
 
 
 
289
  $cl_version=get_option('cl_version');
290
  $cl_comment_text=get_option('cl_comment_text');
291
  $cl_default_on=get_option('cl_default_on');
306
 
307
  // start the javascript output
308
  if(is_single()) {
309
+ echo '<!-- Styling and script added by commentluv 2.61 http://www.commentluv.com -->';
310
+
311
  echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; } </style>';
312
+ echo "\n<script type=\"text/javascript\" src=\"".WP_PLUGIN_URL."/commentluv/js/commentluv";
313
+ if(function_exists(id_menu_items)) { echo "ID";} //get_option('cl_intense')=="on")
314
+ echo ".js\"></script>";
315
  if(get_option('cl_heart_tip')=="TRUE"){
316
  echo "<link rel=\"stylesheet\" href=\"".WP_PLUGIN_URL."/commentluv/include/tipstyle.css\" type=\"text/css\" />\n";
317
  echo "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--\n";
318
+ echo "jQuery(document).ready(function(){\n";
319
+ (function_exists(id_menu_items)) ? $selector = ".idc-c-t" : $selector = "abbr";
320
+ echo "jQuery(\"$selector em a\").each(function(i){\n".
321
  "jQuery(this).after(' <a class=\'jTip\' id=\'' + i + '\' name=\'My CommentLuv Profile\' href=\'".
322
  WP_PLUGIN_URL."/commentluv/include/tip.php?width=375&url=' + jQuery(this).attr('href') +'\'><img src=\'".
323
+ WP_PLUGIN_URL."/commentluv/images/littleheart.png\' alt=\'#\' border=\'0\' /></a>');\n".
324
  "});\n".
325
  "JT_init();});\n";
326
  echo "//--><!]]></script>\n";
329
  echo "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--";
330
  echo "\n var cl_settings=new Array();\n";
331
  echo "cl_settings[0]=\"$append_id\";\n";
332
+ echo "cl_settings[1]=\"$cl_author_id\";\n";
333
+ echo "cl_settings[2]=\"$cl_site_id\";\n";
334
+ echo "cl_settings[3]=\"$cl_comment_id\";\n";
335
 
336
  // select text
337
  $cl_select_text=get_option('cl_select_text');
366
 
367
  echo "//--><!]]></script>";
368
 
369
+ echo '<!-- end commentluv http://www.commentluv.com -->';
370
  $cl_script_added=1;
371
  }
372
 
373
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
 
375
  ?>
commentluv.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: CommentLuv 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-10-02 14:21-0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Andy Bailey <andy@teamplaylotto.com>\n"
8
  "Language-Team: <andy@teamplaylotto.com>\n"
@@ -15,147 +15,187 @@ msgstr ""
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SearchPath-0: C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\commentluv\n"
17
 
18
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:399
 
 
 
 
 
 
 
19
  msgid "CommentLuv Wordpress Plugin"
20
  msgstr ""
21
 
22
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:400
 
23
  msgid "This plugin takes the url from the comment form and tries to parse the feed of the site and display the last entry made"
24
  msgstr ""
25
 
26
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:401
 
27
  msgid "If you have any questions, comments or if you have a good idea that you would like to see in the next version of CommentLuv, please visit"
28
  msgstr ""
29
 
30
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:401
 
31
  msgid "or"
32
  msgstr ""
33
 
34
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:401
 
35
  msgid "support forum"
36
  msgstr ""
37
 
38
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:401
 
39
  msgid "and let me know"
40
  msgstr ""
41
 
42
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:402
 
43
  msgid "Options"
44
  msgstr ""
45
 
46
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:403
 
47
  msgid "Enter the text you want displayed in the comment."
48
  msgstr ""
49
 
50
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:412
 
51
  msgid "Text displayed in the select box"
52
  msgstr ""
53
 
54
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:417
 
55
  msgid "Choose to have CommentLuv on by default?"
56
  msgstr ""
57
 
58
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:424
 
59
  msgid "Choose to have CommentLuv Info box?"
60
  msgstr ""
61
 
62
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:431
 
63
  msgid "Styling"
64
  msgstr ""
65
 
66
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:432
 
67
  msgid "Wordpress doesn't allow a class to be applied to a paragraph in the comment area so we have to wrap the last blog post text in nested tags and apply styling to that instead."
68
  msgstr ""
69
 
70
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:433
 
71
  msgid "Enter css styling to apply to comment"
72
  msgstr ""
73
 
74
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:433
 
75
  msgid "inserted as"
76
  msgstr ""
77
 
78
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:439
 
79
  msgid "Comment Form Identification"
80
  msgstr ""
81
 
82
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:440
 
83
  msgid "Enter the ID or NAME value for the input fields on your comment form."
84
  msgstr ""
85
 
86
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:441
 
87
  msgid "Check your comment form fields to see if they use ID= or NAME= and select the appropriate type below"
88
  msgstr ""
89
 
90
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:442
 
91
  msgid "Visit CommentLuv.com if you need instructions"
92
  msgstr ""
93
 
94
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:444
95
- msgid "Comment Form ID"
96
- msgstr ""
97
-
98
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:449
99
  msgid "Authors Name field ID"
100
  msgstr ""
101
 
102
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:457
 
103
  msgid "Authors URL field ID"
104
  msgstr ""
105
 
106
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:465
 
107
  msgid "Comment Text Area ID"
108
  msgstr ""
109
 
110
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:473
 
111
  msgid "Display Badge"
112
  msgstr ""
113
 
114
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:477
 
115
  msgid "Choose badge to display"
116
  msgstr ""
117
 
118
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:483
 
119
  msgid "Show nothing"
120
  msgstr ""
121
 
122
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:486
 
123
  msgid "Show text"
124
  msgstr ""
125
 
126
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:486
 
127
  msgid "Append badge to (DIV or object ID) optional"
128
  msgstr ""
129
 
130
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:486
 
131
  msgid "Prepend html before badge or text (optional)"
132
  msgstr ""
133
 
134
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:488
 
135
  msgid "CommentLuv Member ID"
136
  msgstr ""
137
 
138
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:489
 
139
  msgid "If you register your site for free at"
140
  msgstr ""
141
 
142
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:489
 
143
  msgid "you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked. Do NOT enter a number if you do not have one"
144
  msgstr ""
145
 
146
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:491
 
147
  msgid "Your CommentLuv.com member ID"
148
  msgstr ""
149
 
150
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:494
 
151
  msgid "Enable click tracking?"
152
  msgstr ""
153
 
154
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:501
 
155
  msgid "Reset to Default Settings"
156
  msgstr ""
157
 
158
- #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:502
159
- msgid "Update Options"
 
 
 
 
160
  msgstr ""
161
 
2
  msgstr ""
3
  "Project-Id-Version: CommentLuv 2.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-24 14:51-0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Andy Bailey <andy@teamplaylotto.com>\n"
8
  "Language-Team: <andy@teamplaylotto.com>\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SearchPath-0: C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\commentluv\n"
17
 
18
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:77
19
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:207
20
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:531
21
+ msgid "Update Options"
22
+ msgstr ""
23
+
24
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:107
25
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:430
26
  msgid "CommentLuv Wordpress Plugin"
27
  msgstr ""
28
 
29
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:108
30
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:431
31
  msgid "This plugin takes the url from the comment form and tries to parse the feed of the site and display the last entry made"
32
  msgstr ""
33
 
34
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
35
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
36
  msgid "If you have any questions, comments or if you have a good idea that you would like to see in the next version of CommentLuv, please visit"
37
  msgstr ""
38
 
39
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
40
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
41
  msgid "or"
42
  msgstr ""
43
 
44
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
45
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
46
  msgid "support forum"
47
  msgstr ""
48
 
49
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:109
50
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:432
51
  msgid "and let me know"
52
  msgstr ""
53
 
54
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:110
55
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:433
56
  msgid "Options"
57
  msgstr ""
58
 
59
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:111
60
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:434
61
  msgid "Enter the text you want displayed in the comment."
62
  msgstr ""
63
 
64
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:120
65
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:443
66
  msgid "Text displayed in the select box"
67
  msgstr ""
68
 
69
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:125
70
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:448
71
  msgid "Choose to have CommentLuv on by default?"
72
  msgstr ""
73
 
74
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:132
75
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:455
76
  msgid "Choose to have CommentLuv Info box?"
77
  msgstr ""
78
 
79
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:140
80
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:462
81
  msgid "Styling"
82
  msgstr ""
83
 
84
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:141
85
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:463
86
  msgid "Wordpress doesn't allow a class to be applied to a paragraph in the comment area so we have to wrap the last blog post text in nested tags and apply styling to that instead."
87
  msgstr ""
88
 
89
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:142
90
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:464
91
  msgid "Enter css styling to apply to comment"
92
  msgstr ""
93
 
94
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:142
95
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:464
96
  msgid "inserted as"
97
  msgstr ""
98
 
99
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:148
100
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:470
101
  msgid "Comment Form Identification"
102
  msgstr ""
103
 
104
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:149
105
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:471
106
  msgid "Enter the ID or NAME value for the input fields on your comment form."
107
  msgstr ""
108
 
109
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:150
110
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:472
111
  msgid "Check your comment form fields to see if they use ID= or NAME= and select the appropriate type below"
112
  msgstr ""
113
 
114
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:151
115
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:473
116
  msgid "Visit CommentLuv.com if you need instructions"
117
  msgstr ""
118
 
119
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:155
120
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:478
 
 
 
121
  msgid "Authors Name field ID"
122
  msgstr ""
123
 
124
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:163
125
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:486
126
  msgid "Authors URL field ID"
127
  msgstr ""
128
 
129
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:171
130
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:494
131
  msgid "Comment Text Area ID"
132
  msgstr ""
133
 
134
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:179
135
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:502
136
  msgid "Display Badge"
137
  msgstr ""
138
 
139
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:183
140
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:506
141
  msgid "Choose badge to display"
142
  msgstr ""
143
 
144
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:189
145
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:512
146
  msgid "Show nothing"
147
  msgstr ""
148
 
149
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:192
150
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:515
151
  msgid "Show text"
152
  msgstr ""
153
 
154
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:192
155
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:515
156
  msgid "Append badge to (DIV or object ID) optional"
157
  msgstr ""
158
 
159
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:192
160
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:515
161
  msgid "Prepend html before badge or text (optional)"
162
  msgstr ""
163
 
164
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:194
165
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:517
166
  msgid "CommentLuv Member ID"
167
  msgstr ""
168
 
169
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:195
170
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:518
171
  msgid "If you register your site for free at"
172
  msgstr ""
173
 
174
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:195
175
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:518
176
  msgid "you will be able to open up lots of features that are for members only like link tracking so you can see which of the comments you make on CommentLuv blogs are getting the last blog post clicked. Do NOT enter a number if you do not have one"
177
  msgstr ""
178
 
179
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:197
180
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:520
181
  msgid "Your CommentLuv.com member ID"
182
  msgstr ""
183
 
184
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:200
185
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:523
186
  msgid "Enable click tracking?"
187
  msgstr ""
188
 
189
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:208
190
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluvID.php:530
191
  msgid "Reset to Default Settings"
192
  msgstr ""
193
 
194
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv-manager.php:208
195
+ msgid "Are you sure you want to reset your settings? Press OK to continue"
196
+ msgstr ""
197
+
198
+ #: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:158
199
+ msgid "Settings"
200
  msgstr ""
201
 
js/commentluv.js CHANGED
@@ -1,30 +1,40 @@
 
1
  function commentluv(cl_settings){
2
  jQuery(document).ready(function() {
3
- parentformname = jQuery(cl_settings[3]).parents("form").attr("id");
4
  if(cl_settings[0]==""){
5
- cl_settings[0]=parentformname;
 
 
6
  }
 
 
 
 
 
7
  var cl_badge=cl_settings[7];
8
  var checked=cl_settings[9];
9
- jQuery('#'+cl_settings[0]).after(cl_settings[12]+'<div id="mylastpostbox"><div style="float:left"><input type="checkbox" id="luv" '+cl_settings[9]+'/></div><div style="float:left"><span id="mylastpost" style="clear: both"><a href="http://www.commentluv.com">'+cl_badge+'</a></span>' + '<br/><select name="lastposts" id="lastposts"></select></div></div>');
10
- jQuery('#'+parentformname).append('<input type="hidden" id="cl_post" name="cl_post"></input>');
11
  jQuery('#lastposts').hide();
12
  if(cl_settings[10]=="1"){
13
  var cl_member_id=cl_settings[14];
14
  var cl_version=cl_settings[15];
 
15
  jQuery('abbr em a').click(function(){
16
  var url=jQuery(this).attr('href');
17
  var thelinkobj=jQuery(this);
 
18
  var addit=url + "&cl_member_id=" + cl_member_id + "&callback=?";
19
  var clurl="http://www.commentluv.com/commentluvinc/ajaxcl_click821.php?url=" + addit;
20
  jQuery.getJSON(clurl,function(data) {
21
  jQuery.each(data.msg,function(i,item) {
22
- jQuery(thelinkobj).text(data.msg[i].text);})
23
- window.location=url;
24
- }); return false;
25
  });
26
  }
27
- jQuery(cl_settings[3]).focus(function(){
28
  cl_dostuff(cl_settings);
29
  });
30
  jQuery('#lastposts').change(function(){
@@ -34,10 +44,11 @@ function commentluv(cl_settings){
34
  jQuery('#mylastpost a').replaceWith('<a href="' + url + '">' + title + '</a>');
35
  jQuery('#cl_post').val('<a href="' + url + '">' + title + '</a>');
36
  });
37
- jQuery(cl_settings[2]).change(function(){
38
  if(jQuery('#luv').is(":checked") && jQuery('#cl_post').val()!=""){
39
  jQuery('#lastposts').empty();
40
  cl_dostuff(cl_settings);
 
41
  //jQuery(cl_settings[3]).bind('focus',cl_dostuff(cl_settings));
42
  }
43
  });
@@ -57,11 +68,11 @@ function commentluv(cl_settings){
57
  });
58
 
59
  function cl_dostuff(cl_settings){
60
- var check=jQuery(cl_settings[2]).val();
61
  // return if no url or checkbox is unticked or is admin
62
  if(!check || !jQuery('#luv').is(":checked") || cl_settings[13]) { return }
63
- var xyz=jQuery(cl_settings[2]).val();
64
- var name=jQuery(cl_settings[1]).val();
65
  var url="http://www.commentluv.com/commentluvinc/ajaxcl8254.php?url="+xyz+"&version=" + cl_version +"&callback=?";
66
  jQuery.getJSON(url,function(data){
67
  jQuery.each(data.links, function(i,item){
@@ -73,8 +84,10 @@ function commentluv(cl_settings){
73
  if(jQuery('#luv').is(":checked")){
74
  jQuery('#cl_post').val('<a href="' + data.links[0].url + '">' + data.links[0].title + '</a>');
75
  }
76
- jQuery(cl_settings[3]).unbind();
77
  });
 
 
78
  }
79
  });
80
  }
1
+ jQuery.noConflict();
2
  function commentluv(cl_settings){
3
  jQuery(document).ready(function() {
4
+ var formObj = jQuery("textarea[name='" + cl_settings[3] + "']").parents("form"); // get form object that is parent of textarea named "comment"
5
  if(cl_settings[0]==""){
6
+ cl_settings[0]=formObj;
7
+ } else {
8
+ formObj = '#' + cl_settings[0];
9
  }
10
+ // auto set url, comment and author field
11
+
12
+ var urlObj = jQuery("input[name='" + cl_settings[2] + "']",formObj);
13
+ var comObj = jQuery("textarea[name='" + cl_settings[3] + "']",formObj);
14
+ var autObj = jQuery("input[name='" + cl_settings[1] + "']",formObj);
15
  var cl_badge=cl_settings[7];
16
  var checked=cl_settings[9];
17
+ jQuery(formObj).after(cl_settings[12]+'<div id="mylastpostbox"><div style="float:left"><input type="checkbox" id="luv" '+cl_settings[9]+'/></div><div style="float:left"><span id="mylastpost" style="clear: both"><a href="http://www.commentluv.com">'+cl_badge+'</a></span>' + '<br/><select name="lastposts" id="lastposts"></select></div></div><div style="clear:both"></div>');
18
+ jQuery(formObj).append('<input type="hidden" id="cl_post" name="cl_post"></input>');
19
  jQuery('#lastposts').hide();
20
  if(cl_settings[10]=="1"){
21
  var cl_member_id=cl_settings[14];
22
  var cl_version=cl_settings[15];
23
+ // do click on last blog post link, store click, show click, open in new window
24
  jQuery('abbr em a').click(function(){
25
  var url=jQuery(this).attr('href');
26
  var thelinkobj=jQuery(this);
27
+ jQuery(thelinkobj).attr('target','_blank');
28
  var addit=url + "&cl_member_id=" + cl_member_id + "&callback=?";
29
  var clurl="http://www.commentluv.com/commentluvinc/ajaxcl_click821.php?url=" + addit;
30
  jQuery.getJSON(clurl,function(data) {
31
  jQuery.each(data.msg,function(i,item) {
32
+ jQuery(thelinkobj).text(data.msg[i].text + jQuery(thelinkobj).text());})
33
+ return true;
34
+ });
35
  });
36
  }
37
+ jQuery(comObj).focus(function(){
38
  cl_dostuff(cl_settings);
39
  });
40
  jQuery('#lastposts').change(function(){
44
  jQuery('#mylastpost a').replaceWith('<a href="' + url + '">' + title + '</a>');
45
  jQuery('#cl_post').val('<a href="' + url + '">' + title + '</a>');
46
  });
47
+ jQuery(urlObj).change(function(){
48
  if(jQuery('#luv').is(":checked") && jQuery('#cl_post').val()!=""){
49
  jQuery('#lastposts').empty();
50
  cl_dostuff(cl_settings);
51
+ jQuery(comObj).unbind();
52
  //jQuery(cl_settings[3]).bind('focus',cl_dostuff(cl_settings));
53
  }
54
  });
68
  });
69
 
70
  function cl_dostuff(cl_settings){
71
+ var check=jQuery(urlObj).val();
72
  // return if no url or checkbox is unticked or is admin
73
  if(!check || !jQuery('#luv').is(":checked") || cl_settings[13]) { return }
74
+ var xyz=jQuery(urlObj).val();
75
+ var name=jQuery(autObj).val();
76
  var url="http://www.commentluv.com/commentluvinc/ajaxcl8254.php?url="+xyz+"&version=" + cl_version +"&callback=?";
77
  jQuery.getJSON(url,function(data){
78
  jQuery.each(data.links, function(i,item){
84
  if(jQuery('#luv').is(":checked")){
85
  jQuery('#cl_post').val('<a href="' + data.links[0].url + '">' + data.links[0].title + '</a>');
86
  }
87
+
88
  });
89
+ jQuery(comObj).unbind();
90
+
91
  }
92
  });
93
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: Andy Bailey
3
  Tags: comments, linkluv
4
  Requires at least: 2.5
5
- Tested up to: 2.6.2
6
  Stable tag: 2.5.4
7
 
8
  Appends a titled link using AJAX to the authors last blog post on their comment giving back some luv to the people that join your discussion. Compatible with logged on users and Wordpress MU. Visit CommentLuv.com for detailed instructions on features.
2
  Contributors: Andy Bailey
3
  Tags: comments, linkluv
4
  Requires at least: 2.5
5
+ Tested up to: 2.7
6
  Stable tag: 2.5.4
7
 
8
  Appends a titled link using AJAX to the authors last blog post on their comment giving back some luv to the people that join your discussion. Compatible with logged on users and Wordpress MU. Visit CommentLuv.com for detailed instructions on features.