Better Blogs [Deleted]

No urgency, nope.

Is there an easy way to add the RSS icon to the blog title? I know this is a future fix, but it'd be nice to have.

One issue I noticed is that while I ran the LN Blogs importer, attachments got messed up somehow in the process. It's as if the importer grabbed some random attachments and added them to a variety of blog posts:

Three different blog posts, similar attachments, without the attachments belomning to the blog posts.

View attachment 36327View attachment 36328View attachment 36329

If I want to rerun the import, how would I proceed with that?


Edit: LN Blogs had a XenPorta moduel showing the last 5 blog entries posted. Does somethign similar exist for this add-on by any chance?
I'll check the attachments issue. Sounds like a bug to me.
If you want to re-run the import, first you need to clear the tables (fastest way is just to "uninstall" - not disable) the addon, and install it again, then re-run the import
 
Help please?
I would need to ask the author of that add-on about how to provide compatibility with his add-on. I read the source for it and it seems to hook into the post listeners (hence why it does not work when inside blogs). If it were a default bbcode it would just work, but it seems that is has some other fancy options and it ends up disabled.
 
I would need to ask the author of that add-on about how to provide compatibility with his add-on. I read the source for it and it seems to hook into the post listeners (hence why it does not work when inside blogs). If it were a default bbcode it would just work, but it seems that is has some other fancy options and it ends up disabled.
Please ask! parsehtml is ten times more important than most bb codes.
 
Can this import blogs from vB 4.x?

Also does it automatically adopts all UI elements from our xF theme?

Thanks.
I have not tested this with 4.x, you could try using the existing importer, though it is tailored for 3.8
The database structure from vb 3.8 and 4.x for blogs didn't really change, so it should work, but I cannot give any guarantee for that since I have not personally tested it. Adding a vb4 importer is not planned.

It will use whatever styling your theme has, in "classic" mode it reuses the standard XenForo navigation, css classes and everything.
 
I'll check the attachments issue. Sounds like a bug to me.

Any update on this? I'm keen to release it on my site, and the attachments issue is the one thing keeping me back for now.

Also, when I click on Forums, I see about 20 queries from this add-on, all the same:

Code:
SELECT user.*
    
    ,xfa_blog.last_entry
    ,xfa_blog.blog_key 
    ,xfa_blog.entry_count
    
        ,xfa_blog_read.blog_read_date
        
FROM xf_user AS user

    LEFT JOIN xfa_blog ON xfa_blog.user_id = user.user_id
    
        LEFT JOIN xfa_blog_read ON xfa_blog_read.blog_user_id = user.user_id AND xfa_blog_read.user_id = 1
        
WHERE user.username = ?

[B]Run Time:[/B] 0.001632
Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
SIMPLE user const username username 152 const 1  
SIMPLE xfa_blog const PRIMARY PRIMARY 4 const 1  
SIMPLE xfa_blog_read const user_id user_id 8 const,const 0 unique row not found

Anything that could be done about that by any chance?
 
  • Like
Reactions: HWS
Any update on this? I'm keen to release it on my site, and the attachments issue is the one thing keeping me back for now.

Also, when I click on Forums, I see about 20 queries from this add-on, all the same:

Code:
SELECT user.*
   
    ,xfa_blog.last_entry
    ,xfa_blog.blog_key
    ,xfa_blog.entry_count
   
        ,xfa_blog_read.blog_read_date
       
FROM xf_user AS user
 
    LEFT JOIN xfa_blog ON xfa_blog.user_id = user.user_id
   
        LEFT JOIN xfa_blog_read ON xfa_blog_read.blog_user_id = user.user_id AND xfa_blog_read.user_id = 1
       
WHERE user.username = ?
 
[B]Run Time:[/B] 0.001632
Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
SIMPLE user const username username 152 const 1 
SIMPLE xfa_blog const PRIMARY PRIMARY 4 const 1 
SIMPLE xfa_blog_read const user_id user_id 8 const,const 0 unique row not found

Anything that could be done about that by any chance?
I usually work on my projects only on the weekends, I'll be checking this bug this Saturday.
My plan is to release a 1.0.9 that will fix this among other bugs.

About the queries, could you help me with something? Disable the addon and check if you still have the same 20 queries. The addon hooks into the user model to get it's information, but it doesn't add any additional queries per itself. I suspect you will have the exact same number of queries without the add-on, though it would not fetch the blog data.
 
Typical, lol. I just checked, and now do not see the queries, even after re-enabling the add-on. I'll have a more in-depth look tomorrow.
 
Any update on this? I'm keen to release it on my site, and the attachments issue is the one thing keeping me back for now.

If you don't want to wait until the weekend when I will release the update, on the file

library/XfAddOns/Blogs/Importer/LNBlogs.php, roughly at line ~311
The code was missing the "content_type" bit

$attachments = $sDb->fetchAll($sDb->limit("
SELECT
attachment.*, entry.user_id, attachment_data.*
FROM xf_attachment attachment
INNER JOIN lnblog_entry entry ON attachment.content_id = entry.entry_id AND attachment.content_type = 'blog_entry'
INNER JOIN xf_attachment_data attachment_data ON attachment.data_id = attachment_data.data_id
WHERE attachment_id > " . $sDb->quote($start) . "
AND entry.message_state = 'visible'
ORDER BY attachment_id
", $options['limit']
));
 
v1.0.8 in use here... I cannot create new blog entry nor edit existing blog entry.. the screen just goes white in both cases. The comments entry and edit are both working as expected.
Please advise.
 
there is no entry in the server error log
Thanks, I'm taking a quick look right now

Edit:
It is returning a 500 error. Was it like that before?

The are two error logs, the XenForo one that you get through the AdminCP -> Tools, and the apache ones that you can check on the error_log file or through CPanel on the errors log

Without more information there is not much that I can really debug.
You might want to enable debug for a while
Code:
$config['debug'] = true;
in your config.php to expose a little more information.
 
Thanks, I'm taking a quick look right now

Edit:
It is returning a 500 error. Was it like that before?

The are two error logs, the XenForo one that you get through the AdminCP -> Tools, and the apache ones that you can check on the error_log file or through CPanel on the errors log

Without more information there is not much that I can really debug.
You might want to enable debug for a while
Code:
$config['debug'] = true;
in your config.php to expose a little more information.
.... Before that, I am uploading a 1.0.9 version in a minute that fixes some PHP 5.3 compatibility. Could you try upgrading to that first?
 
Back
Top Bottom