Search found 37 matches
- Mon Sep 20, 2010 4:58 pm
- Forum: Themes
- Topic: Facebook having trouble generating preview when sharing
- Replies: 7
- Views: 6811
Re: Facebook having trouble generating preview when sharing
My solution won't apply to too many people but just incase: I split my DisplayHeader function into two functions. One to process and display everything in my remote header file up to my {css} placeholder and one to display everything after my {css} placeholder. This lets me insert {serendipity_hookP...
- Sat Sep 18, 2010 8:10 pm
- Forum: Themes
- Topic: Facebook having trouble generating preview when sharing
- Replies: 7
- Views: 6811
Re: Facebook having trouble generating preview when sharing
Don: Yes, your plugin basically does what I need. I'll just need to do some minor modifications to get the data it generates in a format I can use.
Thanks for the help Garvin and Don.
Clint
Thanks for the help Garvin and Don.
Clint
- Fri Sep 17, 2010 10:18 pm
- Forum: Themes
- Topic: Facebook having trouble generating preview when sharing
- Replies: 7
- Views: 6811
Re: Facebook having trouble generating preview when sharing
No, somehow I missed that one. But, it doesn't work. The is due to the way I build the header, and not the fault of the plugin. I have a header template file from our main website which has placeholders in it for things like the title, some banners and additional CSS. I have a function in index.tpl ...
- Fri Sep 17, 2010 4:43 pm
- Forum: Themes
- Topic: Facebook having trouble generating preview when sharing
- Replies: 7
- Views: 6811
Facebook having trouble generating preview when sharing
I have noticed that facebook is having issues with finding relevant text when sharing a blog post manually or via AddThis. The easiest solution seems to be to add a <meta description=... tag in the head of the page. Seems easier said than done though. I'm using $head_title to set the <meta title=.. ...
- Thu Sep 16, 2010 10:30 pm
- Forum: Plugins
- Topic: Displaying plugins only for specific users?
- Replies: 3
- Views: 2263
Re: Displaying plugins only for specific users?
Sorry, I wasn't clear. I'm referring to sidebar plugins. I hacked serendipity_plugin_templatedropdown.php template chooser plugin to check if the user is admin so that I can try out different templates: function generate_content(&$title) { global $serendipity; ##################### #only show th...
- Wed Sep 15, 2010 5:00 pm
- Forum: Plugins
- Topic: Displaying plugins only for specific users?
- Replies: 3
- Views: 2263
Displaying plugins only for specific users?
While building new plugins I'd like to be able to only make them available to specific users for testing. This would allow me to mess around with code on the live blog but not have everyone see it until it's ready. If this is documented somewhere please point me to it. Otherwise, how might I do this...
- Thu Sep 09, 2010 5:20 pm
- Forum: Plugins
- Topic: Simple "Like" button
- Replies: 4
- Views: 2914
Re: Simple "Like" button
Also, I've noticed that a non logged in user can "Like" an entry every time they visit it. Is there not something in place to stop this?
- Thu Sep 09, 2010 5:16 pm
- Forum: Plugins
- Topic: Simple "Like" button
- Replies: 4
- Views: 2914
Re: Simple "Like" button
Thanks Garvin. I have made a copy of the karma plugin and hacked it to simply display a "Like" button. There are a couple of issues: I'd like to put the button in a different spot on the page. Specifically at the top of the entry near the Title and author, etc. How would I do this? I don't...
- Wed Sep 08, 2010 9:55 pm
- Forum: Plugins
- Topic: Simple "Like" button
- Replies: 4
- Views: 2914
Simple "Like" button
I'd like to have a plugin that allows people viewing a blog post to "Like" it. This doesn't have anything to do with facebook. It would be internal to the blog. I've looked at the Karma plugin, but it does way more than I need. What I want is the person viewing the post clicks "Like&q...
- Fri Feb 12, 2010 9:29 pm
- Forum: Plugins
- Topic: continuing work on vanity URLs - next and previous links
- Replies: 3
- Views: 2006
Re: continuing work on vanity URLs - next and previous links
Thanks Garvin! That did the trick. Thanks for the nudge in the right direction. $_SERVER['REQUEST_URI'] = $serendipity['serendipityHTTPPath'] . "authors/" . $authorInfo[0]['authorid'] . "-" . $authorInfo[0]['username']; Now to figure out how to gracefully fail when some one uses ...
- Fri Feb 12, 2010 5:09 pm
- Forum: Plugins
- Topic: continuing work on vanity URLs - next and previous links
- Replies: 3
- Views: 2006
continuing work on vanity URLs - next and previous links
I'm back after a break and working on my Vanity URL plugin. I have the plugin working so that http://www.example.com/blog/clintg displays the users posts. The issue I have now is that the next and previous page URLs are broken. I end up with a URL like http://www.example.com/blog/clintg/P2.html How ...
- Tue Dec 22, 2009 6:47 pm
- Forum: General discussions
- Topic: Doubt reg. Creating an user defined catogory
- Replies: 1
- Views: 1357
Re: Doubt reg. Creating an user defined catogory
There is a plugin called "Start Page Category" that lets you set the "Initial Hide Category" so that posts in a category aren't show on the front page.
- Tue Dec 22, 2009 6:01 pm
- Forum: Plugins
- Topic: Automagically filling out contact form fields
- Replies: 3
- Views: 2258
Re: Automagically filling out contact form fields
You'd need a way of getting $_GET['fieldname'] into your contact form. You'll have to do some php coding.
- Tue Dec 22, 2009 3:54 pm
- Forum: Plugins
- Topic: Automagically filling out contact form fields
- Replies: 3
- Views: 2258
Re: Automagically filling out contact form fields
I am a relative n00b when it comes to serendipity and smarty templates but have been programming php for many years. Here's what I'd suggest you look at. In your template file entries.tpl you can use the smarty variables to access various parts of the blog post. I'd think you could add something lik...
- Tue Dec 22, 2009 2:21 am
- Forum: Plugins
- Topic: vanity URLs and associated plugin
- Replies: 5
- Views: 2522
Re: vanity URLs and associated plugin
I've also noticed that serendipity_FetchAuthor() is case sensitive. I'd like UserName, username, and uSeRnAmE all to match when serendipity_fetchAuthor("username") is called.
Is it possible? Suggestions?
Thanks
Clint
Is it possible? Suggestions?
Thanks
Clint