[TaylorJ] Blogs

[TaylorJ] Blogs 1.3.0

No permission to download
Looks like this will be great. But just installed on 2.3.2 and when I go to the blogs page from main navigation I get:

This area is temporarily unavailable while it is being upgraded. Please try again shortly.
OK, got that sorted, there was a note in ACP to finalise installation.

But now after creating a blog and saving:



Screenshot 2024-08-28 at 18.22.10.webp
 
The other suggestions have been added to my board of possible features as I'll take a further look into them.
Sweet, looking forward to it!
Prefix's are something I'm still debating on adding or not. If I do it will only be using the core XenForo prefix system which I am not sure supports multi prefix's.
Not in vanilla XF, true. But there is a Multi Prefix addon, maybe that's what they were referring too?
 
That could be what they're referring to. I haven't thought about it much at all but I doubt I'd go the path of supporting other third party addons with any of my work and would rather keep it to the core XenForo systems.
True, though (in the future) some of the most popular ones would certainly be nice to have. Although with XF2.3's webhooks, we could push blog posts to Discord/etc.

Suggestion: A way to auto-publish new posts to Twitter/X (with own API key for the limitations they impose for free) and other socials would certainly be nice to have, as well.
 
I don't know the developer's intentions about this blog tool but here's my thought: if he wants to achieve something really complete with a multitude of options he will get roughly closer to what Bob is already doing, and I think it will be difficult to compete with him and on the other hand we will probably no longer be towards a free or cheap addon.

If this blog tool remains simple, with the basic options, there will be a huge market to conquer, and this even if it became paid (in a reasonable price range for the future buyer and quite rewarding for the developer).

My wish would be to be able to buy a simple and robust blog tool for $25 or $30. Above you might as well buy UBS...This is my opinion, if with this tool you can create your blog with text, images, BBcodes, allow members to comment on it, that you can share it in a few clicks and display it in a widget then everything is fine, the main thing is there.
 
Whenever you have the time would you be able to provide what your browsers developer console is showing when this happens.
It's too long to include in text here so have attached

EDIT: issue does not happen when bulletin redirects add one is disabled.
 

Attachments

Last edited:
OK so above issue seems to be related to vbulletin redirect add-on.

So without that addon I can create a blog, but when I try to create a blog post (with all addons disabled)

