zCommunity 0.8.1 Beta Now available! (supports SMF 2.0 RC1 and 1.1.8)

Started by Charles Hill, June 16, 2008, 03:33:34 PM

Previous topic - Next topic

Charles Hill

That has nothing to do with it.  It's working perfectly on one of my blank forums.  He has a lot of mods installed.  I will still try to help him figure it out though.

Also, if you all would like to see what new stuff I'm up to...
http://dev.degreesofzero.com/Blog.php?blog=69

If you notice that page only displays the blog, and not any of the other stuff from the forum.  This is an added setting in the blog control panel.  The plan is to allow users to choose from several different custom blog themes (like word press and other blogging software).  How I did this was take Blog.php from the sources folder and modify it heavily, and I loaded SSI.php at the top.  It uses the member, security, permissions, etc systems from SMF.

The possibilities of this are limitless.  I am consulting with a graphics design person about him creating some blog templates for me.  Let me know what you all think :)

Joel-san

#121
Quote from: Charles Hill on July 11, 2008, 05:12:18 AM
That has nothing to do with it.  It's working perfectly on one of my blank forums.  He has a lot of mods installed.  I will still try to help him figure it out though.
It may have. I have two servers. One is running MySQL 4.1 and the other 5.0. Your queries work perfectly in 5.0 but fail to work in 4.1. It would seem that 4.1 doesn't recognize NOT.

Quote from: Charles Hill on July 11, 2008, 05:12:18 AMAlso, if you all would like to see what new stuff I'm up to...
http://dev.degreesofzero.com/Blog.php?blog=69

If you notice that page only displays the blog, and not any of the other stuff from the forum.  This is an added setting in the blog control panel.  The plan is to allow users to choose from several different custom blog themes (like word press and other blogging software).  How I did this was take Blog.php from the sources folder and modify it heavily, and I loaded SSI.php at the top.  It uses the member, security, permissions, etc systems from SMF.

The possibilities of this are limitless.  I am consulting with a graphics design person about him creating some blog templates for me.  Let me know what you all think :)
Interesting idea. Welcome addition. It would fit perfectly for my site.

computel

how do I fix this?

Quote from: Joel-san on July 11, 2008, 04:58:23 AM
I would still suggest that computel isn't seeing the comments because of the AND NOT in the MySQL querys in getComments function.

computel

I turned on the error log and I saw this

http://www.canadianracingonline.com/smf/index.php?action=blog;blog=106 
8: Undefined index: extra_links
File: /home/canadian/public_html/smf/Themes/default/languages/Stats.english.php (eval?)
Line: 16


Quote from: Charles Hill on July 11, 2008, 04:46:02 AM
Are you getting any errors in your forum's error log?

Charles Hill

Alright let's try it with != instead of AND NOT :)

@computel...

Find both instances of the following (in getComments in Blog.php)
AND NOT ID_MSG = $exclude_message

Replace both instances with the following:
AND ID_MSG != $exclude_message


computel

There was only on instance in the blog.php and it didn't do a thing when it was changed.

Thanks

Quote from: Charles Hill on July 11, 2008, 10:12:02 AM
Alright let's try it with != instead of AND NOT :)

@computel...

Find both instances of the following (in getComments in Blog.php)
AND NOT ID_MSG = $exclude_message

Replace both instances with the following:
AND ID_MSG != $exclude_message



Charles Hill

Errr sorry

They are very similar.  Find:
AND NOT m.ID_MSG = $exclude_message

and replace it with:
AND m.ID_MSG != $exclude_message

computel

That did the trick thank you.



Quote from: Charles Hill on July 11, 2008, 01:27:39 PM
Errr sorry

They are very similar.  Find:
AND NOT m.ID_MSG = $exclude_message

and replace it with:
AND m.ID_MSG != $exclude_message

computel

Comments are working now but I notice this in the error log

I turned on the error log and I saw this

http://www.canadianracingonline.com/smf/index.php?action=blog;blog=106 
8: Undefined index: extra_links
File: /home/canadian/public_html/smf/Themes/default/languages/Stats.english.php (eval?)
Line: 16

what does this mean and how do I fix that.

Thanks

Charles Hill

In Blog.template.php there is a context variable....
$context['extra_links']

replace this with
!empty($context['extra_links']) ? $context['extra_links'] : ''

computel

That messes up the template. the blog goes really small right beside the right hand archives.

Thanks


Quote from: Charles Hill on July 12, 2008, 02:04:17 AM
In Blog.template.php there is a context variable....
$context['extra_links']

replace this with
!empty($context['extra_links']) ? $context['extra_links'] : ''

ilikeitalot

#131
Thanks for all the great work Charles.  I just installed and tested v1.11 and it works great.  One thing I was wondering though... I had asked this before, but it's not showing avatars beside each blog on the blog index page.  It would be nice if it did that.  Would add a little more color to the listing.

Edit:  Sorry, just one more request.  Could you make the "who's online" page show people who are viewing a blog or the blog index?  Right now it just shows "Unknown Action".

