PluginProbe ʕ •ᴥ•ʔ
Custom Twitter Feeds – A Tweets Widget or X Feed Widget / 2.7.0
Custom Twitter Feeds – A Tweets Widget or X Feed Widget v2.7.0
2.8.0 2.7.0 2.6.1 2.6.0 1.0 1.0.1 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.5 1.5.1 1.6 1.6.1 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1 2.1.1 2.1.2 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.5.4 2.5.5 trunk
custom-twitter-feeds / admin / builder / templates / form-data-examples.html
custom-twitter-feeds / admin / builder / templates Last commit date
preview 1 month ago screens 1 month ago sections 1 month ago builder.php 1 month ago form-data-examples.html 1 month ago
form-data-examples.html
134 lines
1 <!--
2 Tool to help understand how sending and retrieving feed related info from the database works.
3 -->
4
5 <div style="clear: left;">
6
7 <p>Create/update source</p>
8
9 <p>Retrieve Personal/Business (will store available ones in ctf_builder if successful)</p>
10 <a href="" id="ctf_personal_link">Retrieve Personal</a><br>
11 <a href="" id="ctf_business_link">Retrieve Business</a>
12
13 <p>Manual account adding</p>
14
15 <form id="ctf_add_source_form" method="post" action="">
16 <label for="ctf_access_token">Access Token:</label><input id="ctf_access_token" type="text" name="access_token" value=""><br>
17 <label for="ctf_page_name">Page Name (not required):</label><input id="ctf_page_name" type="text" name="name" value=""><br>
18 <label for="ctf_page_id">Page ID:</label><input id="ctf_page_id" type="text" name="id" value=""><br>
19 <label for="ctf_type">Type:</label><input id="ctf_type" type="text" name="type" value="business"><br>
20
21 <input type="hidden" name="action" value="ctf_source_builder_update"/>
22 <input class="button-primary" type="submit" value="Submit"/>
23 </form>
24
25 <p>Create/update feed and settings</p>
26 <form id="ctf_save_settings_form" method="post" action="">
27 <label for="ctf_feed_id">Feed ID: (leave blank for new)</label><input id="ctf_feed_id" type="text" name="feed_id" value=""><br>
28 <label for="ctf_feed_title">Feed Title:</label><input id="ctf_feed_title" type="text" name="feed_title" value=""><br>
29 <label for="ctf_feed_status">Feed Status (publish or draft):</label><input id="ctf_feed_status" type="text" name="status" value="publish"><br>
30 <label for="ctf_src_1">Source 1 (must be the account/page ID):</label><input id="ctf_src_1" type="text" name="sources[]" value=""><br>
31 <label for="ctf_src_1">Source 2 (must be the account/page ID):</label><input id="ctf_src_2" type="text" name="sources[]" value=""><br>
32 <label for="ctf_num">Number:</label><input id="ctf_num" type="text" name="num" value="10"><br>
33 <input type="hidden" name="update_feed" value="true"/>
34
35 <input type="hidden" name="action" value="ctf_feed_saver_manager_builder_update"/>
36 <input class="button-primary" type="submit" value="Submit"/>
37 </form>
38
39 <p>Get feed settings/posts by ID</p>
40 <form id="ctf_get_settings_form" method="post" action="">
41 <label for="ctf_settings_feed_id">Feed ID:</label><input id="ctf_settings_feed_id" type="text" name="feed_id" value="1"><br>
42 <label for="ctf_settings_include_post_set">Include Posts:</label><input id="ctf_settings_include_post_set" type="checkbox" name="include_post_set" value="1"/>
43
44 <input type="hidden" name="action" value="ctf_feed_saver_manager_get_feed_settings"/>
45 <input class="button-primary" type="submit" value="Submit"/>
46 </form>
47
48 <p>Pages of things</p>
49 <form id="ctf_get_source_page" method="post" action="">
50 <label for="ctf_settings_source_page">Source Page:</label><input id="ctf_settings_source_page" type="text" name="page" value="2"><br>
51 <input type="hidden" name="action" value="ctf_source_get_page"/>
52 <input class="button-primary" type="submit" value="Submit"/>
53 </form>
54
55 <form id="ctf_get_feed_page" method="post" action="">
56 <label for="ctf_settings_feed_page">Feed Page:</label><input id="ctf_settings_feed_page" type="text" name="page" value="2"><br>
57 <input type="hidden" name="action" value="ctf_feed_saver_manager_get_feed_list_page"/>
58 <input class="button-primary" type="submit" value="Submit"/>
59 </form>
60
61 <p>Locations page by feed ID</p>
62
63 <form id="ctf_get_locations_page" method="post" action="">
64 <label for="ctf_settings_locations_feed_id">Feed ID:</label><input id="ctf_settings_locations_feed_id" type="text" name="feed_id" value="1"><br>
65 <label for="ctf_settings_locations_page">Locations Page:</label><input id="ctf_settings_locations_page" type="text" name="page" value="2"><br>
66 <br><label for="ctf_settings_is_legacy">This is a legacy feed:</label><input id="ctf_settings_is_legacy" type="checkbox" name="is_legacy" value="1"/>
67 <input type="hidden" name="action" value="ctf_feed_saver_manager_get_locations_page"/>
68 <input class="button-primary" type="submit" value="Submit"/>
69 </form>
70
71 <p>Dismiss Onboarding</p>
72 <form id="ctf_dismiss_onboarding" method="post" action="">
73 <input type="hidden" name="action" value="ctf_dismiss_onboarding"/>
74 <input class="button-primary" type="submit" value="Dismiss"/>
75 </form>
76
77
78 <p>Import/Export</p>
79 <form id="ctf_import" method="post" action="">
80 <input type="hidden" name="action" value="ctf_feed_saver_manager_importer"/>
81 <label for="ctf_import_field">Import JSON</label><br>
82 <textarea id="ctf_import_field" name="feed_json"></textarea>
83
84 <input class="button-primary" type="submit" value="Submit"/>
85 </form>
86
87 <p>Get feed comments</p>
88 <form id="ctf_get_comments" method="post" action="">
89 <label for="ctf_get_comments_feed_id">Feed ID:</label><input id="ctf_get_comments_feed_id" type="text" name="feed_id" value="1"><br>
90
91 <input type="hidden" name="action" value="ctf_feed_saver_manager_retrieve_comments"/>
92 <input class="button-primary" type="submit" value="Submit"/>
93 </form>
94
95 <p>Clear single feed cache</p>
96 <form id="ctf_clear_single_feed_cache" method="post" action="">
97 <label for="ctf_cc_feed_id">Feed ID:</label><input id="ctf_cc_feed_id" type="text" name="feed_id" value="1"><br>
98
99 <input type="hidden" name="action" value="ctf_feed_saver_manager_clear_single_feed_cache"/>
100 <input class="button-primary" type="submit" value="Submit"/>
101 </form>
102
103 </div>
104 <style>
105 .sb-customizer-sidebar {
106 display: none !important;
107 }
108 </style>
109 <script>
110 jQuery(document).ready(function($) {
111 $('#ctf_personal_link').attr('href',ctf_source.sourceConnectionURLs.personal + ctf_source.sourceConnectionURLs.stateURL);
112 $('#ctf_business_link').attr('href',ctf_source.sourceConnectionURLs.business + ctf_source.sourceConnectionURLs.stateURL);
113
114 $('#ctf_source_get_playlist_post_preview, #ctf_clear_single_feed_cache, #ctf_get_comments, #ctf_add_source_form, #ctf_save_settings_form, #ctf_get_settings_form, #ctf_get_source_page, #ctf_get_feed_page, #ctf_get_locations_page, #ctf_dismiss_onboarding, #ctf_source_get_featured_post_preview, #ctf_import').submit(function(event) {
115
116 event.preventDefault();
117
118 var thisData = $(this).serializeArray();
119 $.ajax({
120 url: ctf_builder.ajax_handler,
121 type: 'post',
122 data: thisData,
123 success: function (data) {
124 if (data.indexOf('{') === 0) {
125 data = JSON.parse(data);
126 console.log(data);
127
128 }
129
130 }
131 });
132 });
133 });
134 </script>