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

wizzie

Hi guys
I've installed version 1.11 on smf 1.5 everything looks ok, but when I go to a profile all I get is this

Fatal error: Cannot redeclare blogcontrolpanel() (previously declared in /home/valecouk/public_html/forums/Sources/Profile.php:3082) in /home/valecouk/public_html/forums/Sources/Profile.php on line 4017

Also there are two blog entries in the menu bar at the top

any ideas

Thanks
graham
Darn these pesky computers, they never work when you want them to!

Computer Problems? Then Let Vale Hosting Help You [nofollow]

Charles Hill

Quote from: wizzie on July 18, 2008, 07:17:18 AM
Hi guys
I've installed version 1.11 on smf 1.5 everything looks ok, but when I go to a profile all I get is this

Fatal error: Cannot redeclare blogcontrolpanel() (previously declared in /home/valecouk/public_html/forums/Sources/Profile.php:3082) in /home/valecouk/public_html/forums/Sources/Profile.php on line 4017

Also there are two blog entries in the menu bar at the top

any ideas

Thanks
graham

That means there are two instances of the function declaration for blogControlPanel($memID)

Open Sources/Profile.php and delete one of the instances.  I dont know what you are referring to when you say "there are two blog entries in the menu bar at the top"

wizzie

Hi
Sorry to be a pest, but which code should I remove?

Thanks
Graham
Darn these pesky computers, they never work when you want them to!

Computer Problems? Then Let Vale Hosting Help You [nofollow]

Charles Hill

One entire instance of the function declaration blogControlPanel in Sources/Profile.php

wizzie

Hi
I've looked at profile.php, but could you please tell me what code to look for?

the two blog entries are in the menu bar with home, search, profile etc

many thanks
Graham
Darn these pesky computers, they never work when you want them to!

Computer Problems? Then Let Vale Hosting Help You [nofollow]

rgarrison

Quote from: Charles Hill on July 08, 2008, 03:17:29 AM
Yes once 2.0 goes final.

I look forward to seeing this mod for 2.0  if you need a production 2.0 board to test on let me know.

Charles Hill

Quote from: wizzie on July 19, 2008, 08:19:19 AM
Hi
I've looked at profile.php, but could you please tell me what code to look for?

the two blog entries are in the menu bar with home, search, profile etc

many thanks
Graham
Sounds like you installed the mod twice.  You need to find:
function blogControlPanel($memID)

make sure you delete everything within its brackets too

theglobe

OK, how do you create blogs for individual nonadmin members?

Charles Hill

Quote from: theglobe on July 19, 2008, 05:43:31 PM
OK, how do you create blogs for individual nonadmin members?
Enable blog in multiple blogs mode (Admin > Blog Control Panel > Main)
Give the write_blog permission to the member group(s) you want to be able to create their own blogs.

They will now be able to make their own blogs via their Profile > Blog Control Panel

Kimmie

does anyone have this installed and fully functioning so I could see it in action before I install it? 

Charles Hill

http://degreesofzero.com  ;)   That's using a beta of 1.12 though.

http://maia-alta.snowweb.info  is someone's site that has 1.11 installed

digit

this release is buuuuugy!

from one of my users....... today....... (note my earlier post....)

"I created a Blog called "BeachBumm's Hunt Blog" and made an entry.  The next day I attempted to access it to add a new topic.  In the control panel it said I have not initialized my blog yet.  I should have known better, but not knowing what to do, I clicked it and I now have 2 blogs.  I posted a new topic to my new blog called "BeachBumm's Blog".  I have tried several times to access my first blog but can't.  What is even more weird than this is . . . . people were able to make comments on my first blog with no problems, but nobody can comment on my new blog.  Obviously, I would like to keep my original blog.  Can you please let me know what my options are?  I can't have 2 blogs and my current one, nobody can leave comments."

this, with multiple blogs on, and the limit set to 1.
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

#172
I just tested it with no problems.  Are you sure you installed it properly?


edit-
I just ran through the possible sources of such a bug for you.... Look at your ManageBoards.template.php and ManageBoards.php.  Make sure whatever was done to those files by the install.xml file in the Blog mod package was done properly.

LosCatmanos

Hi there!

