News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Blog

Started by jesterhawk, February 10, 2006, 07:54:28 PM

Previous topic - Next topic

deadpoeticstar

Quote from: HRM on August 24, 2006, 04:26:22 PM
Quote from: Alan S on July 11, 2006, 04:50:56 PM
i believe if you use tinyportal Feline from the tinyportal theme is after working on a mod that allows each user to have a blog , see http://www.tinyportal.net/smf/index.php?topic=6226.0 for more details
Does that really works? Cause that would really be very cool!

Yes it really does work and its quite ingenious

Alan S

Quote from: HRM on August 24, 2006, 04:26:22 PM
Quote from: Alan S on July 11, 2006, 04:50:56 PM
i believe if you use tinyportal Feline from the tinyportal theme is after working on a mod that allows each user to have a blog , see http://www.tinyportal.net/smf/index.php?topic=6226.0 for more details
Does that really works? Cause that would really be very cool!

Yea its called felblog , go to www.tinyportal.net for the info on it or www.xyfrauen.com for the creators page
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

DawnsWebDesigns

Felblog no longer works & isn't being offered for a while.  And this code left here...where was it supposed to be posted?  I use 1.1.2 & Tinyportal & added the php code to an article & got this:

Parse error: syntax error, unexpected '<' in /home/.mischa/dawnswebdesigns/leforce.dreamhosters.com/Sources/Load.php(1766) : eval()'d code(231) : eval()'d code on line 1

Anybody know where I can find a blog mod?  One that works & can be downloaded?

DawnsWebDesigns

I tried this again using a script box instead of a php box...it still didn't work out right.  Most everything I typed in the script box actually showed up on the page...also as just an article (TP).  Anybody got an update to this code?  I've looked across 2 sites & searched many pages...no blogs mods.  :(

ckgb


DawnsWebDesigns

Quote from: ckgb on March 17, 2007, 04:04:10 PM
На smfhacks.com посмотри

You mean the blog mod from SMFHacks?  It had bugs & is no longer offered. :(

As of now...if you use Felblog your image verification code/listen to code won't show up on the registration page.  If you use the invite mod & block registrations to invites only...you can disable the image verification.  Otherwise you can't use it.

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

spottedhog

#27
Have been thinking about how to actually create a "SMF Blog" and I think I have conceptualized most of it, but need some help with a couple of things.  My approach may be totally wrong, and that is OK.

Here goes............

I am thinking this can be done using 2 of the Mods; Custom Action, ssi_Topic, or ssi_TopicNews, and then creating a new ssi by modifying the ssi_BoardNews to display only Topics and not replies.

For the new ssi (ssi_TopicsList or ssi_blogList for example), have it display Topics, listing the first created first.  Could probably leave out all the other graphics, etc. and just have the Topic Name with a limit to the # of characters allowed in the "description".  The Topic name would need to be linked to a Custom Action created to display that Topic and all of its replies (ssi_Topic or ssi_TopicNews).

Overview
What to do:

  • Place a text/graphic button on the main template menu.
  • Add the button text to the language files.
  • Create a forum board name "Blogs".
  • Make the permissions for Regular Members to Create Topics and Reply to only own topics.
  • Probably would want to cancel permissions for Polls and Attachments.
  • Create a Custom Action for the Blogger's List using the modified ssi_BoardNews (board# = Blog board initially created.)
  • Create a Custom Action for the Blog using ssi_Topics or ssi_TopicNews.

The concept is to place a button on the default theme in the template menu that will open up the "SMF Blog".  The button would open the Custom Action created for the modified ssi_BoardNews, and would list the topics from the Blog forum board (BloggersList).  Maybe have the character limit small to encourage the Topic to be a short description of the blog.

Then the links created in the Blogger's List open up the other Custom Action created for ssi_Topics or ssi_TopicsNews.

I have not spent any time on trying this, but right now I know the issue would be in modifying the ssi_BoardNews to create a new ssi_blogger or ssi_TopicLister or some other such name.

Taking pieces from other Mods, here is how the template menu buttons can be created:     

#Let's take care of the Language file addtions first
Add to $languagedir/Modifications.english.php:
$txt['blog'] = 'Blog';

#Let's create a button for the menu in the default theme

Put the follow code just before the Logout button, (around line 580)

// the [blog] button
echo ($current_action == 'bloglist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'contact' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=bloglist">' , $txt['blog']  , '</a>
</td>' , $current_action == 'bloglist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


#Make button code for themes with a graphic
Place a graphic named "blog.gif" in $themedir/THEMENAME/images/english.

Insert this before the Logout button:
echo '
       <a href="', $scripturl, '?action=contact">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/blog.gif" alt="' . $txt['blog'] . '" style="margin: 2px 0;" border="0" />' : $txt['blog']), '</a>', $context['menu_separator'];


There would need to be 2 Custom Actions created.  One would be the Blogger's List, the other the Blog.

Blogger's List Custom Action (uses the newly created ssi from the modified ssi_BoardNews):
<div align="center"><h3>Blogger's List</h3></div>
<div>
ssi_blogger($boardID);</div>


Blog Custom Action:
<div align="center"><h3>Blog</h3></div>
<div>
ssi_TopicNews($topicID);</div>


It might be nice to be able to put the "blogger's username before "Blog", but I am unsure how to program that.

The first Custom Action, Blogger's List, would have clickable links to the other Custom Action so that the proper topicID is displayed.

Sooooo....  I guess the last part I am missing is how to get the topicID for the Blog Custom Action.

In Summary...
For this to work properly, I need the new ssi created, using something like a modified ssi_BoardNews, but only displaying Topics from a specific board, and then the links would be to a new Custom Action to show the single "Blog" using the ssi_Topics or ssi_TopicNews.

--need a new ssi_topicList (or ssi_blogList)
--need to know how to put the TopicID in the link that opens the Blog Custom Action.

Ideas?  Comments?

John S

hey, is it possible to have a blog in everyones profile?, say a button on the left that says 'Blog' and people can go to their blog and add comments, all that needs to be displayed is the time, date stamp, title of blog and message. - of course only the user can modify and add..

this seems straight forward.. is this possible?

Advertisement: