Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on May 11, 2007, 08:02:48 AM

Title: SMFBlog
Post by: SMFHacks.com Team on May 11, 2007, 08:02:48 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=793)

SMFBlog: A (very) simple SMF blogging system


Introduction
It has been requested heaps, and now is finally available! SMFBlog is an extremely simple blogging system for SMF. Certain boards can be marked as "blog boards", and these boards will all be listed on the main blog page. Blog posts are topics in these boards, and comments are replies to these posts.

Installation
Simply install this package, and SMFBlog will be installed.
In order to use the pretty URLs, you'll need to rename htaccess.txt to .htaccess (yes, that's a dot as the first character). If you already have a .htaccess file, copy the entire contents of the htaccess.txt file to the end of it.


How do I use this mod?
Using this mod is extremely simple!
Firstly, specify one (or more) boards to be blog boards. This is done by editing the board, and ticking the "Use board as blog board?" option. You may add some new boards for this purpose :)

(http://www.dansoftaustralia.net/images/screenshots/smfmods/docs/smfblog-1.png)


Once this is done, start posting new topics in that board!

(http://www.dansoftaustralia.net/images/screenshots/smfmods/docs/smfblog-2.png)


Any topics in this board will appear in the blog

(http://www.dansoftaustralia.net/images/screenshots/smfmods/docs/smfblog-3.png)


Support
Support for this mod is given in the mod topic at simplemachines.org

Changes in this release

1.0
----------
 - Added pagination to the "View Blog" page.
 - When you preview a reply, go back to the blog once the reply is posted.
 - Option to hide blog boards from board index.. Note: If you choose this option, the boards will be hidden from EVERYONE, including the blog owner. I suggest to bookmark the link to the board before enabling it!
 - Some minor bug fixes

0.1 Beta
--------
Initial public release (beta!).

0.0.1 Prerelease
----------------------
Internal name for all test versions before the official public beta.


Title: Re: SMFBlog
Post by: spottedhog on May 11, 2007, 08:50:10 AM
Nice!

I found one possible mistake for installation.....  Unless my eyes deceive me,  in the ManageBoards.php file, the install.xml is putting "'is_blog' => 0," in twice.  (I can only find one instance of "'permission_mode' => 'normal',")

...just an observation..

Title: Re: SMFBlog
Post by: christicehurst on May 11, 2007, 12:01:06 PM
Some errors below. I do have alot of mods installed too which could be a issue.


1. Extract File ./Sources/Blog.php 
2. Extract File ./Themes/default/Blog.template.php 
3. Extract File ./Themes/default/blog.css 
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ManageBoards.php Test failed
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Post.php Test successful
8. Execute Modification ./Sources/QueryString.php Test successful
9. Execute Modification ./Sources/Subs-Boards.php Test failed
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test failed
12. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Code installScript.php
Title: Re: SMFBlog
Post by: Daniel15 on May 11, 2007, 12:06:54 PM
spottedhog, thanks for reporting that, I just noticed that as well :P. It was just an error due to me copying that bit of ManageBoards.php into the install.xml file twice. I'll fix it as soon as possible.


hristicehurst, which mods do you have installed at the moment?
Could you please send me your Sources/ManageBoards.php, Sources/Subs-Boards.php and Themes/default/index.template.php files?
Title: Re: SMFBlog
Post by: Exochat on May 11, 2007, 02:06:56 PM
is it TOPIC RATING mod?? it is just that i found that causes a Manage Boards and Sub Boards failure when trying to install the Shop MOD as well.
Title: Re: SMFBlog
Post by: RoarinRow on May 11, 2007, 02:29:12 PM
Very cool!  Dang, I just installed Wordpress last week too.  Doh!
Title: Re: SMFBlog
Post by: DrDom on May 11, 2007, 05:06:43 PM
hi,
I tried to install this mod on my local test setup using  xampp 1.4.16 and a fresh install of SMF 1.1.2 but it returned this error message
QuoteParse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\Fresh\Packages\temp\installScript.php on line 40

[EDIT] forgot to mention I installed the "SSI Topic and Replies Mod" first
Regards
Title: Re: SMFBlog
Post by: AussieBill on May 11, 2007, 05:55:59 PM
That's caused by a typo in the installScript.php - missing curly brackets.

Find:

$result = db_query("SHOW COLUMNS FROM {$db_prefix}{$db_field['table']} LIKE '$db_field['name']'", __FILE__, __LINE__);


Replace with:

$result = db_query("SHOW COLUMNS FROM {$db_prefix}{$db_field['table']} LIKE '{$db_field['name']}'", __FILE__, __LINE__);


I did that and it worked fine :)
Title: Re: SMFBlog
Post by: DrDom on May 11, 2007, 07:38:23 PM
@AussieBill, thanks for the fix, it installs now, but I have another problem with it, I have created the blog board etc, but I get a server error, and the blog will not display, I followed the instructions for the .htaccess file but it still wont display.
This may not be an error with the mod, it could be with xampp not being setup correctly, but I am only guessing.
I'll wait and see how this developes before I try putting it on a live site.
Title: Re: SMFBlog
Post by: AussieBill on May 11, 2007, 08:21:00 PM
I just got lucky figuring out that typo - I'm not an expert! :P

Anyway, there's another problem I noticed. I can only see the topics on the blog page if the blog board is set for guest access. Not complaining too much though, as I realize the mod is beta ;)
Title: Re: SMFBlog
Post by: samozin on May 11, 2007, 10:07:57 PM
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\appserv\www\2\Packages\temp\installScript.php on line 40

no pix for ur blog and u event use word press in ur site
no comment
Title: Re: SMFBlog
Post by: shadow82x on May 11, 2007, 10:24:24 PM
Yes I also get


Quote
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/clandis/www/Packages/temp/installScript.php on line 40
Title: Re: SMFBlog
Post by: Daniel15 on May 11, 2007, 10:50:19 PM
Sorry about the typo in installScript.php... It appeared right after testing was completed and I was finalising the release. I'll fix it right now.
Edit: Fixed. Please download the latest package, and it should work fine.

Quotebut I get a server error, and the blog will not display,
Does it work if you turn the pretty URLs off?
Please check your error log for any details (not the SMF error log, your server's error log. This is available in cPanel, under the "Error Log" option).

Quotethere's another problem I noticed. I can only see the topics on the blog page if the blog board is set for guest access.
That's a limitation of ssi_boardNews, which this mod uses internally. ssi_boardNews only gets posts from boards that allow guest access.
I'll eventually have an option to hide blog boards from the board index :)

Quoteu event use word press in ur site
My blog was set up in 2005, before the forum was even up! I have not yet installed this mod on my site (to be honest, I don't spend much time working on my site, I instead spend my time working on mods like this...)
Title: Re: SMFBlog
Post by: christicehurst on May 11, 2007, 10:51:21 PM
Here's the lists and the files are zipped.

Mod Name Version  
1. Display Age and Location next to posts 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
2. SMF Gallery Lite 1.6.4  [ List Files ] [ Delete ]  
3. Item Pack Item Pack 1   [ List Files ] [ Delete ]  
4. SMF Shop - Jeeves The Butler 1.0.0   [ Uninstall ] [ List Files ] [ Delete ]  
5. mMood 1.00  [ List Files ] [ Delete ]  
6. SMFShop 3.0   [ Uninstall ] [ List Files ] [ Delete ]  
7. Dice Roller for Your Forum 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
8. Modbreaktag 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
9. Avatar Maker 1.1 Final   [ Uninstall ] [ List Files ] [ Delete ]  
10. Googlebot & Spiders Mod 2.0.2   [ Uninstall ] [ List Files ] [ Delete ]  
11. Item Pack Item Pack 2   [ List Files ] [ Delete ]  
12. TinyPortal 0.983   [ Uninstall ] [ List Files ] [ Delete ]  
13. Youtube Field by Alan S 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
14. Users Online Today Mod 1.3.1   [ Uninstall ] [ List Files ] [ Delete ]  
15. Membergroup Color Legend 1.1   [ Uninstall ] [ List Files ] [ Delete ]  
16. SMFPets 0.2   [ Uninstall ] [ List Files ] [ Delete ]  
17. Enhanced Calendar 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
18. Subject Statistics In Subject 2   [ List Files ] [ Delete ]  
19. Increase/Decrease Postbox Size 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
20. SMF Staff Page 1.5.1   [ List Files ] [ Delete ]  
21. Avatar on Member List 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
22. Additional Membergroups on Profile 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
23. Tagging System 1.0.3   [ List Files ] [ Delete ]  
24. Avatars at Index Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ]  
25. SMF 1.1.1 Update Package 1.1.1   [ List Files ] [ Delete ]  
26. Welcome Topic Mod 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
27. Insurance Item 1.0   [ List Files ] [ Delete ]  
28. SMF 1.1.2 Update Package 1.1.2   [ Uninstall ] [ List Files ] [ Delete ]  
29. SMF Arcade 2.0.8   [ Uninstall ] [ List Files ] [ Delete ]  
30. SSI Topic and Replies 0.1   [ Uninstall ] [ List Files ] [ Delete ]  
31. Spell Check Custom Words 1.0.1   [ Uninstall ] [ List Files ] [ Delete ]  
32. Global Announcements 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
33. Karma Description Mod 2.0   [ Uninstall ] [ List Files ] [ Delete ]  
34. Member Notepad 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
35. Monthly Statistics on Profile 1.0   [ Uninstall ] [ List Files ] [ Delete ]  
36. SMF Gallery Lite 1.6.6   [ List Files ] [ Delete ]  
37. FontandSizeDropdown1.1 1.1   [ Uninstall ] [ List Files ] [ Delete ]  
38. Invite 1.07   [ Uninstall ] [ List Files ] [ Delete ]  
Title: Re: SMFBlog
Post by: sharks on May 12, 2007, 05:59:14 AM
This is an excellent initiative Daniel15 :D Thank you so much for finally making a mod to exploit the (until now) untapped power of SMF as a blog platform! Have been waiting like eons for someone to come up with this... at some point even tried to code bits and pieces of it myself, but being a newbie about creating mods, never quite finished the implementation as well as you did. So... am really glad to finally see this mod being developed. Kudos to you and please keep up the great work. Can't wait for a stable version. yep, as you said, it's a modification awaited by quite a few ;)

cheers!
Title: Re: SMFBlog
Post by: wilsy on May 12, 2007, 06:58:58 AM
Fatal error: Cannot redeclare ssi_topic() (previously declared in /home/farnwort/public_html/SSI.php:1792) in /home/farnwort/public_html/SSI.php on line 2313

Hi Daniel,

I'm getting this error. I installed the blog, set up a new board for the blog - then I realised I had to install the SSI mod, so did this after installing the blog mod and then get the above error.

Would you be able to point me in the right direction?

Regards,

Wilsy.
Title: Re: SMFBlog
Post by: Daniel15 on May 12, 2007, 08:06:29 AM
christicehurst, I'll look into your problem when I have some free time :).

QuoteThank you so much for finally making a mod to exploit the (until now) untapped power of SMF as a blog platform!
No problem... Glad you like it! :D.

QuoteWould you be able to point me in the right direction?
It looks like the code for the SSI Topic and Replies mod has been inserted into SSI.php twice. Open SSI.php, and go to the very end of it. If the SSI Topic code is repeated twice, remove one of the duplicates.
Title: Re: SMFBlog
Post by: L.G.S on May 12, 2007, 08:43:37 AM
Everything installed correctly but when I go into Blog then the forum name, it gives me a 404.

http://www.ruthlessintent.com/board/blog.html;a=blog

see
Title: Re: SMFBlog
Post by: wilsy on May 12, 2007, 09:24:48 AM
Thanks Daniel,

You were right, that got the forum back up ;)

Now when I click on the blog I get: -

Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/farnwort/public_html/SSI.php:187) in /home/farnwort/public_html/SSI.php on line 189

Regards,

Wilsy.
Title: Re: SMFBlog
Post by: DrDom on May 12, 2007, 09:47:26 AM

Quote
Quotebut I get a server error, and the blog will not display,
Does it work if you turn the pretty URLs off?
Please check your error log for any details (not the SMF error log, your server's error log. This is available in cPanel, under the "Error Log" option).
I checked  my XAMPP setup and mod rewrite wasnt turned on, I rectified that, and the Blog works fine now.

Thanks Daniel
Title: Re: SMFBlog
Post by: shadow82x on May 12, 2007, 03:42:54 PM
When I go to blog I see

The requested URL /blog/ was not found on this server.
Title: Re: SMFBlog
Post by: nitsua on May 12, 2007, 05:10:00 PM
i have been looking for a blog
Title: Re: SMFBlog
Post by: Daniel15 on May 12, 2007, 10:46:38 PM
QuoteThanks Daniel,

You were right, that got the forum back up

Now when I click on the blog I get: -
It looks like SSI.php is being loaded twice, for some reason. In Sources/Blog.php, find:
require($boarddir . '/SSI.php');
Replace with:
require_once($boarddir . '/SSI.php');

QuoteEverything installed correctly but when I go into Blog then the forum name, it gives me a 404.

http://www.ruthlessintent.com/board/blog.html;a=blog

see
That URL is a bit weird... The correct URL to the blog is something like http://www.ruthlessintent.com/board/blog/.
Anyways, I see what you mean by the 404 error... Did you copy all the mod_rewrite rules from htaccess.txt into a .htaccess file? Try it with "Pretty URLs" turned off ("Features and Options" -> "Blog Settings"). Even though the URLs will not be as neat, it should work fine.

QuoteWhen I go to blog I see

The requested URL /blog/ was not found on this server.
Did you copy all the text from htaccess.txt into a .htaccess file? If not (or if you don't have mod_rewrite installed), you can use the "ugly urls" by going to the Blog Settings section of the admin panel (under the "Features and Options" section), and turn off "Use Pretty URLs?".
Title: Re: SMFBlog
Post by: Loverboy on May 13, 2007, 01:24:48 AM
I'm getting the following error inside the topic.

Table 'sehzadem.smf_simple_blog' doesn't exist
File: /var/www/vhosts/turkistan.nl/httpdocs/forum/Sources/Load.php(1726) : eval()'d code
Line: 330
Title: Re: SMFBlog
Post by: Daniel15 on May 13, 2007, 03:20:20 AM
Quote from: Loverboy on May 13, 2007, 01:24:48 AM
I'm getting the following error inside the topic.

Table 'sehzadem.smf_simple_blog' doesn't exist
File: /var/www/vhosts/turkistan.nl/httpdocs/forum/Sources/Load.php(1726) : eval()'d code
Line: 330
Wrong mod... That error is from Little15's "Simple Blog" mod, not my one ;)
Title: Re: SMFBlog
Post by: wilsy on May 13, 2007, 06:29:22 AM
Thanks Daniel - sorted ;)
Title: Re: SMFBlog
Post by: L.G.S on May 13, 2007, 07:21:54 AM
Quote from: Daniel15 on May 12, 2007, 10:46:38 PM
QuoteEverything installed correctly but when I go into Blog then the forum name, it gives me a 404.

http://www.ruthlessintent.com/board/blog.html;a=blog

see
That URL is a bit weird... The correct URL to the blog is something like http://www.ruthlessintent.com/board/blog/.
Anyways, I see what you mean by the 404 error... Did you copy all the mod_rewrite rules from htaccess.txt into a .htaccess file? Try it with "Pretty URLs" turned off ("Features and Options" -> "Blog Settings"). Even though the URLs will not be as neat, it should work fine.


Is there a way around doing that? I have pretty URLs installed and would like to keep them :S

edit: i turned them off and it still made no difference
Title: Re: SMFBlog
Post by: HistoryHunter on May 13, 2007, 10:44:30 AM
Hi!
First, thanks for this blogging system. I like that it adds to the existing system, rather than adds a completely new mod.

Now it is installed, I see that those installing this fore the first time may need more guidance than is offered in the readme. Here are some of my own experiences and if I am in error somewhere, then no doubt others here will correct me.

1. There is no means for a member to start their own blog. A new blog is a new board and - at least in my forum - a new board can be started only by Admin.

I therefore suggest that Admin has a message appear in an appropriate location to inform members that they must apply for a blog, if that's what they want. In my forum, this is done in the board description.

2. A board and sub-boards
As each member gets their own blog, I found it useful to make these sub-boards. Otherwise, the main forum list of boards could have too many boards listed.

My forum already has quite a long list of boards. If I got another 20 for member blogs, this would, in my view, be far too long.

I therefore set up a board for blogs, then made each member blog a sub-board of that.

3. Permissions
To work, the blogging system demands that only the member blogger can start new topics in their blog. Otherwise, it would not be a blog, but just another board.

Admin must therefore set up permissions for each board: deny to all except the member blogger the right to start a topic, and so on.

It's quite a bit of work to set up, but work it, in my opinion.

Thanks again!  :D
Title: Re: SMFBlog
Post by: shadow82x on May 13, 2007, 01:10:07 PM
QuoteNo I do not use pretty urls
Title: Re: SMFBlog
Post by: nitsua on May 14, 2007, 02:14:34 PM
i installed it with no errors but when  i click the blog tabe it doesn't take me to the blog it takes me to: http://php0h.com/aboutus.php
any help
Title: Re: SMFBlog
Post by: shadow82x on May 14, 2007, 02:52:31 PM
Quote from: nitsua on May 14, 2007, 02:14:34 PM
i installed it with no errors but when  i click the blog tabe it doesn't take me to the blog it takes me to: http://php0h.com/aboutus.php
any help
It also seems you are getting the same error has me.. With the /blog directory not being found
Title: Re: SMFBlog
Post by: nitsua on May 14, 2007, 03:49:16 PM
yeah it's because it is not a folder it's a source and i can't figure out how to get to it
Title: Re: SMFBlog
Post by: nitsua on May 14, 2007, 03:52:31 PM
okay i can see the blog but i can't figure out hot to edit it my blog:http://rpgamer.prohosts.org/smf/index.php?action=blog
shadow82x, it has to be an action
Title: Re: SMFBlog
Post by: nitsua on May 14, 2007, 03:59:12 PM
i figured out how to use the blog bu,t i need to know how to change the index links destination path. any help
Title: Re: SMFBlog
Post by: nitsua on May 14, 2007, 04:00:23 PM
also found another bad link, when you click the board that the blog is from it also screws up
Title: Re: SMFBlog
Post by: shadow82x on May 14, 2007, 04:15:13 PM
What do you change the link too
Title: Re: SMFBlog
Post by: nitsua on May 14, 2007, 04:38:32 PM
instead if it acting as if it's a floder make an action
smf/index.php?action=blog
Title: Re: SMFBlog
Post by: Lemming on May 14, 2007, 04:41:35 PM
Nice work!!  :)

Maybe you could modify the htacces file so that it makes friendly urls for the comment pages too --> 1 [2] (#post_)  ;)
Title: Re: SMFBlog
Post by: christicehurst on May 14, 2007, 11:13:27 PM
How's the fixing of my mod going?
Title: Re: SMFBlog
Post by: mohoganybrwn on May 14, 2007, 11:21:57 PM
Is there a demo for this mod? I already have a blog mod installed on my SMF and it is attached to member's profile and also at the bottom of my index you'll see ..."Recent Blog Entries" .... is this mod simular? I can't really get the feel from the screen shots...it would be nice to see this mod in action, because I delete my other blog mod.

thanx in advance.
Title: Re: SMFBlog
Post by: HistoryHunter on May 15, 2007, 08:33:47 AM
Quote from: mohoganybrwn on May 14, 2007, 11:21:57 PM
Is there a demo for this mod? I already have a blog mod installed on my SMF and it is attached to member's profile and also at the bottom of my index you'll see ..."Recent Blog Entries" .... is this mod simular? I can't really get the feel from the screen shots...it would be nice to see this mod in action, because I delete my other blog mod.

thanx in advance.
Well, you can look at my installation, where I have set it up to suit my own purpose.
Main page: http://historyhuntersinternational.org/index.php
The blogs: http://historyhuntersinternational.org/index.php?action=forum;f=14
My own blog: http://historyhuntersinternational.org/index.php?board=69.0
A post: http://historyhuntersinternational.org/index.php?topic=2001.0

I set it up this way because (as I explained above) I had to set permissions manually and I also use my own main menu.
Title: Re: SMFBlog
Post by: wjhdiz on May 15, 2007, 09:49:16 AM

Thanks.
Jimmy
Title: Re: SMFBlog
Post by: Lemming on May 15, 2007, 10:39:06 AM
Demo: http://smfthemes.lemmingweb.de/
German translation: http://www.smfportal.de/index.php/topic,1165.html
Title: Re: SMFBlog
Post by: 3nd3r on May 16, 2007, 02:57:22 AM
I was looking for a Blog Mod. I've got TP installed.

Does this Mod works well with TinyPortal 0.9.x ?

Thanks in advance for your time
Title: Re: SMFBlog
Post by: babjusi on May 16, 2007, 03:56:43 PM
This is a cool mod, thanks daniel15
Title: Re: SMFBlog
Post by: L.G.S on May 16, 2007, 04:01:51 PM
I've got it sorted now, I turned off pretty urls for the mod (altho I would have preferred them :()
Title: Re: SMFBlog
Post by: sharks on May 18, 2007, 03:54:34 AM
Quote from: shadow82x on May 13, 2007, 01:10:07 PM
QuoteNo I do not use pretty urls

Me too. But just turn it off in the "Blog Settings". It makes the Blog operational :)
Title: Re: SMFBlog
Post by: Daniel15 on May 18, 2007, 06:28:39 AM
OK, due that the problems that people were encountering, Pretty URLs are now turned off by default. Once you've implemented the .htaccess rules, you may turn the pretty URLs back on ;).
For anyone having trouble with the pretty URLs, please pay attention to this part of the .htaccess file:
Quote
# If you're having trouble with the pretty URLs (they aren't working), try
# uncommenting the following RewriteBase line (remove the # from it), and change
# /forum/ to your forum's correct URI.
#RewriteBase /forum/
If you're getting File not Found errors, uncomment the RewriteBase line, and change its URL to the correct one. For example, if your forum was at http://smfblog.dev.dansoftaustralia.net/smf/, you'd have "RewriteBase /smf/".

QuoteMaybe you could modify the htacces file so that it makes friendly urls for the comment pages too --> 1 [2] 
I thought I did that, but I guess I forgot to.

QuoteNow it is installed, I see that those installing this fore the first time may need more guidance than is offered in the readme. Here are some of my own experiences and if I am in error somewhere, then no doubt others here will correct me.
Note that this mod is still in beta. The readme is quite unfinished ;)
Thanks for your comments though, I'll take them into consideration :D.   

Quote1. There is no means for a member to start their own blog. A new blog is a new board and - at least in my forum - a new board can be started only by Admin.
Yes, that's how it's designed to work :). I should place more emphasis on this in the readme, though...

Quote2. A board and sub-boards
As each member gets their own blog, I found it useful to make these sub-boards. Otherwise, the main forum list of boards could have too many boards listed.

My forum already has quite a long list of boards. If I got another 20 for member blogs, this would, in my view, be far too long.

I therefore set up a board for blogs, then made each member blog a sub-board of that.
I designed this for sites with only a few blogs, and I didn't have large blogs in mind...
However, a future version will have an option to hide blog boards from the board index :).

Quote3. Permissions
To work, the blogging system demands that only the member blogger can start new topics in their blog. Otherwise, it would not be a blog, but just another board.

Admin must therefore set up permissions for each board: deny to all except the member blogger the right to start a topic, and so on.
Yeah, that's what gives it a huge amount of flexibility. You could have one membergroup that's allowed to post a new topic into a specific blog board, and then add this group as a secondary usergroup for certain members. These allows you to fine-tune who can start new topics in the blog, and who can't.


QuoteHow's the fixing of my mod going?
Sorry, I have not had any time to look at why it's conflicting.
Have you tried installing it manually? See http://modparser.dev.dansoftaustralia.net/ for my Modification parser. Upload the package, and follow the steps.

QuoteIs there a demo for this mod?
Sure, the development board: http://smfblog.dev.dansoftaustralia.net/smf/blog/ :)

QuoteGerman translation: http://www.smfportal.de/index.php/topic,1165.html
Thanks for that, I'll add it to the package soon :).

QuoteDoes this Mod works well with TinyPortal 0.9.x ?
Haven't tested it, but it should work fine...

Title: Re: SMFBlog
Post by: Lemming on May 19, 2007, 05:09:42 PM
Is it possible to fix the comment preview so you don't land in the original topic? :)
Title: Re: SMFBlog
Post by: Daniel15 on May 19, 2007, 09:32:02 PM
Quote from: Lemming on May 19, 2007, 05:09:42 PM
Is it possible to fix the comment preview so you don't land in the original topic? :)
That's something I still need to work on...
Try this: Themes/default/Post.template.php, find:

<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />

Replace with:

<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />', (!empty($_POST['blog_post']) ? '
<input type="hidden" name="blog_post" value="' . $_POST['blog_post'] . '" />' : ''), (!empty($_POST['blog_name']) ? '
<input type="hidden" name="blog_name" value="' . htmlentities($_POST['blog_name']) . '" />' : ''), '

(kinda messy, will be worked on in a future version :))
Title: Re: SMFBlog
Post by: niravdave on May 21, 2007, 02:30:24 PM
everything went well. mod has been installed.

In the blog when you go here
http://www.gmasti.com/forums/index.php?action=blog;sa=view_blog;name=books

if u click on any of the title it gives an error

Fatal error: Call to undefined function: ssi_topic() in /home/content/n/i/r/niravdave123/html/forums/Sources/Blog.php on line 241

any suggestions?

dave
Title: Re: SMFBlog
Post by: shadow82x on May 21, 2007, 06:24:14 PM
Still any reasons why I get?

The requested URL /blog/ was not found on this server.
Title: Re: SMFBlog
Post by: niravdave on May 22, 2007, 10:33:33 AM
everything went well. mod has been installed.

In the blog when you go here
http://www.gmasti.com/forums/index.php?action=blog;sa=view_blog;name=books

if u click on any of the title it gives an error

Fatal error: Call to undefined function: ssi_topic() in /home/content/n/i/r/niravdave123/html/forums/Sources/Blog.php on line 241

any suggestions?

dave
Title: Re: SMFBlog
Post by: spottedhog on May 22, 2007, 08:00:04 PM
the ssi_topic error may be because you do not have the ssi_topic mod installed.....
Title: Re: SMFBlog
Post by: pucola001 on May 23, 2007, 01:27:04 AM
http://portal.euroblic.info/forumi/index.php?action=blog

My blog not ready  help plis
Title: Re: SMFBlog
Post by: niravdave on May 23, 2007, 08:48:49 AM
daniel are u around?

everything went well. mod has been installed.

In the blog when you go here
http://www.gmasti.com/forums/index.php?action=blog;sa=view_blog;name=books

if u click on any of the title it gives an error

Fatal error: Call to undefined function: ssi_topic() in /home/content/n/i/r/niravdave123/html/forums/Sources/Blog.php on line 241

any suggestions?

dave
Title: Re: SMFBlog
Post by: spottedhog on May 23, 2007, 10:30:42 AM
niravdave,

Look in your SSI.php file.  Do you have a funtion ssi_topic() ?  If not, you may need to install the ssi_topic mod.
Title: Re: SMFBlog
Post by: Daemonist on May 24, 2007, 02:32:36 PM
I'm confused.  I can see the option to set a board as a blog, and I can see the blog settings area in the admin section.   When I create a topic in the blog board, it appears in the regular forum view.

When I click on the "BLOG" button at the top, it takes me to a list of the boards (only one shows up, which is right).  When I click on that existing board, it shows as empty with no topics in it.  There were three topics in there before installing the mod, and I've tried to create a new topic in case it is flagged during the initial creation.

I get no errors in the log.

I have the following:

SMF 1.1.2
Tiny Portal 9.8.3
Group Moderators 1.4
Repeating Calendar Events 1.2.6
SSI Topic and Replies 0.1
SMFBlog  0.1 Beta
Who Voted What 1.1.2

I don't use votes anymore, so have tried with the last mod removed too.


EDIT:   I have since figured out that this was because my board was using group permissions to limit access-- the blog was supposed to be semi-private.  The system works fine if "Guest" access is enabled, which is exactly as it was advertised to work. 

Is there a chance that someone might be able to provide instructions on how to get it to work with group permissions?  That would be...   excellent!  ;)

Thanks.
Title: Re: SMFBlog
Post by: spottedhog on May 24, 2007, 07:58:51 PM
Daniel.....

Can you think of any "$context" that can be used to not display the BLOG navigational button if the Blog mod is not enabled?   .....  or something else?

thanks.............
Title: Re: SMFBlog
Post by: Daniel15 on May 25, 2007, 07:59:08 AM
niravdave, please stop spamming your request. I can't check back here every day, and posting only once is enough.
Did you install the "SSI Topic and Replies" mod?

QuoteIs there a chance that someone might be able to provide instructions on how to get it to work with group permissions?
Haven't looked at this yet.

Quote
Still any reasons why I get?

The requested URL /blog/ was not found on this server.
and
QuoteMy blog not ready  help plis
Did you implement the needed .htaccess lines? Try uncommenting the "RewriteBase" line, and adjust it to suit your site (eg. if your forum is at /forum/, change the line to RewriteBase /forum/.

If you can not do this, turn off "Pretty URLs" in the blog configuration.

QuoteCan you think of any "$context" that can be used to not display the BLOG navigational button if the Blog mod is not enabled?
Sure... In index.template.php, find (may be different depending on your theme):
// The Blogs!
echo ($current_action == 'blog' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'blog' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=blog">' , $txt['blog'] , '</a>
</td>' , $current_action == 'blog' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Replace with:

// The Blogs!
if (!empty($modSettings['blog_enable']))
echo ($current_action == 'blog' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'blog' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=blog">' , $txt['blog'] , '</a>
</td>' , $current_action == 'blog' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: SMFBlog
Post by: spottedhog on May 25, 2007, 08:23:32 AM
GREAT!!!!!!!!!!!!!!!!!!!!!!!!!!  Thanks!!!!!!!!!!!!!  Oh, do not worry about what theme, etc.  All the themes I have are modifications of the default and English Steel themes.  :)

I will now learn the capabilities of $modSettings.

thanks again!
Title: Re: SMFBlog
Post by: Daniel15 on May 25, 2007, 08:26:07 AM
QuoteI will now learn the capabilities of $modSettings.
Basically, all of SMF's main settings are in that array (if you look in the database, it's the whole smf_settings table) :).
Title: Re: SMFBlog
Post by: spottedhog on May 25, 2007, 08:29:05 AM
ahhhhh...  lesson learned!!!!!!!!!!!!!!  Many possibilities this way.....  hmmmmmmm.....

thanks again!
Title: Re: SMFBlog
Post by: L.G.S on May 25, 2007, 11:29:01 AM
What would I need to do to add "- X replies" (where X is the amount of replies) to that particular post? I think its confusing for members that they have to guess that by clicking the title they can see the replies also.
Title: Re: SMFBlog
Post by: jawohl on June 01, 2007, 02:21:47 AM
I just started using SMFBlog on my site and It works good! Great job!

Just one question. When I click on Blog in the menu it shows the latest 10 entries, but how do users get to the older ones?`I can't find any "next page" or something like that.

Any ideas on what to do?
Title: Re: SMFBlog
Post by: Daniel15 on June 01, 2007, 04:12:39 AM
QuoteWhat would I need to do to add "- X replies" (where X is the amount of replies) to that particular post? I think its confusing for members that they have to guess that by clicking the title they can see the replies also.
Where do you want to add that? In/next to the title of the post, or at the bottom of the post?

QuoteJust one question. When I click on Blog in the menu it shows the latest 10 entries, but how do users get to the older ones?`I can't find any "next page" or something like that.

Any ideas on what to do?
Oops, I knew I forgot something... SMFBlog is very much incomplete at the moment :o.
Sources/Blog.php, find:

// Get all the recent posts (10 of them).

Add before:

// Get the number of posts in this board
$result = db_query("
SELECT COUNT(ID_FIRST_MSG)
FROM {$db_prefix}topics
WHERE ID_BOARD = {$row['ID_BOARD']}", __FILE__, __LINE__);

list ($post_count) = mysql_fetch_row($result);
mysql_free_result($result);

// Construct a page index
// !!! Must fix this... And 10 should NOT be hardcoded! :o
$context['blog']['pageindex'] = constructPageIndex($scripturl . '?action=blog;sa=view_blog;name=' . $row['blog_alias'] . ';start=%d', $_REQUEST['start'], $post_count, 10, true);



Themes/default/Blog.template.php, find:

echo '
<h2>', $context['blog']['name'], '</h2>';

Add after:

// Page numbers, please!
echo '
', $context['blog']['pageindex'];


Find:

$alternating = ($alternating == 1) ? 2 : 1;
}

Add after:

// Page numbers at the bottom
echo '
', $context['blog']['pageindex'];


If you're using pretty URLs, open Sources/QueryString.php, and find:

// The blog itself
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_blog;name=([A-Za-z0-9\-_]+)"/', '"' . $boardurl . '/blog/$1/"', $buffer);

Add after:

// A specific page in the blog
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_blog;name=([A-Za-z0-9\-_]+);start=([0-9]+)"/', '"' . $boardurl . '/blog/$1/$2.html"', $buffer);

In .htaccess, find:

# Viewing a blog
RewriteRule ^blog/([A-Za-z0-9\-_]+)/$ index.php?action=blog&sa=view_blog&name=$1

Add after:

# A specific page of the blog
RewriteRule ^blog/([A-Za-z0-9\-_]+)/([0-9]+).html$ index.php?action=blog&sa=view_blog&name=$1&start=$2

(the URLs aren't too nice at the moment... I wasn't sure how to structure them :P)
Title: Re: SMFBlog
Post by: jawohl on June 01, 2007, 07:12:32 AM
Thanks Daniel! That worked great, even if SMFBlog still is very incomplete I really like it! :)
Title: Re: SMFBlog
Post by: jawohl on June 05, 2007, 03:54:51 PM
Quote from: Daniel15 on June 01, 2007, 04:12:39 AM
QuoteWhat would I need to do to add "- X replies" (where X is the amount of replies) to that particular post? I think its confusing for members that they have to guess that by clicking the title they can see the replies also.
Where do you want to add that? In/next to the title of the post, or at the bottom of the post?


I would like that to show at the bottom of each post. So that the readers can see how many comments a blog-post has without clicking on it.. Get what I mean? :)
Title: Re: SMFBlog
Post by: KnightRobby on June 19, 2007, 10:48:33 PM
First of all, thanks so much for creating this mod because it is awesome.  :)

However, I am wanting to put users' "Most Recent Blogs" on the front page of the site (like joomlas index.php page, for instance).  Does anyone know how I can go about doing this easily and if they can provide the code?  I am wanting to do something similar to "Most Recent Posts," but instead "10 Most Recent Blogs."  Let me know and I would greatly appreciate it :)

Again, thanks so much!
Robby :D
Title: Re: SMFBlog
Post by: vandul on June 22, 2007, 08:39:52 PM
can any one give me an idea how i could include the blog posts on the index page of my site? I tried using php inlcude straight to the blog but it didn't work =P

also I couldn't get pretty URLs to work, /blog and /blog/blogname came up 404 even after i applied the changes to htaccess
Title: Re: SMFBlog
Post by: CraftyLion on June 22, 2007, 09:58:43 PM
I've just install the mod into my forum and assigned a board as a blog.  However, when I tested it, the board came up fine but the blog itself won't show. Is there a reason for this?
Title: Re: SMFBlog
Post by: SpelingMistakes on July 01, 2007, 10:02:43 AM
Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Blog.php 
2. Extract File ./Themes/default/Blog.template.php 
3. Extract File ./Themes/default/blog.css 
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ManageBoards.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Post.php Test successful
8. Execute Modification ./Sources/QueryString.php Test successful
9. Execute Modification ./Sources/Subs-Boards.php Test successful
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test failed
12. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.turkish.php Skipping file
15. Execute Code installScript.php


I have install SSI Topics and Replies, and than I try to install SMFBlog
I use these mods

1. Enhanced Calendar 1.1
2. Order News 1.0.1
3. Increase/Decrease Postbox Size 1.0
4. SMFBlog 0.1 Beta
5. SMF 1.1.1 Update Package 1.1.1
6. SMF 1.1.2 Update Package 1.1.2
7. SSI Topic and Replies 0.1

Not so much of them - I am now under smf 1.1.3


What can cause a problem – What I need to do manually or to make this work?

Spel
Title: Re: SMFBlog
Post by: TrueSatan on July 01, 2007, 10:57:05 AM
@SpelingMistakes

Please read http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

...and use http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php) to help you see what changes the mod needs to make.
Title: Re: SMFBlog
Post by: SpelingMistakes on July 01, 2007, 11:19:56 AM
Hmm I have read whole this topic and I saw almost same problem at the beginning. I noticed that person which has been making this mod ask somebody to send them some from sources folder and indextemplate ... etc.

I am not so familiar with work by hand and I have expect to see what exactly is problem – Maybe my smf version or whatever - I also read that Daniel use this board for support beside its own page for support. I expect it will read and know what is problem – I cant find what is problem – because of that I ask for a help

BTW Other link don't work
Title: Re: SMFBlog
Post by: TrueSatan on July 01, 2007, 11:26:00 AM
The link that didn't work is mirrored
http://sleepycode.com/index.php?action=modparser (http://sleepycode.com/index.php?action=modparser)

Personally I'm not prepared to go editing custom themes so I always refer people to the official documantation that tells them how to do it for themselves.
Title: Re: SMFBlog
Post by: SpelingMistakes on July 01, 2007, 11:37:56 AM
i am on 1.1.3 - This dont help - Maybe there is a problem
Title: Re: SMFBlog
Post by: Daniel15 on July 04, 2007, 04:54:30 AM
Sorry about the delay in replying... I'm kinda slow at times  :-\

Quote from: jawohl on June 05, 2007, 03:54:51 PM
Quote from: Daniel15 on June 01, 2007, 04:12:39 AM
QuoteWhat would I need to do to add "- X replies" (where X is the amount of replies) to that particular post? I think its confusing for members that they have to guess that by clicking the title they can see the replies also.
Where do you want to add that? In/next to the title of the post, or at the bottom of the post?


I would like that to show at the bottom of each post. So that the readers can see how many comments a blog-post has without clicking on it.. Get what I mean? :)
Try this:
In Themes/default/Blog.template.php, find:

<div class="blog_post_body" style="padding: 2ex 0;">', $post['body'], '</div>

Add after:

', $post['replies'], ' ', ($post['replies'] == 1 ? $txt['smf_news_1'] : $txt['smf_news_2']), '


QuoteHowever, I am wanting to put users' "Most Recent Blogs" on the front page of the site (like joomlas index.php page, for instance).  Does anyone know how I can go about doing this easily and if they can provide the code?  I am wanting to do something similar to "Most Recent Posts," but instead "10 Most Recent Blogs."  Let me know and I would greatly appreciate it
You mean blog posts, correct? If so...
Quotecan any one give me an idea how i could include the blog posts on the index page of my site?
First, install the ssi_boardNews Multiple Boards (http://custom.simplemachines.org/mods/index.php?mod=759) mod. I'm guessing you just want the title of the posts? Then, use code similar to this:

<?php
require('SSI.php');

$boards = array();
// Get all the blog boards.
$result db_query("
SELECT ID_BOARD
FROM 
{$db_prefix}boards
WHERE is_blog = 1
ORDER BY name ASC"
__FILE____LINE__);
// Loop through all board IDs
while ($row mysql_fetch_assoc($result))
$boards[] = $row['ID_BOARD'];

// Get the posts
$posts ssi_boardNews($boards10nullnull, array());
// Loop through all the posts
foreach ($posts as $post)
// Output this post
echo '
<a href="'
$scripturl'?action=blog;sa=view_post;id='$post['id'], '">'$post['icon'], ' '$post['subject'], '</a> by '$post['poster']['link'], ' at '$post['time'], '<br />';
?>


If you want the actual posts themselves, try something like:

<?php
require('SSI.php');

$boards = array();
// Get all the blog boards.
$result db_query("
SELECT ID_BOARD
FROM 
{$db_prefix}boards
WHERE is_blog = 1
ORDER BY name ASC"
__FILE____LINE__);
// Loop through all board IDs
while ($row mysql_fetch_assoc($result))
$boards[] = $row['ID_BOARD'];

// Get the posts
$posts ssi_boardNews($boards10nullnull, array());
// Loop through all the posts
foreach ($posts as $post)
// Output this post
echo '
<a href="'
$scripturl'?action=blog;sa=view_post;id='$post['id'], '">'$post['icon'], ' '$post['subject'], '</a> by '$post['poster']['link'], ' at '$post['time'], '<br />
<div class="blog_post_body" style="padding: 2ex 0;">'
$post['body'], '</div>';
?>


Is this what you want, or do you want it formatted differently?

Quotealso I couldn't get pretty URLs to work, /blog and /blog/blogname came up 404 even after i applied the changes to htaccess
Did you try the RewriteBase value (as specified in the .htaccess file). You did call it .htaccess (with a dot as the first character), right?

QuoteI've just install the mod into my forum and assigned a board as a blog.  However, when I tested it, the board came up fine but the blog itself won't show. Is there a reason for this?
What do you mean? What happens when you go to index.php?action=blog? If nothing appears, double-check that you set the board as a blog.

QuoteWhat can cause a problem – What I need to do manually or to make this work?
Just continue the installation, and then manually edit index.template.php (upload the package to http://modparser.dev.dansoftaustralia.net/ and do the index.template.php edit manually).

QuoteThe link that didn't work is mirrored
http://sleepycode.com/index.php?action=modparser
My official one is actually at http://modparser.dev.dansoftaustralia.net/ :)

Quotei am on 1.1.3
It should work fine on SMF 1.1.3. Just continue the installation, and then modify index.template.php manually.

If I missed anyone's question, please feel free to repost it (either here, or at www.daniel15.com). Thanks :)
Title: Re: SMFBlog
Post by: Matthew Schenker on July 05, 2007, 12:08:29 PM
This looks excellent!!!

Please keep us updated on fixes for 1.1.3 and future versions!
Title: Re: SMFBlog
Post by: vandul on July 05, 2007, 06:19:55 PM
Thanks Daniel! I wanted the whole post displayed and it worked perfectly
except for this error
Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/ljb/public_html/mofov2/forum/SSI.php on line 161

The first file included in my page is for my navigation, is there nyway i can get rid of that?

Yes it's named .htaccess, here's it's contents
RewriteBase /
# Main blog listing
RewriteRule ^blog/$ index.php?action=blog
# Viewing a blog
RewriteRule ^blog/([A-Za-z0-9\-_]+)/$ index.php?action=blog&sa=view_blog&name=$1
# A specific page of the blog
RewriteRule ^blog/([A-Za-z0-9\-_]+)/([0-9]+).html$ index.php?action=blog&sa=view_blog&name=$1&start=$2
# A post in the blog
RewriteRule ^blog/([A-Za-z0-9\-_]+)/post-([0-9]+).html$ index.php?action=blog&sa=view_post&id=$2&blog_name=$1 [QSA]



thanks for the help!
Title: Re: SMFBlog
Post by: CraftyLion on July 05, 2007, 11:06:49 PM
Quote from: Daniel15
QuoteI've just install the mod into my forum and assigned a board as a blog.  However, when I tested it, the board came up fine but the blog itself won't show. Is there a reason for this?
What do you mean? What happens when you go to index.php?action=blog? If nothing appears, double-check that you set the board as a blog.

Well, that's just it. It doesn't. It just comes up with the board name and description but no posts that show as blogs.
Title: Re: SMFBlog
Post by: Daniel15 on July 05, 2007, 11:13:03 PM
QuoteNotice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/ljb/public_html/mofov2/forum/SSI.php on line 161

The first file included in my page is for my navigation, is there nyway i can get rid of that?
Remove the require('SSI.php'); from the code I posted above, and instead put it at the very top of the page (in <?php ?> tags). This should fix it :)

QuoteYes it's named .htaccess, here's it's contents
Change
RewriteBase /
To:
RewriteBase /forum/
and it should work.

QuoteWell, that's just it. It doesn't. It just comes up with the board name and description but no posts that show as blogs.
The main blog page is a listing of all the blogs available. If you click on the board name, you'll get into the blog itself. This is to allow for multiple blogs.
Title: Re: SMFBlog
Post by: SpelingMistakes on July 06, 2007, 09:08:39 PM
I cant make it to work – I can find in index.template.php first ('admin', 'calendar',) and second (</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';) set of commands

I am using Helios Multi theme - Any help will be appreciated

Spel


PS I didn't even try to find third set of commands

Title: Re: SMFBlog
Post by: CraftyLion on July 06, 2007, 09:37:58 PM
Quote from: Daniel15
The main blog page is a listing of all the blogs available. If you click on the board name, you'll get into the blog itself. This is to allow for multiple blogs.

Well, that's just it. It just shows the board but no active links to indicate the blogs even though I added a test post.
Title: Re: SMFBlog
Post by: vandul on July 07, 2007, 11:26:12 AM
Hey Daniel,
I got rid of the error but for some reason its showing posts from the blog i most recently deleted instead of a new one i created
I went into the db and made sure that the board I wanted gone was deleted and I changed the is_blog variable on the other board I want as a blog and it still doesn't work

how do i define which blog to post?
i tried changing
   WHERE is_blog =  to the correct board ID but it shows up blank

any ideas?
thanks
Title: Re: SMFBlog
Post by: KnightRobby on July 09, 2007, 11:51:48 PM
Hi, I am wanting a "Global link" that goes to your profile when signed in.  When I try the following code I get "An Error Has Occurred!  No profile selected."  Here's the URL I am trying to use:

http://www.webquad.com/site/component/option,com_smf/Itemid,32/action,viewblog/

Can anyone give me the proper link so it can start working right?  Thanks for all your help.  I searched the forums and found nothing of use, since I assume no one else has this problem!

Thanks again!
Robby :)

PS: By the way, Daniel15 thanks for answering my questions so promptly.  I am very grateful for your help and for creating all these kick butt mods! :)
Title: Re: SMFBlog
Post by: madagascar on July 10, 2007, 01:27:28 AM
Quote
If you're getting File not Found errors, uncomment the RewriteBase line, and change its URL to the correct one. For example, if your forum was at http://smfblog.dev.dansoftaustralia.net/smf/, you'd have "RewriteBase /smf/".


where can we find this file? what file name and folder name?
Title: Re: SMFBlog
Post by: madagascar on July 10, 2007, 01:31:53 AM
I have installed successfully but when i tried to add a board for this purpose, i got this error below:

Field 'is_blog' doesn't have a default value
File: D:\Apache\htdocs\forum\Sources\Subs-Boards.php
Line: 1137

help me please.

thanks in advance
Title: Re: SMFBlog
Post by: KnightRobby on July 10, 2007, 04:20:28 PM
Hey Daniel, I have a simple question.  I am getting an error with the blog mod.  Here's the code for ya:

I am now getting the following errors.  Let me know what to change so I can stop these errors:

[code]Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 599

590: <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
591: </td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
592:
593: // The [calendar]!
594: if ($context['allow_calendar'])
595: echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
596: <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
597: <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
598: // The Blogs!

599: echo ($current_action == 'blog' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '

600: <td valign="top" class="maintab_' , $current_action == 'blog' ? 'active_back' : 'back' , '">
601: <a href="', $scripturl, '?action=blog">' , $txt['blog'] , '</a>
602: </td>' , $current_action == 'blog' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
603: </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';


Can you tell me what changes I need to make?  Because it states there is definitely something wrong on line 599.

Also, when I try going to the URL http://www.webquad.com/site/option,com_smf/Itemid,32/index.php?action=blog/ I get:

The page you are trying to access does not exist.
Please select a page from the main menu.


Which I don't understand why it is doing this??

Thanks again!  Appreciate your work!
Robby :)[/code]
Title: Re: SMFBlog
Post by: madagascar on July 12, 2007, 03:26:45 AM
help
Title: Re: SMFBlog
Post by: KnightRobby on July 12, 2007, 02:17:44 PM
Where did the support go?  Anyone there? :)
Title: Re: SMFBlog (Language support?)
Post by: wjhdiz on July 12, 2007, 03:07:06 PM
Does this come with other language support? Actually, I just want it be able work in Simplifed Chinese.

Thanks.

Jimmy
Title: Re: SMFBlog
Post by: Aes-Sedai on July 12, 2007, 11:23:50 PM
Hmmm... for me, the BLOG button comes up. You go into the Blog section, and there my blogs are listed - but there are no entries (I made sure all blogs had posts in them!)

Any way this can be fixed?
Title: Re: SMFBlog
Post by: yume_kokoro on July 13, 2007, 11:56:44 PM
Quote from: Aes-Sedai on July 12, 2007, 11:23:50 PM
Hmmm... for me, the BLOG button comes up. You go into the Blog section, and there my blogs are listed - but there are no entries (I made sure all blogs had posts in them!)

Any way this can be fixed?

Apparently you have to make blog boards accessible to guests... or it won't show up.  (Had the same problem)

Just go to Modify Board - and make sure the "guest" is checked.
Title: Re: SMFBlog
Post by: Flying Drupalist on July 14, 2007, 02:03:07 PM
      Type     Action     Description
1.    Extract File    ./Sources/Blog.php    
2.    Extract File    ./Themes/default/Blog.template.php    
3.    Extract File    ./Themes/default/blog.css    
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Sources/ManageBoards.php    Test failed
6.    Execute Modification    ./Sources/ModSettings.php    Test failed
7.    Execute Modification    ./Sources/Post.php    Test successful
8.    Execute Modification    ./Sources/QueryString.php    Test successful
9.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Themes/default/index.template.php    Test successful
12.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
15.    Execute Code    installScript.php    

What do I do now? Three files failed!
Title: Re: SMFBlog
Post by: TrueSatan on July 14, 2007, 02:13:02 PM
This is a variant of the most common problem reported on these forums...the fails mean that another mod you have installed has already edited some of the files this mod seeks to edit and thus they are not in the form this mod expects to find. The resolution for all such problems is to do a manual installation of the mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

You may find it helpful to also refer to:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMFBlog
Post by: Flying Drupalist on July 14, 2007, 02:40:43 PM
Thank you, so I should continue installation anyway and do the failed files manually?
Title: Re: SMFBlog
Post by: TrueSatan on July 14, 2007, 02:57:38 PM
No...(or not necessarily) experienced users sometimes do this if they know exactly what the failed files contain and do but it's safer to do a full manual installation if you have any doubts about it.
Title: Re: SMFBlog
Post by: Flying Drupalist on July 14, 2007, 04:07:33 PM
Alright, thanks, :P
Title: Re: SMFBlog
Post by: Flying Drupalist on July 14, 2007, 06:15:17 PM
OK So I did the file changes... but what about the database?

Unknown column 'b.is_blog' in 'field list'
Title: Re: SMFBlog
Post by: Flying Drupalist on July 14, 2007, 06:18:20 PM
I tried to run installScript.php but that gives me an internal script error...
Title: Re: SMFBlog
Post by: TrueSatan on July 14, 2007, 08:05:50 PM
When you tried to run installScript.php you should have put the file into your forum root (to put it another way it should have been in the same place as SMF's index.php)...you should then go to the file via your browser and that would run the file...is that what you did?

If that is what you did then this has to be a query for Daniel to resolve (sorry Daniel) and in order to help him to do that can you give the exact text of any messages you got/get when the script fails to work?
Title: Re: SMFBlog
Post by: KnightRobby on July 16, 2007, 02:55:34 PM
Can anyone help with my problems? :)
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 16, 2007, 09:31:59 PM
I can't now add board even i already uninstalled the mod. Below is the error message:

Field 'is_blog' doesn't have a default value
File: D:\Apache\htdocs\forum\Sources\Subs-Boards.php
Line: 1100

Help me please!
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 18, 2007, 07:14:34 PM
help
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 21, 2007, 07:31:17 PM
help me please.
Title: Re: SMFBlog
Post by: shadow82x on July 21, 2007, 08:09:59 PM
Try replacing \Sources\Subs-Boards.php with a fresh copy from a new install. Can't tell if thats coming from mysql or FTP. If its coming from FTP it should fix it.
Title: Re: SMFBlog
Post by: Flying Drupalist on July 22, 2007, 10:59:09 AM
Hi, I'm wondering if it's possible to rename and reinstall this mod again. Specifically, I want to use this blog mod in conjunction with an "articles' function. This mod would work perfectly as an articles mod if it could only be renamed so.

It shouldn't be hard to do, find+replace? If someone wants to take it up, it would be much appreciated!
Title: Re: SMFBlog
Post by: lodle on July 22, 2007, 01:36:57 PM
Looks like this:

(http://lodle.net/blog.jpg) (http://lodle.net/blog.jpg)
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 22, 2007, 07:41:37 PM
Quote from: shadow82x on July 21, 2007, 08:09:59 PM
Try replacing \Sources\Subs-Boards.php with a fresh copy from a new install. Can't tell if thats coming from mysql or FTP. If its coming from FTP it should fix it.

still doesnt work. i even upgraded to smf 1.1.3 as advised but the problem still exist. anyway thanks for your help.
Title: Re: SMFBlog
Post by: spottedhog on July 22, 2007, 07:52:23 PM
MYBESTHOMESnet...  'is_blog" is a field that SMFBlog adds to the boards table.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 23, 2007, 04:13:18 AM
Quote from: spottedhog on July 22, 2007, 07:52:23 PM
MYBESTHOMESnet...  'is_blog" is a field that SMFBlog adds to the boards table.

yes i think so. can you help me please?
Title: Re: SMFBlog
Post by: spottedhog on July 23, 2007, 06:43:29 AM
What is your current specific issue?  It is hard to understand with what you have posted thus far.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 23, 2007, 07:15:08 PM
Quote from: spottedhog on July 23, 2007, 06:43:29 AM
What is your current specific issue?  It is hard to understand with what you have posted thus far.

I installed this mod with no errors but the problem is i can't no longer add new boards and even i uninstalled, the problem still exist.

I also upgrade the forum to 1.1.3 as advised but to no avail. also tried to change theme but the problem still there.

Field 'is_blog' doesn't have a default value
File: D:\Apache\htdocs\forum\Sources\Subs-Boards.php
Line: 1100

thanks in advance.
Title: Re: SMFBlog
Post by: spottedhog on July 23, 2007, 08:25:26 PM
OK...  I believe the problem is that it did not properly install.

If you wish to remove it, you will probably need to go into each file and remove the changes or additions manually.  You will need to look at the install.xml file of the Mod.

I install all Mods manually, and I have yet to have any problems, and I did not have any problems with this Mod.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 23, 2007, 09:07:25 PM
i already uninstall manually. Is it possible that there is an error at mysql dbase? how to fix that error?

thanks spottedhog
Title: Re: SMFBlog
Post by: spottedhog on July 23, 2007, 09:37:25 PM
Upload a new Subs-Boards.php file.  I may be wrong, but I think you may have missed something in that file....

hmmm....  do a search for is_blog in that file.  Then maybe you can see the error.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 23, 2007, 09:42:46 PM
Quote from: spottedhog on July 23, 2007, 09:37:25 PM
Upload a new Subs-Boards.php file.  I may be wrong, but I think you may have missed something in that file....

hmmm....  do a search for is_blog in that file.  Then maybe you can see the error.

already done these things but the problem still exist. but i will redo the process.
Title: Re: SMFBlog
Post by: spottedhog on July 23, 2007, 09:49:05 PM
....Just guessing here, but I have a feeling this part may be the problem:
// --- Begin modification - SMFBlog ---
'is_blog' => false,
// --- End modification ---
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 23, 2007, 09:53:39 PM
where can i find that code? what file?
Title: Re: SMFBlog
Post by: spottedhog on July 24, 2007, 07:17:49 AM
// --- Begin modification - SMFBlog ---
'is_blog' => false,
// --- End modification ---


Sources\Subs-Boards.php

The code above is found in the file listed above when SMFBlog is installed.  This is the code around line 1100.  The error code you listed suggests that 
'is_blog' => false,
is still in the Sources\Subs-Boards.php file.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 24, 2007, 07:17:09 PM
i already deleted that line. the author of this mode. reply me on PM that i will edit it on my sql database using phpmyadmin. but the problem is i dont know how to use it. I tried to install but the server says "error #2003. server not responding.

thanks spottedhog
Title: Re: SMFBlog
Post by: spottedhog on July 24, 2007, 07:42:26 PM
phpmyadmin is not something you install....  Normally it is part of your web hosting package.  If you have cPanel, look for it there.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 24, 2007, 09:04:43 PM
im hosting it myself using local pc.
Title: Re: SMFBlog
Post by: spottedhog on July 25, 2007, 08:26:01 AM
ahhhh... ok.  I have never installed phpmyadmin, so I am not sure how to help you there.  Daniel15 I think has some experience there.
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on July 25, 2007, 07:18:13 PM
thanks spottedhog. im still waiting for daniels help.
Title: Re: SMFBlog
Post by: lodle on July 26, 2007, 03:08:57 PM
You should add to the first post that it wont change the look of the forum if viewed normally but if you goto [forum url]/index.php?action=blog it will work

for example http://forums.goldeneyesource.com/index.php?action=blog
Title: Re: SMFBlog
Post by: Flying Drupalist on July 26, 2007, 04:11:01 PM
Well here's something I made...

This is essentially the exact same thing as Daniel's blog. Well... it is Daniel's blog, I just went through every file and did a find+replace "blog" for "articles". Everything is now called articles, I didn't bother to fix the grammar (a blog vs an article) or anything, nothing else is touched.

I've tested it on my forums and it works in the exact same way.

Just thought I share it. I can't really give support or anything since it's basically Daniel's blog.

Edit: Just installed it manually, works great.
Title: Re: SMFBlog
Post by: Minare on July 27, 2007, 06:52:33 AM
Hi, nice mod, thanks daniel

I want to make this as a reward for my users.

For example I will announce that whomever makes 1000 posts, he/she will have a blog as a reward.

I will open subboards under a blog category, But I dunno how to enable only one user to open topics on that subboard and use it as his/her blog.

I dunno if I could tell   :(

Any ideas guys  ???
Title: Re: SMFBlog
Post by: spottedhog on July 27, 2007, 07:37:48 AM
You could create a separate membergroup for each individual, then in Permissions, allow them to create topics, and others to post only.
Title: Re: SMFBlog
Post by: Daniel15 on July 27, 2007, 10:13:50 PM
Hi guys,
I'd prefer it if you posted any support questions at my forums at http://www.daniel15.com/. It allows me to keep everything much more organised :)

Anyways, a long list of replies follows :P:

QuoteWell, that's just it. It just shows the board but no active links to indicate the blogs even though I added a test post.
Quotei tried changing
   WHERE is_blog =  to the correct board ID but it shows up blank
That should always say "WHERE is_blog = 1"...
Are you sure you edited the board and unticked the blog tick box?
Also, note that the board needs to be visible to guests.

QuoteCan anyone give me the proper link so it can start working right?
My mod does not have a "viewblog" action; that's from another mod.
Perhaps try: http://www.webquad.com/site/component/option,com_smf/Itemid,32/action,blog/ as the URL.

Quotewhere can we find this file? what file name and folder name?
It's the .htaccess file included as "htaccess.txt" in the package.

QuoteI have installed successfully but when i tried to add a board for this purpose, i got this error below:

Field 'is_blog' doesn't have a default value
File: D:\Apache\htdocs\forum\Sources\Subs-Boards.php
Line: 1137

help me please.

thanks in advance
What version of MySQL are you using? This sounds like a STRICT mode problem (I've not yet tested it in strict mode). Please try running this query in phpMyAdmin:
ALTER TABLE `smf_boards` CHANGE `is_blog` `is_blog` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0'.

QuoteHey Daniel, I have a simple question.  I am getting an error with the blog mod.  Here's the code for ya:
There's a mistake in your code. Please attach or send me your index.template.php file and I'll try to fix it :)

QuoteAlso, when I try going to the URL http://www.webquad.com/site/option,com_smf/Itemid,32/index.php?action=blog/ I get:
The correct URL should be http://www.webquad.com/site/component/option,com_smf/Itemid,32/action,blog/. However, it looks like you're using vbgamer45's mod, not my one.

QuoteWhere did the support go?  Anyone there?
I get very busy sometimes ;).

Quoteoes this come with other language support? Actually, I just want it be able work in Simplifed Chinese.
Should work fine. You'll need to copy the SMFBlog stuff from Themes/default/Modifications.english.php into Themes/default/Modifications.<your language>.php.

QuoteApparently you have to make blog boards accessible to guests... or it won't show up.  (Had the same problem)

Just go to Modify Board - and make sure the "guest" is checked.
Yeah, it's a limitation of SMFBlog at the moment.

QuoteBelow is the error message:

Field 'is_blog' doesn't have a default value
File: D:\Apache\htdocs\forum\Sources\Subs-Boards.php
Line: 1100

Help me please!
This is probably a MySQL strict issue. Please run this query in phpMyAdmin:
ALTER TABLE `smf_boards` CHANGE `is_blog` `is_blog` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0'.

QuoteI will open subboards under a blog category, But I dunno how to enable only one user to open topics on that subboard and use it as his/her blog.
The best way is probably what spottedhog said.
First, create a user membergroup for the user (this is done in the Membergroups section). Then, go to the user's profile, click on "Account Related Settings", and then tick your new membergroup in the "Additional Membergroups:" section.
Then, in your admin panel, go to Permissions → Settings, and tick the Enable advanced by-board permissions option. After this, go to the Permissions by Board tab, and click the "Local" link next to the board. Finally, click on the board name itself, and set all your permissions. Remove the Post new topics permission from "Regular Members", and give it to your new membergroup.
Title: Re: SMFBlog
Post by: Minare on July 28, 2007, 02:30:11 AM
I got it, thanks so much spottedhog  and Daniel15 ;)
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on August 02, 2007, 01:09:44 AM
thanks Daniel. the problem has now resolved. BTW, how to enable this in a MySQL strict mode? I will never give up on this mode. whahehehe.
Title: Re: SMFBlog
Post by: Flying Drupalist on August 04, 2007, 10:19:43 PM
How could I set a character limit for the view blogs page? Thanks!
Title: Re: SMFBlog
Post by: npereira on August 07, 2007, 03:07:57 PM
Is there a way to hide the blog from the forum, and only have that button in the menu for the blog?
I find that it defeits the purpose of having a blog if you can see it in the forum and post from there.

Or am I getting this wrong?
Title: Re: SMFBlog
Post by: Flying Drupalist on August 12, 2007, 10:09:29 PM
Quote from: Miraploy on August 04, 2007, 10:19:43 PM
How could I set a character limit for the view blogs page? Thanks!

Hello, I'm wondering if anyone has given this any thought. Thanks!
Title: Re: SMFBlog
Post by: npereira on August 13, 2007, 08:33:04 AM
What I would like to see, is a blog for each users.
The admin could enable Bloggin for specific users or usergroup like Supporters, and they would have a blog link from ther profile. That would be so cool !
Title: Re: SMFBlog
Post by: LadyC on August 28, 2007, 01:42:25 PM
i'm having a slight problem... i got the mod installed, as well as the other one that is required for this one to work properly. however, when i click the "blog" link on the menu, it takes me to a page that shows the available blogs and their descriptions (i only have one)... and when i click the link to the only one available, it doesn't show any topics! yet there are three topics in that board.

