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

The error with posting is because you have register_globals ON... The problem does not occur if register_globals is OFF.  I changed things a bit for 0.8.0 Beta so this shouldn't matter... but you should always turn register_globals OFF anyways, just for security reasons.

LinK187

Quote from: jkrlvgn on March 02, 2009, 06:28:40 PM
Actually, I goofed on something.  *LOL*

Go to the zCommunity folder, and open up zc.php

Code (Search for) Select

// Blog Control Panel link...
if (!$user_info['is_guest'])
$context['zc']['extra_links'][] = '<a href="'. $scripturl .'?zc=bcp" rel="nofollow">' . $txt['b3002'] . '</a>';


Code (Replace with) Select

// Blog Control Panel link...
if (!$user_info['is_guest'])
$context['zc']['extra_links'][] = '<a href="'. $scripturl .'?zc=bcp" rel="nofollow">' . $txt['b30021'] . '</a>';


Save and upload.

Then go to the Languages folder, and open up index.english.php

Code (Search for) Select

$txt['b3002'] = '<div id="bcpnotice">Blog Control Panel</div>';


Code (Replace with) Select

$txt['b3002'] = 'Blog Control Panel';
$txt['b30021'] = '<div id="bcpnotice">Blog Control Panel</div>';


...trust me, it'll look goofy if you don't change that.


As far as your other error....I'm not getting that specific error at all. register at the link from the other post, and try it out, but I didn't get anything like that when I was using a test account.

Done

Quote from: Charles Hill on March 02, 2009, 06:32:40 PM
The error with posting is because you have register_globals ON... The problem does not occur if register_globals is OFF.  I changed things a bit for 0.8.0 Beta so this shouldn't matter... but you should always turn register_globals OFF anyways, just for security reasons.

This is a clickable option in smf somewhere? in zcommunity somewhere? or something I need to do server side?

Charles Hill

register_globals is a PHP setting that you have to change with your server.

LinK187

Quote from: Charles Hill on March 02, 2009, 07:13:23 PM
register_globals is a PHP setting that you have to change with your server.

Is that doable via a .htaccess file?

abbyh

Quote from: Charles Hill on March 02, 2009, 07:13:23 PM
register_globals is a PHP setting that you have to change with your server.

This problem is the same as me. I'm also waiting foe the answer.

Charles Hill

Quote from: abbyh on March 03, 2009, 01:10:45 AM
Quote from: Charles Hill on March 02, 2009, 07:13:23 PM
register_globals is a PHP setting that you have to change with your server.

This problem is the same as me. I'm also waiting foe the answer.

Well I changed the way I use $_SESSION so that it won't be a multi-dimensional array.  Hopefully it'll work perfectly for everyone.  This change is in 0.8.0 Beta which is not available yet.

LinK187

Quote from: Charles Hill on March 03, 2009, 01:35:19 AM
Quote from: abbyh on March 03, 2009, 01:10:45 AM
Quote from: Charles Hill on March 02, 2009, 07:13:23 PM
register_globals is a PHP setting that you have to change with your server.

This problem is the same as me. I'm also waiting foe the answer.

Well I changed the way I use $_SESSION so that it won't be a multi-dimensional array.  Hopefully it'll work perfectly for everyone.  This change is in 0.8.0 Beta which is not available yet.

Perhaps telling us how to turn off register_globals might be more useful in the meantime. Can this be done in a .htaccess file? via cpanel? If you know the source of the problem, you must know how to perform the solution as well.

Charles Hill

add the following to your .htaccess file:
php_flag register_globals off

LinK187

Quote from: Charles Hill on March 03, 2009, 01:20:59 PM
add the following to your .htaccess file:
php_flag register_globals off

Thx! Everything works fine now, that I can see. One question tho, what is the "tags" space for when one is composing an article?

Charles Hill

Tags are just a way of organizing articles.  In 0.8.0 I took it a step further and added Related Articles which uses the tags in an article to find other articles with the same tags.

LinK187

