Forum Replies Created
-
Author
-
stParticipant
Hi @Radu
I am not able to provide FTP access but this problem is easy to replicate. Just install the latest versions of WordPress and SweetDate. No additional code is needed. Follow standard WordPress instructions to embed:
https://codex.wordpress.org/Embeds
It works in WordPress default theme “Twenty Fifteen.” It doesn’t work in SweetDate.
Please let me know if further clarification is needed.
Cheers,
ststParticipantHi @Radu
This does seem to work for the twitter embed but not for an Instagram embed: http://www.savortechnology.com/wordpress/2015/09/30/test-instagram/
stParticipantPlease feel free to change the theme from “SweetDate” to “Twenty Fifteen” to see how it should be displayed correctly.
stParticipantI’ve hit the bottom of the list. There is no way to get to page 2 from here.
Attachments:
You must be logged in to view attached files.stParticipantThe above link did not work. Here is the actual example page: http://seventhqueen.com/demo/sweetdatewp/forums/forum/general-discussion/
stParticipantIt seems the issue might be with CloudFlare’s Auto Minify feature. Not sure what changed that is causing it to fail but I am turning it off for now.
stParticipantYup. Long story short a plugin was changing bp_ajax_querystring from a string to an array. Arrays are supported and the plugin was working on other areas of the site. It was only causing problems for the member directory page.
COPY CODEadd_filter('bp_ajax_querystring', 'test', 11, 2); function test($query_string) { return wp_parse_args($query_string); }
stParticipantThis is not a result of a plug-in. WordPress 2.6 supports moving the wp-content directory by specifying WP_CONTENT_DIR and WP_CONTENT_URL. This functionality is included in the WordPress core and mentioned in the WordPress codex. I assume that you’d like your theme to support this core functionality. I have already tested this for you and have provided the code below. I hope that you are able to include these updates in the next version of the theme.
sweetdate/framework/options/default.php line 17:
define('SQUEEN_OPTIONS_URL', get_template_directory_uri() . '/framework/options/');
sweetdate/custom_buddypress/bp-functions.php line 1025:
if (copy(FRAMEWORK_URL."/inc/bp-custom.php", WP_PLUGIN_DIR."/bp-custom.php"))
stParticipantShoot. Can you please edit the above post to domain.com?
I don’t think that is the problem. The server definitely has write permissions. The file does not exist at /var/community.domain.com//wp-content/plugins/bp-custom.php. Shouldn’t it be trying to copy the file from /var/cdn.domain.com//wp-content/plugins/bp-custom.php?
stParticipantIt turns out the FontAwesome bug was related to my .htaccess settings and is working now without having to use the CDN.
However, I’ve since enabled warnings and am seeing this:
Warning: copy(/var/community.domain.com//wp-content/plugins/bp-custom.php): failed to open stream: No such file or directory in /var/cdn.domain.com/wp-content/themes/sweetdate/custom_buddypress/bp-functions.php on line 1025
stParticipantdefine('SQUEEN_OPTIONS_URL', get_template_directory_uri() . '/framework/options/');
has the same output as
define('SQUEEN_OPTIONS_URL', get_bloginfo('template_directory') . '/framework/options/');
so it works but the FontAwesome icons do not appear in Internet Explorer or FireFox. I am using this as a temporary workaround:
COPY CODEwp_deregister_style('font-awesome'); wp_enqueue_style('font-awesome-cdn', '//maxcdn.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css');
stParticipantI was able to fix the Font Awesome issue by loading it from the CDN instead:
COPY CODEwp_deregister_style('font-awesome'); wp_enqueue_style('font-awesome-cdn', '//maxcdn.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css');
I still think it would be wise to apply the changes from the original post to the theme so it will support WP_CONTENT_DIR and WP_CONTENT_URL.
stParticipantThe icons are not loading in FireFox for me after moving the wp-content directory. Perhaps these issues are related?
https://archived.seventhqueen.com/forums/topic/squeen_options_url-and-wp_content_dir
stParticipantv2.6.1
Also the twitter widget was working great but it now says:
Latest Tweets
Twitter said: ArraystParticipantIt’s working perfectly in Safari. In FireFox the image is 100% page width and overlapping with the sidebar.
stParticipantAs I already mentioned above this does not work. I tried copying your code exactly and it still doesn’t work. Please test in Safari and FireFox. Thanks.
stParticipantI want to leave the admin bar on. Can you please add a margin-top to .top-bar so that it won’t overlap?
jQuery(‘.top-bar’).css(‘margin-top’, ’28px’);
or
jQuery(‘.top-bar’).css(‘margin-top’, jQuery(‘#wpadminbar’).height());
stParticipantThis is not an ideal solution because the CSS will need to replaced when the theme is updated. Also, you did not answer my question about changing the blue colors on the BuddyPress template pages. Please see the image posted above.
-
AuthorPosts