Code:
XF\Db\Exception: MySQL query error [1265]: Data truncated for column 'blog_post_state' at row 1 src/XF/Db/AbstractStatement.php:230
Generated by: Pete Thomas Aug 29, 2024 at 1:41 PM
Stack trace
INSERT  INTO `xf_taylorj_blogs_blog_post` (`blog_id`, `blog_post_title`, `blog_post_content`, `scheduled_post_date_time`, `blog_post_state`, `user_id`, `blog_post_date`, `blog_post_last_edit_date`, `attach_count`, `embed_metadata`, `view_count`, `reaction_score`, `reactions`, `reaction_users`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1265, '01000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1265, '01000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1570): XF\Db\AbstractAdapter->insert('xf_taylorj_blog...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1300): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/addons/TaylorJ/Blogs/Service/BlogPost/Create.php(91): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(42): TaylorJ\Blogs\Service\BlogPost\Create->_save()
#8 src/addons/TaylorJ/Blogs/Pub/Controller/Blog.php(173): TaylorJ\Blogs\Service\BlogPost\Create->save()
#9 src/addons/TaylorJ/Blogs/Pub/Controller/Blog.php(143): TaylorJ\Blogs\Pub\Controller\Blog->blogPostSaveProcess(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(362): TaylorJ\Blogs\Pub\Controller\Blog->actionPostSave(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('TaylorJ\\Blogs:B...', 'PostSave', Object(XF\Mvc\RouteMatch), Object(TaylorJ\Blogs\Pub\Controller\Blog), NULL)
#12 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(TaylorJ\Blogs\Pub\Controller\Blog), NULL)
#13 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#15 src/XF.php(802): XF\App->run()
#16 index.php(23): XF::runApp('XF\\Pub\\App')
#17 {main}
Request state
array(4) {
  ["url"] => string(23) "/blogs/blog/0/post-save"
  ["referrer"] => string(62) "https://xf2.cafesaxophone.com/blogs/blog/petes-blog.1/add-post"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(13) {
    ["_xfToken"] => string(8) "********"
    ["blog_post_title"] => string(6) "Post 1"
    ["message_html"] => string(12) "<p>Stuff</p>"
    ["attachment_hash"] => string(32) "4844ce82a2a0eafbf8d43ea7aec924b9"
    ["attachment_hash_combined"] => string(108) "{"type":"taylorj_blogs_blog_post","context":{"blog_post_id":null},"hash":"4844ce82a2a0eafbf8d43ea7aec924b9"}"
    ["blog_post_schedule"] => string(1) "0"
    ["dd"] => string(10) "2024-08-29"
    ["hh"] => string(2) "13"
    ["mm"] => string(2) "00"
    ["blog_id"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(33) "/blogs/blog/petes-blog.1/add-post"
  }
}
 
OK so above issue seems to be related to vbulletin redirect add-on.

So without that addon I can create a blog, but when I try to create a blog post (with all addons disabled)

Code:
XF\Db\Exception: MySQL query error [1265]: Data truncated for column 'blog_post_state' at row 1 src/XF/Db/AbstractStatement.php:230
Generated by: Pete Thomas Aug 29, 2024 at 1:41 PM
Stack trace
INSERT  INTO `xf_taylorj_blogs_blog_post` (`blog_id`, `blog_post_title`, `blog_post_content`, `scheduled_post_date_time`, `blog_post_state`, `user_id`, `blog_post_date`, `blog_post_last_edit_date`, `attach_count`, `embed_metadata`, `view_count`, `reaction_score`, `reactions`, `reaction_users`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1265, '01000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1265, '01000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1570): XF\Db\AbstractAdapter->insert('xf_taylorj_blog...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1300): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/addons/TaylorJ/Blogs/Service/BlogPost/Create.php(91): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(42): TaylorJ\Blogs\Service\BlogPost\Create->_save()
#8 src/addons/TaylorJ/Blogs/Pub/Controller/Blog.php(173): TaylorJ\Blogs\Service\BlogPost\Create->save()
#9 src/addons/TaylorJ/Blogs/Pub/Controller/Blog.php(143): TaylorJ\Blogs\Pub\Controller\Blog->blogPostSaveProcess(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(362): TaylorJ\Blogs\Pub\Controller\Blog->actionPostSave(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('TaylorJ\\Blogs:B...', 'PostSave', Object(XF\Mvc\RouteMatch), Object(TaylorJ\Blogs\Pub\Controller\Blog), NULL)
#12 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(TaylorJ\Blogs\Pub\Controller\Blog), NULL)
#13 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#15 src/XF.php(802): XF\App->run()
#16 index.php(23): XF::runApp('XF\\Pub\\App')
#17 {main}
Request state
array(4) {
  ["url"] => string(23) "/blogs/blog/0/post-save"
  ["referrer"] => string(62) "https://xf2.cafesaxophone.com/blogs/blog/petes-blog.1/add-post"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(13) {
    ["_xfToken"] => string(8) "********"
    ["blog_post_title"] => string(6) "Post 1"
    ["message_html"] => string(12) "<p>Stuff</p>"
    ["attachment_hash"] => string(32) "4844ce82a2a0eafbf8d43ea7aec924b9"
    ["attachment_hash_combined"] => string(108) "{"type":"taylorj_blogs_blog_post","context":{"blog_post_id":null},"hash":"4844ce82a2a0eafbf8d43ea7aec924b9"}"
    ["blog_post_schedule"] => string(1) "0"
    ["dd"] => string(10) "2024-08-29"
    ["hh"] => string(2) "13"
    ["mm"] => string(2) "00"
    ["blog_id"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(33) "/blogs/blog/petes-blog.1/add-post"
  }
}
I'll have to take a look into this. I don't have any old vbulletin data to attempt to use with the addon so hopefully I can get this figured out with just having it installed. Luckily it's an "official" addon so it shouldn't be too hard to get through.
 
if with this tool you can create your blog with text, images, BBcodes, allow members to comment on it, that you can share it in a few clicks and display it in a widget then everything is fine, the main thing is there.

Totally agree.

I think this addon needs to have the basic features built in in a robust way. Those functions would be enough for me.
 
Features must be added:
  • Mainpage blogs description (in taylorj_blogs_index template)
  • Translatable phrases:
    • Create a blog
    • Create a new Blog
    • Blog description
    • Header image
    • Please keep it below the threshold


 
I'll have to take a look into this. I don't have any old vbulletin data to attempt to use with the addon so hopefully
I don't think you need any bulletin data as that add-on purely redirects from links which can be intern or external.

What I do note is the term blog appears in two files (at last) in the add-on:

(1) Redirect.php and (2) Router.php

which I presume may have something to do with it
 
I don't think you need any bulletin data as that add-on purely redirects from links which can be intern or external.

What I do note is the term blog appears in two files (at last) in the add-on:

(1) Redirect.php and (2) Router.php

which I presume may have something to do with it

This is the addon we are talking about, correct?
 
I should have the next beta out by this weekend, just attempting to get cover images to work again on blog posts, they were working, and now they're not which has something to do with my relation to the Attachment entity not returning any attachments back even even if they're associated.

That’s the one.
I'm pretty sure I'd need imported vBulletin data then or links at least since the addon takes links that pointed to old vBulletin links and redirects those to their xenforo counterparts, no? I'm not fully sure how the addon works but that's what I get from its description.
Did you by chance ever have your forum on vBulletin at one point with a blog addon?
 
Taylor J updated [TaylorJ] Blogs with a new update entry:

1.0.0 Beta 6

New Features
  • Comments! - Blog Posts will now automatically create a thread that will serve as the discussion home of a blog post in any forum specified in the blogs settings.
    • All previous blog posts that were created before this release will have threads created for them on upgrade, if this fails I will try to get a hotfix out as soon as possible with a tool added to run this same function from the ACP.
    • For this beta release you will initially need to go into...

Read the rest of this update entry...
 
Back
Top Bottom