Version Description
Download this release
Release Info
Developer | teamplaylotto |
Plugin | CommentLuv |
Version | 2.1 |
Comparing to | |
See all releases |
Version 2.1
- ACL88x31-black.gif +0 -0
- ACL88x31-white.gif +0 -0
- CL91x17-black.gif +0 -0
- CL91x17-white.gif +0 -0
- commentluv-pt_PT.mo +0 -0
- commentluv-pt_PT.po +146 -0
- commentluv.mo +0 -0
- commentluv.php +471 -0
- commentluv.po +141 -0
- readme.txt +96 -0
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
ACL88x31-black.gif
ADDED
Binary file
|
ACL88x31-white.gif
ADDED
Binary file
|
CL91x17-black.gif
ADDED
Binary file
|
CL91x17-white.gif
ADDED
Binary file
|
commentluv-pt_PT.mo
ADDED
Binary file
|
commentluv-pt_PT.po
ADDED
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
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"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: English\n"
|
13 |
+
"X-Poedit-Country: UNITED KINGDOM\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e\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.php:295
|
19 |
+
msgid "Do Not Show"
|
20 |
+
msgstr "Nã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 último artigo do url inserido no formulário dos comentá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úvida, comentários ou sugestã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ó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çõ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á aparecer no comentá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ão permite que a uma class seja aplicado um parágrafo no àrea dos comentários, então é necessário passar o ú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á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ário de Identificação do Comentá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ário de comentá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ário de comentá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ções"
|
93 |
+
|
94 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:396
|
95 |
+
msgid "Comment Form ID"
|
96 |
+
msgstr "ID do Formulário de Comentá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 àrea de texto do comentá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ás a possibilidade de ter mais funcionalidades que são exclusivas a membros como rastrear os links dos comentários que fez em blogs que utilizam o CommentLuv. NÃO introduzas um número se nã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ções"
|
141 |
+
|
142 |
+
#~ msgid "do NOT use single quotes"
|
143 |
+
#~ msgstr "NÃO usar plicas"
|
144 |
+
#~ msgid "or double quotes"
|
145 |
+
#~ msgstr "ou aspas"
|
146 |
+
|
commentluv.mo
ADDED
Binary file
|
commentluv.php
ADDED
@@ -0,0 +1,471 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php /*
|
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.1
|
6 |
+
Author: Andy Bailey
|
7 |
+
Author URI: http://www.fiddyp.co.uk/
|
8 |
+
|
9 |
+
*********************************************************************
|
10 |
+
You can now edit the options from the dashboard
|
11 |
+
*********************************************************************
|
12 |
+
updates:
|
13 |
+
2.1 23/9/8 Change to final remote file location and updated readme and download pages
|
14 |
+
2.0b r13 - 22/9/8 logged on users now can get luv (missed out URL field ID doh!) www.macbrosplace.com
|
15 |
+
2.0b r12 - 21/9/8 remove onsubmit event from jquery script and leave it to wordpress to insert the value. Have to
|
16 |
+
add one more filter hook for the pre-comment save and do all the fandanglery there. (issue reported by http://www.macbrosplace.com)
|
17 |
+
2.0b r11 - 20/9/8 ooh, I put in click tracking for admin if it is enabled
|
18 |
+
2.0b r11 - 20/9/8 add text to options page and apostrophe junkies fix (http://weblog.biznz.net) :-)
|
19 |
+
2.0b r10 - 16/9/8 new remote files for compatible click tracking and remote fetching
|
20 |
+
2.0b r9 - 15/9/8 adjust form so user can choose between ID or name for their comment form fields (thanks ovidiu! http://zice.ro)
|
21 |
+
2.0b r8 - 14/9/8 compatible with brians threaded comments. (override submit function so it activates addthelink()
|
22 |
+
2.0b r7 - 13/9/8 much better way for the link to be added to the textarea. Also dont add if there is an existing last blog post in the text area
|
23 |
+
2.0b r6 - 13/9/8 fixed for blank url. made click tracking optional and added warning to settings page about using ID only
|
24 |
+
2.0b r5 - 11/9/8 field for verification or site id code, tracking of links, new remote acl script, message on error
|
25 |
+
2.0b r4 - 10/9/8 Changed code slightly to allow tracking of commentluv links. Updated text output option if plugin is less than version 204
|
26 |
+
2.0b r4 - 9/9/8 added more style to head to make select box 300px and made check before comment is returned to submit so the image isn't included if no post found. Updated lastposts.click to lasposts.change to make chrome work with change of entry
|
27 |
+
2.0b r3 - 7/9/8 changed remote script address (to adapt to database writes made in remote script)
|
28 |
+
2.0b r2 - 6/9/8 changed jquery so it doesn't select all selects - jQuery('#lastposts option:selected').text();
|
29 |
+
2.0b r2 - 5/9/8 change remote script to commentluv.com so it can use the database
|
30 |
+
2.0b r2 - 4/9/8 add whitelist options filter (http://mu.wordpress.org/forums/topic.php?id=9210)
|
31 |
+
2.0b r2 - 4/9/8 specific to MU
|
32 |
+
2.0b r1 - 4/9/8 tidy up options saving (testing by Ovidiu http://pacura.ru)
|
33 |
+
2.0b r1 - 3/9/8 use text given in settings page for inserted text
|
34 |
+
2.0b r1 - 3/9/8 make compatible with logged in user
|
35 |
+
2.0b r1 - 1/9/8 convert to AJAX enabled!!
|
36 |
+
1.98 - 210808 small change to label style
|
37 |
+
1.97 - change check for link returned
|
38 |
+
1.96 - check url to make sure it isn't pointing to a single file
|
39 |
+
1.95 - add referrer to curl options for new database options for remotecl6
|
40 |
+
1.94 - fix, style in settings wouldn't save
|
41 |
+
1.93 - change styling of comment
|
42 |
+
1.92 - fix case of 1 being output for feed return value
|
43 |
+
1.91 - fix option change for character encoding (forgot to add extra option to hidden field in option page html)
|
44 |
+
1.9 - changed retrieve url to fiddyp.com site because of hosting problem with commentluv.com
|
45 |
+
1.8 - added option to specify encoding of output - thanks me
|
46 |
+
1.7 - added steroids to the feed fetching routine, now no need to do all the fandangles of trying
|
47 |
+
to determine feed location and tidying up crappy characters. Now, output is in utf-8 with all
|
48 |
+
special characters staying put! thanks http://blog.mukispace.com
|
49 |
+
1.6 - make under comment and style in head xhtml valid - thanks http://www.untwistedvortex.com
|
50 |
+
1.5 - stupid urlencode.. pah
|
51 |
+
1.4 - some reports of code being passed back so check for more than 250 characters in returned string (quick fix only) thanks mama druid (http://www.mamadruid.com
|
52 |
+
found the problem! it was new server not executing php5 files... had to change url in plugin and upload standard php file to server
|
53 |
+
1.3 - clean returned link so it can't be used for msql injection
|
54 |
+
1.2 - add option for styling... thanks Jenny from http://thesocalledme.net
|
55 |
+
1.1 - add options page to allow for user to change displayed messages etc
|
56 |
+
1.0 - took ajax off and moved to remote find feed on commentluv.com
|
57 |
+
0.999 - need to take off internal feed parser due to excessive use of wp_options table
|
58 |
+
0.998 - gimme some AJAX! added div id "here" to below checkbox for showing the last post found by ajax
|
59 |
+
0.997 - add bit to allow user to change message by editing source code
|
60 |
+
0.996 - removed [noluv] and replaced with checkbox on form
|
61 |
+
0.995 - add option to not get feed if user enters [noluv] (thanks http://www.blogherald.com)
|
62 |
+
0.994 - added an option to read the feed output by my own routine to curl the users page
|
63 |
+
0.993 - added check for web-log: addition by Edward De Leau of http://edward.de.leau.net/
|
64 |
+
0.992 - detect trailing slash on author url and act accordingly
|
65 |
+
0.991 - move curl check to higher up the process so the plugin doesn't take longer than necessary
|
66 |
+
0.99 - allow for styles to be applied to last blog post text
|
67 |
+
0.98 - added ability to allow commenter to switch debug on within comments by putting [debugon] in the content
|
68 |
+
0.97 - add support for typepad and blogspt own domain blogs and more header alternate links and raised the priority on action so other plugins can play with the comment afterwards for nofollow
|
69 |
+
0.96 - handle the author url more efficiently
|
70 |
+
0.95 - rewrite of feed finding and parsing and added a timout increase to the magpie rss parsing function
|
71 |
+
0.94 - fix: not parsing some feedburner feeds that have an extra subdomain on the url
|
72 |
+
0.93 - use wp internal function to parse feed and improve find feed location
|
73 |
+
0.92 - update comments
|
74 |
+
0.91 - fix: compatibility with some other comment enhancing plugins so the link isn't repeated
|
75 |
+
0.9 - now wont output emptry string if no last post found (blogspot blog with own domain)
|
76 |
+
0.8 - now prevents parsing on a trackback, pingback or admin comment
|
77 |
+
0.71 - trying to prevent showing last post on trackbacks
|
78 |
+
0.7 - prevented admin from having feed parsed when replying to comments
|
79 |
+
(thanks thesmocklady.com/blog/)
|
80 |
+
0.6 - fixed problem where it wouldn't find the feed if the blog was in a subdirectory
|
81 |
+
(found by http://thesmocklady.com/blog/)
|
82 |
+
0.51 - fiddled with timeout. Some feeds were not showing due to it taking too long to load the
|
83 |
+
commenter's page. Testing done by thedivanetwork.com and lalla-mira.com/. Thanks!
|
84 |
+
0.5 - typepad,blogspot,wordpress all working, tries to find a feedburner feed in the authors page
|
85 |
+
if it's not found in a default location. pretty robust, can now work with script links to
|
86 |
+
feedburner.
|
87 |
+
0.4 - try and find users feed if they don't have a default wordpress/blogger/typepad blog
|
88 |
+
0.3 - works with typepad blogs feed, default and feedburner
|
89 |
+
0.2 - works with feedburner feed for wordpress and blogger default location
|
90 |
+
0.1 - works with wordpress default feed at default location
|
91 |
+
|
92 |
+
|
93 |
+
*/
|
94 |
+
|
95 |
+
|
96 |
+
|
97 |
+
//************ you shouldn't edit below this line!*******************************
|
98 |
+
|
99 |
+
// action hooks
|
100 |
+
|
101 |
+
add_action('admin_menu', 'show_cl_options');
|
102 |
+
add_action('wp_head','cl_style_script');
|
103 |
+
add_action('comment_form','cl_add_fields');
|
104 |
+
add_filter('preprocess_comment','cl_post',0);
|
105 |
+
add_filter('whitelist_options','commentluv_alter_whitelist_options');
|
106 |
+
register_activation_hook(__FILE__, 'commentluv_activation');
|
107 |
+
|
108 |
+
|
109 |
+
// make compatible with Mu
|
110 |
+
function commentluv_alter_whitelist_options($whitelist) {
|
111 |
+
if(is_array($whitelist)) {
|
112 |
+
$option_array = array('commentluv' => array('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_author_type','cl_url_type','cl_textarea_type'));
|
113 |
+
$whitelist = array_merge($whitelist,$option_array);
|
114 |
+
}
|
115 |
+
return $whitelist;
|
116 |
+
}
|
117 |
+
|
118 |
+
// localization - oo-er!
|
119 |
+
$commentluv_domain = 'commentluv';
|
120 |
+
$commentluv_is_setup = 0;
|
121 |
+
$cl_script_added=0;
|
122 |
+
|
123 |
+
function commentluv_setup()
|
124 |
+
{
|
125 |
+
global $commenluv_domain, $commentluv_is_setup;
|
126 |
+
|
127 |
+
if($commentluv_is_setup) {
|
128 |
+
return;
|
129 |
+
}
|
130 |
+
|
131 |
+
load_plugin_textdomain($commentluv_domain, PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)));
|
132 |
+
$commentluv_is_setup=1;
|
133 |
+
}
|
134 |
+
|
135 |
+
function commentluv_activation(){
|
136 |
+
// set version for future releases if they need to change a value
|
137 |
+
$version=get_option('cl_version');
|
138 |
+
if($version<213){
|
139 |
+
update_option('cl_version','213');
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
// add fields for registered user so ajaxcl will work for logged on users
|
144 |
+
function cl_add_fields($id){
|
145 |
+
if (is_user_logged_in()){
|
146 |
+
// get options values and insert as hidden fields
|
147 |
+
global $userdata;
|
148 |
+
get_currentuserinfo();
|
149 |
+
$author=$userdata->display_name;
|
150 |
+
$userid=$userdata->ID;
|
151 |
+
// check for MU blog
|
152 |
+
if( function_exists( 'is_site_admin' ) ) {
|
153 |
+
global $wpdb;
|
154 |
+
$row = $wpdb->get_row("SELECT * FROM wp_blogs WHERE blog_id=$userid");
|
155 |
+
$url = $row->domain.$row->path;
|
156 |
+
}else {
|
157 |
+
$url=$userdata->user_url;
|
158 |
+
}
|
159 |
+
|
160 |
+
$cl_author_id=get_option('cl_author_id');
|
161 |
+
$cl_site_id=get_option('cl_site_id');
|
162 |
+
|
163 |
+
echo "<input type='hidden' id='$cl_author_id' name='$cl_author_id' value='$author' />";
|
164 |
+
echo "<input type='hidden' id='$cl_site_id' name='$cl_site_id' value='$url' />";
|
165 |
+
}
|
166 |
+
return $id;
|
167 |
+
}
|
168 |
+
|
169 |
+
function cl_post($comment_data){
|
170 |
+
// insert the last link to the end of the comment and save to db by returning $comment_data
|
171 |
+
$cl_post=$_POST['cl_post'];
|
172 |
+
if($cl_post){
|
173 |
+
// if there's something there do something with it!
|
174 |
+
if(strstr($cl_post,"commentluv.com/error") || substr($cl_post,10,1)=="0"){
|
175 |
+
return $comment_data;
|
176 |
+
}
|
177 |
+
$cl_comment_text=str_replace("'","´",get_option('cl_comment_text'));
|
178 |
+
// change output text to that set in the options page
|
179 |
+
$search=array('[name]','[lastpost]');
|
180 |
+
$replace=array($comment_data['comment_author'],$cl_post);
|
181 |
+
$cl_comment_text=str_replace($search,$replace,$cl_comment_text);
|
182 |
+
$comment_data['comment_content'].="\n\n<abbr><em>$cl_comment_text</abbr></em>";
|
183 |
+
return $comment_data;
|
184 |
+
} else {
|
185 |
+
return $comment_data;
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
+
//function for menu
|
190 |
+
function show_cl_options() {
|
191 |
+
commentluv_alter_whitelist_options("");
|
192 |
+
// Add a new submenu under Options:
|
193 |
+
add_options_page('CommentLuv', 'CommentLuv', 8, 'commentluv', 'cl_options_page');
|
194 |
+
add_option('cl_comment_text','[name]´s last blog post..[lastpost]');
|
195 |
+
add_option('cl_default_on','TRUE');
|
196 |
+
add_option('cl_style','border:1px solid; display:block; padding:4px;');
|
197 |
+
add_option('cl_author_id','author');
|
198 |
+
add_option('cl_site_id','url');
|
199 |
+
add_option('cl_comment_id','comment');
|
200 |
+
add_option('cl_commentform_id','#commentform');
|
201 |
+
add_option('cl_badge','ACL88x31-white.gif');
|
202 |
+
add_option('cl_member_id','');
|
203 |
+
add_option('cl_author_type','ID');
|
204 |
+
add_option('cl_url_type','ID');
|
205 |
+
add_option('cl_textarea_type','ID');
|
206 |
+
add_option('cl_click_track','on');
|
207 |
+
commentluv_activation();
|
208 |
+
add_option('cl_version','213');
|
209 |
+
}
|
210 |
+
|
211 |
+
// add style to head
|
212 |
+
function cl_style_script(){
|
213 |
+
global $cl_script_added;
|
214 |
+
|
215 |
+
if ($cl_script_added) {
|
216 |
+
return;
|
217 |
+
}
|
218 |
+
echo '<!-- Styling and script added by commentluv 2.1 http://www.commentluv.com -->';
|
219 |
+
echo '<style type="text/css">abbr em{'.get_option('cl_style').'} #lastposts { width: 300px; }</style>';
|
220 |
+
|
221 |
+
$cl_commentform_id=get_option('cl_commentform_id');
|
222 |
+
|
223 |
+
$cl_comment_id=get_option('cl_comment_id');
|
224 |
+
$cl_author_id=get_option('cl_author_id');
|
225 |
+
$cl_site_id=get_option('cl_site_id');
|
226 |
+
|
227 |
+
// construct selector string based on ID or name (ternery yey!)
|
228 |
+
$comment_selector= (get_option('cl_textarea_type')=="name")? "\"textarea[name='$cl_comment_id']\"" : "'#$cl_comment_id'";
|
229 |
+
$author_selector= (get_option('cl_author_type')=="name")? "\"input[name='$cl_author_id']\"" : "'#$cl_author_id'";
|
230 |
+
$url_selector= (get_option('cl_url_type')=="name")? "\"input[name='$cl_site_id']\"" : "'#$cl_site_id'";
|
231 |
+
|
232 |
+
$cl_comment_text=str_replace("'","´",get_option('cl_comment_text'));
|
233 |
+
$cl_default_on=get_option('cl_default_on');
|
234 |
+
$cl_badge=get_option('cl_badge');
|
235 |
+
$cl_member_id=get_option('cl_member_id');
|
236 |
+
$plugin_dir = basename(dirname(__FILE__));
|
237 |
+
|
238 |
+
|
239 |
+
|
240 |
+
$script="\njQuery(document).ready(function() {\n".
|
241 |
+
"jQuery('$cl_commentform_id').after('<span id=\"mylastpost\" style=\"clear: both\"><a href=\"http://www.commentluv.com\">".
|
242 |
+
"<img src=\"".get_bloginfo('url')."/".PLUGINDIR."/commentluv/$cl_badge\"/></a></span>' + '<br/><select name=\"lastposts\" id=\"lastposts\"><option value=0 ></option></select>');\n".
|
243 |
+
"jQuery('$cl_commentform_id').append('<input type=\"hidden\" id=\"cl_post\" name=\"cl_post\"></input>');\n".
|
244 |
+
"jQuery('#lastposts').hide();\n";
|
245 |
+
if(get_option('cl_click_track')=="on"){
|
246 |
+
$script.="jQuery('abbr em a').click(processclick);\n";
|
247 |
+
}
|
248 |
+
$script.="jQuery($comment_selector).focus(cl_dostuff); \n".
|
249 |
+
"jQuery('#lastposts').change(function(){ \n".
|
250 |
+
"jQuery('option').remove(\":contains('choose a different post to show')\");\n".
|
251 |
+
"var url = jQuery(this).val();\n".
|
252 |
+
"var title = jQuery('#lastposts option:selected').text(); \n".
|
253 |
+
"jQuery('#mylastpost a').replaceWith('<a href=\"' + url + '\">' + title + '</a>');\n".
|
254 |
+
"jQuery('#cl_post').val('<a href=\"' + url + '\">' + title + '</a>');\n".
|
255 |
+
"});\n".
|
256 |
+
"jQuery($url_selector).change(function(){ jQuery($comment_selector).bind('focus',cl_dostuff);}); \n".
|
257 |
+
"});\n";
|
258 |
+
|
259 |
+
if(get_option('cl_click_track')=="on"){
|
260 |
+
$script.="function processclick(){\n".
|
261 |
+
"var url=jQuery(this).attr('href');\n".
|
262 |
+
"var thelinkobj=jQuery(this);\n".
|
263 |
+
"var cl_member_id=\"".get_option('cl_member_id')."\";\n".
|
264 |
+
"var addit=url + \"&cl_member_id=\" + cl_member_id + \"&callback=?\";\n".
|
265 |
+
"var clurl=\"http://www.commentluv.com/commentluvinc/ajaxcl_click821.php?url=\" + addit;\n".
|
266 |
+
"jQuery.getJSON(clurl,function(data) {\n".
|
267 |
+
"jQuery.each(data.msg,function(i,item) {\n".
|
268 |
+
"jQuery(thelinkobj).text(data.msg[i].text);}) \n".
|
269 |
+
"window.location=url;\n".
|
270 |
+
"}); return false;}\n";
|
271 |
+
}
|
272 |
+
$script.="function cl_dostuff(){\n".
|
273 |
+
"var check=jQuery($url_selector).val();\n".
|
274 |
+
"if(!check) { return }\n".
|
275 |
+
"var xyz=jQuery($url_selector).val(); \n".
|
276 |
+
"var name=jQuery($author_selector).val(); \n".
|
277 |
+
"var url=\"http://www.commentluv.com/commentluvinc/ajaxcl821.php?url=\"+xyz+\"";
|
278 |
+
if($cl_member_id) {
|
279 |
+
$script.="&memberid=$cl_member_id";
|
280 |
+
}
|
281 |
+
$script.="&callback=?\";\n".
|
282 |
+
"jQuery.getJSON(url,function(data){ \n".
|
283 |
+
"jQuery.each(data.links, function(i,item){ \n".
|
284 |
+
"jQuery('#lastposts').append('<option value=\"'+data.links[i].url+'\">'+data.links[i].title+'</option>');\n".
|
285 |
+
"});\n".
|
286 |
+
"jQuery('#lastposts').append('<option value=0 ";
|
287 |
+
|
288 |
+
// handle default off
|
289 |
+
if($cl_default_on=="FALSE") {
|
290 |
+
$script.="selected=selected";
|
291 |
+
}
|
292 |
+
|
293 |
+
$script.=">".__('Do Not Show','commentluv')."</option><option value=\"1\" ";
|
294 |
+
|
295 |
+
// handle default on
|
296 |
+
if($cl_default_on=="TRUE"){
|
297 |
+
$script.="selected=selected";
|
298 |
+
}
|
299 |
+
|
300 |
+
$script.=">".__('Click to choose a different post to show','commentluv')."</option>').fadeIn(1000);\n";
|
301 |
+
|
302 |
+
// change output text to that set in the options page
|
303 |
+
$search=array('[name]','[lastpost]');
|
304 |
+
$replace=array("' + name + '","<a href=\"' + data.links[0].url + '\">' + data.links[0].title + '</a>");
|
305 |
+
$cl_comment_text=str_replace($search,$replace,$cl_comment_text);
|
306 |
+
|
307 |
+
$script.="jQuery('#mylastpost').html('<abbr><em>".$cl_comment_text."</em></abbr>').fadeIn(1000); \n".
|
308 |
+
"jQuery('#cl_post').val('<a href=\"' + data.links[0].url + '\">' + data.links[0].title + '</a>');\n".
|
309 |
+
"jQuery($comment_selector).unbind(); \n".
|
310 |
+
"});\n".
|
311 |
+
"}\n";
|
312 |
+
|
313 |
+
if(is_single()) {
|
314 |
+
|
315 |
+
echo'<script src="'.get_option('siteurl').'/wp-includes/js/jquery/jquery.js?ver=1.2.6"> </script>';
|
316 |
+
echo '<script type="text/javascript">';
|
317 |
+
// add click tracking if enabled to head for admin
|
318 |
+
if(current_user_can('edit_users')){
|
319 |
+
$adminscript="\njQuery(document).ready(function() {\n";
|
320 |
+
if(get_option('cl_click_track')=="on"){
|
321 |
+
$adminscript.="jQuery('abbr em a').click(processclick);});\n".
|
322 |
+
"function processclick(){\n".
|
323 |
+
"var url=jQuery(this).attr('href');\n".
|
324 |
+
"var thelinkobj=jQuery(this);\n".
|
325 |
+
"var cl_member_id=\"".get_option('cl_member_id')."\";\n".
|
326 |
+
"var addit=url + \"&cl_member_id=\" + cl_member_id + \"&callback=?\";\n".
|
327 |
+
"var clurl=\"http://www.commentluv.com/commentluvinc/ajaxcl_click821.php?url=\" + addit;\n".
|
328 |
+
"jQuery.getJSON(clurl,function(data) {\n".
|
329 |
+
"jQuery.each(data.msg,function(i,item) {\n".
|
330 |
+
"jQuery(thelinkobj).text(data.msg[i].text);}) \n".
|
331 |
+
"window.location=url;\n".
|
332 |
+
"}); return false;}\n";
|
333 |
+
echo $adminscript;
|
334 |
+
}
|
335 |
+
} else {
|
336 |
+
// normal user script (so admin doesn't get the badge below form)
|
337 |
+
echo $script;
|
338 |
+
}
|
339 |
+
}
|
340 |
+
|
341 |
+
echo "</script>";
|
342 |
+
|
343 |
+
echo '<!-- end commentluv http://www.fiddyp.co.uk -->';
|
344 |
+
|
345 |
+
//wp_enqueue_script('jquery');
|
346 |
+
$cl_script_added=1;
|
347 |
+
|
348 |
+
}
|
349 |
+
// function to add menu page under options
|
350 |
+
|
351 |
+
function cl_options_page(){
|
352 |
+
commentluv_setup();
|
353 |
+
?>
|
354 |
+
<div class="wrap">
|
355 |
+
|
356 |
+
<form method="post" action="options.php" id="options">
|
357 |
+
<?php
|
358 |
+
if(function_exists('wpmu_create_blog'))
|
359 |
+
wp_nonce_field('commentluv-options');
|
360 |
+
else
|
361 |
+
wp_nonce_field('update-options');
|
362 |
+
?>
|
363 |
+
<h2><?php _e('CommentLuv Wordpress Plugin','commentluv')?></h2>
|
364 |
+
<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>
|
365 |
+
<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>
|
366 |
+
<h3><?php _e('Options','commentluv')?></h3>
|
367 |
+
<p><?php _e('Enter the text you want displayed in the comment.','commentluv')?></p>
|
368 |
+
<table class="form-table">
|
369 |
+
<tr>
|
370 |
+
<td colspan="2">
|
371 |
+
<input class="form-table" name="cl_comment_text" value="<?php echo get_option('cl_comment_text');?>">
|
372 |
+
</td>
|
373 |
+
</tr>
|
374 |
+
<tr>
|
375 |
+
<td width="29%"><?php _e('Choose to have CommentLuv on by default?','commentluv')?></td>
|
376 |
+
<td width="71%"><select name="cl_default_on">
|
377 |
+
<option <?php if(get_option('cl_default_on')=="TRUE") {echo "selected=selected";}?> >TRUE</option>
|
378 |
+
<option <?php if(get_option('cl_default_on')=="FALSE") { echo "selected=selected";}?> >FALSE</option>
|
379 |
+
</select></td>
|
380 |
+
</tr>
|
381 |
+
</table>
|
382 |
+
<h3><?php _e('Styling')?></h3>
|
383 |
+
<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>
|
384 |
+
<p><?php _e('Enter css styling to apply to comment','commentluv')?></strong> (<em><?php _e('inserted as','commentluv')?></em> <style type="text/css">abbr em { border:2px; etc }</style>)</p>
|
385 |
+
<table class="form-table">
|
386 |
+
<tr>
|
387 |
+
<td valign="top" colspan="2"><input class="form-table" name="cl_style" value="<?php echo get_option('cl_style');?>"></td>
|
388 |
+
</tr>
|
389 |
+
</table>
|
390 |
+
<h3><?php _e('Comment Form Identification','commentluv')?></h3>
|
391 |
+
<p><?php _e('Enter the ID or NAME value for the input fields on your comment form.','commentluv')?></p>
|
392 |
+
<p><?php _e('Check your comment form fields to see if they use ID= or NAME= and select the appropriate type below','commentluv')?><br/>
|
393 |
+
<?php _e('Visit CommentLuv.com if you need instructions','commentluv')?></p>
|
394 |
+
<table class="form-table">
|
395 |
+
<td><?php _e('Comment Form ID','commentluv')?></td>
|
396 |
+
<td>Precede with #</td>
|
397 |
+
<td><input name="cl_commentform_id" value="<?php echo get_option('cl_commentform_id');?>"></td>
|
398 |
+
</tr>
|
399 |
+
<tr>
|
400 |
+
<td><?php _e('Authors Name field ID','commentluv')?></td>
|
401 |
+
<td><select name="cl_author_type">
|
402 |
+
<option <?php if(get_option('cl_author_type')=="ID" ){echo "selected=selected";}?> >ID</option>
|
403 |
+
<option <?php if(get_option('cl_author_type')=="name") {echo "selected=selected";}?> >name</option>
|
404 |
+
</td>
|
405 |
+
<td><input name="cl_author_id" value="<?php echo get_option('cl_author_id');?>"></td>
|
406 |
+
</tr>
|
407 |
+
<tr>
|
408 |
+
<td><?php _e('Authors URL field ID','commentluv')?></td>
|
409 |
+
<td><select name="cl_url_type">
|
410 |
+
<option <?php if(get_option('cl_url_type')=="ID") {echo "selected=selected";}?> >ID</option>
|
411 |
+
<option <?php if(get_option('cl_url_type')=="name") {echo "selected=selected";}?> >name</option>
|
412 |
+
</td>
|
413 |
+
<td><input name="cl_site_id" value="<?php echo get_option('cl_site_id');?>"></td>
|
414 |
+
</tr>
|
415 |
+
<tr>
|
416 |
+
<td><?php _e('Comment Text Area ID','commentluv')?></td>
|
417 |
+
<td><select name="cl_textarea_type">
|
418 |
+
<option <?php if(get_option('cl_textarea_type')=="ID") {echo "selected=selected";}?> >ID</option>
|
419 |
+
<option <?php if(get_option('cl_textarea_type')=="name" ){echo "selected=selected";}?> >name</option>
|
420 |
+
</td>
|
421 |
+
<td><input name="cl_comment_id" value="<?php echo get_option('cl_comment_id');?>"></td>
|
422 |
+
</tr>
|
423 |
+
</table>
|
424 |
+
<h3><?php _e('Display Badge','commentluv')?></h3>
|
425 |
+
<p>Many thanks to <a href="http://byteful.com">Byteful Traveller</a> for creating these images.</p>
|
426 |
+
<table class="form-table">
|
427 |
+
<tr>
|
428 |
+
<td><?php _e('Choose badge to display','commentluv')?> </td>
|
429 |
+
<?php $badge=get_option('cl_badge');?>
|
430 |
+
<td><label><input type="radio" <?php if($badge=="CL91x17-white.gif"){echo "checked ";}?> name="cl_badge" value="CL91x17-white.gif"><img src="<?php bloginfo('url');?>/wp-content/plugins/commentluv/CL91x17-white.gif"/></label></td>
|
431 |
+
<td><label><input type="radio" <?php if($badge=="CL91x17-black.gif"){echo "checked ";}?> name="cl_badge" value="CL91x17-black.gif"><img src="<?php bloginfo('url');?>/wp-content/plugins/commentluv/CL91x17-black.gif"/></label></td>
|
432 |
+
<td><label><input type="radio" <?php if($badge=="ACL88x31-white.gif"){echo "checked ";}?> name="cl_badge" value="ACL88x31-white.gif"><img src="<?php bloginfo('url');?>/wp-content/plugins/commentluv/ACL88x31-white.gif"/></label></td>
|
433 |
+
<td><label><input type="radio" <?php if($badge=="ACL88x31-black.gif"){echo "checked ";}?> name="cl_badge" value="ACL88x31-black.gif"><img src="<?php bloginfo('url');?>/wp-content/plugins/commentluv/ACL88x31-black.gif"/></label></td>
|
434 |
+
</tr>
|
435 |
+
</table>
|
436 |
+
<h3><?php _e('CommentLuv Member ID','commentluv')?></h3>
|
437 |
+
<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>
|
438 |
+
<table class="form-table">
|
439 |
+
<tr><td><?php _e('Your CommentLuv.com member ID','commentluv')?></td>
|
440 |
+
<td><input name="cl_member_id" value="<?php echo get_option('cl_member_id');?>"></td>
|
441 |
+
</tr>
|
442 |
+
<tr><td><?php _e('Enable click tracking?','commentluv')?></td>
|
443 |
+
<td><input type="checkbox" name="cl_click_track" <?php if(get_option('cl_click_track')=="on"){echo "checked";};?> /></td>
|
444 |
+
</tr>
|
445 |
+
</table>
|
446 |
+
<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" />
|
447 |
+
<input type="hidden" name="action" value="update" />
|
448 |
+
<input type="hidden" name="option_page" value="commentluv" />
|
449 |
+
<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options') ?>" /></p>
|
450 |
+
</form>
|
451 |
+
<p>Andy Bailey<br/>
|
452 |
+
Fiddyp.co.uk
|
453 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
454 |
+
<input type="hidden" name="cmd" value="_donations">
|
455 |
+
<input type="hidden" name="business" value="root@teamplaylotto.com">
|
456 |
+
<input type="hidden" name="item_name" value="CommentLuv">
|
457 |
+
<input type="hidden" name="no_shipping" value="0">
|
458 |
+
<input type="hidden" name="no_note" value="1">
|
459 |
+
<input type="hidden" name="currency_code" value="USD">
|
460 |
+
<input type="hidden" name="tax" value="0">
|
461 |
+
<input type="hidden" name="lc" value="GB">
|
462 |
+
<input type="hidden" name="bn" value="PP-DonationsBF">
|
463 |
+
<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.">
|
464 |
+
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
|
465 |
+
</form>
|
466 |
+
|
467 |
+
</div>
|
468 |
+
<?php }
|
469 |
+
|
470 |
+
|
471 |
+
?>
|
commentluv.po
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CommentLuv 2.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-09-21 12:30-0000\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Andy Bailey <andy@teamplaylotto.com>\n"
|
8 |
+
"Language-Team: <andy@teamplaylotto.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: English\n"
|
13 |
+
"X-Poedit-Country: UNITED KINGDOM\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e\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.php:288
|
19 |
+
msgid "Do Not Show"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:295
|
23 |
+
msgid "Click to choose a different post to show"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:358
|
27 |
+
msgid "CommentLuv Wordpress Plugin"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:359
|
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.php:360
|
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 ""
|
37 |
+
|
38 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:360
|
39 |
+
msgid "or"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:360
|
43 |
+
msgid "support forum"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:360
|
47 |
+
msgid "and let me know"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:361
|
51 |
+
msgid "Options"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:362
|
55 |
+
msgid "Enter the text you want displayed in the comment."
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:370
|
59 |
+
msgid "Choose to have CommentLuv on by default?"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:377
|
63 |
+
msgid "Styling"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:378
|
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:379
|
71 |
+
msgid "Enter css styling to apply to comment"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:379
|
75 |
+
msgid "inserted as"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:385
|
79 |
+
msgid "Comment Form Identification"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:386
|
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:387
|
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:388
|
91 |
+
msgid "Visit CommentLuv.com if you need instructions"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:390
|
95 |
+
msgid "Comment Form ID"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:395
|
99 |
+
msgid "Authors Name field ID"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:403
|
103 |
+
msgid "Authors URL field ID"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:411
|
107 |
+
msgid "Comment Text Area ID"
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:419
|
111 |
+
msgid "Display Badge"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:423
|
115 |
+
msgid "Choose badge to display"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:431
|
119 |
+
msgid "CommentLuv Member ID"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:432
|
123 |
+
msgid "If you register your site for free at"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:432
|
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 ""
|
129 |
+
|
130 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:434
|
131 |
+
msgid "Your CommentLuv.com member ID"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:437
|
135 |
+
msgid "Enable click tracking?"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: C:\xampp\htdocs\wordpress\wp-content\plugins\commentluv/commentluv.php:444
|
139 |
+
msgid "Update Options"
|
140 |
+
msgstr ""
|
141 |
+
|
readme.txt
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== CommentLuv ===
|
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.1
|
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.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
|
12 |
+
Pass a bit of luv onto your commenters by providing a titled link to their last blog post. This plugin attempts to parse the feed of the comment author by visiting their site and looking for their feed while they type their comment and appends it once they submit.
|
13 |
+
|
14 |
+
It will start to work with any new comments posted after installation (it will not add last post links to comments made before CommentLuv has been activated). You can set the plugin to track the clicks made on the links received and see the stats at commentluv.com (free registration)
|
15 |
+
|
16 |
+
It will not add your own last post if you are logged in as admin. You can test it by adding a comment to one of your posts (after loggin out) and using a different URL for the author site field (use http://www.fiddyp.co.uk if you want!)
|
17 |
+
|
18 |
+
This plugin now has a support site where you can specify a feed location, see who's clicked on your links and more. Registration is free and verification is simple. Registered users get to choose from their last 10 posts instead of just 1.
|
19 |
+
|
20 |
+
== Installation ==
|
21 |
+
|
22 |
+
1. Upload the `commentluv` folder to the `/wp-content/plugins/` directory
|
23 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
24 |
+
Wordpress MU users can activate it from their own blog.
|
25 |
+
3. Check for settings on the dashboard/settings/commentluv page and enter the name or ID values for your comment form. Default values will work with the default themes. View your comments.php file to see if your form uses ID or name values and enter them in the settings page.
|
26 |
+
|
27 |
+
You can see if it has enabled correctly by logging out and looking for the badge displayed under the comment form. For detailed instructions with screen shots, visit CommentLuv.com
|
28 |
+
|
29 |
+
You may want to test it after activation by logging out and adding a comment to one of your posts, you can use http://www.fiddyp.co.uk if you want and see if it apends my last blog post.
|
30 |
+
|
31 |
+
== Frequently Asked Questions ==
|
32 |
+
|
33 |
+
= All my comments are now being held in moderation, why? =
|
34 |
+
|
35 |
+
You probably have your wordpress set to hold comments in moderation if they contain a link.
|
36 |
+
Go to your wordpress dashboard and go to Options/discussion and change the comment moderation option to "Hold a comment in the queue if it contains 2 links" (or more)
|
37 |
+
|
38 |
+
= I can see the settings in the dashboard but there isn't an image below the comment form, why? =
|
39 |
+
|
40 |
+
Check the settings page has the correct values for your form name and fields. Visit CommentLuv.com or the support forum http://www.fiddyp.co.uk/support and post a query there if you get stuck.
|
41 |
+
|
42 |
+
= Why doesn't my plugin show anyone's last post? =
|
43 |
+
|
44 |
+
You might be having a compatibility issue with one of your other comment plugins. This version of CommentLuv currently works with AJAX edit comments, subscribe to comments and SpamKarma 2.
|
45 |
+
|
46 |
+
= Logged on users aren't getting their last blog post displayed =
|
47 |
+
|
48 |
+
The url used to find the last blog post is taken from the users profile. If they have a url there then check your comments.php file for the commentform action using this code
|
49 |
+
< ? php do_action('comment_form', $post->ID); ?>
|
50 |
+
You need to place this (if it isn't there already) just before the </form> tag
|
51 |
+
|
52 |
+
= CommentLuv is picking a post that is not the latest one =
|
53 |
+
|
54 |
+
If you are not a registered member of CommentLuv.com and you are using a feedburner feed service, the plugin wont be able to use a cache for your feed so feedburner will return the feed they hold in their cache which doesn't get updated as often. Register your url at CommentLuv.com and verify it so caching is enabled. This will ensure your very latest post is always retrieved.
|
55 |
+
|
56 |
+
= Does this plugin increase page load times? =
|
57 |
+
|
58 |
+
The last post link is added at the time of the comment being typed, no database writes are made other than the standard comment save so it shouldn't affect the loading time of your blog at all.
|
59 |
+
|
60 |
+
= Does this plugin remove nofollow tags from the links it creates if I am using a Dofollow plugin? =
|
61 |
+
|
62 |
+
You will need to use a dofollow plugin such as the excellent Lucias Linky Luv (http://money.bigbucksblogger.com/lucias-linky-love-a-dofollow-plugin-to-foil-human-comment-spammers/) to remove the nofollow from the links.
|
63 |
+
|
64 |
+
= I still see rel="nofollow" in the last blog post links when I am notified by Admin =
|
65 |
+
Wordpress puts in the nofollow when it sends you an email about comments made, if you look at the source of the page, you should see that the nofollow isn't there. Let me know if it is!
|
66 |
+
|
67 |
+
= How can a user help CommentLuv find their feed? =
|
68 |
+
They can make sure that they have an entry in the blog <head> section like this:
|
69 |
+
<link rel="alternate" type="application/rss+xml" href="http://www.fiddyp.co.uk/feed/" title="FiddyP Posts RSS feed" /> or they can register at CommentLuv.com and specify their feed there.
|
70 |
+
|
71 |
+
= I am having problems, what do I do? =
|
72 |
+
You can visit the support forum at http://www.fiddyp.co.uk/support or you can come to CommentLuv.com and leave me a message.
|
73 |
+
|
74 |
+
= I don't want my last blog post showing on my comment =
|
75 |
+
Select Do Not Show or a blank entry from the pull down box
|
76 |
+
|
77 |
+
== Screenshots ==
|
78 |
+
1. Settings Page
|
79 |
+
2. In the comment
|
80 |
+
|
81 |
+
|
82 |
+
== Arbitrary section ==
|
83 |
+
|
84 |
+
|
85 |
+
== A brief Markdown Example ==
|
86 |
+
|
87 |
+
|
88 |
+
You can change the text that is output by the plugin in its settings page. use [name] to output the comment authors name and [lastpost] to output the link.
|
89 |
+
ie.
|
90 |
+
[name] has just posted: [lastpost]
|
91 |
+
|
92 |
+
[name]'s last blog post...[lastpost]
|
93 |
+
|
94 |
+
Wordpress doesn't allow a class to be set for a comment paragraph so the text that is added is enclosed in <abbr><em> tags and style applied to that like this in the style settings
|
95 |
+
|
96 |
+
abbr em { border:2px solid #ffffff; display:block; padding:4px; background-color: #eeffee; }
|
screenshot-1.jpg
ADDED
Binary file
|
screenshot-2.jpg
ADDED
Binary file
|