NicotineLL
Forum Replies Created
-
Hi powerdh. Yes I did build my own templates with Bootstrap (https://cubthemes.com/support). When plugin is first installed it copies various template files into your theme dir, from the theme editor you can open those and apply your own Bootstrap HTML.
Yes, I can see that it has to be hard coded. I’ll tweak it when I’ve time and post a solution here.
By the way, I see that you had an option to disable caching, but it is not supported anymore. Any idea on how to prevent caching the plugin. I’m using WP Super Cache.
Forum: Fixing WordPress
In reply to: Permalinks & wp_posts problemI managed to do it!
First off, it was pointed out to me that if I leave posts with numeric permalinks they will eventually conflict with years and other slugs. This is why I added additional “i” in front of the numbers.
My solution was to edit the Social Network Auto Poster plugin’s WP option to send slugs as well (it is not set by default). I added an entry in wp_options that holds the number of posts sent via this plugin WP option, which if the post is successfully transfered is incremented by 1.
Now the posts slugs are build like this: i1, i2, i3, etc.
I think it’s looking good and I hope I didn’t miss anything that might result if future problems…
Forum: Plugins
In reply to: [User Photo] Image URL onlyI did manage to achieve the goal, but I had to hardcode the plugin.
I know it is not the best solution, but it will do for now. Here’s how I did it if somebody is wondering:
user-photo.php line 155 to 173 changed
$img = ''; $img .= $before; $img .= htmlspecialchars($src) . '"'; if(empty($attributes['alt'])) $img .= ' alt="' . htmlspecialchars($userdata->display_name) . '"'; if(empty($attributes['width']) && !empty($width)) $img .= ' width="580"'; if(empty($attributes['height']) && !empty($height)) $img .= ' height="300"'; if(empty($attributes['class'])) $img .= ' class="photo"'; if(!empty($attributes)){ foreach($attributes as $name => $value){ $img .= " $name=\"" . htmlspecialchars($value) . '"'; } } $img .= ' />'; $img .= $after; return $img;
to
$img = htmlspecialchars($src); return $img;
user-photo.php line 285 changed
echo userphoto__get_userphoto($userid, USERPHOTO_FULL_SIZE, $before, $after, $attributes, $default_src);
to
return(userphoto__get_userphoto($userid, USERPHOTO_FULL_SIZE, $before, $after, $attributes, $default_src));
Now you can call the URL with
userphoto($wp_query->get_queried_object());
Yes I did saw that, but I wasn’t able to post here earlier. It is really a wonder how one can make such a nice plugin and does simple errors like this ;] Thanks anyway!
It works perfectly, thank you!
By the way I think it might be a good addition to have this option built in the plugin itself. Another good thing would be if the plugin could automatically put the source for the Tubmlr post (for example the URL of the blog).
Forum: Fixing WordPress
In reply to: No Thumb on FacebookNo, but now I get “Response Code 206” – Can’t download: Could not retrieve data from URL.
Forum: Fixing WordPress
In reply to: No Thumb on FacebookI don’t know why you get those DNS servers, but when I check them I get these
ns105.icndns.net. [‘94.155.90.105’]
ns106.icndns.net. [‘94.155.91.106’]Anyway, when I put full image URL in the debugger tool I do get a 503 error. What does that mean?