somebody please, please help.
Title: Re: SMFBlog
Post by: LadyC on August 31, 2007, 12:12:04 AM
nobody can help me?
Title: Re: SMFBlog
Post by: spottedhog on August 31, 2007, 09:01:46 AM
provide a link please
Title: Re: SMFBlog
Post by: LadyC on August 31, 2007, 05:20:42 PM
oops, it's ok, i found the answer on another message board.... i didn't have "guests" allowed, which was preventing it from working properly! but thanks for coming to the rescue, i'd forgotten to post an update :)
Title: Re: SMFBlog
Post by: Me313 on September 08, 2007, 01:58:43 PM
hello...

can anyone help me?i dont know how make it available as part as the top bar menu....am  a coder dummy..i know it has something to do with index.template.etc

my theme is dilber Mc with TyPortal.

thank you in advance for the help..

thanks for this simple yet pretty blog for smf.
Title: Re: SMFBlog
Post by: Merecraft on September 09, 2007, 05:42:56 AM
I'm getting the following two errors in my error log when people read a journal entry:

8: Undefined index: ssiTopic_reply
File: /home/path to install/forum/Themes/stoutnsturdy/Blog.template.php
Line: 157


8: Undefined variable: ID_MEMBER
File: /home/path to install/forum/SSI.php
Line: 1837


I do have the SSI Topics and Replies mod installed.

EDIT: Found the problem. The modifications to Modifications.english.php were not added during the SSI Topics and Replies mod install for some reason.
Title: Re: SMFBlog
Post by: lindaf on September 14, 2007, 01:14:10 AM
Hi,

I get some errors on the install, wondering if anyone can tell me how to fix them so I can install it?

Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Blog.php 
2. Extract File ./Themes/default/Blog.template.php 
3. Extract File ./Themes/default/blog.css 
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ManageBoards.php Test failed
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Post.php Test successful
8. Execute Modification ./Sources/QueryString.php Test successful
9. Execute Modification ./Sources/Subs-Boards.php Test failed  
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test successful
12. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/languages/Modifications.turkish.php Skipping file
15. Execute Code installScript.php 
Title: Re: SMFBlog
Post by: Jade Elizabeth on October 20, 2007, 02:36:42 AM
i got the above errors
used http://sleepycode.com/PackageParser/index.php
and everything installed properly

but it doesnt work

edit: have the ssi thing
set a board as a blog too
Title: Re: SMFBlog
Post by: Croco on October 20, 2007, 09:02:44 PM
Quote from: Alundra on October 20, 2007, 02:36:42 AM
i got the above errors
used http://sleepycode.com/PackageParser/index.php
and everything installed properly

but it doesnt work

edit: have the ssi thing
set a board as a blog too
you have to make the board visible by guests
Title: Re: SMFBlog
Post by: Jade Elizabeth on October 20, 2007, 09:34:18 PM
yeah, he told me lol

i dnt have to if i make them childboards

:D their hidden ;)
Title: Re: SMFBlog
Post by: DeMar on November 15, 2007, 07:11:46 AM
I have a problem during instalation!

 
1. Raspakiraj Datoteka ./Sources/Blog.php 
2. Raspakiraj Datoteka ./Themes/default/Blog.template.php 
3. Raspakiraj Datoteka ./Themes/default/blog.css 
4. Primjeni ./index.php                                                           Uspješno
5. Primjeni ./Sources/ManageBoards.php                              Uspješno
6. Primjeni ./Sources/ModSettings.php                                  FAILED  
7. Primjeni ./Sources/Post.php                                               Uspješno
8. Primjeni ./Sources/QueryString.php                                   Uspješno
9. Primjeni ./Sources/Subs-Boards.php                                  Uspješno
10. Primjeni ./Sources/Subs.php                                            Uspješno
11. Primjeni ./Themes/default/index.template.php                Uspješno
12. Primjeni ./Themes/default/ManageBoards.template.php Uspješno
13. Primjeni ./Themes/default/languages/Modifications.english.php      Uspješno
14. Primjeni ./Themes/default/languages/Modifications.turkish.php Preskačem datoteku
15. Izvrši Kod installScript.php


Only the file ./Sources/ModSettings.php failed!
Why? What should I do?
Title: Re: SMFBlog
Post by: TrueSatan on November 15, 2007, 07:18:40 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMFBlog
Post by: DeMar on November 15, 2007, 07:25:46 AM
What do you think?
It would be OK, to finish this installation with this error, and after that edit the one file manualy?

thanks
Title: Re: SMFBlog
Post by: TrueSatan on November 15, 2007, 07:36:38 AM
A big maybe...you see some mods on some installations on some hosting stop at the point where an error is encountered and thus the rest of the files don't get edited not just the failed file...in general I prefer to do a manual edit of the lot and thus can be certain that all files are properly edited...you can try it as you suggest if you wish but do be aware of the potential for problems as I've outlined. All in all it tends to be less bother IMHO to just do a full manual installation.
Title: Re: SMFBlog
Post by: DeMar on November 15, 2007, 08:26:24 AM
OK. Thanks for explanation
Title: Re: SMFBlog
Post by: DeMar on November 15, 2007, 08:27:15 AM
Croatian translation of Modifications.croatian.php!

// --- Begin modification - SMFBlog --- Croatian by Dean B.
// General text strings
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Blog Kategorije';
$txt['blog_blogs'] = 'Dostupni Blogovi:';
$txt['blog_comments'] = 'Komentari';
$txt['blog_no_comments'] = 'Trenutno ne postoje komentari za ovaj post';
$txt['blog_write_comment'] = 'Komentiraj';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Zao nam je, trenutno su blogovi onemoguceni!';
$txt['blog_error_login'] = 'Zao nam je, morate biti prijavljeni kako bi mogli komentirati!';
$txt['blog_error_not_exist'] = 'Zao nam je, blog koji ste trazili ne postoji vise!';
$txt['blog_error_not_blog'] = 'Zao nam je, ova kategorije nije blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Broj prikazanih komentara po stranici';
$txt['blog_enable'] = 'Omoguciti Blog?';
$txt['blog_enable_rewrite'] = 'Omoguciti lijepe URL-ove?';
$txt['blog_settings'] = 'Postavke Bloga';
// Board administration.
$txt['blog_board'] = 'Koristi kategoriju kao blog?';
$txt['blog_board_desc'] = 'Ukljucivanjem ove opcije, omogucavate prikazivanje ove kategorije na stranici bloga.';
// --- End modification ---
Title: Re: SMFBlog
Post by: [SAP]Francis on November 16, 2007, 01:43:08 PM
Does it work on 1.1.4?
Title: Re: SMFBlog
Post by: TrueSatan on November 16, 2007, 08:56:31 PM
It should do so with no problems...obviously installation on a test forum would be sensible rather than on your main forum if you have any doubts about it.
Title: Re: SMFBlog
Post by: Daniel15 on November 29, 2007, 09:15:35 PM
Yes, it should work on SMF 1.1.4
I'm working on updating this mod (fixing some bugs and stuff) at the moment :)
Title: Re: SMFBlog
Post by: falguni1 on December 03, 2007, 01:06:58 AM
hello daniel15 very nice mod

I just want 1 more feature to it, will it show attached files in forum

the blog shows all, but the attachments. It will be great if it shows the attachments also.
thankyou
Title: Re: SMFBlog
Post by: falguni1 on December 03, 2007, 01:15:33 AM
Quote from: Daniel15 on November 29, 2007, 09:15:35 PM
Yes, it should work on SMF 1.1.4
I'm working on updating this mod (fixing some bugs and stuff) at the moment :)
wow
Title: Re: SMFBlog
Post by: Goatie on December 04, 2007, 04:37:51 PM
I'm looking forward to the next release of this mod because I have some plans of expanding my forum with a normal site. Then I can simply pull out the news from the news board instead og making a whole new blog system for the new site.

I'll keep an eye out for the new release of this excelent mod :D
Title: Re: SMFBlog
Post by: softtouch on December 25, 2007, 04:11:42 AM
Installing on 1.1.4 clean install without any error.
But if I tick the checkmark that this board is a blog and save it, I get


Field 'is_blog' doesn't have a default value
File: C:\apache\htdocs\bazaar\Sources\Subs-Boards.php
Line: 1144
Title: Re: SMFBlog
Post by: softtouch on December 25, 2007, 04:20:37 AM
After manually adding default values in the database, I do not get any error anymore, BUT it does not work anyhow.
I am using default theme, created a board "Blogs", ticked the checkbox to use it as a blog and the posts inside that board are still looking like normal posts... no difference.
I am using SMF 1.1.4, fresh install.
Title: Re: SMFBlog
Post by: Daniel15 on December 25, 2007, 04:23:00 AM
Unfortunately, I haven't had time to work on a new version of this mod, but I'll try to soon :)
I'm not sure how SMF handles attachments; I'll need to look into it.

softtouch, that error is occuring because you're using MySQL's "strict" mode. To fix it, try running this SQL query in phpMyAdmin (on the "SQL" tab):
ALTER TABLE `smf_boards` CHANGE `is_blog` `is_blog` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0'
Tell me if this solves the issue.
Title: Re: SMFBlog
Post by: softtouch on December 25, 2007, 04:42:02 AM
It did so far. Now I see the blogs normal if I click the blog tab.
But if I click the blog tab, it lists the blogs and a text "Create a new blog here", which does not have a link... confusing.
I might wait for the next version.
Title: Re: SMFBlog
Post by: Jade Elizabeth on December 28, 2007, 12:52:07 PM
8: Undefined index: pageindex
File: /home/jade/public_html/forums/Themes/default/Blog.template.php
Line: 60
Line: 80
line 60
', $context['blog']['pageindex'];

BLOCK
// Page numbers, please!
echo '
', $context['blog']['pageindex'];

$alternating = 1;


line 80
', $context['blog']['pageindex'];


BLOCK
// Page numbers at the bottom
echo '
', $context['blog']['pageindex'];

}


im getting those errors. i checked this thread (all 9 pages) and couldnt see anything.
Title: Re: SMFBlog
Post by: ApplianceJunk on December 28, 2007, 12:57:55 PM
QuoteUnfortunately, I haven't had time to work on a new version of this mod, but I'll try to soon :)

I will be looking forward to seeing what you do in the next version.

If anyone is interested they can check out how we use this awesome blog mod on our site at ApplianceJunk.com (http://www.appliancejunk.com/forums)
Title: Re: SMFBlog
Post by: phfire on December 29, 2007, 10:25:29 AM
8: Undefined index: icon
File: /home/butuanon/public_html/forums/Sources/Post.php
Line: 1546

got that error when I posted a reply on the blog page.
Title: Re: SMFBlog
Post by: valechan on January 20, 2008, 05:17:29 PM
Question, I instaled the SSI pack needed to see the Blog, I installed the Blog itself, everything installed perfectly... I assigned a forum to be a blog... and when I go see the messages... they're still the same as before. What's going on?? What am I missing???
Title: Re: SMFBlog
Post by: Jade Elizabeth on January 20, 2008, 06:54:05 PM
Quote from: valechan on January 20, 2008, 05:17:29 PM
Question, I instaled the SSI pack needed to see the Blog, I installed the Blog itself, everything installed perfectly... I assigned a forum to be a blog... and when I go see the messages... they're still the same as before. What's going on?? What am I missing???

you need to click the blog button
when you go in with forum view it is displayed normally :)
for example www.boo.jades-world.com should have a button, and it should work, the forums going through changes so i dont know lol
Title: Re: SMFBlog
Post by: valechan on January 20, 2008, 07:19:38 PM
There is no blog button on my forum :S weird...
Title: Re: SMFBlog
Post by: Jade Elizabeth on January 20, 2008, 07:25:51 PM
Quote from: valechan on January 20, 2008, 07:19:38 PM
There is no blog button on my forum :S weird...

for real?
there is so, i see it.
http://www.boo.jades-world.com/index.php?action=blog

:) see
Title: Re: SMFBlog
Post by: valechan on January 20, 2008, 07:42:23 PM
I'll try the manual link :p
Title: Re: SMFBlog
Post by: ApplianceJunk on February 03, 2008, 09:45:56 AM
Hi,

Thanks again for this great mod. It really works nice with out site.

There does seem to by one little problem we have with it.

I get this error message in my error log when a guest clicks on a blog title to try and leave a comment.

Guest                                                        Today at 07:33:14 PM
218.214.123.68                            64dd7ae7a55c3f33f18bff2bbffb2582

http://appliancejunk.com/forums/index.php?action=blog;sa=view_post;id=437

8: Undefined variable: ID_MEMBER
File: /home/content/a/p/p/appliancejunk/html/forums/SSI.php
Line: 1738

Most often it is logged 3-5 times all the same error, all with the same time stamp right down to the second.

Here is another post on the subjuct that I started before I thought it had something to do with the SMF blog mod.

http://www.simplemachines.org/community/index.php?topic=219456.0 (http://www.simplemachines.org/community/index.php?topic=219456.0)

Thanks again for all your hard work on this mod.
Title: Re: SMFBlog
Post by: - danny on February 04, 2008, 01:08:45 PM
i tried removing this, and i got the following error:

QuoteWarning: require_once(/home/xxxxxx/public_html/forums/Sources/Blog.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/forums/index.php on line 54

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxx/public_html/forums/Sources/Blog.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/forums/index.php on line 54

can someone tell me wth is going on?
Title: Re: SMFBlog
Post by: - danny on February 04, 2008, 01:14:25 PM
nvm. just re-uploaded the php file.
Title: Re: SMFBlog
Post by: Daniel15 on February 10, 2008, 11:26:20 PM
Hi everyone,
SMFBlog 1.0 should be up in a few minutes, and it should fix all the issues. Changes:
- Hopefully fixed the "Field 'is_blog' doesn't have a default value" error.
- Added pagination to the "View Blog" page.
- When you preview a reply, go back to the blog once the reply is posted.
- Option to hide blog boards from board index.. Note: If you choose this option, the boards will be hidden from EVERYONE, including the blog owner. I suggest to bookmark the link to the board before enabling it!
- Some minor bug fixes.

If you're using SMFBlog 0.1 Beta, please uninstall it before installing this version!


Edit: Also, for anyone that translated SMFBlog, please translate the new "blog_hide_boards" string (Hide blog boards?), and I'll add your translation

Full list of strings:

// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Blog boards';
$txt['blog_blogs'] = 'Available blogs:';
$txt['blog_comments'] = 'Comments';
$txt['blog_no_comments'] = 'No comments have been posted for this post yet.';
$txt['blog_write_comment'] = 'Write a Comment';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Sorry, but blogs are currently disabled!';
$txt['blog_error_login'] = 'Sorry, you must be logged in to post a comment!';
$txt['blog_error_not_exist'] = 'Sorry, but the blog you requested does not exist!';
$txt['blog_error_not_blog'] = 'Sorry, but this board is not a blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Number of comments to display per page';
$txt['blog_posts_perpage'] = 'Number of blog posts to display per page';
$txt['blog_enable'] = 'Enable blog?';
$txt['blog_enable_rewrite'] = 'Enable pretty URLs?';
$txt['blog_hide_boards'] = 'Hide blog boards?';
$txt['blog_settings'] = 'Blog Settings';
// Board administration.
$txt['blog_board'] = 'Use this board as a blog?';
$txt['blog_board_desc'] = 'Enabling this option will show this board on the blog page.';
// --- End modification ---


And I'll add your translation :)
Title: Re: SMFBlog
Post by: - danny on February 11, 2008, 11:33:02 AM
i've been using smf blogger for some time daniel, is there a way to transfer the existing blogs?
Title: Re: SMFBlog
Post by: ApplianceJunk on February 11, 2008, 09:12:24 PM
Quote from: ~Alex on February 11, 2008, 11:33:02 AM
i've been using smf blogger for some time daniel, is there a way to transfer the existing blogs?

What would there be to transfer?
From what I understand you just make what board you want to use as a blog.

Just use the same board as you did before.

Someone please correct me if this is not the way it works.

Title: Re: SMFBlog
Post by: - danny on February 11, 2008, 09:14:44 PM
well, smf blogger and smfblog are two different things.

smfblogger doesn't use boards as blog entries.
Title: Re: SMFBlog
Post by: ApplianceJunk on February 11, 2008, 09:18:42 PM
QuoteOption to hide blog boards from board index.. Note: If you choose this option, the boards will be hidden from EVERYONE, including the blog owner. I suggest to bookmark the link to the board before enabling it!

Were do I find this option?

Also you suggetst to bookmark it. If we forget can we just uncheck this option to have it show up again?

Thanks,
Title: Re: SMFBlog
Post by: ApplianceJunk on February 11, 2008, 09:21:26 PM
Quote from: ~Alex on February 11, 2008, 09:14:44 PM
well, smf blogger and smfblog are two different things.

smfblogger doesn't use boards as blog entries.

Ok, guess I did not know that.
Could you give me a link to the other one your talking about?

Thanks,
Title: Re: SMFBlog
Post by: Daniel15 on February 12, 2008, 04:45:11 AM
QuoteAlso you suggetst to bookmark it. If we forget can we just uncheck this option to have it show up again?
Yeah, sure, that works too. And the option is in the admin panel, in "Feature Configuration", on the blog tab :)

And what's SMF Blogger? As ApplianceJunk mentioned, please provide a link :)
Title: Re: SMFBlog
Post by: - danny on February 12, 2008, 11:24:24 AM
i can't provide a link to the mod, because developement has been paused from what i understand. you can see how it works on my site however, if you care to take a peak.
Title: Re: SMFBlog
Post by: Jade Elizabeth on February 12, 2008, 01:19:19 PM
Quote from: ~Alex on February 12, 2008, 11:24:24 AM
i can't provide a link to the mod, because developement has been paused from what i understand. you can see how it works on my site however, if you care to take a peak.

Well I want a link, I want to see its site :)
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on February 13, 2008, 10:44:18 PM
@Daneil15.

When will be the release of SMFBlog 1.0?

thanks
Title: Re: SMFBlog
Post by: Daniel15 on February 14, 2008, 02:40:22 AM
It's been up since I posted that post about it on page 9 :)
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on February 14, 2008, 09:35:19 PM
Quote from: Daniel15 on February 14, 2008, 02:40:22 AM
It's been up since I posted that post about it on page 9 :)

so the .zip file is now upgraded already to SMFBlog 1.0?

thanks
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on February 14, 2008, 10:29:21 PM
Hi Daniel,

I can't use the mod parser, want to install it manually using this file SMFBlog_1-0.tar

Please help

thanks
gRac3

ERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all')
#2 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phpkEarQw', 'install', 'all')
#3 {main}

XML File:
Title: Re: SMFBlog
Post by: Daniel15 on February 14, 2008, 11:42:40 PM
Yeah, there seems to be some problems with tar.gz files recently. I reuploaded the mod as a ZIP file, please try that :)
SMFBlog_1-0.zip
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on February 15, 2008, 12:27:44 AM
i got these errors:

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 408: parser error : Opening and ending tag mismatch: file line 41 and modification in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: </modification> in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 421: parser error : Premature end of data in tag modification line 12 in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phpM9WKNe', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472

thanks

gRac3
Title: Re: SMFBlog
Post by: Yağız... on February 17, 2008, 06:35:14 AM
Hi Daniel. Update for Turkish Language:
// --- Begin modification - SMFBlog --- Turkish by KesKin(v0.1)&cakal93(v1.0)
// General text strings
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Blog Kategorileri';
$txt['blog_blogs'] = 'Açık Bloglar:';
$txt['blog_comments'] = 'Yorumlar';
$txt['blog_no_comments'] = 'Bu mesaj için henüz hiç bir yorum yazılmamış';
$txt['blog_write_comment'] = 'Yorum Yaz';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Üzgünüm, ama grup şu an kapalı!';
$txt['blog_error_login'] = 'Üzgünüm, yorum yazmak ıçin giriş yapmalısınız!';
$txt['blog_error_not_exist'] = 'Üzgünüm, but the blog you requested does not exist!';
$txt['blog_error_not_blog'] = 'Üzgünüm, ama bu kategori bir blog değil!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Sayfa başına gösterilecek yorumların sayısı';
$txt['blog_posts_perpage'] = 'Sayfa başına gösterilecek blog mesajı sayısı'; // NEW!
$txt['blog_enable'] = 'Blog Aktif?';
$txt['blog_enable_rewrite'] = 'Düz URL Aktif?';
$txt['blog_settings'] = 'Blog Ayarları';
// Board administration.
$txt['blog_board'] = 'Bu bölümü blog olarak kullan';
$txt['blog_board_desc'] = 'Bu seçenek bu kategoriyi blog sayfasında gösterecektir.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Lütfen bir konu ID\'si girin:';
$txt['ssiTopic_notfound'] = 'Baktığınız konu silinmiş veya size sınırlandırılmıştıır.';
$txt['ssiTopic_replies'] = 'Cevaplar';
$txt['ssiTopic_reply'] = 'Cevap ';
// --- End modification ---
Title: Re: SMFBlog
Post by: MYBESTHOMESnet on February 18, 2008, 08:44:06 PM
hi daniel.

please help us.

many thanks
Title: Re: SMFBlog
Post by: mrzcn on February 22, 2008, 03:46:15 PM
error on borad.index.php

how can i setup it manually
Title: Re: SMFBlog
Post by: matt_hardwick on February 22, 2008, 04:33:24 PM
I still can't get this thing working. It's infuriating.

the file of /Sources/ManageBoards.php keep failing. I tried a manual install like what was mentioned earliar in this thread but that just didn't work.

I can make a board a blog in the baords settings, but it just appears like a normal thread.
Title: Re: SMFBlog
Post by: mrzcn on February 24, 2008, 10:06:00 AM
i install the mod
but dont working please look the picture.

what can i do ?

please help
Title: Re: SMFBlog
Post by: Jade Elizabeth on February 24, 2008, 08:42:36 PM
Quote from: mrzcn on February 24, 2008, 10:06:00 AM
i install the mod
but dont working please look the picture.

what can i do ?

please help


Did you create a blog board and post topics inside it?
Title: Re: SMFBlog
Post by: mrzcn on February 25, 2008, 04:15:13 AM
ah thank you.
i understood now.
then this mod not good.
i remember a mod named "simple blog".it was very nice...
Title: Re: SMFBlog
Post by: - danny on February 25, 2008, 02:06:23 PM
here's a link for a previous inquiry.

http://www.smfhelper.info/forum/index.php?topic=1737.0
Title: Re: SMFBlog
Post by: Jade Elizabeth on February 25, 2008, 05:47:07 PM
Quote from: mrzcn on February 25, 2008, 04:15:13 AM
ah thank you.
i understood now.
then this mod not good.
i remember a mod named "simple blog".it was very nice...

It is good. I use it. I have no problems with it.
Title: Re: SMFBlog
Post by: aabean on March 06, 2008, 08:24:51 AM
I'm getting a

7. Execute Modification          ./Sources/ModSettings.php              Test failed

error.  Any ideas on this?  Using 1.1.4 and TP 0.9.8
Title: Re: SMFBlog
Post by: A2xA on March 07, 2008, 09:26:29 PM
I got a test failed in

manageboards and Subs-Boards during installation.

  I went through it anyways and it installed fine.  It's working except whenever I check for a board to use the blog it makes it where it wont save.  I'll check it, but it will just revert back to the way it was...

Mods...

1.     Custom Action Mod      2.04       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
3.    Simple Award System    1.3.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    SSI Topic and Replies    0.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    E-Arcade    2.5.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Auto Embed Video Clips    2.1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    SMF Gallery Pro    1.3.10    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF Gallery Pro - Video AddOn    1.0.6    [ Uninstall ] [ List Files ] [ Delete ]
9.    FontandSizeDropdown_1.2    1.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    FlashChat Integration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Ultimate Profile    0.7.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    SMFBlog    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    WiiCharged.com FriendCode Fields Brawl    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    cbi, 1.0    1.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    WiiCharged.com FriendCode Fields Wii    1.0    
Title: Re: SMFBlog
Post by: labradors on March 10, 2008, 01:27:07 PM
Not to sound negative - just an honest question: Why use the mod?

To me, it seems that establishing a separate board and allowing other users to reply, but not to create new topics would suffice.

Does the mod add any specific functionality not already present in SMF, or is it mostly for rearranging the display of the messages into the typical blog style? In other words, what does it actually do, over and above what SMF already provides?

I have tried the couple of "demo" links mentioned in this thread, but they didn't work.

http://smfblog.dev.dansoftaustralia.net/smf/blog/ gave the error:
QuoteConnection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

http://historyhuntersinternational.org/index.php?action=forum;f=14 requires registration, and then doesn't actually have the blog pages - at least not that I can see.

http://historyhuntersinternational.org/index.php?board=69.0 gave the error:
QuoteAn Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.

http://smfthemes.lemmingweb.de/ just appears to be an example of a normal SMF theme without any blogs.

The only ones that did work were those of other users, such as http://portal.euroblic.info/forumi/index.php?action=blog or http://forums.goldeneyesource.com/index.php?action=blog (and, perhaps, others).

On my old site, I have a blog (bBlog), but no forum.  On my new site, I have coded some other functionalty AND added the SMF forum, and I am considering discontinuing my older site and replacing the blog with a separate forum on the SMF installation on my new site.  Thus, I am trying to decide whether SMFBlog would really be necessary or desirable for my usage.

Thanks!
Title: Re: SMFBlog
Post by: BiG_NoBoDy on March 15, 2008, 08:54:51 PM
it is mostly for rearranging the display of the messages into the typical blog style

Title: Re: SMFBlog
Post by: Nibogo on March 17, 2008, 07:57:54 PM
is necesary install the mod "SSI Topic and replies" to have the smfblog system working in 1.1.4???
Title: Re: SMFBlog
Post by: RavonTUS on March 27, 2008, 03:14:57 PM
Quote
QuoteHowever, I am wanting to put users' "Most Recent Blogs" on the front page of the site (like joomlas index.php page, for instance).  Does anyone know how I can go about doing this easily and if they can provide the code?  I am wanting to do something similar to "Most Recent Posts," but instead "10 Most Recent Blogs."  Let me know and I would greatly appreciate it
You mean blog posts, correct? If so...
Quotecan any one give me an idea how i could include the blog posts on the index page of my site?
First, install the ssi_boardNews Multiple Boards (http://custom.simplemachines.org/mods/index.php?mod=759) mod. I'm guessing you just want the title of the posts? Then, use code similar to this:

<?php
require('SSI.php');

$boards = array();
// Get all the blog boards.
$result db_query("
SELECT ID_BOARD
FROM 
{$db_prefix}boards
WHERE is_blog = 1
ORDER BY name ASC"
__FILE____LINE__);
// Loop through all board IDs
while ($row mysql_fetch_assoc($result))
$boards[] = $row['ID_BOARD'];

// Get the posts
$posts ssi_boardNews($boards10nullnull, array());
// Loop through all the posts
foreach ($posts as $post)
// Output this post
echo '
<a href="'
$scripturl'?action=blog;sa=view_post;id='$post['id'], '">'$post['icon'], ' '$post['subject'], '</a> by '$post['poster']['link'], ' at '$post['time'], '<br />';
?>


If you want the actual posts themselves, try something like:

<?php
require('SSI.php');

$boards = array();
// Get all the blog boards.
$result db_query("
SELECT ID_BOARD
FROM 
{$db_prefix}boards
WHERE is_blog = 1
ORDER BY name ASC"
__FILE____LINE__);
// Loop through all board IDs
while ($row mysql_fetch_assoc($result))
$boards[] = $row['ID_BOARD'];

// Get the posts
$posts ssi_boardNews($boards10nullnull, array());
// Loop through all the posts
foreach ($posts as $post)
// Output this post
echo '
<a href="'
$scripturl'?action=blog;sa=view_post;id='$post['id'], '">'$post['icon'], ' '$post['subject'], '</a> by '$post['poster']['link'], ' at '$post['time'], '<br />
<div class="blog_post_body" style="padding: 2ex 0;">'
$post['body'], '</div>';
?>




Greetings,

Has anyone tried this recently?  The SMFBlog 1.0 works fine, however when I try to use this code in a phpbox in TinyPortal 0.983 (SMF 1.1.4) I get the following error.  I am just a beginner here so I am not sure where to go with it.

Quote
Parse error: syntax error, unexpected '<' in /var/www/forums/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 1

Any suggestions?

-Ravon
Title: Re: SMFBlog
Post by: erlend_sh on April 06, 2008, 12:05:14 PM
Quote from: NIBOGO on March 17, 2008, 07:57:54 PM
is necesary install the mod "SSI Topic and replies" to have the smfblog system working in 1.1.4???
I'll second that...

Also, will we see this mod made for SMF 2.0? My forum is probably going to be moved over to 2.0 once the first release candidate is out, so I'm very curious as to whether or not there will be a blog-service available by then.
Title: Re: SMFBlog
Post by: ekene on April 17, 2008, 12:48:21 PM
Please help, I'm trying to install SMFBlog, but I can't proceed because of some error alert during installation.

Help me resolve this issue. 

Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Blog.php 
2. Extract File ./Themes/default/Blog.template.php 
3. Extract File ./Themes/default/blog.css 
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Sources/ManageBoards.php Test failed  
7. Execute Modification ./Sources/ModSettings.php Test successful
8. Execute Modification ./Sources/Post.php Test successful
9. Execute Modification ./Sources/QueryString.php Test successful
10. Execute Modification ./Sources/Subs-Boards.php Test failed  
11. Execute Modification ./Sources/Subs.php Test successful
12. Execute Modification ./Themes/default/index.template.php Test successful
13. Execute Modification ./Themes/default/Post.template.php Test successful
14. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
16. Execute Code installScript.php


I have other mods installed. here are the list


Mod Name Version 
1. AddThis Social Bookmarks 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. SMFBlog 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
3. Global Headers Footers 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
4. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0  [ List Files ] [ Delete ] 
5. Post_As_An_Alternate_User 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. SSI Topic and Replies 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. SMF Gallery Lite 1.8.3   [ Uninstall ] [ List Files ] [ Delete ] 
8. ModSettings Textarea 1.04  [ List Files ] [ Delete ] 
9. Invite 1.14   [ Uninstall ] [ List Files ] [ Delete ] 
10. New RSS Button Per Board 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
11. SMF Trader System 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
12. Reg Bar 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
13. SMF Sitemap 1.2.1   [ Uninstall ] [ List Files ] [ Delete ] 
14. User Email System 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
15. Most Popular Topic Today 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
16. Googlebot & Spiders Mod 2.0.3  [ Apply Mod ] [ List Files ] [ Delete ] 
17. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
18. Board Message Icon 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
19. Contact Page 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
20. hidden for guests 1.0.3   [ Uninstall ] [ List Files ] [ Delete ] 
21. Downloads System 1.0.4   [ Uninstall ] [ List Files ] [ Delete ] 
22. Thank You Mod 1.2.1  [ Apply Mod ] [ List Files ] [ Delete ] 
23. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0  [ List Files ] [ Delete ] 
24. SMFShop 3.0   [ Uninstall ] [ List Files ] [ Delete ] 
25. insert Yahoo!Mail button in main menu 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
26. Header Rotator 1.1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
Title: Re: SMFBlog
Post by: rumfa on April 17, 2008, 02:52:54 PM
I installed it, modsettings.php failed and istalled in manually but when i choose "enalble blog" the board looks still the same :S
Title: Re: SMFBlog
Post by: ekene on April 18, 2008, 06:58:12 AM
How can I do the manual install.
Title: Re: SMFBlog
Post by: Joker Grafix on April 19, 2008, 10:25:12 AM
    Type     Action     Description
1.    Extract File    ./Sources/Blog.php    
2.    Extract File    ./Themes/default/Blog.template.php    
3.    Extract File    ./Themes/default/blog.css    
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test failed
7.    Execute Modification    ./Sources/ModSettings.php    Test successful
8.    Execute Modification    ./Sources/Post.php    Test successful
9.    Execute Modification    ./Sources/QueryString.php    Test successful
10.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
11.    Execute Modification    ./Sources/Subs.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/default/Post.template.php    Test successful
14.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Execute Code    installScript.php
Title: Re: SMFBlog
Post by: ekene on April 21, 2008, 07:13:58 AM
I'm still waiting for any solution for the mod installation. Any help?
Title: Re: SMFBlog
Post by: mnguyen on April 23, 2008, 03:03:38 AM
There's an error for me: can anyone help me. This is what it's appearred:

Unknown column 'b.is_blog' in 'field list'
File: /Sources/Subs-Boards.php
Line: 1503
Title: Re: SMFBlog
Post by: Bec on May 04, 2008, 01:36:44 AM
hey everyone,

i have installed this mod and when i click on the tab (top of forum) i get this error message

Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/buctai8/public_html/SSI.php:192) in /home/buctai8/public_html/SSI.php on line 194

any idea how i can fix this?

Cheers!
Bec
Title: Re: SMFBlog
Post by: Marcus Forsberg on May 07, 2008, 01:29:29 PM
Swedish translation:

// --- Begin modification - SMFBlog ---

// General text strings
$txt['blog'] = 'Dagbok';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Dagboks tavlor';
$txt['blog_blogs'] = 'Tillg&auml;ngliga dagb&ouml;cker:';
$txt['blog_comments'] = 'Kommentarer';
$txt['blog_no_comments'] = 'Denna post har inte f&aring;tt n&aring;gra kommentarer &auml;nnu.';
$txt['blog_write_comment'] = 'Skriv en kommentar';

// Errors in the frontend. $txt['blog_error_disabled'] = 'Ledsen, men dagb&ouml;ckerna &auml;r just nu avaktiverade!';
$txt['blog_error_login'] = 'Ledsen, du m&aring;ste vara inloggad f&ouml;r att kommentera!';
$txt['blog_error_not_exist'] = 'Ledsen, men dagboken du f&ouml;rs&ouml;kte komma &aring;t finns inte!';
$txt['blog_error_not_blog'] = 'Ledsen, men denna tavla &auml;r ingen dagbok!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Antal kommentarer per sida'; $txt['blog_posts_perpage'] = 'Antal dagb&ouml;cker per sida';

// NEW!
$txt['blog_enable'] = 'Aktivera dagbok?';
$txt['blog_enable_rewrite'] = 'Aktivera "pretty URL's"?'; $txt['blog_hide_boards'] = 'G&ouml;m dagbokstr&aring;dar?';
$txt['blog_settings'] = 'Dagboks inst&auml;llnigar';

// Board administration.
$txt['blog_board'] = 'Anv&auml;nd denna tavla som en dagbok?'; $txt['blog_board_desc'] = 'Detta visar denna tavla p&aring; dagbokssidan.'; // --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Ange ett tavel ID'; $txt['ssiTopic_notfound'] = '&Auml;mnet du s&ouml;ker &auml;r antingen utom r&auml;ckh&aring;ll f&ouml;r dig, eller s&aring; finns det inte.';
$txt['ssiTopic_replies'] = 'Svar';
$txt['ssiTopic_reply'] = 'Svar ';
// --- End modification ---
Title: Re: SMFBlog
Post by: erlend_sh on May 14, 2008, 10:50:46 AM
Quote from: Sadr on April 06, 2008, 12:05:14 PM
Quote from: NIBOGO on March 17, 2008, 07:57:54 PM
is necesary install the mod "SSI Topic and replies" to have the smfblog system working in 1.1.4???
I'll second that...

Also, will we see this mod made for SMF 2.0? My forum is probably going to be moved over to 2.0 once the first release candidate is out, so I'm very curious as to whether or not there will be a blog-service available by then.
Our forum has moved to 2.0 already and now the "blog" looks kinda silly seeing as it's just another pile of topics in a board... Both two old questions still stand... :)
Title: Re: SMFBlog
Post by: MoreBloodWine on July 21, 2008, 05:28:27 PM
Quote from: Bec on May 04, 2008, 01:36:44 AM
hey everyone,

i have installed this mod and when i click on the tab (top of forum) i get this error message

Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/buctai8/public_html/SSI.php:192) in /home/buctai8/public_html/SSI.php on line 194

any idea how i can fix this?

Cheers!
Bec
Fresh install and I got the same error...
Title: Re: SMFBlog
Post by: gemigene on July 25, 2008, 03:48:13 PM
Quote from: BiG_NoBoDy on March 15, 2008, 08:54:51 PM
it is mostly for rearranging the display of the messages into the typical blog style

And this can be accomplished using the Custom Board Sort (http://custom.simplemachines.org/mods/index.php?mod=382) Mod.

Gene
Title: Re: SMFBlog
Post by: Bec on July 25, 2008, 08:43:21 PM
i say install felblog its more a blog style and separate to teh forum!
Title: Re: SMFBlog
Post by: theglobe on August 07, 2008, 08:29:53 PM
OK, I'm trying to get this to work in the custom skin Ig-Oh. Any instructions I can be linked to?
Title: Re: SMFBlog
Post by: chrisb on November 01, 2008, 05:46:25 PM
We are having issues with the blog , we have tried to upgrade to the later version and now getting errors all over the place.


On the Main board, we are unable to delete the 2 blogs from the board

in the configuation, it will not display the link for the blog

We need help as soon as possible to fix these issues
Title: Re: SMFBlog
Post by: jblogg on November 23, 2008, 06:33:01 PM
Hello,

I just have to say I think this is a fantastic MOD but unfortunately I am unable to use it due to errors:

1. Extract File ./Sources/Blog.php
2. Extract File ./Themes/default/Blog.template.php
3. Extract File ./Themes/default/blog.css
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Sources/ManageBoards.php Test successful
7. Execute Modification ./Sources/ModSettings.php Test failed
8. Execute Modification ./Sources/Post.php Test successful
9. Execute Modification ./Sources/QueryString.php Test successful
10. Execute Modification ./Sources/Subs-Boards.php Test successful
11. Execute Modification ./Sources/Subs.php Test successful
12. Execute Modification ./Themes/default/index.template.php Test successful
13. Execute Modification ./Themes/default/Post.template.php Test successful
14. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
16. Execute Code installScript.php


#7 seems to be the problem.
Here is a list of installed MODs:


Mod Name Version
1. Empty Boards Notifications 1.0 [ Uninstall ]
2. English British Spelling Of Centre & Colour BBCode 1.1 [ Uninstall ]
3. RSS Feed Icon 1.1 [ Uninstall ]
4. NO Right Click 1.0 [ Uninstall ]
5. Downloads System 1.0.4 [ Uninstall ]
6. MCLegendII.2 2.0 [ Uninstall ]
7. Thank You Mod 1.2.1 [ Uninstall ]
8. Hide SMF Version 1.0.2 [ Uninstall ]
9. Digg in Topics (for 1.1.4 and 1.1.5) 1.3 [ Uninstall ]
10. Expand Pages Mod 1.0 [ Uninstall ]
11. Mod Hide Post 1.1 [ Uninstall ]
12. Profile_Visitors 3.0 [ Uninstall ]
13. SMF Links 1.6.7 [ Uninstall ]
14. Treasury 2.12 [ Uninstall ]
15. Spoiler Tag 0.3.2 [ Uninstall ]
16. Reg Bar 1.0.2 [ Uninstall ]
17. Site Integration Mod [ Uninstall ]
18. Case Insensitive Smileys 1.1 [ Uninstall ]
19. Mood Bobels 2.0 [ Uninstall ]
20. Pm_Informer 1.0 [ Uninstall ]
21. Member Color Link 3.0.0 [ Uninstall ]
22. Auto Embed Video Clips 2.2 [ Uninstall ]
23. SMF Gallery Lite 1.8.3 [ Uninstall ]
24. New Topic Button 1.0 [ Uninstall ]
25. SMF Ranks 1.1 [ Uninstall ]
26. AdSense Section Targeting Mod 1.0 [ Uninstall ]
27. Simple Award System 2.0.0b [ Uninstall ]
28. Export Personal Messages 1.0 [ Uninstall ]
29. Registered Links 1.0 [ Uninstall ]
30. Move Old Topics 1.0 [ Uninstall ]
31. Advanced XFire Field 1.2 [ Uninstall ]
32. Auto Email Inactive Users 1.7 [ Uninstall ]
33. Wikipedia BBCode 1.3 [ Uninstall ]
34. Custom Board Sort 1.0.1 [ Uninstall ]
35. Top 10 Posters Today And This Week Stats 1.1 [ Uninstall ]
36. SMF Staff Page 1.6 [ Uninstall ]
37. SimplePortal 1.2 [ Uninstall ]
38. LogModAccountEdits 1.9 [ Uninstall ]
39. PageRank BBCode 1.3 [ Uninstall ]
40. Your Button 1.0 [ Uninstall ]
41. Banlist 1.0 [ Uninstall ]
42. Order News 1.0.5 [ Uninstall ]
43. BBC [you] 1.0 [ Uninstall ]
44. SMF Archive 1.3 [ Uninstall ]
45. Select All And Copy Code To Clipboard 1.2 [ Uninstall ]
46. Titled Links 1.1c [ Uninstall ]
47. Age and Gender Board Filter 1.1.1 [ Uninstall ]
48. mp3 Flash Player BBC Tag (XHTML Compliant) 1.0 [ Uninstall ]
49. Password Protect Boards 0.2 [ Uninstall ]
50. Post_Board_Select 1.0 [ Uninstall ]
51. New RSS Button Per Board 1.0 [ Uninstall ]
52. Create Topic on Report to Moderator 0.2 [ Uninstall ]
53. Separated Birthdays from Events 1.0 [ Uninstall ]
54. Advanced AJAX Shoutbox 1.20 [ Uninstall ]
55. SMF Sitemap 1.2.2 [ Uninstall ]



Thanks in advance

Title: Re: SMFBlog
Post by: rarach on December 11, 2008, 11:41:40 AM
Alright, I have installed everything and found the url that the main blog list page is on. I've made child boards designated as blogs, and they show up on the list. I posted test blogs on them, but when I go to view them in blog mode, it shows up as if nothing had been posted on them. What's wrong? How can I fix this?

Thanks in advance! :D

[edit]

Solved my own problem. I hadn't seen that the only posts that would get shown in the blog are those that are visible by guests. I'm looking forward to the upgrade that allows you to block guests from the threads and still see them in the blog.
Title: Re: SMFBlog
Post by: Özgür on December 14, 2008, 05:09:54 PM
Any update for smf 2.0?
Title: Re: SMFBlog
Post by: theglobe on January 03, 2009, 10:23:42 AM
I was wondering if there was a way to make blogs look more like a forum pages with the icons and such? You know, instead of having the simple blocks, have icons like you would in the regular forum. It seems that when you click on the update via simple portal as well as the second pages of blog entries are already in this format, but clicking the blog link itself doesn't work.
Title: Re: SMFBlog
Post by: djpaddystudio7 on February 21, 2009, 07:35:51 PM
hi
can you tell me what changes are required to install it on 1.1.8

installation failed in one file modsetting.php

the mod got installed alright but i couldnt access the mod settings in the admin panel

please do update this useful mod for 1.1.8 and further.
Title: Re: SMFBlog
Post by: R.Bourne on April 11, 2009, 10:51:58 AM
Go here http://custom.simplemachines.org/mods/index.php?mod=793 .... select your version 1.1.8 and click on "parse" button to see the manual install. There, scroll down and you'll see the changes that you'd need to make in "modsetting.php".

Good luck!
Title: Re: SMFBlog
Post by: Chit-Chat ChatterBox Boss on May 02, 2009, 03:54:19 PM
I went to click the install on the package installer and when it normally would install a screen poped up with this

Fatal error: Call to undefined function db_query() in /home/XXXXXXX/public_html/Packages/temp/installScript.php on line 42

Quote
// Settings to add
$mod_settings = array(

   'blog_enable' => 1,
   'blog_enable_rewrite' => 0,
   'blog_posts_perpage' => 10,
   'blog_comments_perpage' => 10,
   'blog_hide_boards' => 0,

);  <----- Line 42
Title: Re: SMFBlog
Post by: Chit-Chat ChatterBox Boss on May 03, 2009, 01:34:35 AM
Quote from: cafontaine on May 02, 2009, 03:54:19 PM
I went to click the install on the package installer and when it normally would install a screen poped up with this

Fatal error: Call to undefined function db_query() in /home/XXXXXXX/public_html/Packages/temp/installScript.php on line 42

Quote
// Settings to add
$mod_settings = array(

   'blog_enable' => 1,
   'blog_enable_rewrite' => 0,
   'blog_posts_perpage' => 10,
   'blog_comments_perpage' => 10,
   'blog_hide_boards' => 0,

);  <----- Line 42

Anyone got an idea?
Title: Re: SMFBlog
Post by: SA™ on May 03, 2009, 02:46:13 AM
are you trying to install this on smf 2 it for smf 1 not 2
Title: Re: SMFBlog
Post by: Chit-Chat ChatterBox Boss on May 03, 2009, 11:17:12 AM
<<< says it all 2.0 RC1 default theme
Title: Re: SMFBlog
Post by: Özgür on May 03, 2009, 11:23:20 AM
This modification can't support 2.0 Rc1.
Title: Re: SMFBlog
Post by: Chit-Chat ChatterBox Boss on May 03, 2009, 11:27:25 AM
Darn  :( Know when it might or a good blog mod that does. I don't like zcommunity cause you have to add all those files before installing it messed a few things up trying that. is there any others?
Title: Re: SMFBlog
Post by: snazster on May 18, 2009, 04:18:34 PM
Hi,

I've used SMF Blog for a while now and only recently noticed that it won't allow gloabl moderators to create a blog.  When a global moderator clicks the link index.php?action=blogControlPanel;u=91 to 'get their own blog', it comes up "An error has occured!" 

This might be a bug, or it might be my setup.  Any advice much appreciated.   
Title: Re: SMFBlog
Post by: snazster on May 18, 2009, 04:30:58 PM
Sorry, stupid mistake, my problem (above) is now solved.  :)
Title: SMFBlog - Page Titles
Post by: ehsizzup on June 06, 2009, 03:09:16 PM
It would be nice if the blog pages were named (page_title) for the individual blog entries instead of a generic name for every page.

This way I could one-click them up to Twitter.

Any ideas how to do this?





Title: Re: SMFBlog
Post by: ehsizzup on June 06, 2009, 05:40:42 PM
i solved my problem by brute force trial and error......
Title: Re: SMFBlog
Post by: nopity4u on June 20, 2009, 11:54:21 AM
Not trying to be a negative nancy but when you post problems to threads and later solve them, if you're going to bother posting that you found the solution why not take the time to post the solution too? This will help any users who have the same issue that you had.
Title: Re: SMFBlog
Post by: sombra on June 20, 2009, 03:01:33 PM
wen can this mod be updated to rc1?
Title: Re: SMFBlog
Post by: cme1st2302 on June 23, 2009, 01:32:38 PM
I have installed this mod and I have created a board for the blogs.  I want to know if there is any way to make the board invisible to everyone except admins on the forum tab?  I don't want members to see it on the list but rather click on the Blog button on my tabs instead to get to the blogs.

Any help is appreciated,
Chris
Title: Hiding Blogs in "Jump to" drop down menu.
Post by: ehsizzup on July 10, 2009, 09:03:41 AM
How can we hide the blogs from the drop down menu at the bottom of display.template.php?

I dont want to remove the entire drop down, just the blogs part.  They should not appear there at all, if you select "Hide Blogs"


-------
This is now a dead issue.....I removed the whole drop down.
Title: Re: SMFBlog
Post by: TomW on August 06, 2009, 11:49:06 AM
Is this mod still supported ?
Title: Re: SMFBlog
Post by: MultiformeIngegno on August 31, 2009, 05:57:25 AM
Quote from: TomW on August 06, 2009, 11:49:06 AM
Is this mod still supported ?
I really hope that the MOD will be updated for 2.0! It seems really a good & useful one!
Title: Re: SMFBlog
Post by: mrnizeone on September 04, 2009, 10:47:58 PM
I try to install SMF Blog thru package... Then i edit the coding manually to ensure SMF Blog install correctly..

i have two question...

1st.... when i refer to online manual installation instruction... for SMF 1.1.10.. under ./Sources/ManageBoards.php... i confius.. why three time need to add the same coding?


Quote// --- Begin modification - SMFBlog ---
             'is_blog' => 0,
             // --- End modification ---

2nd... can anyone help me why this is can happen?

QuoteFatal error: Call to undefined function ssi_topic() in /home/zhamct/public_html/Sources/Blog.php on line 264

example ... http://www.mypolycampus.net/index.php?action=blog;sa=view_post&id=3656 (http://www.mypolycampus.net/index.php?action=blog;sa=view_post&id=3656)

i've read about ssi_topic in previous topic... but i still can't find the answer how to fix it. Thanx very2 much  ;)
Title: Re: SMFBlog
Post by: Maserati on November 14, 2009, 07:34:15 AM
In Subs.php i don't have this part in ManageBoards and Subs.php

Here is file in attachment if someone can help...

Actually in ManageBoards.php missing this part:

'permission_mode' => 'normal',

And Subs.php dont have what is need for installation...
Title: Re: SMFBlog
Post by: Deaks on November 27, 2009, 07:54:07 AM
Ok I have taken over this mod, I will be updating it to work with 1.1.10 and then to 2mf 2.0 :)
Title: Re: SMFBlog
Post by: MultiformeIngegno on November 27, 2009, 08:05:29 AM
Quote from: Runic on November 27, 2009, 07:54:07 AM
Ok I have taken over this mod, I will be updating it to work with 1.1.10 and then to 2mf 2.0 :)
Yeeah! ;)
Title: Re: SMFBlog
Post by: Maserati on November 27, 2009, 12:20:19 PM
Great News.. I hope it will be soon.
Title: Re: SMFBlog
Post by: Deaks on November 27, 2009, 03:01:59 PM
I will aim to have it out with SMF 2.0 Final
Title: Re: SMFBlog
Post by: KensonPlays on December 04, 2009, 05:50:05 PM
aw........ ...that would be a great default feature (submitted topic about it)!!!!!!!!!!!!
Title: Re: SMFBlog
Post by: Deaks on December 04, 2009, 06:01:58 PM
wont happen sorry ... has been discussed when I was on team
Title: Re: SMFBlog
Post by: » мιsтєя мιsғιт « on December 04, 2009, 11:35:39 PM
Can't wait for this to be updated to RC 2  :D :D :D



Title: Re: SMFBlog
Post by: Deaks on December 05, 2009, 01:07:24 AM
it wont be updated to RC2 but will be updated for 2.0 final
Title: Re: SMFBlog
Post by: » мιsтєя мιsғιт « on December 05, 2009, 06:54:39 AM
Ahh okay, well that's even better I suppose. :)
Title: Re: SMFBlog
Post by: KensonPlays on December 20, 2009, 09:30:22 PM
I WANT 2.0 FINAL TO COME OUT NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Title: Re: SMFBlog
Post by: ChaosEnergy on December 27, 2009, 11:45:23 AM
argh.,..
please do an update already for rc2 please
i converted to it and lost all my blog entries...

Title: Re: SMFBlog
Post by: Deaks on December 27, 2009, 12:01:55 PM
it will not be made for RC2 im afraid,
Title: Re: SMFBlog
Post by: ChaosEnergy on December 27, 2009, 12:08:24 PM
what is needed to change your mind???
all my linux support articles are in there...
Title: Re: SMFBlog
Post by: Deaks on December 27, 2009, 12:12:50 PM
something that you cant offer :)
Title: Re: SMFBlog
Post by: ChaosEnergy on December 27, 2009, 12:15:20 PM
let me know in a PM, then I can tell you, if i m able or not...
and sure, i cant be your female partner :P
Title: Re: SMFBlog
Post by: Yağız... on December 27, 2009, 01:01:55 PM
Quote from: Runic on December 27, 2009, 12:12:50 PM
something that you cant offer :)
Hmm, help? :P
Title: Re: SMFBlog
Post by: Neverhurry on December 28, 2009, 06:15:02 AM
Quote from: Daydreamer on December 14, 2008, 05:09:54 PM
Any update for smf 2.0?

it seems that you can manually install for smf 2.0 rc2. Great news, isn't it?
Title: Re: SMFBlog
Post by: Deaks on December 28, 2009, 11:26:33 AM
not when its coded for 1.1.11 ... there are alot of changes including db changes.
Title: Re: SMFBlog
Post by: Boricua012 on January 09, 2010, 08:28:48 PM
Someone who has this mod installed on their website, can please i see it? I want to see what the whole thing looks like on a website.
Title: Re: SMFBlog
Post by: Özgür on January 30, 2010, 06:56:35 AM
Nice to see this update. :)
Title: Re: SMFBlog
Post by: vbgamer45 on January 30, 2010, 10:33:47 AM
I am going to be working on this mod early next week and updating it to SMF 2.0 along with new features and integrations.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on January 30, 2010, 09:42:52 PM
Got some time today!

Updated SMFBlog to SMF 2.0 RC2!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: ~DS~ on January 30, 2010, 11:14:25 PM
Finally a 2.0 RC2 release... unfortunately it look like a category and post like topics... 
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on January 30, 2010, 11:20:19 PM
It adds a menu item called Blog to the menu which you can then access. You have the option to enable a board as a blog then, then under blog settings you can hide it from the board index.

At the moment it is a port of the SMF 1.1.x to RC2 but more features will be added in time.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Özgür on January 31, 2010, 06:15:14 AM
Quote from: vbgamer45 on January 30, 2010, 09:42:52 PM
Got some time today!

Updated SMFBlog to SMF 2.0 RC2!

Thanks vbgamer!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: MultiformeIngegno on January 31, 2010, 06:39:16 AM
Quote from: vbgamer45 on January 30, 2010, 11:20:19 PM
At the moment it is a port of the SMF 1.1.x to RC2 but more features will be added in time.
Yeaaah! Nice to hear! ;)
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: TheListener on January 31, 2010, 09:09:40 AM
I don't have pretty urls installed so would I be better to leave that box unticked?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Neverhurry on January 31, 2010, 09:51:49 AM
Hi vbgamer45,

Is it possible to give every member of a smf forum permission to create a board as blog?
Will you make a teaser in the future so that only part of the first message content will be displayed?
Under the first message content, I would like to have a comment button and comment / views number.

thanks a lot for this great mod!!!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on January 31, 2010, 10:20:00 AM
Quote from: neverhurry on January 31, 2010, 09:51:49 AM
Hi vbgamer45,

Is it possible to give every member of a smf forum permission to create a board as blog?
Will you make a teaser in the future so that only part of the first message content will be displayed?
Under the first message content, I would like to have a comment button and comment / views number.

thanks a lot for this great mod!!!
Possibly have to think how I want to do this. Performance issues might occur if there are too many boards that are created and harder for the admin to manage the board area as well
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: TheListener on January 31, 2010, 10:23:01 AM
Quote from: neverhurry on January 31, 2010, 09:51:49 AM
Hi vbgamer45,

Will you make a teaser in the future so that only part of the first message content will be displayed?
Under the first message content, I would like to have a comment button and comment / views number.

thanks a lot for this great mod!!!

This sounds like a good idea.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Sakae on February 02, 2010, 06:22:59 PM
Quote from: vbgamer45 on January 30, 2010, 09:42:52 PM
Got some time today!

Updated SMFBlog to SMF 2.0 RC2!

First of all, thank you for this.

But I got an error on my Subs.php, it's the first modification on that file.

I just can't find this piece of code on my SMF 2.0 RC2

if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))

Thanks again!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 02, 2010, 06:24:19 PM
Check if there is something similar. Do you have any seo rewriting mods?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: damnitmike on February 02, 2010, 06:35:20 PM
vbgamer, is this step still neccesary from the first post?

For SMF 1.1.x In order to use this mod, you must first install the SSI Topic and Replies mod, otherwise it won't work properly.

Thanks.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 02, 2010, 06:36:10 PM
Yes haven't updated the SMF 1.1.x version yet.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: damnitmike on February 02, 2010, 06:38:12 PM
That was quick!

Thanks again! 8)
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 02, 2010, 06:39:44 PM
Glad to help. I plan some major changes to the blog mod in the coming months to make it better.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Sakae on February 02, 2010, 08:06:17 PM
Quote from: vbgamer45 on February 02, 2010, 06:24:19 PM
Check if there is something similar. Do you have any seo rewriting mods?

I had. Just uninstalled my Pretty URLs MOD and got it working.

Thank you!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 02, 2010, 08:08:50 PM
Glad you got it working
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Sakae on February 02, 2010, 09:09:05 PM
Quote from: vbgamer45 on February 02, 2010, 08:08:50 PM
Glad you got it working

Not for too long!!!! :( Suddenly, it stopped to work! I don't know what happened, I really don't!

http://www.tigrelog.com.br/ver.php?action=blog (http://www.tigrelog.com.br/ver.php?action=blog)

Boards configured as blogs: http://www.tigrelog.com.br/ver.php?board=51.0 (http://www.tigrelog.com.br/ver.php?board=51.0)  and http://www.tigrelog.com.br/ver.php?board=93.0 (http://www.tigrelog.com.br/ver.php?board=93.0)

(Login/pass on my signature)

Also, no error log entries!! I tried to reinstall all over again, but nothing.

The weirdest thing, is that I got working the first time. When I tried to access again, it disappeared.

Any suggestion?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Sakae on February 03, 2010, 05:57:08 PM
Oh, no!

I de-installed the MOD and now I can't access the boards I chose before as blog!

WHAT SHOULD I DO??
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 03, 2010, 07:20:50 PM
Then it uninstall with any errors? I would try to do a reinstall to see if you can access the board again.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Sakae on February 03, 2010, 08:09:30 PM
I tried to install and uninstall several times, but didn't worked.

I solved in a hard way: Created a new board, move all topics to it, deleted the old one and renamed the new. :P
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kreator on February 04, 2010, 01:42:18 PM
Quote from: damnitmike on February 02, 2010, 06:35:20 PM
vbgamer, is this step still neccesary from the first post?

For SMF 1.1.x In order to use this mod, you must first install the SSI Topic and Replies mod, otherwise it won't work properly.

Thanks.



so should this still be installed first???

As on looking at the SSI Topics & replies Mod its not suitable for SMF2.0 RC2 , and I assume another manual install is neccesssary.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 04, 2010, 01:48:03 PM
If you are using SMF RC2 you do not need it installed
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kreator on February 04, 2010, 04:24:36 PM
Thanks, Yeah noted 1.11 version ( reminds me to read properly!!)can you tell me where this  option is in smf2.0 RC2?


QuoteOption to hide blog boards from board index.. Note: If you choose this option, the boards will be hidden from EVERYONE, including the blog owner. I suggest to bookmark the link to the board before enabling it!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: tonnybarros on February 07, 2010, 01:02:25 PM
I also have installed and gave pretty url error Subs.php is to install anyway, or really are incompatible
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 07, 2010, 01:47:51 PM
Quote from: tonnybarros on February 07, 2010, 01:02:25 PM
I also have installed and gave pretty url error Subs.php is to install anyway, or really are incompatible
For the blog mod what is incompatible?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: tonnybarros on February 07, 2010, 02:02:21 PM
the error that appears in Subs.php is this:

if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd']))) 

Replace
// --- Begin modification - SMFBlog --- global $boardurl; // Is URL rewriting enabled? if (!empty($modSettings['blog_enable_rewrite'])) { // The blog itself (using a name) $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_blog;name=([A-Za-z0-9\-_]+)/', $boardurl . '/blog/$1/', $setLocation); // A post in the blog (with its alias) $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_post;id=([0-9]+);blog_name=([A-Za-z0-9\-_]+)/', $boardurl . '/blog/$2/post-$1.html', $setLocation); // The main blog page $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=blog$/', $boardurl . '/blog/', $setLocation); } // --- End modification --- 

See my Subs.php and see if it is to add
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: tonnybarros on February 08, 2010, 09:54:08 PM
Tradução portugues Brasil:
// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Fóruns Blog';
$txt['blog_blogs'] = 'Blogs disponíveis:';
$txt['blog_comments'] = 'Comentários';
$txt['blog_no_comments'] = 'Nenhum comentário foi postado para esse post ainda.';
$txt['blog_write_comment'] = 'Escrever um comentário';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Desculpa, mas os blogs estão atualmente desativado!';
$txt['blog_error_login'] = 'Desculpe, você deve estar conectado para postar um comentário!';
$txt['blog_error_not_exist'] = 'Desculpe, mas o blog que você solicitou não existe!';
$txt['blog_error_not_blog'] = 'Desculpa, mas este fórum não é um blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Número de comentários para mostrar por página';
$txt['blog_posts_perpage'] = 'Número de posts para mostrar por página'; // NEW!
$txt['blog_enable'] = 'Habilitar blog?';
$txt['blog_enable_rewrite'] = 'Habilitar pretty URLs?';
$txt['blog_hide_boards'] = 'Ocultar fóruns blog?';
$txt['blog_settings'] = 'Blog Definições';
// Board administration.
$txt['blog_board'] = 'Use este fórum como um blog?';
$txt['blog_board_desc'] = 'Ativar essa opção mostrará este fórum na página do blog.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Por favor, especifique um ID do tópico';
$txt['ssiTopic_notfound'] = 'O tema está a procura parece estar desaparecido ou fora de você.';
$txt['ssiTopic_replies'] = 'Respostas';
$txt['ssiTopic_reply'] = 'Responder ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'por';
$txt['smfblog_subject'] = 'Assunto';
$txt['smfblog_re'] = 'Re: ';
$txt['smfblog_shortcuts'] = 'atalhos: pressione alt + s para enviar ou alt + p para pré-visualizar';
$txt['smfblog_save'] = 'Salvar';
$txt['smfblog_preview'] = 'Visualizar';
// END SMF Blog
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: tonnybarros on February 09, 2010, 07:48:41 AM
When I March enable Pretty URL for the blog, every time I enter brlog go to the homepage, if it is disabled works fine. What can be?

I have the Pretty URL
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kreator on February 09, 2010, 12:36:42 PM
Is there going to be any facility for multi users? as its only on a per board basis.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 09, 2010, 12:44:45 PM
Maybe mod still very early in the planning stages where I want to take it next
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kreator on February 09, 2010, 01:15:41 PM
Charles Hill`s Blog/Zcommunity  was pretty good for the 1.1. series but I see that he has gone off to do other things and hasn`t upgraded the version to smf2.


btw: I found the switch for turning off the boards! 


Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Sakae on February 09, 2010, 05:35:13 PM
Quote from: tonnybarros on February 08, 2010, 09:54:08 PM
Tradução portugues Brasil:

Sorry, but what are these strange caracters that don't exist in portuguese?

Is not UTF-8.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 12, 2010, 10:40:51 AM
How do you get the blog button to show up in a custom theme? It showed up fine on the babylon theme. Everything was working great.

I am wanting to use the Sis theme.  Everything else other than the blog link appear to be working fine with the theme.

Version of SMF is 1.1.11

Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 12, 2010, 11:00:29 AM
I uninstalled the theme and went back to the very basic packaged styles and even the default core, but no blog navigational button still.

So I uninstalled everything and deleted all the files.

Installed just the ssi topics and smf blog, no blog navigational button any more.

Everything else about the blog works great. I typed in a direct link to the blog, http://www.taylordeanbooks.com/index.php?action=blog, and blog itself is working great. 

I am going to try uninstalling smf AND deleting all left over files on the server, installing the theme I want, deleting all others, then I'll install the blog again and see what happens.


   *these actions did not fix my problem. Trying to figure out a way to change the help button to a blog button now*
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: ~DS~ on February 12, 2010, 11:56:06 AM
You need to modify the board to turn on the blog.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 12, 2010, 02:45:50 PM
Turning on the blog was already done. No blog button yet and my efforts to turn the help button into a blog link have not panned out so far. Still trying.

The box in modify board is checked and saved
(http://www.taylordeanbooks.com/helpimages/boardbottom.png)

The blog is enabled and saved
(http://www.taylordeanbooks.com/helpimages/settings.png)

The blog itself works
(http://www.taylordeanbooks.com/helpimages/blog.png)

No link is appearing in the main menu
(http://www.taylordeanbooks.com/helpimages/titlebar.png)
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: ~DS~ on February 12, 2010, 02:54:34 PM
Quote from: Kentarre on February 12, 2010, 02:45:50 PM
Turning on the blog was already done. No blog button yet and my efforts to turn the help button into a blog link have not panned out so far. Still trying.

The box in modify board is checked and saved
(http://www.taylordeanbooks.com/helpimages/boardbottom.png)

The blog is enabled and saved
(http://www.taylordeanbooks.com/helpimages/settings.png)

The blog itself works
(http://www.taylordeanbooks.com/helpimages/blog.png)

No link is appearing in the main menu
(http://www.taylordeanbooks.com/helpimages/titlebar.png)

Ah I see. You are using a custom theme. It see the button was missing in your custom theme subs.php.
Attach your subs.php and maybe someone can help you with this.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 12, 2010, 03:11:23 PM
I finally figured it out.

The code for the mod actually modified the default theme instead of the custom one.

I modified the default  index.english.php inserting
$txt['blog'] = 'Blog';

I modified the index.template.php for the theme inserting this code in the theme button coding area.  This code is very different than the code the mod uses in the default index.template.php
// The Blogs!
echo '<li><a' , $current_action == 'blog' ? ' class="current"' : '' , ' href="', $scripturl, '?action=blog"><span>' , $txt['blog'] , '</span></a></li>';


To make a search easier for the theme button coding, search for // The [calendar]!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Neverhurry on February 17, 2010, 02:35:57 PM
Any news?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 17, 2010, 02:39:29 PM
It's going to be a couple months before I get to work on the next version
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: azhriel on February 17, 2010, 08:21:12 PM
please help me:

i am using smf 1.1.10
i got this error

Fatal error: Call to undefined function ssi_topic() in /home/pinoytay/public_html/Sources/Blog.php on line 250

What should I do...

Thanks..
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 17, 2010, 08:31:32 PM
Read the readme you need to install another mod first for SMF 1.1.x
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: azhriel on February 17, 2010, 09:14:08 PM
thanks for the reply.....

now i got this 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 'JOINsmf_messages AS m
INNER JOIN smf_boards AS b)
LEFT JOIN smf_members AS' at line 5
File: /home/pinoytay/public_html/SSI.php
Line: 1611

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


thanks a lot for your time
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: anakmacan on February 18, 2010, 12:06:20 AM
12.     Execute Modification     ./Sources/Subs.php     Test failed
      1.    Add Before    ./Sources/Subs.php    Test failed

I cant find this code if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd']))) in my subs.php


Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Bugo on February 21, 2010, 12:50:31 PM
Russian translation:

// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Блог';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Разделы блога';
$txt['blog_blogs'] = 'Доступные блоги:';
$txt['blog_comments'] = 'Комментарии';
$txt['blog_no_comments'] = 'Комментарии к этой записи пока отсутствуют.';
$txt['blog_write_comment'] = 'Прокомментировать';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Извините, но блоги отключены!';
$txt['blog_error_login'] = 'Извините, но Вы должны быть залогинены для отправки комментариев!';
$txt['blog_error_not_exist'] = 'Извините, но такой блог не существует!';
$txt['blog_error_not_blog'] = 'Извините, но этот раздел не является блогом!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Кол-во комментариев на странице';
$txt['blog_posts_perpage'] = 'Кол-во записей в блоге, отображаемых на странице'; // NEW!
$txt['blog_enable'] = 'Включить блог?';
$txt['blog_enable_rewrite'] = 'Включить красивые URL?';
$txt['blog_hide_boards'] = 'Скрывать разделы блога?';
$txt['blog_settings'] = 'Настройки блога';
// Board administration.
$txt['blog_board'] = 'Использовать этот раздел в качестве блога?';
$txt['blog_board_desc'] = 'Включение этой опции отобразит этот раздел на странице блога.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'Функция ssi_topic(): пожалуйста, укажите ID темы';
$txt['ssiTopic_notfound'] = 'Тема, которую Вы ищете, закрыта или отсутствует.';
$txt['ssiTopic_replies'] = 'Ответов';
$txt['ssiTopic_reply'] = 'Ответить ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'от';
$txt['smfblog_subject'] = 'Тема';
$txt['smfblog_re'] = '';
$txt['smfblog_shortcuts'] = 'подсказка: нажмите alt+s для отправки или alt+p для предварительного просмотра';
$txt['smfblog_save'] = 'Сохранить';
$txt['smfblog_preview'] = 'Предварительный просмотр';
// END SMF Blog
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 24, 2010, 11:54:26 AM
Everything is working great! or thought it was.  On the blog page itself when I click on the blog topic, I get this message:

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 'JOINsmf_messages AS m
INNER JOIN smf_boards AS b)
LEFT JOIN smf_members AS' at line 5
File: /home/taylord2/public_html/SSI.php
Line: 1607 


The address for the link it is trying to go to looks like:

   http://www.taylordeanbooks.com/index.php?action=blog;sa=view_post;id=5

instead of:

  http://www.taylordeanbooks.com/index.php?topic=5.0
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 24, 2010, 12:11:13 PM
Is that SMF 1.1.x?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 24, 2010, 12:46:24 PM
yes

specifically 1.1.11

I'll quit torturing your mod while you are looking at it since I really have not much of an idea of what I am doing
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: gbsothere on February 25, 2010, 03:37:34 PM
Probably not worth mentioning (and someone might have already done so) but I'm in the middle of manually parsing this for 1.1.11 and just notice that the same "find and add after" instructions for ManageBoards.php occur three times (but the "find" string only occurs once in that file).

Find:

'permission_mode' => 'normal',


Add After:


// --- Begin modification - SMFBlog ---
'is_blog' => 0,
// --- End modification ---



(This same "find" and "add after" set of strings is being asked for three times.)  Is that intentional and I'm simply not locating more than one "find" string?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 25, 2010, 05:01:40 PM
1.1.x version is not great.

I took over this mod and plan to redo it completely.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: gbsothere on February 25, 2010, 05:05:42 PM
Quote from: vbgamer45 on February 25, 2010, 05:01:40 PM
1.1.x version is not great.

I took over this mod and plan to redo it completely.



I waded through it.

I'm happy to hear you're redoing it.   :)



Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 25, 2010, 05:06:34 PM
Probably a couple months though till I get enough time to really work on it how it should be made.

Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Kentarre on February 25, 2010, 11:25:26 PM
I am thrilled to hear that you plan to redo it. Then, it should all work great!  The site using the blog system I am working on will probably not be officially live for a month or two. You are awesome!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: waruna on February 26, 2010, 12:10:07 PM
Hye guys. Using SMF2.0 RC2. Installing and got error as attached. What should I do?  :(

It says:

Find:
'karma' => array(
),


Add Before:

// --- Begin modification - SMFBlog ---
'blog' => array(
'title' => $txt['blog_settings'],

),
// --- End modification ---


ManageSettings.php attached. :D Thank you. ;)
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: waruna on February 28, 2010, 12:46:56 AM
Anyone? :(
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: .Crazy.Face. on February 28, 2010, 02:21:06 AM
I haven't installed this mod on my newest forum, but have used it in the past. I recommend this mod to anyone that enjoys blogs but likes the forum aspect a little more! ;] Great mod!
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: waruna on February 28, 2010, 02:32:58 PM
I tried to install anyways, and the installation success. I create new board, and check 'Use this board as a blog'. Then I create New Topic. Looks like nothing's happened. I click at the 'Blog' link at the top menu, no result, just a plain page of Blog.

What should I do?
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: vbgamer45 on February 28, 2010, 02:48:48 PM
Quote from: waruna on February 28, 2010, 12:46:56 AM
Anyone? :(
Proceed with the install. You might have to do that one step manually.
Title: Re: SMFBlog now for SMF 2.0 RC2!
Post by: Nibogo on March 01, 2010, 06:40:50 PM
This mod is incompatible with SimpleSEF:

http://custom.simplemachines.org/mods/index.php?mod=2288 (http://custom.simplemachines.org/mods/index.php?mod=2288)

I think you should remove the Pretty Urls support and make it only ID based not blog name if someone want a pretty url for blogs he should install any of both mods


Edit: Some strings can be omited because they already exists on SMF, for example:
$txt['smfblog_by'] = 'by';
$txt['smfblog_subject'] = 'Subject';
$txt['smfblog_re'] = 'Re: ';
$txt['smfblog_shortcuts'] = 'shortcuts: hit alt+s to submit/post or alt+p to preview';
$txt['smfblog_save'] = 'Save';
$txt['smfblog_preview'] = 'Preview';


Just loading the Post language you should be able to use the SMF Strings and not create new ones (This is pretty useful in case that someone translate your mod)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 08, 2010, 07:43:41 PM
I plan to redo this mod completely at some point

For now updated to SMF 2.0 RC3!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: .Crazy.Face. on March 08, 2010, 07:49:36 PM
Quote from: vbgamer45 on March 08, 2010, 07:43:41 PM
I plan to redo this mod completely at some point

For now updated to SMF 2.0 RC3!

do you know when SMF 2.0 RC3 is going public?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 08, 2010, 07:50:39 PM
RC3 is public right now that's why I am updating my mods :)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: .Crazy.Face. on March 08, 2010, 08:07:05 PM
Quote from: vbgamer45 on March 08, 2010, 07:50:39 PM
RC3 is public right now that's why I am updating my mods :)

omg you're right! lol. haha sorry, Ms. Unobservant at your service!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: ~DS~ on March 08, 2010, 08:10:12 PM
Quote from: vbgamer45 on March 08, 2010, 07:43:41 PM
I plan to redo this mod completely at some point

For now updated to SMF 2.0 RC3!
I will be waiting for that redo. You know me!  ;D
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Мel on March 10, 2010, 02:26:15 AM
Quote from: Bugo on February 21, 2010, 12:50:31 PM
Russian translation:

// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Блог';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Разделы блога';
$txt['blog_blogs'] = 'Доступные блоги:';
$txt['blog_comments'] = 'Комментарии';
$txt['blog_no_comments'] = 'Комментарии к этой записи пока отсутствуют.';
$txt['blog_write_comment'] = 'Прокомментировать';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Извините, но блоги отключены!';
$txt['blog_error_login'] = 'Извините, но Вы должны быть залогинены для отправки комментариев!';
$txt['blog_error_not_exist'] = 'Извините, но такой блог не существует!';
$txt['blog_error_not_blog'] = 'Извините, но этот раздел не является блогом!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Кол-во комментариев на странице';
$txt['blog_posts_perpage'] = 'Кол-во записей в блоге, отображаемых на странице'; // NEW!
$txt['blog_enable'] = 'Включить блог?';
$txt['blog_enable_rewrite'] = 'Включить красивые URL?';
$txt['blog_hide_boards'] = 'Скрывать разделы блога?';
$txt['blog_settings'] = 'Настройки блога';
// Board administration.
$txt['blog_board'] = 'Использовать этот раздел в качестве блога?';
$txt['blog_board_desc'] = 'Включение этой опции отобразит этот раздел на странице блога.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'Функция ssi_topic(): пожалуйста, укажите ID темы';
$txt['ssiTopic_notfound'] = 'Тема, которую Вы ищете, закрыта или отсутствует.';
$txt['ssiTopic_replies'] = 'Ответов';
$txt['ssiTopic_reply'] = 'Ответить ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'от';
$txt['smfblog_subject'] = 'Тема';
$txt['smfblog_re'] = '';
$txt['smfblog_shortcuts'] = 'подсказка: нажмите alt+s для отправки или alt+p для предварительного просмотра';
$txt['smfblog_save'] = 'Сохранить';
$txt['smfblog_preview'] = 'Предварительный просмотр';
// END SMF Blog

Thank you for that.
But where shall I put it? Anyway, how do I localize this mod?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 10, 2010, 10:44:59 AM
You would create a file in themes/default/modifications.yourlanguage.php file
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: dry3210 on March 15, 2010, 12:37:34 PM
Anyone have it installed on 2.0RC3?  I'm curious to see it in action and also see how it handles replies in the threads (ie: comments then?)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on March 16, 2010, 06:22:00 AM
So.. this mod doesnt work with prettyurl does it ?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 16, 2010, 10:15:49 AM
It does not. This mod is in the process of being redone.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: MultiformeIngegno on March 16, 2010, 10:49:45 AM
Quote from: vbgamer45 on March 16, 2010, 10:15:49 AM
This mod is in the process of being redone.
Oh.. why? :)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Nibogo on March 16, 2010, 11:38:22 AM
Quote from: anakmacan on March 16, 2010, 06:22:00 AM
So.. this mod doesnt work with prettyurl does it ?

I have it working with Pretty Urls Mod, you only need to disable the option "Enable pretty URLs?" in the Blog Settings
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on March 16, 2010, 12:23:36 PM
Ive downloaded it, but subs.php test failed cos this section doesnt exist:

subs.php
if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on March 16, 2010, 12:29:53 PM
Aha, i knew it..
the codes're replaced by prettyurl codes.. so i just have to place smfblog codes .. i guess above this one then (so far it's perfect).
//   Redirections should be pretty too
   if (!empty($modSettings['pretty_enable_filters']))
   {
      require_once($sourcedir . '/PrettyUrls-Filters.php');
      $url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
      $filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
      foreach ($filter_callbacks as $callback)
      {
         $pretty_url = call_user_func($callback, $url);
         if (isset($pretty_url[0]['replacement']))
            break;
      }
      if (isset($pretty_url[0]['replacement']))
         $setLocation = $pretty_url[0]['replacement'];
      $setLocation = str_replace("\x12", '\'', $setLocation);
      $setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
   }

Useful mod, thx  :D
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: searchgr on March 18, 2010, 01:20:45 AM
Is there any demo forum? I want to see how it works... (or at least a live forum)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 18, 2010, 09:20:44 AM
No live demo but I think you can check some of the sites that people have in this topic
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: searchgr on March 18, 2010, 11:40:09 AM
I checked some websites but i couldn't find a smf 2.0 forum.

I can't understand how a 'blog style' board works. Every new topic is a new message in the blog? Is the blog a new separate link from the board? what about the replies in a topic?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 18, 2010, 01:09:20 PM
It creates a new board for each member that they use as a blog
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on March 18, 2010, 10:26:55 PM
Quote from: searchgr on March 18, 2010, 01:20:45 AM
Is there any demo forum? I want to see how it works... (or at least a live forum)

www.loners-club.com is using 2.0RC2 version and smfblog if youd like to know how the mod looks.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: searchgr on March 19, 2010, 12:21:50 AM
Thank you very much.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on March 19, 2010, 07:27:03 AM
Your welcome.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: » мιsтєя мιsғιт « on March 28, 2010, 07:15:28 PM
Hi. Great mod, finally glad to see a version which matches my SMF version \o/

Question: Your mod requires an extra SSI mod -

Quote
In order to use this mod, you must first install the SSI Topic and Replies mod (http://custom.simplemachines.org/mods/index.php?mod=751), otherwise it won't work properly. Also, if upgrading from SMFBlog 0.1 Beta, you'll need to uninstall it before installing 1.0.

- but when redirected to that page where the SSI mod is, it says it's not compatible with RC3, yet this Blog mod is? I don't understand? The SSI Mod is essential for this mod to work, and your mod runs on RC3 .. yet the SSI mod isn't compatible with RC3. o_O?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 28, 2010, 08:02:33 PM
SSI is not required for RC3 or SMF 1.1.x
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: » мιsтєя мιsғιт « on March 28, 2010, 10:25:58 PM
Thanks for the quick reply! That's great news :D

I'll install now. :)

EDIT: Posts aren't showing up in the 'Blog' tab ...
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: falguni1 on March 31, 2010, 07:45:48 AM
Quote from: anakmacan on March 18, 2010, 10:26:55 PM
Quote from: searchgr on March 18, 2010, 01:20:45 AM
Is there any demo forum? I want to see how it works... (or at least a live forum)

www.loners-club.com is using 2.0RC2 version and smfblog if youd like to know how the mod looks.

It would be nice to see a profile box to see who blogged what.

example http://forums.digitalpoint.com/blog.php
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on April 04, 2010, 09:57:27 AM
falguni : yeah, that's a great idea.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: ŦώεαЖзяŁ on April 17, 2010, 10:13:15 AM
Is there a way to add an option for the person who started the topic to be able to edit their first post within the blog itself? that way it can be editable while at the same time the board can be hidden.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on April 17, 2010, 10:45:08 AM
Not currently.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: GoldieFR on April 18, 2010, 08:46:23 AM
Quote from: anakmacan on March 16, 2010, 12:29:53 PM
Aha, i knew it..
the codes're replaced by prettyurl codes.. so i just have to place smfblog codes .. i guess above this one then (so far it's perfect).
//   Redirections should be pretty too
   if (!empty($modSettings['pretty_enable_filters']))
   {
      require_once($sourcedir . '/PrettyUrls-Filters.php');
      $url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
      $filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
      foreach ($filter_callbacks as $callback)
      {
         $pretty_url = call_user_func($callback, $url);
         if (isset($pretty_url[0]['replacement']))
            break;
      }
      if (isset($pretty_url[0]['replacement']))
         $setLocation = $pretty_url[0]['replacement'];
      $setLocation = str_replace("\x12", '\'', $setLocation);
      $setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
   }

Useful mod, thx  :D

Hello,

I have the same problem.
I have pretty url too.
It looks like you've found a solution to integrate smfblog with pretty url.
but I'm not sure to understand.

Are you saying that I have to place the smfblog code before the pretty url code or within ?
could someone please give me the code I have to place and where, so I can see what it should look like ?
thanks a lot.







Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: anakmacan on April 18, 2010, 10:29:25 AM
I dont remember where, but im sure you place the code above it.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: ŦώεαЖзяŁ on April 20, 2010, 01:59:56 AM
For those who want to use the SMFblog Pretty Urls running on  SMF 2.0 RC3 on APACHE with MOD_REWRITE:
As always, when manually editing your files, please remember to backup all modified files beforehand should you mess something up.

I managed to get the whole thing working with very few steps:

#1 Open your .htaccess file, it should be in the root of your forum (if you don't have a .htaccess file, then create one), and add the following at the TOP*
*it is important that this goes at the top specially if you have the Pretty Urls mod, when I add it to the bottom it fails.

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?action=blog;sa=view_blog;name=$1
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?action=blog;?sa=view_post&id=$2;blog_name=$1
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*).html/?$ ./index.php?action=blog;?sa=view_blog;name=$1;start=$2


#2 Go to your Themes/default/ folder and open Blog.template.php and find the following line:
<a class="blog_post_heading" href="', $scripturl, '?action=blog;sa=view_post&id=', $post['id'], (!empty($modSettings['blog_enable_rewrite']) ? ';blog_name=' . $context['blog']['alias'] : ''), '">', $post['icon'], ' ', $post['subject'], '</a>

Comment it out by adding <!-- at the beginning and --> at the end of the line and add the following line under it:
<a class="blog_post_heading" href="', (!empty($modSettings['blog_enable_rewrite']) ? 'blog/' . $context['blog']['alias'] . '/' . $post['id'] : $scripturl . '?action=blog;sa=view_post&id=' . $post['id'] . ';blog_name=' . $context['blog']['alias']), '">', $post['icon'], ' ', $post['subject'], '</a>

You're done.





However, on a side note for those using the Pretty URLs mod, SMFblog MUST be installed BEFORE Pretty URLs due to the issue anakmacan pointed out, that is, that when you install Pretty URLs it comments out a section of querystrings.php which will cause the url rewrite on smf blog to fail.

If you can't change your install order, go to Querystrings.php under the Sources folder and find:

// --- Begin modification - SMFBlog ---
global $boardurl;
// Is URL rewriting enabled?
if (!empty($modSettings['blog_enable_rewrite']))
{
// The main blog page
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=blog"/', '"' . $boardurl . '/blog/"', $buffer);
// The blog itself
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_blog;name=([A-Za-z0-9\-_]+)"/', '"' . $boardurl . '/blog/$1/"', $buffer);
// A specific page in the blog
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_blog;name=([A-Za-z0-9\-_]+);start=([0-9]+)"/', '"' . $boardurl . '/blog/$1/$2.html"', $buffer);
// A post in the blog (with its alias)
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_post;id=([0-9]+);blog_name=([A-Za-z0-9\-_]+)"/', '"' . $boardurl . '/blog/$2/post-$1.html"', $buffer);
}
// --- End modification ---


It will most likely be below:
/*** Pretty URLs says no!

And therefore got commented out, simply moving it above the commented out section should fix this file.

Also, open your Subs.php in the /Sources folder and make sure that you find:
// --- Begin modification - SMFBlog ---
global $boardurl;
// Is URL rewriting enabled?
if (!empty($modSettings['blog_enable_rewrite']))
{
// The blog itself (using a name)
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_blog;name=([A-Za-z0-9\-_]+)/', $boardurl . '/blog/$1/', $setLocation);
// A post in the blog (with its alias)
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=blog;sa=view_post;id=([0-9]+);blog_name=([A-Za-z0-9\-_]+)/', $boardurl . '/blog/$2/post-$1.html', $setLocation);
// The main blog page
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?action=blog$/', $boardurl . '/blog/', $setLocation);
}
// --- End modification ---


BEFORE

// Redirections should be pretty too
if (!empty($modSettings['pretty_enable_filters']))
{


If it's not there, then add it.

The issue should be resolved. However, doing it like this might make it confusing later on should you try to uninstall the mods since the uninstall script won't find exactly what it was looking for. You're much better off making sure that SMFBlog gets installed before PrettyURLs as doing it that way will make sure that everything ends up where it belongs.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: DawnsWebDesigns on April 27, 2010, 12:32:13 AM
Greetings.

I just installed this & first of all I see the same steps repeated a couple of times.  I left those out & finished manually installing.  When I try to create a board to put blogs in I'm getting this:

Unknown column 'b.is_blog' in 'field list'
File: /var/www/domains/dawnswebdesigns.com/docs/family/forum/Sources/Subs-Boards.php
Line: 1506


It won't let me create another board.

Any help would be much appreciated. :)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: wizzie on May 06, 2010, 07:30:36 AM
I've tried to install, but it shows error in the ./Sources/ManageSettings.php

I'm running smf 2.0 RC3

Any ideas?

Thanks
Graham
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on May 06, 2010, 09:49:54 AM
I would install that part manually.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: SmackDaddy on May 08, 2010, 08:53:46 PM
Quote from: waruna on February 28, 2010, 02:32:58 PM
I tried to install anyways, and the installation success. I create new board, and check 'Use this board as a blog'. Then I create New Topic. Looks like nothing's happened. I click at the 'Blog' link at the top menu, no result, just a plain page of Blog.

What should I do?

I am having the same problem as this person, but didn't see a "fix".....I do apologize if I've missed it, but.....everything looks successful, I have a forum set-up marked to be a "blog" (in the options for that forum) but when I click the menu "Blog" no blog entries show.  The theme is there, but it shows what I have in the attachment.

Forum: SMF 2.0 RC3, latest version of SMFBlog.

UPDATE: since posting this msg, I have tried with and without the SSI plugin which the download page says is "required" but it's been stated that in this thread, it's no longer required....and I get the exact same results each time -- see attachment below.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: 2times on May 11, 2010, 12:39:33 AM
I just installed this mod and it appears everthing is working......

One question, after I start blog boards and post on them what is that actual path to the "blog" page???

Thanks!

Tim

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TomW on May 11, 2010, 10:06:43 AM
Quote from: vbgamer45 on March 28, 2010, 08:02:33 PM
SSI is not required for RC3 or SMF 1.1.x

Please indicate this in the Mod description - if I did not read this support thread, I would have missed this note completely, and installed the SSI Topics & Replies mod.  Thank you for updating this mod !
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: !RFAN on May 17, 2010, 01:15:21 AM
i cant see any blog post in my blog after installing this mod...same as "smackdaddy"
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: nay27uk on May 20, 2010, 07:31:08 AM
I installed this but see nowwher or no way of actualy posting a blog PLEASE how do I post blogs?
I recal reading above that someone made a board to put blogs in does this not defeat the object of a blog a blog is not suposed to be a board its a seperat thing, If I wanted to have a board for bloging I would have just setup a baord and named it blogs.
I downloaded SMFBlogs because I was under the understanding blogs are compleatly seperat things from the forum just like the bloging stystm on this forum I frequent http://webidsupport.com (http://webidsupport.com)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on May 20, 2010, 12:00:16 PM
Currently this mod uses forum boards as blogs. You have to modify the board to turn into a blog
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Shadhavar on May 20, 2010, 05:50:29 PM
Quote from: amigozone on May 17, 2010, 01:15:21 AM
i cant see any blog post in my blog after installing this mod...same as "smackdaddy"

Was having the same problems.  So much so that i uninstalled everything then reinstalled it and then I had two menu items saying 'turn this board into a blog' with check boxes.. i had to manually remove scripts for SMF Blog in about 15 different files. 

There were 2 files that did not install correctly (got errors).  I installed anyway and manually installed those portions that had errors and still no go on seeing the blogs. 

using 1.1.11
installed SSI Topics and Replies 1st
installed SMF Blog and recieved errors on installation files -
6.   Execute Modification   ./Sources/ManageBoards.php   Test failed
7.   Execute Modification   ./Sources/ModSettings.php   Test failed

Manually edited said files fro the PARSE manual installation codes and still no go.  Even when I uninstall the files there's still the check box option to turn this post into a blog. 

Any ideas?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: new200 on May 21, 2010, 09:59:31 PM
Ini'm using 1.1.11
install SSI Topics/reply OK!
Install SMF Blog = error: Execute Modification   ./Sources/ModSettings.php   Test failed


Please help!!!!!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on May 21, 2010, 10:03:47 PM
Need to do manuall install for that step
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: new200 on May 21, 2010, 11:50:07 PM
Quote from: vbgamer45 on May 21, 2010, 10:03:47 PM
Need to do manuall install for that step

What exactly do I need to do? Edit ModSettings.php? Again, i'm running SMF 1.1.11.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on May 21, 2010, 11:52:43 PM
Yup edit that file check mod site for manual install info
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: new200 on May 22, 2010, 12:00:24 AM
Quote from: vbgamer45 on May 21, 2010, 11:52:43 PM
Yup edit that file check mod site for manual install info

Mod site manual installation link?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on May 22, 2010, 12:02:41 AM
On the mod page for the mod
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: new200 on May 22, 2010, 12:09:20 AM
Quote from: vbgamer45 on May 22, 2010, 12:02:41 AM
On the mod page for the mod

What, I tried daniel15.com and there nothing for support there...
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on May 22, 2010, 12:09:47 AM
No on the SMF site
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: new200 on May 22, 2010, 12:14:51 AM
Quote from: vbgamer45 on May 22, 2010, 12:09:47 AM
No on the SMF site

Then isn't this the support board for this mod??? Please provide me the link..please... I search and there's nothing found but this board, which I am on now..
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Sabre™ on May 22, 2010, 12:26:16 AM
Here you go [CLICK] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=793;attach=49483;smf_version=1.1.11)
Scroll down to the edits for the ModSettings.php template, and follow the instructions
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: parvaz on May 26, 2010, 03:20:35 PM
Great mod! I installed this mod and it works good.
There is an option to hide the board, well... i use that option and the blog board is hidden, but if you use the "jump to" option the hidden board is listed together with all the other boards. So it is not hidden compeletly.
Is there a way to hide the blog board from the "jump to" list?

Thank you in advanced
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: ukhalik2 on June 03, 2010, 08:03:47 AM
I used a forum as the blog,
now how to add new topic to that blog because the forum that is being used a blog is not appearing in forums, only its old topics are appearing in blog.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Liam. on June 03, 2010, 08:07:23 AM
Are there any portal blocks for this so it can be displayed as a proper blog on the homepage, or any easy way to go about making one?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on June 03, 2010, 09:40:06 AM
Not at this time. I plan to redo this mod completely at some point
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Liam. on June 03, 2010, 10:17:33 AM
Okay cool, thanks ;)
I have another way around it, but it's a bit complicated :/
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: ukhalik2 on June 03, 2010, 11:06:20 PM
test unsuccessful in subs.php a function is not added,
and I also cant add it manually because find text is not any where.
and still the same problem as i mentioned here (http://www.simplemachines.org/community/index.php?topic=170526.msg2652967#msg2652967).
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: PurpleCrow on June 15, 2010, 02:14:28 PM
I have a bit of a problem... Posts placed in the assigned blog forum arent appearing in the actual blog... I didnt get any errors when I installed it.

I'm using SMF 2.0 RC3 with a custom theme. Here's a link to the blog: http://thewitchespath.com/index.php?action=blog;sa=view_blog;name=blogs
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Deaks on June 15, 2010, 06:25:23 PM
i dont see any blogs :/
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sharks on June 16, 2010, 12:56:00 AM
i also had this problem when installing on smf 1.1.11. even after i checked the board option to enable as blog. i think you need to post a new topic for it to be seen in blog form? i did that also, but still the page looked the same to me. i uninstalled this useless mod.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: PurpleCrow on June 16, 2010, 04:22:58 AM
Quote from: sharks on June 16, 2010, 12:56:00 AM
i also had this problem when installing on smf 1.1.11. even after i checked the board option to enable as blog. i think you need to post a new topic for it to be seen in blog form? i did that also, but still the page looked the same to me. i uninstalled this useless mod.

Yup. I've set a forum as a "blog" forum, posted new topics in it but nothing is appearing in the actual blog.

EDIT: I found the bug - you have to have it so everyone, including guests, can see the blog forum. If you dont, no one can see it.

This mod isnt for me then - only wanted staff and another usergroup to see the blog forum, mainly to keep the index tidy but it doesnt work so fingers crossed I can find another blog Mod  ::)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sharks on June 20, 2010, 08:26:29 AM
Instead of looking for a specific blog mod, why not use the simpleportal mod? it displays all your posts as a blog, and it is so much more advanced and sophisticated and bug free! :)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sideshowmatt on July 30, 2010, 12:44:07 AM
I am looking for the code to redirect blogs to the blog page after posting rather than the blog board. I had the code on my old site, but I had to delete and re-install SMF, so I no longer have it. I think I got it off Daniel's site, but of course his site is no longer up. Does anyone happen to have the code to accomplish this? I recall the edit being in the file Post.php.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sideshowmatt on August 03, 2010, 06:21:25 AM
Bump.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Maggie302 on August 23, 2010, 12:39:19 PM
Great looking mod!  I am running into an issue on installation.  I can install but can not access the settings (obviously)  sorta tells me that :)  I installed the required program.  Easy fix, I am over looking?

Running 1.1.11

7.     Execute Modification     ./Sources/ModSettings.php     Test failed


Thanks for any help in advance!


Here is a list of mods I have installed.

9.     Remove SMF Logo      1.301       [ Uninstall ]  [ List Files ]  [ Delete ]
10.    SMFPacks Shoutbox    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF Gallery Lite    3.0.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    Enhanced PM Warning Message    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    AJAX Instant Quick Reply    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
14.    Simple Image Upload    1.1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    Enhanced Profile    1.1.5    [ Uninstall ] [ List Files ] [ Delete ]
17.    Enhanced Profile Header    1.2.3    [ Uninstall ] [ List Files ] [ Delete ]
18.    PM On Registration    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
19.    Anti Bot: Are You Human/Bot?    2.3    [ Uninstall ] [ List Files ] [ Delete ]
20.    Remove Post Modified Time    1.2    [ Uninstall ] [ List Files ] [ Delete ]
21.    Custom Profile Field Mod    3.20    [ Uninstall ] [ List Files ] [ Delete ]
22.    Karma Buttons    1.1    [ Uninstall ] [ List Files ] [ Delete ]
23.    Avatar on Member List    1.0    [ Uninstall ] [ List Files ] [ Delete ]
24.    Tapatalk SMF Plugin    0.9.13    [ Uninstall ] [ List Files ] [ Delete ]
25.    Prettier_Quotes    1.12    [ Uninstall ] [ List Files ] [ Delete ]
26.    Display Location on posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
27.    Display Signatures Only Once Per Page    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
28.    Today's Posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
29.    Top 10 Posters and Topic Starters Stats (Today, Week, Month, and Year)    2.5.1    [ Uninstall ] [ List Files ] [ Delete ]
30.    Custom Tab    1.2    [ Uninstall ] [ List Files ] [ Delete ]
31.    SMFBlog    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
32.    SSI Topics and Replies    1.4    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: KensonPlays on December 14, 2010, 11:25:07 AM
I cannot find htaccess.txt anywhere, even used a search string in SSH.

find html -name "*.txt"


it couldn't find it. I have installed pretty URLs and the rest of the Pretty URLs works, but not the blog, ill set pretty URLs to skip for now until this is  fixed.

EDIT:
It installed on a slightly modified SMF rc4 with NO manual edits.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Jue on December 21, 2010, 03:10:04 PM
I get the following error whilst trying to install this mod...

Quote
Fatal error: require() [function.require]: Failed opening required '/*/*/domains/totaltechtalk.co.uk/public_html/Packages/temp/./installScript.php' (include_path='.:/usr/local/lib/php') in /*/*/domains/totaltechtalk.co.uk/public_html/Sources/Packages.php on line 945
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 03, 2011, 02:11:34 PM
Does anyone has a working demo?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 04, 2011, 11:02:02 AM
Hey! Nothing wrong with this mod. Just needs some TLC!

To suit my needs, I'm using this mod in conjunction with:
Arantor's SSI multiboard mod
Norv's custom action mod.


Not bad.

http://www.chevyavalancheclub.com/index.php?action=blog

Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on January 04, 2011, 11:19:15 AM
Looks good! Nice idea have to redo SMF Blog one day maybe after SMF 2.0
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 04, 2011, 12:04:16 PM
Thanx vb, the 2 mods helped me create a visual entrance to make it look like an actual blog.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: impreza on January 04, 2011, 02:36:58 PM
An interesting addition, test it out of curiosity, how does it work
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: grynmoors on January 06, 2011, 01:20:45 PM
Seems I can't use this with Simple Portal installed.  If I install the Simple Portal first, when I click the "Blog" button, I get a blank page.  If I install the SMFBlog first, then the Simple Portal refuses to install (nothing happens).

SMF 1.1.12 with Simple Portal 2.3.3

Any ideas how to run this blogging mod with Simple Portal?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheDel on January 06, 2011, 03:00:56 PM
Quote from: bluedevil on January 04, 2011, 11:02:02 AM
Hey! Nothing wrong with this mod. Just needs some TLC!

To suit my needs, I'm using this mod in conjunction with:
Arantor's SSI multiboard mod
Norv's custom action mod.


Not bad.

http://www.chevyavalancheclub.com/index.php?action=blog


Ok how in the heck did ya pull that off?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 06, 2011, 03:49:15 PM
Quote from: TheDel on January 06, 2011, 03:00:56 PM
Quote from: bluedevil on January 04, 2011, 11:02:02 AM
Hey! Nothing wrong with this mod. Just needs some TLC!

To suit my needs, I'm using this mod in conjunction with:
Arantor's SSI multiboard mod
Norv's custom action mod.


Not bad.

http://www.chevyavalancheclub.com/index.php?action=blog


Ok how in the heck did ya pull that off?

Ill show you all how to do this. Easy as pie without editing any mod. Its all cosmetic.

Im sick at the moment and cant think straight. hehehe
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Matthew K. on January 06, 2011, 04:15:39 PM
vbgamer - I actually have some huge plans for an SMF Blog...and have developed about a quarter of it. Although when I get a team together who wants to develop it with me, we'll start over. Would you be interested? Huge feature-set. I would want it to be competition for WordPress.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheDel on January 06, 2011, 04:40:55 PM
Quote from: bluedevil on January 06, 2011, 03:49:15 PM
Quote from: TheDel on January 06, 2011, 03:00:56 PM
Quote from: bluedevil on January 04, 2011, 11:02:02 AM
Hey! Nothing wrong with this mod. Just needs some TLC!

To suit my needs, I'm using this mod in conjunction with:
Arantor's SSI multiboard mod
Norv's custom action mod.


Not bad.

http://www.chevyavalancheclub.com/index.php?action=blog


Ok how in the heck did ya pull that off?

Ill show you all how to do this. Easy as pie without editing any mod. Its all cosmetic.

Im sick at the moment and cant think straight. hehehe
That would be so cool, thanks

now get better O:)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheDel on January 13, 2011, 12:19:54 PM
hate to bump my own post but any update for this, Mick?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 13, 2011, 12:41:30 PM
Quote from: TheDel on January 13, 2011, 12:19:54 PM
hate to bump my own post but any update for this, Mick?
Ooops, sorry I forgot. I've been redesigning my forum. I will write this soon for y'all.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheDel on January 13, 2011, 12:42:14 PM
Cool
Thnx- didnt wanna sound like a PITA
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 13, 2011, 12:44:40 PM
Quote from: TheDel on January 13, 2011, 12:42:14 PM
Cool
Thnx- didnt wanna sound like a PITA
it didn't bother me at all bud ;). I'm at work now, tonight I'll make a write up on a new thread. Ill link you to it ;)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheDel on January 13, 2011, 02:08:20 PM
awesome
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Mick. on January 16, 2011, 08:33:08 PM
Quote from: TheDel on January 13, 2011, 02:08:20 PM
awesome

Here you go...
http://www.simplemachines.org/community/index.php?topic=417714.msg2917182#msg2917182
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheDel on January 17, 2011, 12:04:19 AM
Holy Crap!

Thnx-
But I think I did everything right but I got this error when I tried displaying the custom Blog page-
Parse error: syntax error, unexpected '<' in /home/type1par/public_html/Sources/Load.php(2188) : eval()'d code(20) : eval()'d code on line 1
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: PLAYBOY on January 26, 2011, 05:45:59 AM
Is there a working demo on 1.1.X ?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on January 26, 2011, 03:26:45 PM
No
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bharatforum on January 30, 2011, 02:37:47 PM
I have a problem with this blog, I installed it and marked some boards as blogs and wrote inside them a few messages. When I click on Blog it doesn't show me any messages. What can be done to fix this problem? Thanks in advance!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: pitbull01 on February 18, 2011, 09:59:10 AM
I'm trying to install this on SMF 1.1.13  and I get an error here : ./Sources/QueryString.php

What can I do ?
Here  (http://custom.simplemachines.org/mods/index.php?mod=793)all seems to be ok with that version :'(
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Brutto on February 21, 2011, 02:41:57 PM
SQLite database error:

SQL logic error or missing database
near "SHOW": syntax error
File: /home/saldusfo/public_html/smf/Packages/temp/installScript.php
Line: 41
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on February 21, 2011, 02:43:52 PM
This mod will not work with SQL Lite only MySQL.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Brutto on February 21, 2011, 02:55:23 PM
Thanks.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sharks on February 21, 2011, 07:33:24 PM
I never got this mod to work, which is very odd. A demo or a couple of screenshots to enable the blog, etc, would be very helpful.

Anyway, i'm using RC5 now, so i guess this mod is outdated now as it will most probably not install properly.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Arantor on February 21, 2011, 07:52:27 PM
Quoteso i guess this mod is outdated now as it will most probably not install properly.

Actually most RC3+ mods will install with little fuss on RC5 from what I've seen.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sharks on February 22, 2011, 04:37:54 AM
The mod site page has been updated to support RC5 (someone should edit the title of this topic so others will know that it has been updated), so this mods installs without an errors. I just tested it.

However... It still does NOT WORK!!

I edited the board setting already containing topics and enabled the blog feature for my board called "Archives".:

I also noticed the new "Blog" link added to the top forum menu. When i click on it, here is what i see:

Archives
[1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... 408 [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... 408
Powered by SMFBlog by CreateAForum.com

Other than that, there is just blank space. Nothing else! No posts are shown!
I am using SMF 2.0 RC5 with default Curve theme.

This mod is seriously very buggy.
I disabled the "enable as blog" feature for all boards on my forum, and the "Blog" link still shows in the top forum menu, which is annoying as it serves no purpose if there are no boards enabled to use that feature.
Also when i click on the Blog link, here is what shows up:
"Blog - Available blogs:" displayed in a title bar. Now that part didn't show up when i enabled blog posts for a board earlier.

I have uninstalled this mod. It's a hopeless case.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on February 22, 2011, 10:06:23 AM
Plan is to redo this mod at one point completely. I f you want to help develop it you can but right now I am extremely busy with projects
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: sharks on February 22, 2011, 04:04:38 PM
Quote from: vbgamer45 on February 22, 2011, 10:06:23 AM
Plan is to redo this mod at one point completely. I f you want to help develop it you can but right now I am extremely busy with projects
I'm glad to know that you recognize the huge problems with this mod, but i don't have enough skills yet to take over this mod, as much as i want to fix it for the entire SMF community. However, if others can pick up the development, i would be more than happy to beta test it and provide test forums on my server, if required.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bharatforum on March 20, 2011, 12:53:26 PM
I installed this blog on my forum but when I click on the blog which is inside it shows me this message: Fatal error: Call to undefined function ssi_topic() in /home/bharatco/public_html/testforum/Sources/Blog.php on line 250
How can I fix this problem?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Xarcell on March 20, 2011, 04:07:52 PM
Any demo of this?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bharatforum on March 20, 2011, 04:27:37 PM
Here it is:
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Xarcell on March 20, 2011, 06:09:57 PM
I installed it on a test site and I like it.

Except for 1 thing...

When viewing "mysite > blog", I think that should be a summary [limited characters(read more...)], with the link to the actually topic in the board.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Xarcell on March 20, 2011, 06:10:26 PM
Quote from: bharatforum on March 20, 2011, 04:27:37 PM
Here it is:

WTF is that?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bharatforum on March 21, 2011, 06:47:33 AM
Didn't understand your question...
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bfallgren on March 30, 2011, 03:01:32 AM
SMF v. 1.1.13

4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./Sources/BoardIndex.php    Test successful
6.    Execute Modification    ./Sources/ManageBoards.php    Test successful
7.    Execute Modification    ./Sources/ModSettings.php    Test failed
8.    Execute Modification    ./Sources/Post.php    Test successful
9.    Execute Modification    ./Sources/QueryString.php    Test successful
10.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
11.    Execute Modification    ./Sources/Subs.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/default/Post.template.php    Test successful
14.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Execute Code    installScript.php    
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 30, 2011, 09:17:00 AM
Install then make the change to modSettings manually.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bfallgren on March 31, 2011, 12:58:11 AM
Need instructions for manual install
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 31, 2011, 01:04:31 AM
Instructions can be found on the mod site page for this mod there is drop down selection to print instructions.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bfallgren on March 31, 2011, 11:31:48 PM
Could it potentially break my other mods?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: MiY4Gi on April 29, 2011, 09:22:09 PM
Would it be possible to have the title and URL of the "Comments" link on each blog post change to match a specified forum thread?

Alternately, is it possible to designate specific threads in various forum boards as blog articles, without having to designate the entire forum board as a "blog articles board"?

I want to post threads in various boards, then only afterwards have it posted to the homepage as a blog post. What I do at the moment is I have threads posted in their individual forum boards, then once I want those particular threads posted as a blog posts, I post those threads in a board dedicated to blog posts then lock the thread and include a link to the main thread in it's forum board. So I'm basically copying the a thread from it's original board and posting it in the dedicated blog board. The main problem is that I have copies of the same thread in 2 boards which harms my SEO since both threads get indexed by Google (which I've confirmed). The reason I suspect this happens is that the "Comments link" in the articles point to the threads in the blog board, while the article itself has links to the original thread.

Removing the comments link would probably solve the problem, but I actually like the link since it displays the number of comments as well, so people who read the article may be interested in what others have to say, especially if they see that there are plenty of comments already.

A major setback is that we don't have server level access at the moment so if possible, we'd like any changes to be made from within the forum's admin interface. If the mod could be updated then we could just reinstall it without manually editing the code. After a few weeks we should have server level access so we can manually do the mod even if we can't do it via the forum admin interface.

Any suggestions.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Umbro on May 29, 2011, 12:38:08 PM
I installed the SSI Topic & Replies Mod v1.4 and SMFBlog v1.0 onto SMF 1.1.13 and I don't see any "blog" option to checkmark when I set up a new board or category. What did I do wrong?

ETA: I set up SMF using Fantastico. Do you think that made a negative difference? Should I re-install the entire forum?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: harnser on June 07, 2011, 06:00:26 AM
Hi.  I'm using SMFBlog with 1.1.13 and liking it so far!  However, I have one problem, which is a bit of a show-stopper for me.  My images/attachments aren't showing in the blog  :o - does SMFBlog support images/attachments?  The images are showing in the boards, so they have uploaded correctly.  Thanks very much!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on June 07, 2011, 06:35:38 AM
I am planning to redo SMF Blog competely at some point I don't like how it works currently.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: go- on June 07, 2011, 06:45:25 AM
Hello.
I am using SMF 1.1.13, and I installed SMFBlog (which works perfectly fine). Further, I wanted to use the "Share This Topic (http://custom.simplemachines.org/mods/index.php?mod=2111)"-Mod, which puts some share and like-buttons onto the first topic or every post (as you can configure by checkboxes). But unfortunately these Share-Buttons won't appear in the blog-posts, so I asked the author of the ShareThisTopic Mod first, what to do about it.
This is how the conversation went:

Quote from: go- on June 06, 2011, 07:45:18 PM
Hello,
is it possible to activate this mod for the normal SMFBlog Mod (http://custom.simplemachines.org/mods/index.php?mod=793)?

The Mod displays the first post of every new topic in a previously "use as blog" marked board.
So "Share This Topic" would be very fitting in there.
---
Quote from: Miss All Sunday on June 06, 2011, 08:54:19 PM
there's a simple way to add the buttons and the icons on your mod, the only thing you need to have its a valid url to share, what SMF are you using?

if you are using 2.o you just need to ad this at your template:

// define some parameters
      $parameters = array(
         'url' => 'url to share',   
      );   
         
      // :)
        $suki =  share_this($parameters);
        $mirahalo = share_icons($parameters);


and thats all,    $suki holds the buttons meanwhile $mirahalo holds the icons, you cna put those variables whereever you want on your template.  for 1.1.x its pretty much the same, you just need to call the ShareThis.php file  with:

global $sourcedir;
require_once($sourcedir . '/ShareThis.php');


at the beginning of your template file.
---
Quote from: go- on June 06, 2011, 09:03:18 PM
Thanks for your reply.

I'm using SMF 1.1.13

here's the code of the Blog.template.php
Maybe you can tell me where to put the code above so it will appear the way it is ususal in topics.
<?php
// Version: 0.1 Beta; Blog

// Stuff displayed on top of the blog...
function template_blog_above()
{
echo '
<div style="padding: 3px;">'
theme_linktree(), '</div>';
}

// ... and stuff displayed below it.
function template_blog_below()
{
global $context;

// Please do not remove the copyright. If you really must, please contact me
// (Daniel15) so we can arrange something. Removing the copyright without
// permission is illegal!
echo '
<div style="text-align: center" class="smalltext">
Powered by <a href="http://www.dansoftaustralia.net/products/smf-mods/blog.htm" title="A (very) simple blogging system for SMF">SMFBlog</a> '
$context['blog_version']['version'], ' (build '$context['blog_version']['build'], ') by <a href="http://www.dansoftaustralia.net/">DanSoft Australia</a>.
</div>'
;
}

// The blog index.
function template_index()
{
global $context$scripturl$txt;

echo '
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder" style="margin-top: 1.5ex;">
<tr><td class="titlebg">'
$txt['blog'], ' - '$txt['blog_blogs'], '</td></tr>
<tr valign="top" class="windowbg2">
<td style="padding-bottom: 2ex;">'
;

// Loop through all blog boards.
foreach ($context['blog_boards'] as $board)
echo '
<div class="blog_listing">
<a class="blog_link" href="'
$scripturl'?action=blog;sa=view_blog;name='$board['alias'], '">'$board['name'], '</a>
<blockquote class="blog_desc">'
$board['description'], '</blockquote>
</div>'
;

echo '
</td>
</tr>
</table>'
;
}

// Viewing a blog itself.
function template_view()
{
global $context$modSettings$scripturl$txt;
echo '
<h2>'
$context['blog']['name'], '</h2>
'
$context['blog']['pageindex'];

$alternating 1;
// Loop through each post.
foreach ($context['blog']['posts'] as $post)
{
// Output this post.
echo '
<div class="windowbg2 blog_post blog_post_'
$alternating'">
<a class="blog_post_heading" href="'
$scripturl'?action=blog;sa=view_post;id='$post['id'], (!empty($modSettings['blog_enable_rewrite']) ? ';blog_name=' $context['blog']['alias'] : ''), '">'$post['icon'], ' '$post['subject'], '</a>
<div class="smaller">'
$post['time'], ' '$txt[525], ' '$post['poster']['link'], '</div>

<div class="blog_post_body" style="padding: 2ex 0;">'
$post['body'], '</div>
</div>'
;

$alternating = ($alternating == 1) ? 1;
}

// Page numbers at the bottom
echo '
'
$context['blog']['pageindex'];

}

// Viewing a blog post.
function template_view_post()
{
global $context$scripturl$txt;

echo '
<h2 class="blog_heading">'
$context['blog_post']['subject'], '</h2>';

// Output the blog post itself.
echo '
<div class="windowbg2 blog_post">
<div class="blog_post_heading">'
$context['blog_post']['icon'], ' '$context['blog_post']['subject'], '</div>
<div class="smaller">'
$context['blog_post']['time'], ' '$txt[525], ' '$context['blog_post']['poster']['link'], '</div>

<div class="blog_post_body">'
$context['blog_post']['body'], '</div><br /><br />
</div>

<h2 class="blog_heading">'
$txt['blog_write_comment'], ':</h2>';
// Not logged in? No commenting for you!
// !!! Check the permissions!!
if (!$context['user']['is_logged'])
echo '
'
,$txt['blog_error_login'];
else
echo '
<form action="'
$scripturl'?action=post2" method="post" accept-charset="'$context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);">
<input type="hidden" name="topic" value="' 
$context['blog_post']['id'] . '" />
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
<input type="hidden" name="seqnum" value="'
$context['form_sequence_number'], '" />
<input type="hidden" name="blog_post" value="'
$context['blog_post']['id'], '" />', (!empty($context['blog_name']) ? '
<input type="hidden" name="blog_name" value="' 
htmlentities($context['blog_name']) . '" />' ''), '

<table border="0" width="100%" align="center" cellspacing="1" cellpadding="3"> <!--class="bordercolor"-->
<tr>
<td align="right" style="font-weight: bold;" id="caption_subject">
'
$txt[70], ':
</td>
<td>
<input type="text" name="subject" value="Re: '
$context['blog_post']['subject'], '" tabindex="'$context['tabindex']++, '" size="80" maxlength="80" />
</td>
</tr>
'
theme_postbox(''), '
<tr>
<td align="center" colspan="2">
<span class="smalltext"><br />'
$txt['smf16'], '</span><br />
<input type="submit" name="post" value="'
$txt[10], '" tabindex="'$context['tabindex']++, '" onclick="return submitThisOnce(this);" accesskey="s" />
<input type="submit" name="preview" value="'
$txt[507], '" tabindex="'$context['tabindex']++, '" onclick="return event.ctrlKey || previewPost();" accesskey="p" />
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</form>'
;

echo '
<a name="comments"></a>
<h2 class="blog_heading">'
$txt['blog_comments'], ':</h2>';

// No replies? Too bad! :P.
if ($context['blog_post']['reply_count'] == 0)
echo '
'
$txt['blog_no_comments'];
else
{
// Page numbers, please!
echo '
'
$context['blog_post']['pageindex'];

// Now, go through all replies...
foreach ($context['blog_post']['replies'] as $post)
{
echo '
<a name="msg'
$post['id'], '"></a>', ($post['is_last'] ? '<a name="new"></a>' ''), '
<div id="msg'
$post['id'], '" class="windowbg2 blog_reply">
<div class="blog_reply_heading">'
$post['icon'], ' '$post['subject'], ' ('$txt['ssiTopic_reply'], ' '$post['number'], ') </div>
<div class="smaller">'
$post['time'], ' '$txt[525], ' '$post['poster']['link'], '</div>

<div class="blog_reply_body">'
$post['body'], '</div>
</div>'
;
}

// Again, some page numbers on the bottom this time!
echo '
'
$context['blog_post']['pageindex'];
}
}
?>



Thanks.
---
Quote from: Miss All Sunday on June 06, 2011, 09:13:58 PM
OK, I couldn't find any url parameter on that template, this mod needs to have an url parameter in order to work properly.
---
Quote from: go- on June 06, 2011, 09:26:05 PM
Thank you very much.

So is there anything I can do about this?
---
Quote from: Miss All Sunday on June 06, 2011, 09:31:51 PM
you can ask the mod author if there is a variable that holds the url for the blog.

And that's what I would like to ask you now.
Best regards
go-

Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on June 07, 2011, 06:56:24 AM
I did not write the original mod and not happy with how it works currently and I plan to completely redo it at some point
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: go- on June 07, 2011, 06:59:00 AM
Quote from: vbgamer45 on June 07, 2011, 06:56:24 AM
I did not write the original mod and not happy with how it works currently and I plan to completely redo it at some point

Okay thank you.
I'm really looking forward to this.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: harnser on June 07, 2011, 08:19:09 AM
Quote from: vbgamer45 on June 07, 2011, 06:35:38 AM
I am planning to redo SMF Blog competely at some point I don't like how it works currently.

Thanks for your reply, but unfortunately it doesn't really help me.  Perhaps someone who's currently using this mod could confirm whether or not attachments (particularly images) work in their blog?  Thanks again.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: MiY4Gi on June 07, 2011, 09:02:29 AM
As far as I know, attachments don't work, but hotlinked images display in posts without a problem.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: harnser on June 07, 2011, 09:05:22 AM
Quote from: MiY4Gi on June 07, 2011, 09:02:29 AM
As far as I know, attachments don't work, but hotlinked images display in posts without a problem.

Thanks MiY4Gi.  That's very disappointing as I've spent quite a while setting this up and now it's not suitable.  Let's hope a rewrite is available soon.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: UKShark on June 22, 2011, 11:44:46 AM
I installed this mod but was not happy with the way it functions :(

After uninstalling it, I have been left with the 'Blog' option in the menu bar.

Any ideas on how to remove it?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Apllicmz on July 01, 2011, 11:32:14 PM
Good mod
when Update dont forget Portuguese Linguage

    <file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// --- Begin modification - SMFBlog ---
// General text strings Translate By Candidosa2
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Quadros do Blog';
$txt['blog_blogs'] = 'blogs dispon&iacute;veis:';
$txt['blog_comments'] = 'Coment&aacute;rios';
$txt['blog_no_comments'] = 'Nenhum coment&aacute;rio foi postado para esse poste ainda.';
$txt['blog_write_comment'] = 'Escrever um coment&aacute;rio';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Desculpe, mas blogs est&atilde;o desabilitados!';
$txt['blog_error_login'] = 'Desculpe, voc&ecirc; deve estar como membro para postar um coment&aacute;rio!';
$txt['blog_error_not_exist'] = 'Desculpe, mas o blog que voc&ecirc; pediu n&atilde;o existe!';
$txt['blog_error_not_blog'] = 'Desculpe, mas este quadro n&atilde;o &eacute; um blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'N&uacute;mero de coment&aacute;rios a serem exibidos por p&aacute;gina';
$txt['blog_posts_perpage'] = 'N&uacute;mero de postes de blog para exibir por p&aacute;gina'; // NEW!
$txt['blog_enable'] = 'Activar o blog?';
$txt['blog_enable_rewrite'] = 'Activar pretty URLs?';
$txt['blog_hide_boards'] = 'Esconder quadros de blog?';
$txt['blog_settings'] = 'Configura&ccedil;&otilde;es Blog';
// Board administration.
$txt['blog_board'] = 'Use este f&oacute;rum como um blog?';
$txt['blog_board_desc'] = 'Activando esta op&ccedil;&atilde;o ir&aacute; mostrar-lhe a Quadro na p&aacute;gina do blog.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Por favor, especifique o ID para t&oacute;pico';
$txt['ssiTopic_notfound'] = 'The topic you are looking for appears to be either missing or off limits to you.';
$txt['ssiTopic_replies'] = 'Respostas';
$txt['ssiTopic_reply'] = 'Responder ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'Por';
$txt['smfblog_subject'] = 'Assunto';
$txt['smfblog_re'] = 'Re: ';
$txt['smfblog_shortcuts'] = 'shortcuts: pressione alt+s para enviar/postar ou alt+p para pr&eacute;-visualizar';
$txt['smfblog_save'] = 'Gravar';
$txt['smfblog_preview'] = 'pr&eacute;-visualizar';
// END SMF Blog Support PT/BR By SMFPT
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// --- Begin modification - SMFBlog ---
// General text strings Translate By Candidosa2
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Quadros do Blog';
$txt['blog_blogs'] = 'blogs dispon&iacute;veis:';
$txt['blog_comments'] = 'Coment&aacute;rios';
$txt['blog_no_comments'] = 'Nenhum coment&aacute;rio foi postado para esse poste ainda.';
$txt['blog_write_comment'] = 'Escrever um coment&aacute;rio';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Desculpe, mas blogs est&atilde;o desabilitados!';
$txt['blog_error_login'] = 'Desculpe, voc&ecirc; deve estar como membro para postar um coment&aacute;rio!';
$txt['blog_error_not_exist'] = 'Desculpe, mas o blog que voc&ecirc; pediu n&atilde;o existe!';
$txt['blog_error_not_blog'] = 'Desculpe, mas este quadro n&atilde;o &eacute; um blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'N&uacute;mero de coment&aacute;rios a serem exibidos por p&aacute;gina';
$txt['blog_posts_perpage'] = 'N&uacute;mero de postes de blog para exibir por p&aacute;gina'; // NEW!
$txt['blog_enable'] = 'Activar o blog?';
$txt['blog_enable_rewrite'] = 'Activar pretty URLs?';
$txt['blog_hide_boards'] = 'Esconder quadros de blog?';
$txt['blog_settings'] = 'Configura&ccedil;&otilde;es Blog';
// Board administration.
$txt['blog_board'] = 'Use este f&oacute;rum como um blog?';
$txt['blog_board_desc'] = 'Activando esta op&ccedil;&atilde;o ir&aacute; mostrar-lhe a Quadro na p&aacute;gina do blog.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Por favor, especifique o ID para t&oacute;pico';
$txt['ssiTopic_notfound'] = 'The topic you are looking for appears to be either missing or off limits to you.';
$txt['ssiTopic_replies'] = 'Respostas';
$txt['ssiTopic_reply'] = 'Responder ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'Por';
$txt['smfblog_subject'] = 'Assunto';
$txt['smfblog_re'] = 'Re: ';
$txt['smfblog_shortcuts'] = 'shortcuts: pressione alt+s para enviar/postar ou alt+p para pr&eacute;-visualizar';
$txt['smfblog_save'] = 'Gravar';
$txt['smfblog_preview'] = 'pr&eacute;-visualizar';
// END SMF Blog Support PT/BR By SMFPT
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// --- Begin modification - SMFBlog ---
// General text strings Translate By Candidosa2
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Quadros do Blog';
$txt['blog_blogs'] = 'blogs dispon&iacute;veis:';
$txt['blog_comments'] = 'Coment&aacute;rios';
$txt['blog_no_comments'] = 'Nenhum coment&aacute;rio foi postado para esse poste ainda.';
$txt['blog_write_comment'] = 'Escrever um coment&aacute;rio';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Desculpe, mas blogs est&atilde;o desabilitados!';
$txt['blog_error_login'] = 'Desculpe, voc&ecirc; deve estar como membro para postar um coment&aacute;rio!';
$txt['blog_error_not_exist'] = 'Desculpe, mas o blog que voc&ecirc; pediu n&atilde;o existe!';
$txt['blog_error_not_blog'] = 'Desculpe, mas este quadro n&atilde;o &eacute; um blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'N&uacute;mero de coment&aacute;rios a serem exibidos por p&aacute;gina';
$txt['blog_posts_perpage'] = 'N&uacute;mero de postes de blog para exibir por p&aacute;gina'; // NEW!
$txt['blog_enable'] = 'Activar o blog?';
$txt['blog_enable_rewrite'] = 'Activar pretty URLs?';
$txt['blog_hide_boards'] = 'Esconder quadros de blog?';
$txt['blog_settings'] = 'Configura&ccedil;&otilde;es Blog';
// Board administration.
$txt['blog_board'] = 'Use este f&oacute;rum como um blog?';
$txt['blog_board_desc'] = 'Activando esta op&ccedil;&atilde;o ir&aacute; mostrar-lhe a Quadro na p&aacute;gina do blog.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Por favor, especifique o ID para t&oacute;pico';
$txt['ssiTopic_notfound'] = 'The topic you are looking for appears to be either missing or off limits to you.';
$txt['ssiTopic_replies'] = 'Respostas';
$txt['ssiTopic_reply'] = 'Responder ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'Por';
$txt['smfblog_subject'] = 'Assunto';
$txt['smfblog_re'] = 'Re: ';
$txt['smfblog_shortcuts'] = 'shortcuts: pressione alt+s para enviar/postar ou alt+p para pr&eacute;-visualizar';
$txt['smfblog_save'] = 'Gravar';
$txt['smfblog_preview'] = 'pr&eacute;-visualizar';
// END SMF Blog Support PT/BR By SMFPT
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[
// --- Begin modification - SMFBlog ---
// General text strings Translate By Candidosa2
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Quadros do Blog';
$txt['blog_blogs'] = 'blogs dispon&iacute;veis:';
$txt['blog_comments'] = 'Coment&aacute;rios';
$txt['blog_no_comments'] = 'Nenhum coment&aacute;rio foi postado para esse poste ainda.';
$txt['blog_write_comment'] = 'Escrever um coment&aacute;rio';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Desculpe, mas blogs est&atilde;o desabilitados!';
$txt['blog_error_login'] = 'Desculpe, voc&ecirc; deve estar como membro para postar um coment&aacute;rio!';
$txt['blog_error_not_exist'] = 'Desculpe, mas o blog que voc&ecirc; pediu n&atilde;o existe!';
$txt['blog_error_not_blog'] = 'Desculpe, mas este quadro n&atilde;o &eacute; um blog!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'N&uacute;mero de coment&aacute;rios a serem exibidos por p&aacute;gina';
$txt['blog_posts_perpage'] = 'N&uacute;mero de postes de blog para exibir por p&aacute;gina'; // NEW!
$txt['blog_enable'] = 'Activar o blog?';
$txt['blog_enable_rewrite'] = 'Activar pretty URLs?';
$txt['blog_hide_boards'] = 'Esconder quadros de blog?';
$txt['blog_settings'] = 'Configura&ccedil;&otilde;es Blog';
// Board administration.
$txt['blog_board'] = 'Use este f&oacute;rum como um blog?';
$txt['blog_board_desc'] = 'Activando esta op&ccedil;&atilde;o ir&aacute; mostrar-lhe a Quadro na p&aacute;gina do blog.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Por favor, especifique o ID para t&oacute;pico';
$txt['ssiTopic_notfound'] = 'The topic you are looking for appears to be either missing or off limits to you.';
$txt['ssiTopic_replies'] = 'Respostas';
$txt['ssiTopic_reply'] = 'Responder ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'Por';
$txt['smfblog_subject'] = 'Assunto';
$txt['smfblog_re'] = 'Re: ';
$txt['smfblog_shortcuts'] = 'shortcuts: pressione alt+s para enviar/postar ou alt+p para pr&eacute;-visualizar';
$txt['smfblog_save'] = 'Gravar';
$txt['smfblog_preview'] = 'pr&eacute;-visualizar';
// END SMF Blog Support PT/BR By SMFPT
]]></add>
        </operation>
    </file>

Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: UKShark on July 14, 2011, 05:27:58 AM
Quote from: UKShark on June 22, 2011, 11:44:46 AM
I installed this mod but was not happy with the way it functions :(

After uninstalling it, I have been left with the 'Blog' option in the menu bar.

Any ideas on how to remove it?

Can anybody help?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheListener on July 20, 2011, 06:05:04 PM
Is there anything in yours subs.php file related to the mod?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: h4k on July 21, 2011, 01:32:33 AM
Hi!!! Thanks for this mod, it works great. Now Im modifying it for my website, and I want to show the users avatars on comments, there is any way to get the avatar ??? Thanks!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: fmofmpls on July 26, 2011, 08:31:07 AM
Installed this mod and am loving it so far.

Questions though - is there a way to have tags at this blog? I would like to organize blog content by subject matter via tags. Also what about social networking sharing options? Is there another social nertworking mod that will work in concert with this mod?

Thanks!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: fmofmpls on July 31, 2011, 11:37:55 AM
bump - any ideas as to how to implement subject tags into this mod? Is there another mod that might possibly assist in obtaining this need?

Thanks!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bigjoe11a on August 22, 2011, 07:11:49 PM
I just installed this on SMF 2.0 RC5 and well when I click on the blog link at the top. all I get is a index listing of a folder called "blog". I don't thing it should be doing that. Can some one tell me what happen. The installer installed it and there were no errors.

Joe
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on August 22, 2011, 09:14:58 PM
That is the correct behavior at this time. To send blogs goto manage boards and modify the board there should be an option to turn into a blog
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bigjoe11a on August 22, 2011, 10:01:43 PM
Yes. I created a new category and I added one forum to it and set it as a blog. How ever when I post in that forum it said that when I do that it should display that blog when I click on the link at the top called "blog". and well that doesn't work.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Flambe on September 02, 2011, 08:54:45 PM
I've got a similar problem to bigjoe11a. I just installed this on my forum (I'm on SMF 2.0) but the Blog link in the menu bar leads to a folder that doesn't exist. I've set a forum up to be a blog and even made a topic in it but the topic seems normal.

If you want any more info feel free to ask, I'd be happy to help as I really want to get this integrated into my forum!

Edit: for some reason the Blog link works fine when I'm not logged in but when logged in, gives me a 404.
Also there still doesn't appear to be anything different about the forum that is set as the blog. I'm guessing that is intentional though it would be nice to have the forum redirect to the blog or to look like it.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: miDnIghtEr20C on September 22, 2011, 12:55:40 PM
i got this one when trying to put into my 1.1.15 site...   "Execute Modification    ./Sources/ModSettings.php    Test failed"
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: TheListener on September 22, 2011, 12:59:15 PM
Quote from: miDnIghtEr20C on September 22, 2011, 12:55:40 PM
i got this one when trying to put into my 1.1.15 site...   "Execute Modification    ./Sources/ModSettings.php    Test failed"

A manual edit is required.

::)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bigjoe11a on September 22, 2011, 02:33:11 PM
That's why I been wanting to uninstall it and I will have to do that by hand and that sucks. SMF really needs to update the packages and mods. Last time I edit the pages by hand. I had to reload every thing and start from scratch.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: iverSUN on December 01, 2011, 10:57:14 PM
I'm interested in installing this mod.

1) It's been in BETA for four and a half years? Really?  ::)
2) Is there still active support for this mod?
3) FEATURE REQUEST: Instead of having ALL topics in a "marked blog board" post to the blog site, it'd be amazing if you could tick a box when starting a new thread "make this a blog post" so you can choose which new threads actually become blogs. Then, you could give people titles like "Content Contributor" and they'd have the access to tick the box or not, in addition to moderators/admins/etc. Is anyone willing to step up and make that happen?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on December 02, 2011, 01:14:59 AM
1. haven't had time to develop it yet
2. Not really planning to redo it completely at some point do not like how the mod works/was built at all.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: iverSUN on December 02, 2011, 10:45:55 AM
Quote from: vbgamer45 on December 02, 2011, 01:14:59 AM
1. haven't had time to develop it yet
2. Not really planning to redo it completely at some point do not like how the mod works/was built at all.

Well, you're alive... so that's a start!

Let's work on making the absolute most amazing SMF blog mod known to man. Ready? Let's go!! :)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on December 02, 2011, 03:08:17 PM
Busy at the moment unless someone donates then maybe heh
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: iverSUN on December 08, 2011, 07:37:27 PM
Quote from: vbgamer45 on December 02, 2011, 03:08:17 PM
Busy at the moment unless someone donates then maybe heh

What kind of donation could persuade you to do a little upgrade for me? ;)

Also... I just realized, you're the guy I sent a thank you PM to. Seriously, every mod I want, you have. I love it.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on December 08, 2011, 08:22:46 PM
Depends on what needs to be done/built
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: iverSUN on December 09, 2011, 11:05:53 AM
Quote from: vbgamer45 on December 08, 2011, 08:22:46 PM
Depends on what needs to be done/built

Quote from: iverSUN on December 01, 2011, 10:57:14 PM3) FEATURE REQUEST: Instead of having ALL topics in a "marked blog board" post to the blog site, it'd be amazing if you could tick a box when starting a new thread "make this a blog post" so you can choose which new threads actually become blogs. Then, you could give people titles like "Content Contributor" and they'd have the access to tick the box or not, in addition to moderators/admins/etc. Is anyone willing to step up and make that happen?

:D
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Biology Forums on April 14, 2012, 04:34:26 PM
Does anyone have a demo of this in action?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on April 15, 2012, 12:43:31 AM
I don't recommend this mod need to redo it at some point.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Biology Forums on April 15, 2012, 02:14:02 AM
Quote from: vbgamer45 on April 15, 2012, 12:43:31 AM
I don't recommend this mod need to redo it at some point.

Thanks for the heads-up!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: tsis_k on April 18, 2012, 02:13:36 PM
I installed this mod to SMF 1.1.16. Everything went well... I even manually review all the file to make sure they're all correct but I get this error went clicking into a blog.

Fatal error: Call to undefined function ssi_topic() in home\public_html\xxx\xxxx\Sources\Blog.php on line 250

I look up line 250 in Blog.php
$context['blog_post'] = ssi_topic($_GET['id'], $modSettings['blog_comments_perpage'], null, 'array');

Can someone please help?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on April 18, 2012, 02:33:17 PM
Requires another mod for SMF 1.1.x check mod page for details.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Baloch on July 03, 2012, 10:11:55 PM
Is there any update for smf 2.0 ?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: WasdMan on July 04, 2012, 04:43:59 AM
Hungarian language:

ISO:
Quote<file name="$languagedir/Modifications.hungarian.php" error="skip">
      <operation>
         <search position="after"><![CDATA[?>]]></search>
         <add><![CDATA[
// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Blog táblák';
$txt['blog_blogs'] = 'A rendelkezésre álló blogok:';
$txt['blog_comments'] = 'Hozzászólások';
$txt['blog_no_comments'] = 'Egyetlen hozzászólás sincs.';
$txt['blog_write_comment'] = 'Írj hozzászólást';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Sajnáljuk, de a blogok le vannak tiltva!';
$txt['blog_error_login'] = 'Sajnáljuk de a hozzászólás írásához be kell jelentkezni!';
$txt['blog_error_not_exist'] = 'Sajnáljuk de a kért blog nem létezik!';
$txt['blog_error_not_blog'] = 'Sajnáljuk de ezena  fórumon nincs egy blog sem!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Hozzászólás megjelenítése oldalanként';
$txt['blog_posts_perpage'] = 'Bejegyzések számának megjelenítése'; // NEW!
$txt['blog_enable'] = 'Engedélyezed a blogot?';
$txt['blog_enable_rewrite'] = 'Engedélyezed a szép URL-eket?';
$txt['blog_hide_boards'] = 'Blog táblák elrejtése?';
$txt['blog_settings'] = 'Blog beállítások';
// Board administration.
$txt['blog_board'] = 'Használja a blogot úgy, mint egy fórum?';
$txt['blog_board_desc'] = 'A blog oldal mutatása.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Kérjük adja meg a téma ID számát';
$txt['ssiTopic_notfound'] = 'A téma amit keres, úgy tűnik hiányzik vagy korlátozva van.';
$txt['ssiTopic_replies'] = 'Válaszok';
$txt['ssiTopic_reply'] = 'Válasz ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'írta';
$txt['smfblog_subject'] = 'Tárgy';
$txt['smfblog_re'] = 'Válasz: ';
$txt['smfblog_shortcuts'] = 'gyorsbillentyűk: shift+alt+s az elküldéshez vagy shift+alt+p az előnézethez';
$txt['smfblog_save'] = 'Mentés';
$txt['smfblog_preview'] = 'Előnézet';
// END SMF Blog
]]></add>
      </operation>
   </file>

UTF8:
Quote<file name="$languagedir/Modifications.hungarian-utf8.php" error="skip">
      <operation>
         <search position="after"><![CDATA[?>]]></search>
         <add><![CDATA[
// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Blog';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Blog táblák';
$txt['blog_blogs'] = 'A rendelkezésre álló blogok:';
$txt['blog_comments'] = 'Hozzászólások';
$txt['blog_no_comments'] = 'Egyetlen hozzászólás sincs.';
$txt['blog_write_comment'] = 'Írj hozzászólást';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Sajnáljuk, de a blogok le vannak tiltva!';
$txt['blog_error_login'] = 'Sajnáljuk de a hozzászólás írásához be kell jelentkezni!';
$txt['blog_error_not_exist'] = 'Sajnáljuk de a kért blog nem létezik!';
$txt['blog_error_not_blog'] = 'Sajnáljuk de ezena  fórumon nincs egy blog sem!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Hozzászólás megjelenítése oldalanként';
$txt['blog_posts_perpage'] = 'Bejegyzések számának megjelenítése'; // NEW!
$txt['blog_enable'] = 'Engedélyezed a blogot?';
$txt['blog_enable_rewrite'] = 'Engedélyezed a szép URL-eket?';
$txt['blog_hide_boards'] = 'Blog táblák elrejtése?';
$txt['blog_settings'] = 'Blog beállítások';
// Board administration.
$txt['blog_board'] = 'Használja a blogot úgy, mint egy fórum?';
$txt['blog_board_desc'] = 'A blog oldal mutatása.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Kérjük adja meg a téma ID számát';
$txt['ssiTopic_notfound'] = 'A téma amit keres, úgy tűnik hiányzik vagy korlátozva van.';
$txt['ssiTopic_replies'] = 'Válaszok';
$txt['ssiTopic_reply'] = 'Válasz ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'írta';
$txt['smfblog_subject'] = 'Tárgy';
$txt['smfblog_re'] = 'Válasz: ';
$txt['smfblog_shortcuts'] = 'gyorsbillentyűk: shift+alt+s az elküldéshez vagy shift+alt+p az előnézethez';
$txt['smfblog_save'] = 'Mentés';
$txt['smfblog_preview'] = 'Előnézet';
// END SMF Blog
]]></add>
      </operation>
   </file>
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: keyrocks on July 05, 2012, 11:39:37 AM
Quote from: Baloch on July 03, 2012, 10:11:55 PM
Is there any update for smf 2.0 ?