Quote from: Charles Hill on March 03, 2009, 02:58:53 PM
Tags are just a way of organizing articles.  In 0.8.0 I took it a step further and added Related Articles which uses the tags in an article to find other articles with the same tags.

So it's just a meta thing then?

Charles Hill

No.... think of tags as categories for articles.  If you enable the tags window on a blog (or on the community page), and there are tags in use, you'll see a list of all the tags as links.  When you click one of those links it'll take you to a page with a list of articles that use that tag.

TommyJoe

I am using SMF 2.0 RC1 and would so much like to user the blogs.

Are there any sites that users would list that I can go and see
their site in operation besides the test site.

Actually the Alpha version scares me in screwing up my site!


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

GazOutEast

Hi Charles - You are (or will be) a Legend

This software rocks man - just put it into an already heavily modded 2.0 RC1 install and it went in clean as a whistle - no errors and no problems.
See it here - post announcing the arrival to our members

Thanks - really love this and I know our members will too.

Found one thing which I'm not sure if it's a bug or a feature - when setting up my own blog and doing the "in-blog" group permissions, I tried to make my blog visible to all groups, but every time I did so and saved it, it would refresh with only the groups I am a member of showing as enabled.
Can you shed some light on that?  It's got me well confused.

Keep up the GREAT work on this

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

Charles Hill

Ya some people have had issues with saving in some areas of zCommunity with the alpha versions.  I have done extensive testing and work since 0.7.9, though... hopefully you won't have the same problems with 0.8.0 Beta.  It's not ready yet sorry :(

GazOutEast

No problems - just wasn't sure if it was me needing stronger specs - I love this more the more I play with it.

Just wondering too (not an immediate worry) any chance the post editor can be brought up to the same version as the embedded one in 2.0 RC1?  I really like the new WYSIWYG functionality.

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

GazOutEast

Hi Charles - have been doing some digging on the global blog permissions not saving

What I now notice is that the global permissions group table is only for new blogs created after saving the new settings - it would therefore appear that the settings for old defaults are overwriting or over-riding the new settings, and that the old defaults appear to be getting picked up from the group membership of the admin logged in to do the install - this then means the system only recognises that admins groups and all others are ignored (including guest, which an admin cannot be a member of)

The same seems to be true in user's personal blog permission settings - with a test user that has different group memberships to my admin, when the test user creates a blog, the default group permissions are for the groups that the test user is a member of.

a few pages back in the thread, someone mentioned that the default table should have all groups enabled as default and the admin/user should then select which ones they want to deny permissions for.  I think this would be a far better solution too, and would remove a level of tech savviness needed by inexperienced users - I'm all for simplification when it comes to not giving users a reason to not play.

The other thing I noticed in testing and watching the database permissions table -> global permissions -> default allowed groups is that -
- if only a few groups, or all groups manually checked, are saved, the data field has a three-value array ( 2,0,0 )
- if the select all checkbox is used, that data array drops to two values ( 2,0 )
(they don't have brackets in the database - just added them here for clarity)
Is this indicative of anything regarding the save error?

Thanks
Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

GazOutEast

Charles - I've enabled all registered users in all groups to be able to comment on all blogs ...

... but there is no comment form amd no link to a comment form.  I cannot find anywhere for a user to add a comment to a blog article.

How is it done?

Gaz

------------------------

:o edit - OK, found it, and think this has to be logged as a bug

In the individual blog control panel -> Blog Settings -> Articles & Comments -> "Display comments to articles on the main blog page"

- If this is unchecked, then the comments link does not appear on the article (on the home page nor on the single article page) and there is no way to add comments.

- If this is checked, then the comment count and the link to "write comment" appears at both levels (home page and individual article), but then so do the comments, which could lead to HUGE lengthy home pages that could severely tax server resources on busy sites. 

There is no setting in Global Settings to stop comments appearing on blog home pages, and the incorrectly titled checkbox in local-blog settings turns them off completely, which I think could be a misplaced function from the preceding "Hide comments entirely" checkbox.

Could you look into this and advise please.

Many thanks
Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

LinK187

Gaz, I don't have any of the problems you have. It's likely not to do with the coding but something with your host.

Advertisement: