Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Change discussion title format of discussions from WordPress integration plugin
frdmn
New
Hello,
im using the Vanilla WordPress plugin to take advantage of Vanilla as my comment system and also post new blog posts in the forums. It's working well so far, but I want to change the title format of the discussions made by the WordPress plugin. At the moment they look like "<blog post title> | <blog name>
". Also im not even sure if its a WordPress plugin or Vanilla embedded related thing. Anyone an idea?
Thanks
0
Comments
Hiya!
What version number of Vanilla are you running?
I am not sure what your are trying to do. Perhaps sharing a screenshot of what is happening right now, and what you want to change would shed some light.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Im running version 2.2.3.4 and WordPress 3.9.1.
When I write a new blog post now, it looks like this in the forums:
And I want to change the title format, so it's only "Test pos pls ignore".
I refuse to talk about alpha versions here, so the exact details below might be different on your setup.
Alright!
The discussion title is set up on the discussion controller in the Embed method. You can see it on line #813 in file
/applications/vanilla/controllers/class.discussioncontroller.php
.You need to hook in and change the form value. Something like below will get you started:
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
it is pulling the
| YEAHWHAT?!'
becuase that plugin relies on scraping.FetchPageInfo
is used it parses Open Graph so it first looks for<meta property="og:title" content="Your title" />
Then if it fail to find that it falls back to
<title>Your title | YEAHWHAT?!'</title>
Similar for
<meta property="og:description" content="Your content" />
which will fall back to
<meta property="description">Your content"</meta>
and finally the first paragraph it finds.So if you can put these in you wordpress head you are rolling.
http://davidwalsh.name/facebook-meta-tags
grep is your friend.
@x00 @hgtonight perfect, thank you guys! thats all I need.