Edit: Hmm nvm, I have yet another request lol.  Here's a list of all of em:


  • Show member's avatar to the left of each blog name on the blog index
  • Show users's blog action (viewing blog index, viewing blog, viewing specific blog entry, posting to blog entry) on the "Who's Online" page + a link to where they are
  • With notification emails, it would be nice if the link went to the blog article, rather than the board topic
  • Show total blog views (below # of topics and comments) on blog index, then maybe optionally sort the list by # of views DESC (would give incentive for ppl to post good blog content, to get their blog to the top of the list)

BTW, I agree about releasing new blog features as a separate package.  I've heavily customized mine already, so uninstalling and reinstalling would not be much fun.

Charles Hill

Quote from: computel on July 12, 2008, 08:22:12 AM
That messes up the template. the blog goes really small right beside the right hand archives.

Thanks

Sorry about that.. the periods were messing it up... find the following:
. $context['extra_links'] .

Replace with the following:
, !empty($context['extra_links']) ? $context['extra_links'] : '',

@ilikeitalot
Thanks for all the great suggestions.  I will add them in for the v1.12 :)   And I'll make a patch version for 1.11 to 1.12 to make it easier for those who have it installed already.

computel

Thanks that did the trick.

Quote from: Charles Hill on July 13, 2008, 07:24:13 PM
Quote from: computel on July 12, 2008, 08:22:12 AM
That messes up the template. the blog goes really small right beside the right hand archives.

Thanks

Sorry about that.. the periods were messing it up... find the following:
. $context['extra_links'] .

Replace with the following:
, !empty($context['extra_links']) ? $context['extra_links'] : '',

@ilikeitalot
Thanks for all the great suggestions.  I will add them in for the v1.12 :)   And I'll make a patch version for 1.11 to 1.12 to make it easier for those who have it installed already.

cleanfiles

@ilikeitalot, in your Who.english.php   add this string

$txt['whoall_blog'] = 'Viewing <a href="'.$scripturl.'?action=blog">The Blogs</a>.';

This will display where members are when members are viewing the blog pages.

Charles Hill

Quote from: cleanfiles on July 14, 2008, 03:38:03 AM
@ilikeitalot, in your Who.english.php   add this string

$txt['whoall_blog'] = 'Viewing <a href="'.$scripturl.'?action=blog">The Blogs</a>.';

This will display where members are when members are viewing the blog pages.

I think ilikeitalot was looking for something more specific.  I worked on this a bit today and I got the Who.php modifications 90% done.  Only thing is... if a blog is pseudo-independent from the rest of the forum, you will only be able to see if a user is viewing a blog, not what they are viewing in that blog.  I'll work on it some more, though.  I added blog views below number of topics and comments on the blog index, also.  I think I'll add another optional window on the side bar of blogs to display that blog's statistics.

I'm going to have people with graphic design skills make some templates for the pseudo-independent blogs.  These templates will look as good or better than the templates available with other blog software.  The default blog template will be free with the software.  Additional templates will be available for purchase from my site as soon as they become available and have been thoroughly tested.  I haven't settled on any details yet.

cleanfiles

I cant wait till you get it all done, i will be starting a new smf site soon (waiting for the new smf and a couple of other bits and pieces). The blog will be one of the main features of the site its awesome.

ybn1197

Quote from: chrisb on June 27, 2008, 05:41:13 PM
We have installed the mod on a brand new forum, then went into features and options and we are unable to find the blog mod appearing in the forum at all,

Is there anywhere else it should appear as we are unable to activate the blog mod on the test forum.
Was this ever resolved? I'm having the same problem. I installed it into a vanilla test environment (no other mods, default template) but I don't see the Blog Control panel in the menu. I double checked the database and I see the settings in the smf_settings table but I can't access anything.
If no one lived to tell the tale... how is the tale being told?

kizley

I have installed Blog mod,i can see the tag of blog ,but when i click that tag there comes nothing except blank space,no option where to start ,where to write etc etc.

Charles Hill

#139
Quote from: ybn1197 on July 15, 2008, 09:21:32 AM
Quote from: chrisb on June 27, 2008, 05:41:13 PM
We have installed the mod on a brand new forum, then went into features and options and we are unable to find the blog mod appearing in the forum at all,

Is there anywhere else it should appear as we are unable to activate the blog mod on the test forum.
Was this ever resolved? I'm having the same problem. I installed it into a vanilla test environment (no other mods, default template) but I don't see the Blog Control panel in the menu. I double checked the database and I see the settings in the smf_settings table but I can't access anything.
Make sure the txt strings were added properly to your forum's language files.  Look at the install.xml file that came with the package and compare the changes made to your language files.

Quote from: kizley on July 15, 2008, 12:40:11 PM
I have installed Blog mod,i can see the tag of blog ,but when i click that tag there comes nothing except blank space,no option where to start ,where to write etc etc.

Go to your admin area.  Then go to Blog Control Panel (Configuration >> Blog Control Panel).  From here you can set the necessary settings and set up your blog or blogs.

Advertisement: