Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 16 replies, 2 voices, and was last updated 8 years ago by
Steven Zahm.
-
AuthorPosts
-
11/25/2013 at 11:43 am #274282
Todd Broadbent
GuestWe have a WP multisite installation, v. 3.7.1. We’ve modified the wpconfig.php file as suggested to have only one set of db tables across all network blogs.
1. We are desperately trying to use a custom template but nothing works. We’ve tried creating our own and placing in wp-content/connections_templates/ folder, blogs.dir/blogid/connections_templates/ folder and connections/templates/ folder. We’ve also tried modifying an existing template. Nothing works. We get “Error: Template ‘our template’ not found”.
2. Some shortcodes work with “category_name=””, some do not but do work with id.
3. Also purchased extensions package for Links. Installed but gives blank directory listing even though email matches user. Having a lot of trouble with this plugin. Would appreciate some help. Thanks.
Version Information
WordPress: 3.7.1
Multisite: Yes
Connections: 0.7.9.3
Database: 0.1.9
Constants
CN_MULTISITE_ENABLED: FALSE
CN_ENTRY_TABLE: wp_connections
CN_ENTRY_ADDRESS_TABLE: wp_connections_address
CN_ENTRY_PHONE_TABLE: wp_connections_phone
CN_ENTRY_EMAIL_TABLE: wp_connections_email
CN_ENTRY_MESSENGER_TABLE: wp_connections_messenger
CN_ENTRY_SOCIAL_TABLE: wp_connections_social
CN_ENTRY_LINK_TABLE: wp_connections_link
CN_ENTRY_DATE_TABLE: wp_connections_date
CN_ENTRY_TABLE_META: wp_connections_meta
CN_TERMS_TABLE: wp_connections_terms
CN_TERM_TAXONOMY_TABLE: wp_connections_term_taxonomy
CN_TERM_RELATIONSHIP_TABLE: wp_connections_term_relationships
CN_DIR_NAME: connections
CN_BASE_NAME: connections/connections.php
CN_PATH: ‘removed’/smctemple/wp-content/plugins/connections/
CN_URL: http://smctemple.wpengine.com/wp-content/plugins/connections/
CN_RELATIVE_URL: /wp-content/plugins/connections/
CN_IMAGE_PATH: ‘removed’/smctemple/wp-content/connection_images/
CN_IMAGE_BASE_URL: http://smctemple.wpengine.com/wp-content/connection_images/
CN_IMAGE_RELATIVE_URL: /wp-content/connection_images/
CN_TEMPLATE_PATH: ‘removed’/smctemple/wp-content/plugins/connections/templates/
CN_TEMPLATE_URL: http://smctemple.wpengine.com/wp-content/plugins/connections/templates/
CN_TEMPLATE_RELATIVE_URL: /wp-content/plugins/connections/templates/
CN_CUSTOM_TEMPLATE_PATH: /nas/wp/www/cluster-1272/smctemple/wp-content/connections_templates/
CN_CUSTOM_TEMPLATE_URL: http://smctemple.wpengine.com/wp-content/connections_templates/
CN_CUSTOM_TEMPLATE_RELATIVE_URL: /wp-content/connections_templates/
CN_CACHE_PATH: ‘removed’/smctemple/wp-content/plugins/connections/cache/
Server Configuration
Operating System : Linux (32 Bit)
Server : Apache
Memory usage : 16.81 MByte
MYSQL Version : 5.5.25a-27.1-log
SQL Mode : Not set
PHP Version : 5.3.2-1ubuntu4.17
PHP Safe Mode : Off
PHP Allow URL fopen : On
PHP Memory Limit : 256M
PHP Max Upload Size : 50M
PHP Max Post Size : 100M
PCRE Backtracking Limit : 500000
PHP Max Script Execute Time : 3600s
PHP Exif support : Yes ( V1.4 )
PHP IPTC support : Yes
PHP XML support : Yes
Graphic Library
GD Version : 2.0
FreeType Support : Yes
FreeType Linkage : with freetype
T1Lib Support : Yes
GIF Read Support : Yes
GIF Create Support : Yes
JPEG Support : Yes
PNG Support : Yes
WBMP Support : Yes
XPM Support : No
XBM Support : No
JIS-mapped Japanese Font Support : No
Folder Permissions
Image Path Exists: Yes
Image Path Writeable: Yes
Template Path Exists: Yes
Template Path Writeable: Yes
Cache Path Exists: Yes
Cache Path Writeable: Yes11/25/2013 at 4:38 pm #274299Steven Zahm
Keymaster@ Todd
1. The
connections_templates
folder is only there to support legacy templates, not for custom templates. Since templates are plugins, you need to put them in theplugins
folder. And for WP to recognize it as a plugin, the template needs to have the plugin header added. If you trying to make a custom template from one of the core templates you’ll need to change all class and function names and will as theslug
in the$atts
array.2. Make sure you are not copy/pasting option from the website. Delete the shortcode manually type the options and option values. Copy/pasting from the website will past in hidden HTML markup and/or fancy quotes neither of which the WP shortcode API supports when trying to parse the options.
3. If the user logged in with Link installed prior to have an entry in Connections, the user will not be linked. For example, user logins in, no match is found. The user is marked as being checked and will not be checked again. For testing. Create an entry in Connections, create a user, and then login as that user. Some membership plugins do break the linking process. Do you have any installed?
Hope that helps.
11/26/2013 at 6:04 pm #274377Todd
GuestWe’re 50/50.
1. Was able to install template as a plugin. Connections still does not recognize the template in dashboard. Same error on the page. “Error: Template /template-name/ not found.”
2. Still inconsistent. No fix.
3. Needs more testing but appears to be working.
11/28/2013 at 1:22 pm #274467Steven Zahm
Keymaster@ Todd
1. As an experiment. Can you delete the core template that you started with from the Connections templates folder? Also, if you post the code on pastbin or something, I’ll do a quick scan to see if I can see the issue.
2. Can you paste a few of the exact shortcodes you’re using here? And can you share the links to the pages they are used on so I can take a look?
3. If you still have issues, let me know. I have the next bugfix release nearly ready to go. One item that is addressed is making it a little more forgiving … I just hope not too forgiving when making matches. Currently it is very strict by design. This usually gives users trouble with testing even though in actual practice it’ll work just fine.
12/02/2013 at 2:38 pm #274621Mat
Guest1. Here is the template code http://pastebin.com/HzZtkTN5
12/02/2013 at 3:21 pm #274647Matt
Guest1. I probably should mention we tried deleting the core template but that didn’t work.
12/02/2013 at 3:40 pm #274648Steven Zahm
Keymaster@ Matt
One this I see… This line should be the following based on your code.
$template->part( array( 'tag' => 'card', 'type' => 'action', 'callback' => array( $this, 'smccard' ) ) );
You can remove this line:
'custom' => FALSE,
That value will set itself properly when activated as a plugin.
You said it activated fine without error as a plugin, yes?
12/02/2013 at 4:34 pm #274655Todd Broadbent
GuestYes, it was recognized as a plugin fine.
We made the code changes but it still doesn’t recognize the template.
12/02/2013 at 8:02 pm #274675Steven Zahm
Keymaster@ Todd
Of, I see the template must be loading before Connections loads. To make sure the template loads after Connections, change this:
add_action( 'cn_register_template', array( 'CN_SMC_Card', 'register' ) );
To this:
add_action( 'plugins_loaded', array( 'CN_SMC_Card', 'register' ), 11 );
I just tried it out; with that change it works as expected.
12/04/2013 at 10:04 am #274756Todd Broadbent
GuestSteven,
That did it. Thanks for your help!! –Todd
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.