I am installing this mod right now, but I encounter a problem :( I install it manualy, and in the file ./Sources/RemoveTopic.php I can't find the code which I must replace:
// We want to redirect back to recent action.
if (isset($_REQUEST['recent']))
      redirectexit('action=recent');
elseif ($full_topic)
      redirectexit('board=' . $board . '.0');
else
      redirectexit('topic=' . $topic . '.' . $_REQUEST['start']);


Can anyone help me, please?

The version of my SMF is 1.1.4, I know that this mod is for version 1.1.5, but all files could be modify in right way. This is the last step.

Charles Hill

@LosCatmanos
That code can be found at the end of the function DeleteMessage() in Sources/RemoveTopic.php

LosCatmanos

#175
So this is the code:

function DeleteMessage()

{

global $ID_MEMBER, $db_prefix, $topic, $board, $modSettings;



checkSession('get');



$_REQUEST['msg'] = (int) $_REQUEST['msg'];



$request = db_query("

SELECT t.ID_MEMBER_STARTED, m.ID_MEMBER, m.subject, m.posterTime

FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)

WHERE t.ID_TOPIC = $topic

AND m.ID_TOPIC = $topic

AND m.ID_MSG = $_REQUEST[msg]

LIMIT 1", __FILE__, __LINE__);

list ($starter, $poster, $subject, $post_time) = mysql_fetch_row($request);

mysql_free_result($request);



if ($poster == $ID_MEMBER)

{

if (!allowedTo('delete_own'))

{

if ($starter == $ID_MEMBER && !allowedTo('delete_any'))

isAllowedTo('delete_replies');

elseif (!allowedTo('delete_any'))

isAllowedTo('delete_own');

}

elseif (!allowedTo('delete_any') && ($starter != $ID_MEMBER || !allowedTo('delete_replies')) && !empty($modSettings['edit_disable_time']) && $post_time + $modSettings['edit_disable_time'] * 60 < time())

fatal_lang_error('modify_post_time_passed', false);

}

elseif ($starter == $ID_MEMBER && !allowedTo('delete_any'))

isAllowedTo('delete_replies');

else

isAllowedTo('delete_any');



// If the full topic was removed go back to the board.

$full_topic = removeMessage($_REQUEST['msg']);



if (allowedTo('delete_any') && (!allowedTo('delete_own') || $poster != $ID_MEMBER))

logAction('delete', array('topic' => $topic, 'subject' => $subject, 'member' => $starter));



if ($full_topic)

redirectexit('board=' . $board . '.0');

else

redirectexit('topic=' . $topic . '.' . $_REQUEST['start']);

}


Please, could you tell me, how should I edit it?


And the second query, this code:
redirectexit('board=' . $board . '.0');
is in the file twice. Should I modify both?

Charles Hill

find the following:
if ($full_topic)

      redirectexit('board=' . $board . '.0');

   else

      redirectexit('topic=' . $topic . '.' . $_REQUEST['start']);


replace with the following:
// if this delete message request came from the blog page... redirect back to there
if (!empty($_REQUEST['blog']))
redirectexit('action=blog;blog='. $_REQUEST['blog'] .';entry='. $topic);
else {
if ($full_topic)
redirectexit('board=' . $board . '.0');
else
redirectexit('topic=' . $topic . '.' . $_REQUEST['start']);
}

MoreBloodWine

#177
Great mod but a couple of things...  testing on default theme 1.1.5

1. Is there a way to have a community blog where anyone can post to it. This way you dont need individual userblogs.

2. When you start a new blog theres the Blog Category option, if you dont have categories enabled can you add a permission that hides the Blog Category option.

3. As seen in the other pic thats a TP recent topic side bar, could you add support for that like the forum where it hides the recent blogs / posts made ?

That should be it for now, but the main thing is the community blog. For those that want a blog which anyone on their forum can post to assuming they have the permission. This way you dont need individual user blogs. I hope all this makes sense but if I can think of anything else I'll be sure to post.

Edit:

Unchecking (Enable list of most Recent Entries) doesnt do anything, the box is still there with the recent posts. The one thing that does work with the recent box is this (Maximum number of recent entries to show).
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


AlphaHot1

I have a couple of issues (probabily installation related... I've messed up a bit ;)).

Only admin can create blog, users have no blog control panel in their profile.
I've created an admin blog, and if I try to reply from a regular user, I get the following errors...


mr.Y   Today at 00:52:15 
http://italianlair.com/test/index.php?pretty;board=sunbeam\'s-blog-3;topic=asd-1040.0&amp;action=post;num_replies=0 
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
File: /xxx/italianlair.com/home/html/test/Sources/Post.php
Line: 269

mr.Y   Today at 00:52:15 
http://italianlair.com/test/index.php?pretty;board=sunbeam\'s-blog-3;topic=asd-1040.0&amp;action=post;num_replies=0 
8: Undefined variable: boardID
File: /xxx/italianlair.com/home/html/test/Sources/Post.php
Line: 226


Obviously something went wrong here, I attach my post.php just in case.

...

and a filter for pretty URLs would be great!

Thanks for your work :)

Joel-san

Can you give some ETA on when you will get the SSI thing out of the oven?

Advertisement: