News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Blog

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

Previous topic - Next topic

jesterhawk

Hello,

I would like to add a blog to my site and then thought it would seem only logical to be able to have the SMF be the blog.  I am sure that someone who knows what they are doing could setup something that gets called from the main index page of a website and looks at a special forum for the blog.  I don't know how to do that, but it would seem like since all the posting functions are already there it would be easy.  I could be wrong, but if someone is going to do it or has done it, I would like to know.

Thanks,
JH
-----------------------------------
Jesterhawk

jesterhawk

Ok, I must have did something wrong at first because I did a search on BLOG (or thought I did) and got nothing.  Then I thought that was odd, therefore, I tried it again and this time found a bunch of stuff. 

Sorry, this has been discussed.

Thanks,
JH
-----------------------------------
Jesterhawk

Trekkie101

http://blogs.lux-mundi.co.uk

I have a very basic blog type thing, would this perhaps do fine?

Things like a "new post" button are really easy for me to code in.. its basic but im just using it as a proof of concept.

jesterhawk

Yeah, that would work.  I don't need something overly complicated.

-----------------------------------
Jesterhawk

Trekkie101

Right, well, the code:

Code (index.php) Select
<?php
#Blog Roll
#Another Trekkie101 Innovation

#First, get the SSI loaded
require("../forum/SSI.php");

#next echo out the beautifuly amazing header
echo'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Blogs</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

</head>

<body bgcolor="#CCCCCC">
<br />
<br />
<center>
<table width="550" bgcolor="#FFFFFF" cellpadding="10" style="border: 1pt solid #000000">
<tr>
<td><center><table width="400" bgcolor="#EBEBEB" cellpadding="10" style="border: 1pt solid #B3B3B3">
<tr>
<td><center><big><big>Blog Center</big></big><br /><small><a href="http://www.lux-mundi.co.uk">Home</a>, <a href="http://lyrics.lux-mundi.co.uk">Lyircs</a>, <a href="
http://trekkie.lux-mundi.co.uk">Trekkie</a>, <a href="http://forum.lux-mundi.co.uk">Forum</a>, <a href="http://live.lux-mundi.co.uk">Live</a></small></center>
</td>
</tr>
</table><br /><a href="http://forum.lux-mundi.co.uk/index.php?action=.xml;type=rss2;sa=news;board=77;limit=10"><img src="rss.gif" border="0" alt="
rss" /></a><a href="http://forum.lux-mundi.co.uk/index.php?action=.xml;sa=news;board=77;limit=10"><img src="xml.gif" border="0" alt="
xml" /></a></center><br /<br />'
;


#get the lyric number from the url
$messageidnumber $_GET['blog'];
if (isset(
$messageidnumber)) {      //check that ones been set ;)
ssi_grabMessage($messageidnumber); echo'<br /><br /><a href="index.php">Back</a>';  //if it has, grab the message of it
} else {                            //right nones set, do something else, look busy! I know, show some links BAHAHAHA!


//This is gonna get ugly!
echo'
<b><big>Blog Roll - Lux-Mundi </big></b><br /><img src="filetypes.png" alt="blogs" border="" align="right" /><br />'
;
        
$array ssi_boardNews($board 77.0,$limit 10,$start null,$length null,$output_method 'array');
foreach ($array as $news)
{
echo' ' $news['icon'] . ' - <b><a href="index.php?blog=' $news['message_id'] . '">' $news['subject'] . '</a></b> ';
echo' <br /><small>Posted: '.$news['time'].' by ' $news['poster']['link'] .'</small>';
echo' <br /><br /> '$news['body'] .'<br />'$news['new_comment'] . '<hr /><br />';
};
//Wasnt so bad, was it?

//end the else?
}

echo
'
</center>
<br /><center><img src="katomic.png" alt="blogs" border="" /><br />
 <br />

<table width="200" bgcolor="#EBEBEB" cellpadding="10" style="border: 1pt solid #B3B3B3">
<tr>
<td><center><small>&copy; Lux-Mundi 2005</small></center></td>
</tr>
</table></center></td>
</tr>
</table>
<br /><br /></body>
</html>'
;
?>


You'll need to change the links as you want them, and the $board= variable can to your board, limit to however many you want to show initally. Copyright and that stuff, do what you like with it.

And attached are the images i use. Layout is hard coded so change at will.

Lastly, you NEED this mod:
http://mods.simplemachines.org/index.php?mod=18



clearly

Trekkie101, do you know the name of the font used in the first and second picture?
I mean this:



Thanks.

Trekkie101

Damn I attached the wrong images.

Erm, dunno. Took them from a site that was offering standardised buttons.

HoTmetal

Quote from: jesterhawk on February 10, 2006, 07:54:28 PM
Hello,

I would like to add a blog to my site and then thought it would seem only logical to be able to have the SMF be the blog.  I am sure that someone who knows what they are doing could setup something that gets called from the main index page of a website and looks at a special forum for the blog.  I don't know how to do that, but it would seem like since all the posting functions are already there it would be easy.  I could be wrong, but if someone is going to do it or has done it, I would like to know.

Thanks,
JH


Are you trying to add blogs for your users, or use SMF to blog? I had my blog site set up using SSI to blog.  I had SMF installed in a separate DIR, & used SSI to pull post & allow users(guests) to comment. Do a search on SSI posts by unknown. This should put you on the right track. The rest is trial & error.

Slotos

Quote from: eastwest on February 11, 2006, 03:32:39 PM
Trekkie101, do you know the name of the font used in the first and second picture?
I mean this:



Thanks.

I can't say I have any visual memory at all, but those fonts remind me hxxp:www.narisoval.ru/download/fonts/webcondc.zip [nonactive] and hxxp:www.narisoval.ru/download/fonts/websmc.zip [nonactive].

mkress

Quote from: Trekkie101 on February 11, 2006, 01:10:59 PM
ssi_grabMessage($messageidnumber);

that code is not included in ssi.php

mfg
Markus

Trekkie101


Vinspire^

Quote from: cNc-Rickc on February 11, 2006, 09:16:31 PM
Are you trying to add blogs for your users, or use SMF to blog? I had my blog site set up using SSI to blog.  I had SMF installed in a separate DIR, & used SSI to pull post & allow users(guests) to comment. Do a search on SSI posts by unknown. This should put you on the right track. The rest is trial & error.

I want to add a blogs function for my users. Is there such mod in SMF ?

Intergrated Blog in SMF ... I did some search on the site and so far .... I think its not available yet right ?

H

Moving to Tips and Tricks so it can get more exposure :D
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

anunlike

Quote from: clearly on February 11, 2006, 03:32:39 PMTrekkie101, do you know the name of the font used in the first and second picture?
I mean this:



Thanks.

According to EKstreme.com's button maker, the font is 'Silkscreen'. (?)

Hasanudin

#14
Unknown column 'm.ID_MEMBER' in 'on clause'
File: /public_html/forum/SSI.php
Line: 1569

* Hasanudin using SMF 1.1 RC2

deadpoeticstar

im trying to do the same thing but integrate it into my blog

Alan S

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

HRM

#17
I have tried this script thingy. It does work and looks nice but dont know what to do with it.. ???

It's a great thingy to use inside a portal by example.

http://www.muziek4um.nl/

To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

Really looks beautiful only clicking on the message title wont bring us to the the forum post :(

http://www.muziek4um.nl/index.php?page=5
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

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!
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Advertisement: