News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

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

mediabob

It does put a blog button in the menu bar, but only on the default theme. If you are using a custom theme you will have to make that edit yourself

Smoky "Rider" Blue

if you check your defaulot theme, (the core default) the button should be there already.. take the index.template.php file, file the blogs button and then compare the buttons from the default to the ones on your custom theme and try to work it in..

or you could read the docs on how to add a button! ;)

2 hands up for the blog.. thank you very much!!  :P
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

mediabob

There are actually two edits to make, you have to add it to the button array and add in the button code. Unzip the blog archive on your local machine and open install.xml and find the edits made to index.template.php and make those edits to index.template.php in your current theme.

Charles Hill

Thanks, mediabob and SmokeyBlue for help answering some questions :)

@ qubbah... As I said I will be making an add-on designed to enhance your Tiny Portal / Simple Portal with custom blocks to incorporate your Blog Community.  I just have a lot of other things I have to do right now.  Once I get to making add-ons, you all will have lots of new stuff to play with :)

Charles Hill

#384
Issue with 2.0.2 Beta discovered.... When you do have blogs and a user is unable to view any of those blogs... there is a mysql error when they view your blog index.


Here's how to fix the problem:

In Sources/Blog.php

Find:
// ok let's get a list of blogs then
else


replace with:
// ok let's get a list of blogs then... if there are any that this user can view
elseif (!empty($context['visible_blogs']))



find:
// load blog index side windows
if (!empty($modSettings['blog_index_side_bar']))
loadBlogIndexSideWindows();


replace with:
// there are no blogs this user can view....
else
{
$context['blog']['blogError'] = $txt['no_blogs'];
}
// load blog index side windows
if (!empty($modSettings['blog_index_side_bar']) && !empty($context['visible_blogs']))
loadBlogIndexSideWindows();



And in Blog.english.php (or whatever Blog language file(s) you are using):

add at the end:
$txt['no_blogs'] = 'There are no blogs to view.';

Smoky "Rider" Blue

no biggie Charles.. sorry i didnt have my files out when i posted, but glad its fixed now..

sweet mod.. thanks again, you made someone very happy that i am working with.. keep up the good stuff!! ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

jimbo007

This mod doesn't seem to work with my forum, I'm using 1.1.6, and when I went to "create" a new mod, i'm told it doesn't exist. On the boards in my forum I have a load of new boards at the top. I can't delete or remove these, and I've even uninstalled the mod with no luck. See here: www.simulation123.com [nofollow] Also google ads have appeared when I have them specified not to appear... Please help as this is a live site...

Charles Hill

I need more information to help you........

What errors occurred when you tried to install the first time?  What version did you try to use?  What other mods did you have installed?  What do you mean you can't delete the boards in your forum?  What errors are you getting and where?

Note... my mod has absolutely nothing to do with Google ads....

jimbo007

Ok firstly...

There are a number of boards after appearing at the top of my forum, when I clicked on "create" for admin it gave me a message that the board didn't exist but it was created. These don't show up in my board administration (they aren't there, just showing up on the front, boards with no topics in them). I've reinstalled the mod, and it seems to be working fine now, however these boards are still here.

For some unknown reason a google ad section has appeared with them, I'm not saying that your mod has anything to do with google ads, I'm just saying it might have affected the other mod's display settings when displaying these boards.

I'm not even too bothered about google ads appearing there, I'd just like to get rid of these extra boards. If it means deleting them from the database using sql then it's fine, I just don't know anything about them.

I'm using the latest version of the mod, I had the other blog mod installed previously but uninstalled it first.

Other mods?

QuoteMod Name   Version   
1.   SMF Sitemap    1.2.2     [ Uninstall ] [ List Files ] [ Delete ]
2.   SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0     [ List Files ] [ Delete ]
3.   Auto Embed Video/Audio Clips    3.1.2     [ Uninstall ] [ List Files ] [ Delete ]
4.   SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0     [ List Files ] [ Delete ]
5.   Images On Board    1.1     [ Uninstall ] [ List Files ] [ Delete ]
6.   RSS Feed Icon    1.1     [ Uninstall ] [ List Files ] [ Delete ]
7.   RSS Feed Poster    1.1     [ Uninstall ] [ List Files ] [ Delete ]
8.   MessagePreviewOnHover    1.7   [ List Files ] [ Delete ]
9.   SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0     [ List Files ] [ Delete ]
10.   Integrate Lightbox    1.6     [ Uninstall ] [ List Files ] [ Delete ]
11.   SMF 1.0.14 / 1.1.6 Update    1.0     [ Uninstall ] [ List Files ] [ Delete ]
12.   Admin Notepad    1.0     [ Uninstall ] [ List Files ] [ Delete ]
13.   Ad Managment    2.3     [ Uninstall ] [ List Files ] [ Delete ]
14.   Blog Community (for 1.1.x)    2.0.2     [ Uninstall ] [ List Files ] [ Delete ]
15.   Ad Managment    1.0.2d   [ List Files ] [ Delete ]
16.   Sarcasmics smiley set    1.1     [ Uninstall ] [ List Files ] [ Delete ]
17.   PageEar (Pagepeel)    1.1     [ Uninstall ] [ List Files ] [ Delete ]

Thanks for the quick reply by the way, this really is a great mod if I can sort this small problem out!

J.

robbie93

hi charles

we have this error when you click on the blog button

Database Error
Please try again. If you come back to this error screen, report the error to an administrator. 

and in error log


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 ')
ORDER BY b.blogViews DESC
LIMIT 0, 20' at line 7
File: /home/****/public_html/Sources/Blog.php
Line: 724

any ideas? :o

Charles Hill

#390
I have absolutely no idea why boards would be appearing on your board index and not anywhere in your admin areas....  You might consider attempting to clean up your forum's source files by comparing them to the clean source files from SMF 1.1.6....

Before you spend hours doing that.... Try running all the maintenance functions for SMF...  Then look at your boards table in your database.  See if you can find rows that have the ID_BOARD that match the mystery boards at the top of your forum.

Also... you are aware that you can hide your blog boards on your board index with an admin-only option in the blog control panel?



edit...

@robbie93..  That is the issue I posted a fix for here

jimbo007

I updated to 1.1.6 this evening right before installing this mod... and I ran the maintenance functions, and backed up my forum data..
I'll have a go at looking at my database..
These boards were created when I clicked on "create" blog for both administrator and another user.. The notification I got back was that "this board does not exist" or something to that affect.. The amount of boards correlates to the amount of times i clicked create, a few times for the administrator and a couple of times in another member's profile... I got one blog working at the time by converting a board...

When you create a new blog in this way, I'm assuming it automates the process of creating a new board, hiding it and converting it to a blog? Do you know where in the database to look when a new board is created in this way? The boards are called "Admin's Blog" etc.. I'll have a look for ID_BOARD like you said...

Hiding the boards does not work unfortunately :(

Thanks again for the quick replies

Smoky "Rider" Blue

Charles, one quick question, not sure if this has been asked or??

what about pinging?? lol... do you think that could be a function in the future?? would be nice if they could, but im not sure how it would be all set up.. im sure you could look thru word press, but ???  :P O:)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Charles Hill

@SmokyBlue ... Pinging what?

@jimbo007... your boards table....

Smoky "Rider" Blue

lol to get the blogs to ping.. servers i think?? for announcing that there is a new post or blog up.. but then i am not sure  that it could do that, but maybe?? then again.. with it b eing a forum mod, im not sure Charles, but i was curious..  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Charles Hill

I am still not sure what you're asking for?  You want to have a place to show when a new blog is created or when a new post for a blog is made?  Where would u want these things to be displayed?

There's an off chance you're talking about making an API to somehow connect ALL blogging communities that use this software?

jimbo007

No need to go as far as the database, maybe I should have listened to you instead of firing back a post  ::) :-[

Find and repair any errors worked, thanks!

It did throw up this error though, can't for the life of me see what's wrong with that SQL syntax...!!


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 'WHERE blog_board != 1' at line 4
File: /home/rentaroo/public_html/simulation123.com/Sources/Subs.php
Line: 427

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.

Charles Hill

@ jimbo007... please give me the full code of the database query at line 427.  I will spot the problem for you.

Smoky "Rider" Blue

Quote from: Charles Hill on September 14, 2008, 02:10:22 AM
I am still not sure what you're asking for?  You want to have a place to show when a new blog is created or when a new post for a blog is made?  Where would u want these things to be displayed?

There's an off chance you're talking about making an API to somehow connect ALL blogging communities that use this software?

something like that Charles.. or a connection between 2 or more "communities" while improving on the seo, kinda like what word press does..

as far as a display, that too could be usefull.. not sure where you would place it either right now.. as there are now 3 portals with the use of blocks.. lota ifs ;) but im sure this is going to be a great mod..  :)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Charles Hill

Well if I could perfect some kind of API system that would connect all the communities that use this software... that would certainly make this a step above any other mods... and would definitely make this a great alternative to word press' community software.

I've been spending the better part of the last 7 hours rebuilding the store front on Degrees of Zero..... really want to get this thing done so I can start making add-ons and templates... Once I get the store front done and get a few add-ons and templates made I will get crackin' on examining the viability of an API to connect all the blog communities.

Advertisement: