Advertisement:

Author Topic: SMFBlog  (Read 181471 times)

Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 331
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
SMFBlog
« on: May 11, 2007, 08:02:48 AM »
Link to Mod

SMFBlog: A (very) simple SMF blogging system


Introduction
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.


Warning!
This mod is still beta. In short, this means that it may still have bugs in it. Please report any bugs you find, no matter how trivial (I even consider things like incorrect grammar in code comments as a bug :P ).

Installation
Simply install the SMFBlog package :D
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 this board as a blog?" option. You may add some new boards for this purpose :)




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




Any topics in this board will appear in the blog




Customisation
Most of the CSS styles used by this mod are in the Themes/default/blog.css file. To change how stuff in your blog is displayed, edit the styles in this file. Additionally, if you'd like to customise more, this blog uses the Themes/default/Blog.template.php template.



Languages Supported
    English
Before you request a crazy feature addition...
... please remember that this is a simple blog. I will not be adding any complex features to it, instead opting to keep it as simple as possible :) .

Changelog
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!).
« Last Edit: March 08, 2010, 07:42:43 PM by vbgamer45 »
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline spottedhog

  • Sr. Member
  • ****
  • Posts: 782
  • Gender: Male
Re: SMFBlog
« Reply #1 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..


Offline christicehurst

  • Full Member
  • ***
  • Posts: 581
  • Gender: Male
  • Brisbane Lions United Admin
    • CJT Online
Re: SMFBlog
« Reply #2 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
www.brisbanelionsunited.com - A forum for everyone!

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: SMFBlog
« Reply #3 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?
« Last Edit: May 11, 2007, 12:09:05 PM by Daniel15 »
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Offline Exochat

  • Semi-Newbie
  • *
  • Posts: 77
Re: SMFBlog
« Reply #4 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.

Offline RoarinRow

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
  • Ride my AV!
    • Avalanche Style
Re: SMFBlog
« Reply #5 on: May 11, 2007, 02:29:12 PM »
Very cool!  Dang, I just installed Wordpress last week too.  Doh!

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: SMFBlog
« Reply #6 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
Quote
Parse 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
« Last Edit: May 11, 2007, 05:12:12 PM by DrDom »

Offline AussieBill

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Re: SMFBlog
« Reply #7 on: May 11, 2007, 05:55:59 PM »
That's caused by a typo in the installScript.php - missing curly brackets.

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

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

I did that and it worked fine :)

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: SMFBlog
« Reply #8 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.

Offline AussieBill

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Re: SMFBlog
« Reply #9 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 ;)

Offline samozin

  • Jr. Member
  • **
  • Posts: 389
    • www.caffeh.com
Re: SMFBlog
« Reply #10 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

Offline cblaber

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,271
  • Gender: Male
    • cmblaber on LinkedIn
Re: SMFBlog
« Reply #11 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
Colin Blaber
Former Customize & Support Team Member

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: SMFBlog
« Reply #12 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.

Quote
but 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).

Quote
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.
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 :)

Quote
u 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...)
« Last Edit: May 11, 2007, 10:57:10 PM by Daniel15 »
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Offline christicehurst

  • Full Member
  • ***
  • Posts: 581
  • Gender: Male
  • Brisbane Lions United Admin
    • CJT Online
Re: SMFBlog
« Reply #13 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 ]  
 
www.brisbanelionsunited.com - A forum for everyone!

Offline sharks

  • Sr. Member
  • ****
  • Posts: 891
  • Gender: Male
  • There's always a way.
Re: SMFBlog
« Reply #14 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!
« Last Edit: May 12, 2007, 06:01:07 AM by sharks »
SMF 2.0 Theme Color Editor
http://www.colorizeit.com/browse/24/smf-20-themes.html

SMF Package Parser to view all edits made by any modification package:
http://resourcez.biz/PackageParser/

Firefox is the best browser for SMF!
http://www.mozilla.com/en-US/firefox/fx/

Offline wilsy

  • Jr. Member
  • **
  • Posts: 220
    • RewindBikers
Re: SMFBlog
« Reply #15 on: May 12, 2007, 06:58:58 AM »
Code: [Select]
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.

Busy RewindBikers offered to Good Home! 1000+ members, loads of mods, SMF Gallery PRO, TinyPortal installed with great use of blocks, ultimate profiles, PAID SUBSCRIPTIONS (works flawlessly), great theme, 1,500 posts per month - PM or email me if interested.

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: SMFBlog
« Reply #16 on: May 12, 2007, 08:06:29 AM »
christicehurst, I'll look into your problem when I have some free time :).

Quote
Thank 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.

Quote
Would 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.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: SMFBlog
« Reply #17 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
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Offline wilsy

  • Jr. Member
  • **
  • Posts: 220
    • RewindBikers
Re: SMFBlog
« Reply #18 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: -

Code: [Select]
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.

Busy RewindBikers offered to Good Home! 1000+ members, loads of mods, SMF Gallery PRO, TinyPortal installed with great use of blocks, ultimate profiles, PAID SUBSCRIPTIONS (works flawlessly), great theme, 1,500 posts per month - PM or email me if interested.

Offline DrDom

  • Semi-Newbie
  • *
  • Posts: 53
Re: SMFBlog
« Reply #19 on: May 12, 2007, 09:47:26 AM »

Quote
Quote
but 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