PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2007-04-17 02:15:55

soonotes
Member
Registered: 2006-09-21
Posts: 112

PBB User Blogs 1.2

Code:

##
##
##        Mod title:  User Blogs 
##
##      Mod version:  1.2 
##   Works on PunBB:  1.2.*
##     Release date:  2007-04-16
##           Author:  TinyTim (tinytim@soonotes.com)
##
##      Description:  This mod alows users to create personal blogs. 
##
##   Affected files:  index.php
##                    viewtopic.php
##                    profile.php
##                    userlist.php
##                    include/functions.php
##                    lang/English/profile.php
##                    lang/English/common.php
##                    lang/English/index.php
##                    profile.php
##                    style/imports/base.css
##                    style/*.css
##
##       Affects DB:  Yes
##
##            Notes:  This mod creates a blog system for users of your site.
##                    Users can create and manage their own blog.
##                    RSS feeds are included on a per user, per site and 
##                    per category basis. 
##                    Admins have full control over categories, can assign mods
##                    and posting permissions on a per category basis.
##
## Additional Notes:  This mod uses a side block for navigation and has two sets
##                    of files included. One set includes the side block as part of
##                    the blog system. The second set uses a side block in the include/user
##                    directory and will integrate with portal style sites.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##

Download here

Offline

 

#2 2007-04-17 02:27:17

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

This mod is fully functional now and includes RSS feeds. It also includes two sets of files. One set for a standard template and one set for a portal style templae.

Upgrading from the previous beta just requires over writing existing files and uploading two new ones, no editing of the core files are required.

## CHANGELOG:
## 1.2 : Added rss feeds
##       Added support for portal style systems
##       Fixed a few minor validation errors
##       Fixed issues with error messages 'breaking' a sites layout           
##       Full language file support
##       Added silent edit for admins and mods
##       Fixed issue with IP addresses not being inserted into the DB

Offline

 

#3 2007-04-17 15:49:10

liquidat0r
Member
From: London
Registered: 2006-10-12
Posts: 85
Website

Re: PBB User Blogs 1.2

This looks awesome but: Screenshot/Demo?

Last edited by liquidat0r (2007-04-17 15:49:24)


http://liquidat0r.com/logo.png

Offline

 

#4 2007-04-17 16:56:28

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

You can click on my signature to see it in action or go to my test site and login with one of the names and check it out. If you login to the test site you can see the admin plugin also. Usernames are listed at the top of the page when you click on the link.

Offline

 

#5 2007-04-17 20:26:13

liquidat0r
Member
From: London
Registered: 2006-10-12
Posts: 85
Website

Re: PBB User Blogs 1.2

Cool, thanks. I didn't realise that link was to an external site. I assumed it was linking to this topic.


http://liquidat0r.com/logo.png

Offline

 

#6 2007-04-17 21:25:56

ThieryF
New member
Registered: 2007-04-14
Posts: 2

Re: PBB User Blogs 1.2

Sorry for my english !!! I'm French.

In the file lang/English/blog.php, there is twice: ' No Comment blog'. Is it an error?

Otherwise, it is great what you made. Thank you very much.

Offline

 

#7 2007-04-17 21:43:45

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Yes, it's an error. Thanks for pointing it out. Just leave the one you prefer.

If you are doing a french version of the lang file let me know and we'll add it to the release.

Offline

 

#8 2007-04-17 21:58:44

ThieryF
New member
Registered: 2007-04-14
Posts: 2

Re: PBB User Blogs 1.2

I prefer the second.

Here is the file in French, but it is maybe completely well translated.

Code:

<?php

// Language definitions used in post.php and edit.php
$lang_blog = array(

// Post validation stuff (many are similiar to those in edit.php)
'No category'            =>    'Vous devez choisir une catégorie pour ce blog.',
'No subject'            =>    'Vous devez saisir un sujet',
'Too long subject'        =>    'Le sujet ne peut contenir plus de 70 caractères.',
'No message'            =>    'Vous devez saisir un message.',
'Too long message'        =>    'Les messages ne peuvent excéder 65535 caractères de long (64 ko).',
'No Comment blog'        =>  'Vous n\'avez pas la permission de faire un commentaire sur ce blog',
'No Blog'                =>  'Il n\'y a aucun blog de créé pour cet utilisateur.
',
'No Blog Cat'            =>  'Il n\'y a aucun blog de créé pour cette catégorie. ',
'No Blog redirect'        =>    'Vous n\'avez pas encore créé de blog. Redirection &hellip;',

//Headings
'Blogs'                    =>  'Blogs',
'Comments'                =>  'Commentaires',
'Bloggers'                =>  'Bloggers',
'Latest'                =>  'Derniers blogs',
'Categories'            =>  'Catégories',
'Most viewed'            =>  'Les blogs les plus lus',
'Most commented'        =>  'Les blogs les plus commentés',
'Create'                =>  'Créer un nouveau billet',
'Blogger list'            =>  'Liste des bloggers',
'Blogs menu'            =>  'Menu Blogs',
'User blogs'            =>  'Blogs',
'View mine'                =>  'Voir mes blogs',
'Latest bloggers'        =>  'Derniers Bloggers',
'Heading'                =>  'Titre',

//Comments
'No Comments'            =>  'Ne pas autoriser les commentaires',
'User Comments'            =>  'Autoriser les commentaires',
'Note Comments'            =>  '*L\'administrateur peut rejeter des commentaires pour cette catégorie*',
'Link separator'        =>  '&nbsp;-&nbsp;',
'Choose category'        =>  'Choisir une catégorie',
'Category'                =>  'Catégorie',
'Write comment legend'    =>  'Ecrivez votre commentaire et envoyez.',
'Write blog legend'        =>  'Composez votre blog et envoyez',
// Posting
'Post errors'            =>    'Erreurs',
'Post errors info'        =>    'Les erreurs suivantes doivent être corrigées pour que le message puisse être envoyé&nbsp;:',
'Post preview'            =>    'Prévisualisation du message',
'Guest name'            =>    'Nom',    // For guests (instead of Username)
'Post redirect'            =>    'Message envoyé. Redirection &hellip;',
'Post a reply'            =>    'Écrire une réponse',
'Post new blog'            =>    'Lancer un nouveau blog',
'Post new comment'        =>    'Laissez un commentaire pour ce blog',
'Topic review'            =>    'Résumé de la discussion (messages les plus récents en premier',
'Flood start'            =>    'Au moins',
'flood end'                =>    'secondes doivent s\'écouler entre deux messages. Merci de patienter quelques instants et essayer à nouveau.',
'Preview'                =>    'Prévisualisation',    // submit button to preview message

// Edit blog
'Edit post legend'        =>    'Modifier le message et valider les changements',
'Silent edit'            =>    'Modification invisible (la mention "Dernière modification par ..." ne s\'affichera pas)',
'Edit post'                =>    'Modifier le message',
'Edit redirect'            =>    'Message mis à jour. Redirection &hellip;',

//Delete blog
'Delete post'            =>    'Supprimer blog',
'Warning'                =>    'Attention&nbsp;: S\'il s\'agit du premier message de ce blog, celle-ci et les commentaires seront entièrement supprimés&nbsp;!',
'Delete'                =>    'Supprimer',    // The submit button
'Post del redirect'        =>    'Commentaire supprimé. Redirection &hellip;',
'Topic del redirect'    =>    'Blog supprimé. Redirection &hellip;'

);

Last edited by ThieryF (2007-04-17 22:01:58)

Offline

 

#9 2007-04-19 18:45:59

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: PBB User Blogs 1.2

soonotes, i changed it.......

http://bunpai.com
hehe

Q


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#10 2007-04-19 20:57:03

naitkris
Member
From: Cork, Ireland
Registered: 2007-01-27
Posts: 77

Re: PBB User Blogs 1.2

soonotes - great work.

this mod has really come on a lot.

Offline

 

#11 2007-04-20 20:06:05

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Looks good quaker.

Thanks naitkris, realized a couple of more things to do though. wink Will be adding option to move to different category and to 'close' for comments. Also still have a couple of hardcoded language options to change and will make the Admin Plugin use the lang file also.

I would also appreciate if anyone using this on their site would add a link here under the category Blogs sites.

Offline

 

#12 2007-05-03 06:47:27

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Not sure what you're looking for. By default you get the titles for the latest 10 in the side block. You also have a preview of the latest 5 on the main blog page. Were you looking to show the latest 10 blogs in full on the main page?

Offline

 

#13 2007-05-13 05:38:54

doki
Member
Registered: 2007-04-30
Posts: 225

Re: PBB User Blogs 1.2

Hi soonotes,

What i mean is how to display let say latest 5 topics on the other pages aside from blog main page... Is this possible?

I also found a bug... If you put a comma on the blog category title. You cannot post on that category... The error is "unable to update.....". the temporary fix is to remove the comma on the category title. I hope this error would be fixed.

By the way... great mod!

Offline

 

#14 2007-05-15 08:01:52

ropli
Member
Registered: 2007-01-11
Posts: 30

Re: PBB User Blogs 1.2

Nice addon, but there is some features I'm missing that might not be so hard to add (if someone could help me that would be great!)

- 5 Latest blogs on profile (listing link and name of blog post).
- 5 / 10 Last blogs for extern.
- Number of blog comments on profile stats.

Offline

 

#15 2007-05-15 21:01:04

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Working on the extern
http://www.soonotes.com/bbs/extern.php? … &cid=2

I'll upload that later once I test it out. Number of comments would be pretty minor to do as the info is already stored in the db. I'll have to take a look at adding to profile.

Doki, I'm looking into the comma issue and I will get you some code to add for showing latest anywhere you want.

Offline

 

#16 2007-05-15 21:07:43

doki
Member
Registered: 2007-04-30
Posts: 225

Re: PBB User Blogs 1.2

Thanks soonote... I'll wait for that code and fix... smile

Offline

 

#17 2007-05-15 22:30:07

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Added the extern info. Just download/open extern.txt and follow the instructions.

This adds options to extern.php to show latest blogs, latest blogs by user and/or by category

Offline

 

#18 2007-05-15 22:37:57

doki
Member
Registered: 2007-04-30
Posts: 225

Re: PBB User Blogs 1.2

Thanks soonotes... I'll Try it out... smile

Offline

 

#19 2007-05-15 22:54:05

doki
Member
Registered: 2007-04-30
Posts: 225

Re: PBB User Blogs 1.2

It works... Thats great addon...  I have another suggestion, can you add a short summary of the blog below latest blog link on extern?

Offline

 

#20 2007-05-19 10:09:50

rollonequick
New member
Registered: 2007-04-29
Posts: 3

Re: PBB User Blogs 1.2

I am sad... I got this

Error: Unable to fetch blog info.

http://gameballa.com/dailychallenges/blog.php'


Can someone help me...


NEVERMIND!!! SILLY ME!!! I FORGOT TO UPLOAD SAVE ALL MY EDITED FILES... roll

Last edited by rollonequick (2007-05-19 10:14:13)

Offline

 

#21 2007-07-05 02:19:36

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 219
Website

Re: PBB User Blogs 1.2

Here is a suggestion for soonotes. Would it be at all possible to display an icon when there is a new blog entry? The reason I ask is really because you never really know if there is a new post or not in the blog and this would at least show users some activity rather than it just looking stagnant.

Shedrock

Offline

 

#22 2007-07-05 05:31:18

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Good idea. I'll add it to the list.

Offline

 

#23 2007-07-05 11:59:12

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 219
Website

Re: PBB User Blogs 1.2

cool...thanks. big_smile

Offline

 

#24 2007-07-17 05:57:08

doki
Member
Registered: 2007-04-30
Posts: 225

Re: PBB User Blogs 1.2

Hi sonootes, I have problems on the blogs. Moderators cannot edit or delete even I added that user on the moderators list on blog option

Offline

 

#25 2007-07-17 15:50:33

soonotes
Member
Registered: 2006-09-21
Posts: 112

Re: PBB User Blogs 1.2

Are you getting an error?

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.