/
product-rcd_iquote.xml
executable file
·157 lines (148 loc) · 6.19 KB
/
product-rcd_iquote.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="rcd_iquote" active="1">
<title>iQuote</title>
<description><![CDATA[Easy quote selected text to quick reply box.]]></description>
<version>0.4</version>
<url><![CDATA[http://www.vbulletin.org/forum/misc.php?do=productcheck&pid=rcd_iquote]]></url>
<versioncheckurl><![CDATA[http://www.vbulletin.org/forum/misc.php?do=productcheck&pid=rcd_iquote]]></versioncheckurl>
<apm_releasedate>0</apm_releasedate>
<apm_author />
<apm_relatedurl />
<apm_extrainfo />
<apm_extraedit />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="rcd_iquote_context_menu" templatetype="template" date="1280449501" username="jpatuk" version="0.2"><![CDATA[<div id="iquote_popup_menu">
<div class="iquote_menu">
<ul class="popupbody">
<li><a href="#" rel="nofollow" onclick="return iQuote.quote_text();">$vbphrase[rcd_iquote_context_menu_quote]</a></li>
</ul>
</div>
</div>]]></template>
<template name="rcd_iquote_css" templatetype="template" date="1284969119" username="jpatuk" version="0.3"><![CDATA[<style type="text/css">
.iquote_menu {
padding:none;
margin:none;
width:auto;
height:auto;
position:absolute;
}
.iquote_menu ul {
-moz-border-radius:{vb:stylevar border_radius};
-webkit-border-radius:{vb:stylevar border_radius};
direction:ltr;
padding:none;
margin:none;
border:1px solid {vb:stylevar navbar_tab_background.backgroundColor};
background:{vb:stylevar navbar_tab_background.backgroundColor};
width:auto;
min-width:20px;
position:absolute;
top:50%;
}
.iquote_menu a {
padding-top:5px !important;
padding-bottom:5px !important;
font:{vb:stylevar navbar_font} !important;
}
</style>]]></template>
<template name="rcd_iquote_init_js" templatetype="template" date="1288255683" username="jpatuk" version="0.4"><![CDATA[<script type="text/javascript">
<!--
iQuote.init('posts', {vb:raw is_qr_disabled}, "{vb:rawphrase rcd_iquote_disable_quickreply}");
//-->
</script>]]></template>
<template name="rcd_iquote_js" templatetype="template" date="1289629082" username="jpatuk" version="0.4"><![CDATA[<vb:if condition="!isset($show['yui_menu_exists'])">
<script type="text/javascript" src="{vb:stylevar yuipath}/yahoo-dom-event/yahoo-dom-event.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript" src="{vb:stylevar yuipath}/container/container_core-min.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript" src="{vb:stylevar yuipath}/menu/menu-min.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
<script type="text/javascript" src="clientscript/rcd_iquote.js?v={vb:raw version}"></script>
<vb:if condition="!isset($show['yui_animation_exists'])">
<script type="text/javascript" src="{vb:stylevar yuipath}/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
]]></template>
</templates>
<stylevardfns>
</stylevardfns>
<stylevars>
</stylevars>
<plugins>
<plugin active="1" executionorder="5">
<title>Cache templates</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'showthread' AND $show['member'])
{
$cache = array_merge((array)$cache,array(
'rcd_iquote_css',
'rcd_iquote_context_menu',
'rcd_iquote_js',
'rcd_iquote_init_js'
));
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>Insert js and css</title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'showthread' AND $show['member'])
{
//define product version and assign it to JS version
define('RCD_IQUOTE_VERSION', '0.4');
$version = (!$vbulletin->debug) ? RCD_IQUOTE_VERSION : TIMENOW;
define('RCD_IQUOTE_JS_VERSION', $version);
//add rcd_iquote.js file
$rcd_iquote_templater = vB_Template::create('rcd_iquote_js');
$rcd_iquote_templater->register('version', RCD_IQUOTE_JS_VERSION);
$template_hook['headinclude_javascript'] .= $rcd_iquote_templater->render();
if (!$show['yui_menu_exists'])
{
$show['yui_menu_exists'] = true;
}
if (!$show['yui_animation_exists'])
{
$show['yui_animation_exists'] = true;
}
//init quotes
$rcd_iquote_templater = vB_Template::create('rcd_iquote_init_js');
$rcd_iquote_templater->register('is_qr_disabled', $vbulletin->options['rcd_iquote_is_qr_disabled']);
$template_hook['footer_javascript'] .= $rcd_iquote_templater->render();
//add context menu
$rcd_iquote_templater = vB_Template::create('rcd_iquote_context_menu');
$template_hook['showthread_after_activeusers'] .= $rcd_iquote_templater->render();
//add css for context menu
$rcd_iquote_templater = vB_Template::create('rcd_iquote_css');
$template_hook['headinclude_bottom_css'] .= $rcd_iquote_templater->render();
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="Postbit" fieldname="postbit">
<phrase name="rcd_iquote_context_menu_quote" date="1280474725" username="jpatuk" version=""><![CDATA[Quote]]></phrase>
<phrase name="rcd_iquote_disable_quickreply" date="1288251487" username="Jannie" version=""><![CDATA[Select text to quote with mouse first!\n\nIf you wish to quote all message - press OK to continue.]]></phrase>
</phrasetype>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_rcd_iquote_is_qr_disabled_desc" date="1288250981" username="Vitaly" version="0.4"><![CDATA[Shows popup warning on quick reply click. Offer to select text with mouse first.]]></phrase>
<phrase name="setting_rcd_iquote_is_qr_disabled_title" date="1288250981" username="Vitaly" version="0.4"><![CDATA[Block quick reply link]]></phrase>
<phrase name="settinggroup_rcd_iquote_settings_group" date="1288254702" username="jpatuk" version="0.4"><![CDATA[iQuote]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="rcd_iquote_settings_group" displayorder="65535">
<setting varname="rcd_iquote_is_qr_disabled" displayorder="10">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
<templateedits>
</templateedits>
</product>