News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

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

Smoky "Rider" Blue

the person i installed it for has no issues with the mod now..

Robbie.. if Charles cant help you by the time i wrap up, maybe late tomorrow, i will edit for you.. just pm me to remind ok??  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Charles Hill

#441
Editing is not required... he just doesn't understand that he has to make his site accessible to guests for guests to be able to view his blog community.  As for his b102 error... The URLs he gave are confusing... He is trying to access user #1's blog control panel?  Isn't that the admin (him)?  The second address he gave was to the blog index.... You can't get the b102 error there.

Smoky "Rider" Blue

i do agree.. after i did the edits you said to, there has been no more issues with the mod at all..

but maybe the files are umm missing a bit?? might cause errors to happen, anyways Robbie, if you still need help, post up ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

ilikeitalot

I haven't had time to install your new v2 version yet, but I'm dying to... can't wait!  It really looks amazing.  I'm hoping to get it installed this weekend.  I was curious if you might have a newer version out before then.  If not, that's fine... I'll just install v2.0.2 and apply the fixes you've posted in this thread.  Thanks again for the great work Charles!

Charles Hill

I haven't gotten to work yet on any of the new things I wanted to add / finish.  I have already made the couple fixes for a new version though.  All of which are in the Blog files (not smf source or theme files).

I've been rebuilding my store front.  It is almost usable.  Once I get that working I will get to work on 2.0.3 Beta and some add-ons.

qubbah

how about commentors avatars?

LadyC

i'm having an unusual problem. the blog community thing works great for the admins! but when a member tries to create a blog, they get a page that says an error has occurred. but it doesn't say WHAT error occurred. i do have it set to community blogging mode. i thought maybe i could get around this by setting up blogs for the members, but it doesn't appear that i'm able to do that.

any suggestions? here's a link to the forum it's on. http://2glorify.com

Smoky "Rider" Blue

do you have any errors in the log? if so, could you list them?? :)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

LadyC

 Apply Filter: Only show the error messages of this URL  http://2glorify.com/index.php?action=blogControlPanel;u=113

Apply Filter: Only show the errors with the same message
8: Undefined index: cannot_write_blog
File: /home/cprice/public_html/Sources/Errors.php
Line: 337

Charles Hill

#449
Ahhh... Yes I forgot to include the error language strings :(   I'm a goofball.

Here they are...

$txt['cannot_write_blog'] = 'Sorry, but you are not allowed to blog.';
$txt['cannot_multiple_blogs'] = 'Sorry, but you are not allowed to have multiple blogs.';
$txt['cannot_pseudo_independent_blog'] = 'Sorry, but you are not allowed to use the pseudo-independent blog setting.';
$txt['cannot_blog_restrict_access'] = 'Sorry, but you are not allowed to restrict access to your blogs.';
$txt['cannot_blog_set_posting_restrictions'] = 'Sorry, but you are not allowed to set posting restrictions for your blogs.';
$txt['cannot_delete_own_blogs'] = 'Sorry, but you are not allowed to delete your own blogs.';


You'll need to add those at the end of your Errors.english.php language file or whatever language you are using.

LadyC

ok, so if i add those to the end of that page, people will know that they aren't allowed to blog, but WHY aren't  they allowed to? i've got it set to community mode, i want people to be able to use it.... can i fix that?

LadyC

ok, let me rephrase that question... i checked the permissions for each group and they were all off. i'm turning them on now. but why were they off? when i set it to community mode, shouldn't it have turned them all on?

Smoky "Rider" Blue

its just like any other setting in the forum Lady C, if you dont give permission they cant use it ;)

thanks Charles, i was going to ask about that as well ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Charles Hill

#453
Yes you need to give the member groups the write_blog permission for them to be able to access their blog control panel and create a blog.  Look for "Can make their own blog" under the permission group "Blog" in your Administrator area of your site (Members > Permissions).

digit

I need to uninstall an older version of this.

Would you happen to have previous versions?

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Charles Hill

Which version do you need?

digit

Not sure, but my Blog.template.php is v1.11.

I see there have been A LOT of changes recently!
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Charles Hill

I posted the install.xml from v1.11 a few pages ago in this topic... Here's the link:
http://www.simplemachines.org/community/index.php?topic=244848.msg1703476#msg1703476

That should help you manually uninstall v1.11

edit---
You should note that there have been a few minor issues with 2.0.2 Beta and I've posted a few fixes in this topic also.

digit

Thanks - apparently it's not 1.1  I have this in Post.php....



if (!empty($modSettings['blogMode'])) {

$boardinfo = db_query("
SELECT blog_board, blog_owner
FROM {$db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
$boardinfo = mysql_fetch_assoc($boardinfo);

// it's gotta be a blog board
if (!empty($boardinfo['blog_board'])) {

// check to see if this user is the blog owner ONLY if this is a new topic
if (empty($topic)) {


$context['is_blog_owner'] = $context['user']['id'] == $boardinfo['blog_owner'] ? true : false;

if (isset($context['is_blog_owner'])) {
if (!$context['is_blog_owner'])
fatal_lang_error('only_blog_owner', false);

}
}

if (($modSettings['blogMode'] == 3) && allowedTo('write_blog')) {

if (isset($_REQUEST['board']))
$boardID = (int) $_REQUEST['board'];
else
$boardID = $board;

$request = db_query("
SELECT blog_owner
FROM {$db_prefix}boards
WHERE ID_BOARD = $boardID
AND blog_board = 1
LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request) > 0)
$blog_info = mysql_fetch_assoc($request);

mysql_free_result($request);
}

$context['blogBoard'] = ($modSettings['blogMode'] == 3) ? $boardID : $modSettings['blogBoard'];

$allowed_to_blog = false;
if (!empty($blog_info))
$allowed_to_blog = $blog_info['blog_owner'] == $context['user']['id'] ? true : false;

if ($modSettings['blogMode'] == (1 || 2))
$allowed_to_blog = true;

if (isset($_REQUEST['topic']) && isset($_REQUEST['msg']) && $allowed_to_blog)
$context['show_category_select'] = empty($topic) || (isset($_REQUEST['msg']) && $_REQUEST['msg'] == $ID_FIRST_MSG) ? true : false;
elseif ($allowed_to_blog)
$context['show_category_select'] = isset($_REQUEST['board']) ? true : false;
else
$context['show_category_select'] = false;

// let's get the blog category that this topic is currently in
$request = db_query("
SELECT bc.categoryID, bc.name
FROM {$db_prefix}blog_categories as bc
LEFT JOIN {$db_prefix}topics as t ON (bc.categoryID = t.categoryID)
WHERE t.ID_TOPIC = $context[current_topic]
ORDER BY t.categoryID
LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request) > 0) {
$row = mysql_fetch_assoc($request);
$context['current_blog_cat'] = array(
'id' => $row['categoryID'],
'name' => $row['name'],
);
}
mysql_free_result($request);
if (isset($row))
unset($row);

$memberID = $context['user']['id'];

// let's get all the blog categories now
$request = db_query("
SELECT categoryID, name, total
FROM {$db_prefix}blog_categories
WHERE memberID = $memberID
AND boardID = $context[blogBoard]", __FILE__, __LINE__);

if (mysql_num_rows($request) > 0) {
$context['blog_categories'] = array();
// Build the categories array
while ($row = mysql_fetch_assoc($request)) {
$context['blog_categories'][] = array(
'id' => $row['categoryID'],
'name' => $row['name'],
'total' => $row['total'],
'href' => $scripturl .'?category='. $row['categoryID'],
);
}
}
mysql_free_result($request);
if (isset($row))
unset($row);
}
}




Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Charles Hill

Sorry I don't have version earlier than 1.11.  But it's safe to assume that the code right there is part of an older version of the blog mod :)

Advertisement: