afmelsaidy
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Flounder] Post Summary/Excerpt on Home Pageyes, I have the same problem. How can I disable the full post view and enable the excerpt in the blog page ?
Forum: Plugins
In reply to: [Google Doc Embedder] Enhanced Viewer Not WorkingThe reason my server is sending a “Content-Disposition: attachment” is because I added this
<FilesMatch "\.(mov|mp3|jpg|pdf)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch>to my hataccess file.
Another question: if I host my PDF files on a sub-domain will this make GDE load them faster or it wont have any effect ?
Forum: Plugins
In reply to: [Google Doc Embedder] Enhanced Viewer Not Workingcan you help me with a quick fix: is there a way to hide the full-screen button in the standard viewer manually without changing to the enhanced viewer ?
Forum: Plugins
In reply to: [Google Doc Embedder] Enhanced Viewer Not WorkingThanks for your response. Any new updates ?
Forum: Plugins
In reply to: [Google Doc Embedder] Enhanced Viewer Not WorkingHere is the problem : When I attach documents uploaded on my domain alexse.com the standard and enhanced viewer work great, but when I attach a document uploaded on a different domain than mine like example.com or even on my sub-domain upload.alexse.com the standard viewer works fine but the enhanced viewer shows a 404 error inside the viewer itself.
enhanced viewer with document on my domain:
http://alexse.com/ssp-electro-3-4/2013/07/29/demo/enhanced viewer with document on my sub-domain:
http://alexse.com/ssp-electro-3-4/2013/08/15/demo-2/Forum: Networking WordPress
In reply to: add users to all sites using the their same roleThe code I used but not worked :
add_action('wp','add_current_user_to_blog',10); function add_current_user_to_blog(){ if(!is_user_logged_in()) return false; global $current_user, $blog_id; switch_to_blog(1); //get role from main blog $user_Role = ($current_user->data->wp_capabilities); $add_Role = key($user_Role); restore_current_blog(); if (!is_blog_user()) //check for current membership add_user_to_blog($blog_id, $current_user->ID, $add_Role); //copy to current blog so roles work }