The SMFBlog Mod page (http://custom.simplemachines.org/mods/index.php?mod=793) shows that it is compatible with SMF versions 2.0, 2.0.1, 2.0.2 so it may well work OK with 2.0 RC3.

I've installed it with SMF 2.0.2. I've followed the usage instructions but Blog entries did not show up when clicking a Blog Board title from the Blogs Index page (from the Blog link in the main menu bar). I still haven't figured out why yet.

UPDATE: My problem was way too simple. I found the solution posted here in this thread (http://www.simplemachines.org/community/index.php?topic=170526.msg1161284#msg1161284) in Reply #92, page 5, July 13, 2007. The solution should be added to the Mod Page for this mod (http://custom.simplemachines.org/mods/index.php?mod=793) in the Useage instructions.

While creating a new Forum Board to be used as Blogs Board, and you have checked all of the Member Groups the Board will be visible to, you'll find that Blog Threads are not visible from the Blog-name page (from Blogs Index page). Go back into "Modify" for that Board and be sure to also check the "Guests" Member Group. "Guests" MUST be checked for Blog threads to display properly from the Blog Board links.

While SMFBlog (http://custom.simplemachines.org/mods/index.php?mod=793) is definitely a simple mod, it is also quite flexible once you learn how to make use of it. I am happy with it. Now to play with the styling a bit.  8)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Biology Forums on July 05, 2012, 02:09:23 PM
I'm surprised an actual blog mod hasn't been made yet. All major forum software has a functional mod where members can keep track of their own blogs, etc.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: ElviraS on September 23, 2012, 01:49:28 AM
Quote from: Liam_michael on July 05, 2012, 02:09:23 PM
I'm surprised an actual blog mod hasn't been made yet. All major forum software has a functional mod where members can keep track of their own blogs, etc.

Yes, I joined yesterday and I was really looking forward to adding a blog mod to my 2.0.2 SMF forum but it seems there isn't a suitable one. This one is not recommended.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: littlenicki on October 26, 2012, 12:07:57 PM
I'd throw in USD 75.00 for an up to date rewrite of this mod including image Upload, Calendar etc.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: bloc on October 26, 2012, 05:04:53 PM
Quote from: littlenicki on October 26, 2012, 12:07:57 PM
I'd throw in USD 75.00 for an up to date rewrite of this mod including image Upload, Calendar etc.
What exactly does a blog for SMF need? 
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: DeroZ on July 06, 2013, 05:23:35 AM
installed perfect but no work (smf 2.0.4)
i checked board and no work....
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: geogeo.gr on July 26, 2013, 01:50:34 PM
Greek language

// --- Begin modification - SMFBlog ---
// General text strings
$txt['blog'] = 'Ιστολόγιο';
// Text used in the frontend (user section).
$txt['blog_boards'] = 'Πίνακες ιστολογίου';
$txt['blog_blogs'] = 'Διαθέσιμα ιστολόγια:';
$txt['blog_comments'] = 'Σχόλια';
$txt['blog_no_comments'] = 'Δεν έχει αναρτηθεί κανένα σχόλιο ακόμα γι αυτή τη δημοσίευση.';
$txt['blog_write_comment'] = 'Γράψτε ένα σχόλιο';
// Errors in the frontend.
$txt['blog_error_disabled'] = 'Συγνώμη, αλλά τα ιστολόγια προς το παρόν είναι απενεργοποιημένα!';
$txt['blog_error_login'] = 'Συγνώμη, πρέπει να συνδεθείτε για να δημοσιεύσετε ένα σχόλιο!';
$txt['blog_error_not_exist'] = 'Συγγνώμη, αλλά το ιστολόγιο που ζητήσατε δεν υπάρχει!';
$txt['blog_error_not_blog'] = 'Συγγνώμη, αλλά αυτός ο πίνακας δεν είναι ιστολόγιο!';

// Settings for the blog administration.
$txt['blog_comments_perpage'] = 'Αριθμός σχολίων που θα εμφανίζονται ανά σελίδα';
$txt['blog_posts_perpage'] = 'Αριθμός δημοσιεύσεων ιστολογίου που θα εμφανίζονται ανά σελίδα'; // NEW!
$txt['blog_enable'] = 'Ενεργοποίηση ιστολογίου';
$txt['blog_enable_rewrite'] = 'Ενεργοποίηση φιλικών URL';
$txt['blog_hide_boards'] = 'Απόκρυψη πινάκων ιστολογίου';
$txt['blog_settings'] = 'Ρυθμίσεις ιστολογίου';
// Board administration.
$txt['blog_board'] = 'Χρήση αυτού του πίνακα ως ιστολόγιο';
$txt['blog_board_desc'] = 'Η ενεργοποίηση αυτής της επιλογής θα εμφανίσει αυτό τον πίνακα στη σελίδα ιστολογίου.';
// --- End modification ---

// --- Begin modification - SSI Topic and Replies ---
$txt['ssiTopic_no_id'] = 'ssi_topic(): Παρακαλώ καθορίστε ένα ID θέματος';
$txt['ssiTopic_notfound'] = 'Το θέμα που ψάχνετε φαίνεται να λείπει ή είναι εκτός των ορίων σας.';
$txt['ssiTopic_replies'] = 'Απαντήσεις';
$txt['ssiTopic_reply'] = 'Απάντηση ';
// --- End modification ---

// Template
$txt['smfblog_by'] = 'από';
$txt['smfblog_subject'] = 'Θέμα';
$txt['smfblog_re'] = 'Απ: ';
$txt['smfblog_shortcuts'] = 'Συντομεύσεις: πατήστε alt+s για υποβολή/δημοσίευση ή alt+p για προεπισκόπηση';
$txt['smfblog_save'] = 'Αποθήκευση';
$txt['smfblog_preview'] = 'Προεπισκόπηση';
// END SMF Blog
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on July 26, 2013, 03:08:04 PM
Thanks for the translation!
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: BFS010 on September 29, 2013, 11:58:54 PM
I installed on my SMF 2.0.5 without errors.  It gave me a "blog" button in the main menu and as advertised, fields in the the Board creation area to indicate if a board was a blog.  However, when I clicked on the "blog" button in the main menu, I would get an error -- page not found. 

Did I forget to do something?  Or, is this a known issue I can fix if someone could advise?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Biology Forums on September 30, 2013, 07:03:34 PM
When will this mod become the full version and get out of Beta testing?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on September 30, 2013, 07:07:05 PM
No time soon have other projects I am working on more than likely this will be scrapped and rebuilt.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: johnpaul2k2 on March 01, 2014, 10:08:59 AM
Any update yet???
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 01, 2014, 05:03:34 PM
None have no time at the moment to redo it.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: WCFA on March 23, 2014, 01:03:15 PM
This seems the only blog for SMF ?

Since this is not being completed are there others ??

I have 2.07 and sure this won't work if it does not work on 2.05

Ideas ?
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 23, 2014, 03:43:46 PM
Yes there are other blogs for SMF check on modsite.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: johnpaul2k2 on March 25, 2014, 04:01:52 PM
Quote from: vbgamer45 on March 23, 2014, 03:43:46 PM
Yes there are other blogs for SMF check on modsite.

you have any of the mod link?

hope not Portals ??
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Biology Forums on March 25, 2014, 05:13:29 PM
Quote from: WCFA on March 23, 2014, 01:03:15 PM
This seems the only blog for SMF ?

Since this is not being completed are there others ??

I have 2.07 and sure this won't work if it does not work on 2.05

Ideas ?

ADK blog is probably the best and most extensive.

Your last option would be to pay someone to make it from scratch. Might cost upwards of $200.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: vbgamer45 on March 25, 2014, 08:38:29 PM
A blog mod would easily cost $500 or more it is not so simple even more so if you are making from scratch. If I had to make a one would probably be a couple grand just based on the number of hours to build it.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Biology Forums on March 26, 2014, 01:54:17 PM
That's why the ADK blog is their best option, if they are looking for all the bells and whistles of a real blogging software.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: Herman's Mixen on March 26, 2014, 04:40:34 PM
beter look at feline's blog mod, ADK has too much errors !

Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: johnpaul2k2 on April 01, 2014, 04:12:57 PM
Quote from: Herman's Mixen on March 26, 2014, 04:40:34 PM
beter look at feline's blog mod, ADK has too much errors !
exactly  8)
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: MyTime on September 09, 2014, 01:22:12 PM
Can someone help me with this blog, I'v tried so many times, before it worked perfectly but i removed the whole smf and started over with the same custom theme, it doesn't give me the option to create anything the boards into blogs, I installed and removed and installed again, but still , it's like the mod doesn't exist on the site.
please any help would be appreciated, i'v been spending so many hours with this forum and have gotten no where as it seems.
Title: Re: SMFBlog now for SMF 2.0 RC3!
Post by: LadyAngel on June 06, 2015, 02:16:00 PM
Quote from: sharks on February 22, 2011, 04:37:54 AM
The mod site page has been updated to support RC5 (someone should edit the title of this topic so others will know that it has been updated), so this mods installs without an errors. I just tested it.

However... It still does NOT WORK!!

I edited the board setting already containing topics and enabled the blog feature for my board called "Archives".:

I also noticed the new "Blog" link added to the top forum menu. When i click on it, here is what i see:

Archives
[1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... 408 [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ... 408
Powered by SMFBlog by CreateAForum.com

Other than that, there is just blank space. Nothing else! No posts are shown!
I am using SMF 2.0 RC5 with default Curve theme.

This mod is seriously very buggy.
I disabled the "enable as blog" feature for all boards on my forum, and the "Blog" link still shows in the top forum menu, which is annoying as it serves no purpose if there are no boards enabled to use that feature.
Also when i click on the Blog link, here is what shows up:
"Blog - Available blogs:" displayed in a title bar. Now that part didn't show up when i enabled blog posts for a board earlier.

I have uninstalled this mod. It's a hopeless case.
Having the exact same issue. I'm using Simple Portal which others appear to have the same problem with. Was a fix ever found for this?
Title: Re: SMFBlog
Post by: muskrat_skull on January 20, 2016, 06:47:43 PM
On 2.0.11 with just responsive curve theme installed, getting the following error when clicking on the Customization button

Fatal error: Cannot redeclare ModifyBlogSettings() (previously declared in ../forum/Sources/ManageSettings.php:2085) in ../forum/Sources/ManageSettings.php on line 2139

inserted section twice, easy to fix manually, just comment out or delete the second ModifyBlogSettings()
happened even after uninstall and reinstall. First install seemed to be slow, perhaps timed out.
Title: Re: SMFBlog
Post by: vbgamer45 on January 20, 2016, 08:25:59 PM
More than likely that is probably what happened.
Title: Re: SMFBlog
Post by: Tenebroso_MW on February 04, 2018, 05:02:34 PM
This MOD I need it for my wiki of own manuals. Establishing permissions to see more manuals if they progress in the forum. It's brilliant, even if you're not motivated with this MOD, it meets my need. I've been fighting days with him.

If you could guide me, I would be very grateful.

I have two problems.

Problem 1 (I can live with this solution)
I mark error that I solve if I give permission to see the profile to the guests. I can live with that. if I give permission to the guests to see the profile, the error disappears.
==>456: $memberContext[$row['id_member']]['can_view_profile'] = allowedTo('profile_view_any') || ($row['id_member'] == $id_member && allowedTo('profile_view_own'));


Problem 2. It is receptive vision from the mobile.
It's about the response box, the guests see it perfect, totally adapted. Registered users see it big, not adapted. It's just this that I'm missing.

(https://k50.kn3.net/B/F/C/B/5/7/ED3.png)(https://k50.kn3.net/C/3/1/D/1/7/588.png)

Can you guide me what can I look? For registered users to see the response window as the guests see it. Adapted to the percentage of the screen.

I would be grateful.


Where can the solution be?
Title: Re: SMFBlog
Post by: Tenebroso_MW on February 05, 2018, 03:33:25 PM
Does someone guide me if it is a PHP or CSS theme?
Title: Re: SMFBlog
Post by: vbgamer45 on February 05, 2018, 03:50:42 PM
It's php for sure. I am not really supporting this mod at this time never liked how it worked.
Title: Re: SMFBlog
Post by: Tenebroso_MW on February 05, 2018, 04:17:01 PM

I would only need the user text box registered as the guest text box. inside the screen. I will put the wiki on the web with a blog. A shame

Greetings.
Thank you
Title: Re: SMFBlog
Post by: SaltedWeb on February 18, 2018, 03:28:28 PM
Not sure if this will work for you, but most of the portals have a built in Page and Articles in them, might be a tad over kill for a blog but you could shut the other stuff off easily and just have something that creates the pages.

Just a thought.
Title: Re: SMFBlog
Post by: brettuk on April 08, 2018, 08:51:00 AM
Just installed this, and it's driving me nuts, how do we even access the blog after installation? What is the URL?
Title: Re: SMFBlog
Post by: Kindred on April 09, 2018, 01:10:19 PM
Quote from: SMFHacks.com Team on May 11, 2007, 08:02:48 AM
SMFBlog is an extremely simple blogging system for SMF. Certain boards can be marked as "blog boards", and these boards will all be listed on the main blog page. Blog posts are topics in these boards, and comments are replies to these topics.
Title: Re: SMFBlog
Post by: brettuk on April 09, 2018, 06:26:08 PM
Sorted.

I have installed this mod, I like it, however, after installation, I have the following error:
Field 'blog_alias' doesn't have a default value
File: /home/hr8ujb1r5twj/public_html/Sources/Subs-Boards.php
Line: 843


I now can't seem to create any "new" boards, even after uninstalling, here's my /source/subs-boards.php/:

<?php

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines http://www.simplemachines.org
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

if (!defined('SMF'))
die('Hacking attempt...');

/* This file is mainly concerned with minor tasks relating to boards, such as
marking them read, collapsing categories, or quick moderation.  It defines
the following list of functions:

void markBoardsRead(array boards)
// !!!

void MarkRead()
// !!!

int getMsgMemberID(int id_msg)
// !!!

void modifyBoard(int board_id, array boardOptions)
- general function to modify the settings and position of a board.
- used by ManageBoards.php to change the settings of a board.

int createBoard(array boardOptions)
- general function to create a new board and set its position.
- allows (almost) the same options as the modifyBoard() function.
- with the option inherit_permissions set, the parent board permissions
  will be inherited.
- returns the ID of the newly created board.

void deleteBoards(array boards_to_remove, moveChildrenTo = null)
- general function to delete one or more boards.
- allows to move the children of the board before deleting it
- if moveChildrenTo is set to null, the child boards will be deleted.
- deletes all topics that are on the given boards.
- deletes all information that's associated with the given boards.
- updates the statistics to reflect the new situation.

void reorderBoards()
- updates the database to put all boards in the right order.
- sorts the records of the boards table.
- used by modifyBoard(), deleteBoards(), modifyCategory(), and
  deleteCategories() functions.

void fixChildren(int parent, int newLevel, int newParent)
- recursively updates the children of parent's child_level and
  id_parent to newLevel and newParent.
- used when a board is deleted or moved, to affect its children.

bool isChildOf(int child, int parent)
- determines if child is a child of parent.
- recurses down the tree until there are no more parents.
- returns true if child is a child of parent.

void getBoardTree()
- load information regarding the boards and categories.
- the information retrieved is stored in globals:
- $boards properties of each board.
- $boardList a list of boards grouped by category ID.
- $cat_tree properties of each category.

void recursiveBoards()
- function used by getBoardTree to recursively get a list of boards.

bool isChildOf(int child, int parent)
- determine if a certain board id is a child of another board.
- the parent might be several levels higher than the child.
*/

// Mark a board or multiple boards read.
function markBoardsRead($boards$unread false)
{
global $user_info$modSettings$smcFunc;

// Force $boards to be an array.
if (!is_array($boards))
$boards = array($boards);
else
$boards array_unique($boards);

// No boards, nothing to mark as read.
if (empty($boards))
return;

// Allow the user to mark a board as unread.
if ($unread)
{
// Clear out all the places where this lovely info is stored.
// !! Maybe not log_mark_read?
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_mark_read
WHERE id_board IN ({array_int:board_list})
AND id_member = {int:current_member}'
,
array(
'current_member' => $user_info['id'],
'board_list' => $boards,
)
);
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_boards
WHERE id_board IN ({array_int:board_list})
AND id_member = {int:current_member}'
,
array(
'current_member' => $user_info['id'],
'board_list' => $boards,
)
);
}
// Otherwise mark the board as read.
else
{
$markRead = array();
foreach ($boards as $board)
$markRead[] = array($modSettings['maxMsgID'], $user_info['id'], $board);

// Update log_mark_read and log_boards.
$smcFunc['db_insert']('replace',
'{db_prefix}log_mark_read',
array('id_msg' => 'int''id_member' => 'int''id_board' => 'int'),
$markRead,
array('id_board''id_member')
);

$smcFunc['db_insert']('replace',
'{db_prefix}log_boards',
array('id_msg' => 'int''id_member' => 'int''id_board' => 'int'),
$markRead,
array('id_board''id_member')
);
}

// Get rid of useless log_topics data, because log_mark_read is better for it - even if marking unread - I think so...
$result $smcFunc['db_query']('''
SELECT MIN(id_topic)
FROM {db_prefix}log_topics
WHERE id_member = {int:current_member}'
,
array(
'current_member' => $user_info['id'],
)
);
list ($lowest_topic) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

if (empty($lowest_topic))
return;

// !!!SLOW This query seems to eat it sometimes.
$result $smcFunc['db_query']('''
SELECT lt.id_topic
FROM {db_prefix}log_topics AS lt
INNER JOIN {db_prefix}topics AS t /*!40000 USE INDEX (PRIMARY) */ ON (t.id_topic = lt.id_topic
AND t.id_board IN ({array_int:board_list}))
WHERE lt.id_member = {int:current_member}
AND lt.id_topic >= {int:lowest_topic}'
,
array(
'current_member' => $user_info['id'],
'board_list' => $boards,
'lowest_topic' => $lowest_topic,
)
);
$topics = array();
while ($row $smcFunc['db_fetch_assoc']($result))
$topics[] = $row['id_topic'];
$smcFunc['db_free_result']($result);

if (!empty($topics))
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_topics
WHERE id_member = {int:current_member}
AND id_topic IN ({array_int:topic_list})'
,
array(
'current_member' => $user_info['id'],
'topic_list' => $topics,
)
);
}

// Mark one or more boards as read.
function MarkRead()
{
global $board$topic$user_info$board_info$modSettings$smcFunc;

// No Guests allowed!
is_not_guest();

checkSession('get');

if (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'all')
{
// Find all the boards this user can see.
$result $smcFunc['db_query']('''
SELECT b.id_board
FROM {db_prefix}boards AS b
WHERE {query_see_board}'
,
array(
)
);
$boards = array();
while ($row $smcFunc['db_fetch_assoc']($result))
$boards[] = $row['id_board'];
$smcFunc['db_free_result']($result);

if (!empty($boards))
markBoardsRead($boards, isset($_REQUEST['unread']));

$_SESSION['id_msg_last_visit'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit('action=forum');
}
elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')
{
// Make sure all the boards are integers!
$topics explode('-'$_REQUEST['topics']);

$markRead = array();
foreach ($topics as $id_topic)
$markRead[] = array($modSettings['maxMsgID'], $user_info['id'], (int) $id_topic);

$smcFunc['db_insert']('replace',
'{db_prefix}log_topics',
array('id_msg' => 'int''id_member' => 'int''id_topic' => 'int'),
$markRead,
array('id_member''id_topic')
);

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit('action=unreadreplies');
}

// Special case: mark a topic unread!
elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'topic')
{
// First, let's figure out what the latest message is.
$result $smcFunc['db_query']('''
SELECT id_first_msg, id_last_msg
FROM {db_prefix}topics
WHERE id_topic = {int:current_topic}'
,
array(
'current_topic' => $topic,
)
);
$topicinfo $smcFunc['db_fetch_assoc']($result);
$smcFunc['db_free_result']($result);

if (!empty($_GET['t']))
{
// If they read the whole topic, go back to the beginning.
if ($_GET['t'] >= $topicinfo['id_last_msg'])
$earlyMsg 0;
// If they want to mark the whole thing read, same.
elseif ($_GET['t'] <= $topicinfo['id_first_msg'])
$earlyMsg 0;
// Otherwise, get the latest message before the named one.
else
{
$result $smcFunc['db_query']('''
SELECT MAX(id_msg)
FROM {db_prefix}messages
WHERE id_topic = {int:current_topic}
AND id_msg >= {int:id_first_msg}
AND id_msg < {int:topic_msg_id}'
,
array(
'current_topic' => $topic,
'topic_msg_id' => (int) $_GET['t'],
'id_first_msg' => $topicinfo['id_first_msg'],
)
);
list ($earlyMsg) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);
}
}
// Marking read from first page?  That's the whole topic.
elseif ($_REQUEST['start'] == 0)
$earlyMsg 0;
else
{
$result $smcFunc['db_query']('''
SELECT id_msg
FROM {db_prefix}messages
WHERE id_topic = {int:current_topic}
ORDER BY id_msg
LIMIT ' 
. (int) $_REQUEST['start'] . ', 1',
array(
'current_topic' => $topic,
)
);
list ($earlyMsg) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

$earlyMsg--;
}

// Blam, unread!
$smcFunc['db_insert']('replace',
'{db_prefix}log_topics',
array('id_msg' => 'int''id_member' => 'int''id_topic' => 'int'),
array($earlyMsg$user_info['id'], $topic),
array('id_member''id_topic')
);

redirectexit('board=' $board '.0');
}
else
{
$categories = array();
$boards = array();

if (isset($_REQUEST['c']))
{
$_REQUEST['c'] = explode(','$_REQUEST['c']);
foreach ($_REQUEST['c'] as $c)
$categories[] = (int) $c;
}
if (isset($_REQUEST['boards']))
{
$_REQUEST['boards'] = explode(','$_REQUEST['boards']);
foreach ($_REQUEST['boards'] as $b)
$boards[] = (int) $b;
}
if (!empty($board))
$boards[] = (int) $board;

if (isset($_REQUEST['children']) && !empty($boards))
{
// They want to mark the entire tree starting with the boards specified
// The easist thing is to just get all the boards they can see, but since we've specified the top of tree we ignore some of them

$request $smcFunc['db_query']('''
SELECT b.id_board, b.id_parent
FROM {db_prefix}boards AS b
WHERE {query_see_board}
AND b.child_level > {int:no_parents}
AND b.id_board NOT IN ({array_int:board_list})
ORDER BY child_level ASC
'
,
array(
'no_parents' => 0,
'board_list' => $boards,
)
);
while ($row $smcFunc['db_fetch_assoc']($request))
if (in_array($row['id_parent'], $boards))
$boards[] = $row['id_board'];
$smcFunc['db_free_result']($request);
}

$clauses = array();
$clauseParameters = array();
if (!empty($categories))
{
$clauses[] = 'id_cat IN ({array_int:category_list})';
$clauseParameters['category_list'] = $categories;
}
if (!empty($boards))
{
$clauses[] = 'id_board IN ({array_int:board_list})';
$clauseParameters['board_list'] = $boards;
}

if (empty($clauses))
redirectexit();

$request $smcFunc['db_query']('''
SELECT b.id_board
FROM {db_prefix}boards AS b
WHERE {query_see_board}
AND b.' 
implode(' OR b.'$clauses),
array_merge($clauseParameters, array(
))
);
$boards = array();
while ($row $smcFunc['db_fetch_assoc']($request))
$boards[] = $row['id_board'];
$smcFunc['db_free_result']($request);

if (empty($boards))
redirectexit();

markBoardsRead($boards, isset($_REQUEST['unread']));

foreach ($boards as $b)
{
if (isset($_SESSION['topicseen_cache'][$b]))
$_SESSION['topicseen_cache'][$b] = array();
}

if (!isset($_REQUEST['unread']))
{
// Find all the boards this user can see.
$result $smcFunc['db_query']('''
SELECT b.id_board
FROM {db_prefix}boards AS b
WHERE b.id_parent IN ({array_int:parent_list})
AND {query_see_board}'
,
array(
'parent_list' => $boards,
)
);
if ($smcFunc['db_num_rows']($result) > 0)
{
$logBoardInserts '';
while ($row $smcFunc['db_fetch_assoc']($result))
$logBoardInserts[] = array($modSettings['maxMsgID'], $user_info['id'], $row['id_board']);

$smcFunc['db_insert']('replace',
'{db_prefix}log_boards',
array('id_msg' => 'int''id_member' => 'int''id_board' => 'int'),
$logBoardInserts,
array('id_member''id_board')
);
}
$smcFunc['db_free_result']($result);

if (empty($board))
redirectexit();
else
redirectexit('board=' $board '.0');
}
else
{
if (empty($board_info['parent']))
redirectexit();
else
redirectexit('board=' $board_info['parent'] . '.0');
}
}
}

// Get the id_member associated with the specified message.
function getMsgMemberID($messageID)
{
global $smcFunc;

// Find the topic and make sure the member still exists.
$result $smcFunc['db_query']('''
SELECT IFNULL(mem.id_member, 0)
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_msg = {int:selected_message}
LIMIT 1'
,
array(
'selected_message' => (int) $messageID,
)
);
if ($smcFunc['db_num_rows']($result) > 0)
list ($memberID) = $smcFunc['db_fetch_row']($result);
// The message doesn't even exist.
else
$memberID 0;
$smcFunc['db_free_result']($result);

return (int) $memberID;
}

// Modify the settings and position of a board.
function modifyBoard($board_id, &$boardOptions)
{
global $sourcedir$cat_tree$boards$boardList$modSettings$smcFunc$context;

// Get some basic information about all boards and categories.
getBoardTree();

// Make sure given boards and categories exist.
if (!isset($boards[$board_id]) || (isset($boardOptions['target_board']) && !isset($boards[$boardOptions['target_board']])) || (isset($boardOptions['target_category']) && !isset($cat_tree[$boardOptions['target_category']])))
fatal_lang_error('no_board');

// All things that will be updated in the database will be in $boardUpdates.
$boardUpdates = array();
$boardUpdateParameters = array();

// In case the board has to be moved
if (isset($boardOptions['move_to']))
{
// Move the board to the top of a given category.
if ($boardOptions['move_to'] == 'top')
{
$id_cat $boardOptions['target_category'];
$child_level 0;
$id_parent 0;
$after $cat_tree[$id_cat]['last_board_order'];
}

// Move the board to the bottom of a given category.
elseif ($boardOptions['move_to'] == 'bottom')
{
$id_cat $boardOptions['target_category'];
$child_level 0;
$id_parent 0;
$after 0;
foreach ($cat_tree[$id_cat]['children'] as $id_board => $dummy)
$after max($after$boards[$id_board]['order']);
}

// Make the board a child of a given board.
elseif ($boardOptions['move_to'] == 'child')
{
$id_cat $boards[$boardOptions['target_board']]['category'];
$child_level $boards[$boardOptions['target_board']]['level'] + 1;
$id_parent $boardOptions['target_board'];

// People can be creative, in many ways...
if (isChildOf($id_parent$board_id))
fatal_lang_error('mboards_parent_own_child_error'false);
elseif ($id_parent == $board_id)
fatal_lang_error('mboards_board_own_child_error'false);

$after $boards[$boardOptions['target_board']]['order'];

// Check if there are already children and (if so) get the max board order.
if (!empty($boards[$id_parent]['tree']['children']) && empty($boardOptions['move_first_child']))
foreach ($boards[$id_parent]['tree']['children'] as $childBoard_id => $dummy)
$after max($after$boards[$childBoard_id]['order']);
}

// Place a board before or after another board, on the same child level.
elseif (in_array($boardOptions['move_to'], array('before''after')))
{
$id_cat $boards[$boardOptions['target_board']]['category'];
$child_level $boards[$boardOptions['target_board']]['level'];
$id_parent $boards[$boardOptions['target_board']]['parent'];
$after $boards[$boardOptions['target_board']]['order'] - ($boardOptions['move_to'] == 'before' 0);
}

// Oops...?
else
trigger_error('modifyBoard(): The move_to value \'' $boardOptions['move_to'] . '\' is incorrect'E_USER_ERROR);

// Get a list of children of this board.
$childList = array();
recursiveBoards($childList$boards[$board_id]['tree']);

// See if there are changes that affect children.
$childUpdates = array();
$levelDiff $child_level $boards[$board_id]['level'];
if ($levelDiff != 0)
$childUpdates[] = 'child_level = child_level ' . ($levelDiff '+ ' '') . '{int:level_diff}';
if ($id_cat != $boards[$board_id]['category'])
$childUpdates[] = 'id_cat = {int:category}';

// Fix the children of this board.
if (!empty($childList) && !empty($childUpdates))
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET ' 
implode(',
'
$childUpdates) . '
WHERE id_board IN ({array_int:board_list})'
,
array(
'board_list' => $childList,
'category' => $id_cat,
'level_diff' => $levelDiff,
)
);

// Make some room for this spot.
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET board_order = board_order + {int:new_order}
WHERE board_order > {int:insert_after}
AND id_board != {int:selected_board}'
,
array(
'insert_after' => $after,
'selected_board' => $board_id,
'new_order' => count($childList),
)
);

$boardUpdates[] = 'id_cat = {int:id_cat}';
$boardUpdates[] = 'id_parent = {int:id_parent}';
$boardUpdates[] = 'child_level = {int:child_level}';
$boardUpdates[] = 'board_order = {int:board_order}';
$boardUpdateParameters += array(
'id_cat' => $id_cat,
'id_parent' => $id_parent,
'child_level' => $child_level,
'board_order' => $after 1,
);
}

// This setting is a little twisted in the database...
if (isset($boardOptions['posts_count']))
{
$boardUpdates[] = 'count_posts = {int:count_posts}';
$boardUpdateParameters['count_posts'] = $boardOptions['posts_count'] ? 1;
}

// Set the theme for this board.
if (isset($boardOptions['board_theme']))
{
$boardUpdates[] = 'id_theme = {int:id_theme}';
$boardUpdateParameters['id_theme'] = (int) $boardOptions['board_theme'];
}

// Should the board theme override the user preferred theme?
if (isset($boardOptions['override_theme']))
{
$boardUpdates[] = 'override_theme = {int:override_theme}';
$boardUpdateParameters['override_theme'] = $boardOptions['override_theme'] ? 0;
}
// --- Begin modification - SMFBlog ---
// Is this board a blog?
if (isset($boardOptions['is_blog']))
{
// We'll need to set the "is_blog" value, depending on what the user chose.
$boardUpdates[] = 'is_blog = ' . ($boardOptions['is_blog'] ? '1' '0');
// Is it actually a blog? If it is, we need to generate an "alias" for it.
// Only do this if a board name was passed (otherwise, what can we do?).
if ($boardOptions['is_blog'] && isset($boardOptions['board_name']))
{
// Remove any non-alphanumeric characters
$alias strtolower(preg_replace('/[^A-Za-z0-9 ]/'''$boardOptions['board_name']));
// Replace any spaces with dashes
$alias str_replace(' ''-'$alias);

// Is this alias ambiguous (is it in use by something else?)
$result $smcFunc['db_query'](''"
SELECT 
COUNT(ID_BOARD)
FROM {db_prefix}boards
WHERE blog_alias = '
{$alias}'");
list($temp_count) = $smcFunc['db_fetch_row']($result);
$smcFunc['db_free_result']($result);

// It is? Add the board ID to the end.
if ($temp_count 0)
$alias .= '_' $board_id;

// Add this as an update
$boardUpdates[] = 'blog_alias = \'' $alias '\'';
}
}
// --- End modification ---


// Who's allowed to access this board.
if (isset($boardOptions['access_groups']))
{
$boardUpdates[] = 'member_groups = {string:member_groups}';
$boardUpdateParameters['member_groups'] = implode(','$boardOptions['access_groups']);
}

if (isset($boardOptions['board_name']))
{
$boardUpdates[] = 'name = {string:board_name}';
$boardUpdateParameters['board_name'] = $boardOptions['board_name'];
}

if (isset($boardOptions['board_description']))
{
$boardUpdates[] = 'description = {string:board_description}';
$boardUpdateParameters['board_description'] = $boardOptions['board_description'];
}

if (isset($boardOptions['profile']))
{
$boardUpdates[] = 'id_profile = {int:profile}';
$boardUpdateParameters['profile'] = (int) $boardOptions['profile'];
}

if (isset($boardOptions['redirect']))
{
$boardUpdates[] = 'redirect = {string:redirect}';
$boardUpdateParameters['redirect'] = $boardOptions['redirect'];
}

if (isset($boardOptions['num_posts']))
{
$boardUpdates[] = 'num_posts = {int:num_posts}';
$boardUpdateParameters['num_posts'] = (int) $boardOptions['num_posts'];
}

// Do the updates (if any).
if (!empty($boardUpdates))
$request $smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET
implode(',
'
$boardUpdates) . '
WHERE id_board = {int:selected_board}'
,
array_merge($boardUpdateParameters, array(
'selected_board' => $board_id,
))
);

// Set moderators of this board.
if (isset($boardOptions['moderators']) || isset($boardOptions['moderator_string']))
{
// Reset current moderators for this board - if there are any!
$smcFunc['db_query']('''
DELETE FROM {db_prefix}moderators
WHERE id_board = {int:board_list}'
,
array(
'board_list' => $board_id,
)
);

// Validate and get the IDs of the new moderators.
if (isset($boardOptions['moderator_string']) && trim($boardOptions['moderator_string']) != '')
{
// Divvy out the usernames, remove extra space.
$moderator_string strtr($smcFunc['htmlspecialchars']($boardOptions['moderator_string'], ENT_QUOTES), array('&quot;' => '"'));
preg_match_all('~"([^"]+)"~'$moderator_string$matches);
$moderators array_merge($matches[1], explode(','preg_replace('~"[^"]+"~'''$moderator_string)));
for ($k 0$n count($moderators); $k $n$k++)
{
$moderators[$k] = trim($moderators[$k]);

if (strlen($moderators[$k]) == 0)
unset($moderators[$k]);
}

// Find all the id_member's for the member_name's in the list.
if (empty($boardOptions['moderators']))
$boardOptions['moderators'] = array();
if (!empty($moderators))
{
$request $smcFunc['db_query']('''
SELECT id_member
FROM {db_prefix}members
WHERE member_name IN ({array_string:moderator_list}) OR real_name IN ({array_string:moderator_list})
LIMIT ' 
count($moderators),
array(
'moderator_list' => $moderators,
)
);
while ($row $smcFunc['db_fetch_assoc']($request))
$boardOptions['moderators'][] = $row['id_member'];
$smcFunc['db_free_result']($request);
}
}

// Add the moderators to the board.
if (!empty($boardOptions['moderators']))
{
$inserts = array();
foreach ($boardOptions['moderators'] as $moderator)
$inserts[] = array($board_id$moderator);

$smcFunc['db_insert']('insert',
'{db_prefix}moderators',
array('id_board' => 'int''id_member' => 'int'),
$inserts,
array('id_board''id_member')
);
}

// Note that caches can now be wrong!
updateSettings(array('settings_updated' => time()));
}

if (isset($boardOptions['move_to']))
reorderBoards();

// Update the pretty board URLs
if (isset($boardOptions['pretty_url']))
{
require_once($sourcedir '/Subs-PrettyUrls.php');

// Get the current board URLs
$pretty_board_lookup unserialize($modSettings['pretty_board_lookup']);
// Generate a new one
$pretty_url pretty_generate_url($boardOptions['pretty_url']);

// Can't be empty, can't be a number and can't be the same as another
if ($pretty_url == '' || is_numeric($pretty_url) || (isset($pretty_board_lookup[$pretty_url]) && $pretty_board_lookup[$pretty_url] != $board_id))
// Add suffix '-board_id' to the pretty url
$pretty_url .= ($pretty_url != '' '-' 'b') . $board_id;

// Save to the database
$context['pretty']['board_urls'][$board_id] = $pretty_url;
$pretty_board_lookup[$pretty_url] = $board_id;
updateSettings(array(
'pretty_board_lookup' => serialize($pretty_board_lookup),
'pretty_board_urls' => serialize($context['pretty']['board_urls']),
));

// Count that query!
$context['pretty']['db_count']++;
}

clean_cache('data');

if (empty($boardOptions['dont_log']))
logAction('edit_board', array('board' => $board_id), 'admin');
}

// Create a new board and set its properties and position.
function createBoard($boardOptions)
{
global $boards$modSettings$smcFunc;

// Trigger an error if one of the required values is not set.
if (!isset($boardOptions['board_name']) || trim($boardOptions['board_name']) == '' || !isset($boardOptions['move_to']) || !isset($boardOptions['target_category']))
trigger_error('createBoard(): One or more of the required options is not set'E_USER_ERROR);

if (in_array($boardOptions['move_to'], array('child''before''after')) && !isset($boardOptions['target_board']))
trigger_error('createBoard(): Target board is not set'E_USER_ERROR);

// Set every optional value to its default value.
$boardOptions += array(
'posts_count' => true,
'override_theme' => false,

// --- Begin modification - SMFBlog ---
'is_blog' => false,
// --- End modification ---
'board_theme' => 0,
'access_groups' => array(),
'board_description' => '',
'profile' => 1,
'moderators' => '',
'inherit_permissions' => true,
'dont_log' => true,
);

// Insert a board, the settings are dealt with later.
$smcFunc['db_insert']('',
'{db_prefix}boards',
array(
'id_cat' => 'int''name' => 'string-255''description' => 'string''board_order' => 'int',
'member_groups' => 'string''redirect' => 'string',
),
array(
$boardOptions['target_category'], $boardOptions['board_name'] , ''0,
'-1,0''',
),
array('id_board')
);
$board_id $smcFunc['db_insert_id']('{db_prefix}boards''id_board');

if (empty($board_id))
return 0;

if (!isset($boardOptions['pretty_url']))
$boardOptions['pretty_url'] = $boardOptions['board_name'];

// Change the board according to the given specifications.
modifyBoard($board_id$boardOptions);

// Do we want the parent permissions to be inherited?
if ($boardOptions['inherit_permissions'])
{
getBoardTree();

if (!empty($boards[$board_id]['parent']))
{
$request $smcFunc['db_query']('''
SELECT id_profile
FROM {db_prefix}boards
WHERE id_board = {int:board_parent}
LIMIT 1'
,
array(
'board_parent' => (int) $boards[$board_id]['parent'],
)
);
list ($boardOptions['profile']) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET id_profile = {int:new_profile}
WHERE id_board = {int:current_board}'
,
array(
'new_profile' => $boardOptions['profile'],
'current_board' => $board_id,
)
);
}
}

// Clean the data cache.
clean_cache('data');

// Created it.
logAction('add_board', array('board' => $board_id), 'admin');

// Here you are, a new board, ready to be spammed.
return $board_id;
}

// Remove one or more boards.
function deleteBoards($boards_to_remove$moveChildrenTo null)
{
global $sourcedir$boards$smcFunc;

// No boards to delete? Return!
if (empty($boards_to_remove))
return;

getBoardTree();

// If $moveChildrenTo is set to null, include the children in the removal.
if ($moveChildrenTo === null)
{
// Get a list of the child boards that will also be removed.
$child_boards_to_remove = array();
foreach ($boards_to_remove as $board_to_remove)
recursiveBoards($child_boards_to_remove$boards[$board_to_remove]['tree']);

// Merge the children with their parents.
if (!empty($child_boards_to_remove))
$boards_to_remove array_unique(array_merge($boards_to_remove$child_boards_to_remove));
}
// Move the children to a safe home.
else
{
foreach ($boards_to_remove as $id_board)
{
// !!! Separate category?
if ($moveChildrenTo === 0)
fixChildren($id_board00);
else
fixChildren($id_board$boards[$moveChildrenTo]['level'] + 1$moveChildrenTo);
}
}

// Delete ALL topics in the selected boards (done first so topics can't be marooned.)
$request $smcFunc['db_query']('''
SELECT id_topic
FROM {db_prefix}topics
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);
$topics = array();
while ($row $smcFunc['db_fetch_assoc']($request))
$topics[] = $row['id_topic'];
$smcFunc['db_free_result']($request);

require_once($sourcedir '/RemoveTopic.php');
removeTopics($topicsfalse);

// Delete the board's logs.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_mark_read
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_boards
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);
$smcFunc['db_query']('''
DELETE FROM {db_prefix}log_notify
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete this board's moderators.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}moderators
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete any extra events in the calendar.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}calendar
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete any message icons that only appear on these boards.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}message_icons
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Delete the boards.
$smcFunc['db_query']('''
DELETE FROM {db_prefix}boards
WHERE id_board IN ({array_int:boards_to_remove})'
,
array(
'boards_to_remove' => $boards_to_remove,
)
);

// Latest message/topic might not be there anymore.
updateStats('message');
updateStats('topic');
updateSettings(array(
'calendar_updated' => time(),
));

// Plus reset the cache to stop people getting odd results.
updateSettings(array('settings_updated' => time()));

// Clean the cache as well.
clean_cache('data');

// Let's do some serious logging.
foreach ($boards_to_remove as $id_board)
logAction('delete_board', array('boardname' => $boards[$id_board]['name']), 'admin');

reorderBoards();
}

// Put all boards in the right order.
function reorderBoards()
{
global $cat_tree$boardList$boards$smcFunc;

getBoardTree();

// Set the board order for each category.
$board_order 0;
foreach ($cat_tree as $catID => $dummy)
{
foreach ($boardList[$catID] as $boardID)
if ($boards[$boardID]['order'] != ++$board_order)
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET board_order = {int:new_order}
WHERE id_board = {int:selected_board}'
,
array(
'new_order' => $board_order,
'selected_board' => $boardID,
)
);
}

// Sort the records of the boards table on the board_order value.
$smcFunc['db_query']('alter_table_boards''
ALTER TABLE {db_prefix}boards
ORDER BY board_order'
,
array(
'db_error_skip' => true,
)
);
}

// Fixes the children of a board by setting their child_levels to new values.
function fixChildren($parent$newLevel$newParent)
{
global $smcFunc;

// Grab all children of $parent...
$result $smcFunc['db_query']('''
SELECT id_board
FROM {db_prefix}boards
WHERE id_parent = {int:parent_board}'
,
array(
'parent_board' => $parent,
)
);
$children = array();
while ($row $smcFunc['db_fetch_assoc']($result))
$children[] = $row['id_board'];
$smcFunc['db_free_result']($result);

// ...and set it to a new parent and child_level.
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET id_parent = {int:new_parent}, child_level = {int:new_child_level}
WHERE id_parent = {int:parent_board}'
,
array(
'new_parent' => $newParent,
'new_child_level' => $newLevel,
'parent_board' => $parent,
)
);

// Recursively fix the children of the children.
foreach ($children as $child)
fixChildren($child$newLevel 1$child);
}

// Load a lot of useful information regarding the boards and categories.
function getBoardTree()
{
global $cat_tree$boards$boardList$txt$modSettings$smcFunc;

// Getting all the board and category information you'd ever wanted.
$request $smcFunc['db_query']('''
SELECT
IFNULL(b.id_board, 0) AS id_board, b.id_parent, b.name AS board_name, b.description, b.child_level,
b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.is_blog, b.id_profile, b.redirect,
b.num_posts, b.num_topics, c.id_cat, c.name AS cat_name, c.cat_order, c.can_collapse
FROM {db_prefix}categories AS c
LEFT JOIN {db_prefix}boards AS b ON (b.id_cat = c.id_cat)
ORDER BY c.cat_order, b.child_level, b.board_order'
,
array(
)
);
$cat_tree = array();
$boards = array();
$last_board_order 0;
while ($row $smcFunc['db_fetch_assoc']($request))
{
if (!isset($cat_tree[$row['id_cat']]))
{
$cat_tree[$row['id_cat']] = array(
'node' => array(
'id' => $row['id_cat'],
'name' => $row['cat_name'],
'order' => $row['cat_order'],
'can_collapse' => $row['can_collapse']
),
'is_first' => empty($cat_tree),
'last_board_order' => $last_board_order,
'children' => array()
);
$prevBoard 0;
$curLevel 0;
}

if (!empty($row['id_board']))
{
if ($row['child_level'] != $curLevel)
$prevBoard 0;

$boards[$row['id_board']] = array(
'id' => $row['id_board'],
'category' => $row['id_cat'],
'parent' => $row['id_parent'],
'level' => $row['child_level'],
'order' => $row['board_order'],
'name' => $row['board_name'],
'member_groups' => explode(','$row['member_groups']),
'description' => $row['description'],
'count_posts' => empty($row['count_posts']),
'posts' => $row['num_posts'],
'topics' => $row['num_topics'],
'theme' => $row['id_theme'],
'override_theme' => $row['override_theme'],

// --- Begin modification - SMFBlog ---
'is_blog' => $row['is_blog'],
// --- End modification ---
'profile' => $row['id_profile'],
'redirect' => $row['redirect'],
'prev_board' => $prevBoard
);
$prevBoard $row['id_board'];
$last_board_order $row['board_order'];

if (empty($row['child_level']))
{
$cat_tree[$row['id_cat']]['children'][$row['id_board']] = array(
'node' => &$boards[$row['id_board']],
'is_first' => empty($cat_tree[$row['id_cat']]['children']),
'children' => array()
);
$boards[$row['id_board']]['tree'] = &$cat_tree[$row['id_cat']]['children'][$row['id_board']];
}
else
{
// Parent doesn't exist!
if (!isset($boards[$row['id_parent']]['tree']))
fatal_lang_error('no_valid_parent'false, array($row['board_name']));

// Wrong childlevel...we can silently fix this...
if ($boards[$row['id_parent']]['tree']['node']['level'] != $row['child_level'] - 1)
$smcFunc['db_query']('''
UPDATE {db_prefix}boards
SET child_level = {int:new_child_level}
WHERE id_board = {int:selected_board}'
,
array(
'new_child_level' => $boards[$row['id_parent']]['tree']['node']['level'] + 1,
'selected_board' => $row['id_board'],
)
);

$boards[$row['id_parent']]['tree']['children'][$row['id_board']] = array(
'node' => &$boards[$row['id_board']],
'is_first' => empty($boards[$row['id_parent']]['tree']['children']),
'children' => array()
);
$boards[$row['id_board']]['tree'] = &$boards[$row['id_parent']]['tree']['children'][$row['id_board']];
}
}
}
$smcFunc['db_free_result']($request);

// Get a list of all the boards in each category (using recursion).
$boardList = array();
foreach ($cat_tree as $catID => $node)
{
$boardList[$catID] = array();
recursiveBoards($boardList[$catID], $node);
}
}

// Recursively get a list of boards.
function recursiveBoards(&$_boardList, &$_tree)
{
if (empty($_tree['children']))
return;

foreach ($_tree['children'] as $id => $node)
{
$_boardList[] = $id;
recursiveBoards($_boardList$node);
}
}

// Returns whether the child board id is actually a child of the parent (recursive).
function isChildOf($child$parent)
{
global $boards;

if (empty($boards[$child]['parent']))
return false;

if ($boards[$child]['parent'] == $parent)
return true;

return isChildOf($boards[$child]['parent'], $parent);
}

?>


If you're curious, the URL of my forum is here: https://letschatlove.com/ (https://letschatlove.com/) (it's still relatively new. :))

All help greatly appreciated.
Title: Re: SMFBlog
Post by: vbgamer45 on April 09, 2018, 06:31:57 PM
I would not suggest this mod for a blog. I would check out  this one instead https://github.com/PortaMx/PmxBlog-1.1
Title: Re: SMFBlog
Post by: brettuk on April 09, 2018, 06:42:54 PM
OK, I shall give that one a try too, however, this doesn't fix my issue. :)
Title: Re: SMFBlog
Post by: Shambles on April 10, 2018, 02:18:09 AM
Quote from: brettukthe URL of my forum ...
Still no proper SMF Copyright on your website I see.
Title: Re: SMFBlog
Post by: brettuk on April 10, 2018, 04:10:32 AM
Quote from: Shambles on April 10, 2018, 02:18:09 AM
Quote from: brettukthe URL of my forum ...
Still no proper SMF Copyright on your website I see.

Hey, I'm unsure in regards to which site you're looking at, as I have essentially scrapped (and redirected) the old site that I was working on.

It's very new (couple days old), but the site I am working on (and my only SMF site) is now contained in my footer.

Happy to include a link back to SMF, it's in the footer - hope this is ok, re-worded it slightly.
Title: Re: SMFBlog
Post by: brettuk on April 11, 2018, 10:10:12 AM
Bump - I'm still actively trying to find a solution for this, I have exhausted my ideas.

Anyone have any ideas? I have tried uninstalling, nothing.

Field 'blog_alias' doesn't have a default value
File: /home/hr8ujb1r5twj/public_html/Sources/Subs-Boards.php
Line: 843
Title: Re: SMFBlog
Post by: vbgamer45 on April 11, 2018, 11:07:19 AM
in phpmyadmin change the blog_alias column in the boards table to have a default value or drop the column
Title: Re: SMFBlog
Post by: Kindred on April 11, 2018, 11:41:25 AM
Is that a database issue or a code issue, vbgamer?

If it's a database issue (which seems to be reported as a code issue) then the real issue if the server's version of mySQL. the missing default is a known issue with several releases in mySQL that they eventually fixed.
Title: Re: SMFBlog
Post by: brettuk on April 11, 2018, 02:02:12 PM
Quote from: vbgamer45 on April 11, 2018, 11:07:19 AM
in phpmyadmin change the blog_alias column in the boards table to have a default value or drop the column

This works! I  ended up putting in a default value.

Thank you very much (big-hug.gif)  ;D
Title: Re: SMFBlog
Post by: vbgamer45 on April 11, 2018, 02:03:07 PM
Glad to help.
Title: Re: SMFBlog
Post by: Sverige on July 22, 2019, 05:52:20 AM
Sorry for bumping this thread!

im getting an error:

Field 'blog_alias' doesn't have a default value
File: /customers/5/e/d/kompiszone.se/httpd.www/Sources/Subs-Boards.php
Line: 816

when im trying to ad the Category!

im on 2.0.15
Title: Re: SMFBlog
Post by: Sverige on July 22, 2019, 06:45:39 AM
Quote from: brettuk on April 11, 2018, 02:02:12 PM
Quote from: vbgamer45 on April 11, 2018, 11:07:19 AM
in phpmyadmin change the blog_alias column in the boards table to have a default value or drop the column

This works! I  ended up putting in a default value.

Thank you very much (big-hug.gif)  ;D

i have the same problem, can you please tell me how you fixed it? where did you put what :)?
Title: Re: SMFBlog
Post by: GigaWatt on July 22, 2019, 07:51:58 AM
You have to do what vbgamer suggested, i.e. do manual edits in the database.
Title: Re: SMFBlog
Post by: Kindred on July 22, 2019, 09:48:47 AM
in other words... assign a default value to that column in the database
Title: Re: SMFBlog
Post by: Sverige on July 24, 2019, 03:59:19 AM
what is a "default value" and where can i put it?

i appreciate the help
Title: Re: SMFBlog
Post by: Sverige on July 24, 2019, 05:56:36 AM
Quote from: Sverige on July 24, 2019, 03:59:19 AM
what is a "default value" and where can i put it?

i appreciate the help

i put null and it works again.
phpmyadmin - finalboards - blog_alias - null
Title: Re: SMFBlog
Post by: Sverige on August 07, 2019, 04:47:44 PM
how do i purches this blog? so the links disapere?