News:

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

Main Menu

Make a simple SMF blog using 3 existing mods

Started by Mick., January 16, 2011, 08:32:19 PM

Previous topic - Next topic

kiddoman

Seems pretty complex to me, a newbie! Anyway, I am working on to learn it!   8)

Umbro

Very interesting. I've been looking for something like this.

TheListener

Parse error: syntax error, unexpected T_CLASS, expecting ',' or ';' in /home/miltonke/public_html/mkaforum/Sources/CustomAction.php(90) : eval()'d code on line 39

Also how do I get the Categories to show in the Blog instead of as menutabs.

An error there somewhere methinks.

(On my beehalf of course).

Masterd

Quote from: Brack1 on July 22, 2011, 04:36:10 PM
Parse error: syntax error, unexpected T_CLASS, expecting ',' or ';' in /home/miltonke/public_html/mkaforum/Sources/CustomAction.php(90) : eval()'d code on line 39

Disable template evaluation and then check it again.

TheListener


Masterd

Oh, my god. That's unbeliveable. Did you posted your problem im mod's support topic?

TheListener

#26
Quote from: Masterd on July 26, 2011, 06:11:42 AM
Oh, my god. That's unbeliveable. Did you posted your problem im mod's support topic?

Already done.

Just hope the mods not inactive.

:o

I did get the following on my test forum though.

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/xxxx/public_html/xxxxx/Sources/ManagePermissions.php on line 1510

Will leave an attachment when I get time later.

TKoos

Hi,

I have tried to follow your excellent guide and  I think that I've got everything done as it should be.
However when I click the "Blog" button in the menu, or surf to "index.php?action=blog" it does not show anything bloggish. ;)

I see my header, the menu and then it's all empty down to the footer.

Since I am all new to SMF it's kind of complicater to debug what's not working for me.
The "custom actions" mod, how can I verify that it's working - like create a "test" action and have it to show "hello world" or something nice?

n1ce_hat

BUMP!

I would LOVE to see this work.

I have SMF 2.0.2 @ www.bitcointrading.com [nofollow] (but using a sandbox SMF installation for testing)

I..

1) Installed those 3 mods.  For the SSL one, it said it wouldn't install because the mod was not designed for 2.0.2, but I modified the packageinfo file and it accepted it, so all 3 mods successfully installed.

2) Followed your instructions.

3) Got the same parsing error as the others.

I would absolutely love to have this working, and I'll even pay to have someone help me set it up.

Email at maplesyrupghost [at] bitcointrading [dot] com, PM me (n1ce_hat) on this forum, or reply to this thread.

Pretty please with a cherry on top!

Thanks in advance!

-maplesyrupghost


tMicky

Quote from: labyo on February 17, 2013, 12:59:33 AM
Thanks.... ;)
hello, did you get it to work without the parse error?
Care to share how?

labyo

Quote from: tMicky on February 23, 2013, 02:24:15 PM
Quote from: labyo on February 17, 2013, 12:59:33 AM
Thanks.... ;)
hello, did you get it to work without the parse error?
Care to share how?

Yes it work for me.

What your problem?

wittylady

I have requested a paid mod to do this with no results ...

At the moment I am using a "page" mod and replicating my website posts there.

It does the job but is not really professional enough in my book ... See for yourself

http://www.simomania.com/forum/index.php?action=page;id=51 [nofollow]

I would love it if someone were to take this up and create one as I am sure it would be very popular
as not everyone wants a front page portal.

I hope Labradoodle-360 does decide to do this mod.  I use his Menu editor lite and its fantastic !

Kindred

There are 2 or 3 "blog" mods that do the full blog-type and layout thing already without aneed for a paid mod...
Or you can do just what this thread demonstrates....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CapadY

Quote from: Kindred on May 24, 2013, 12:49:43 PM
There are 2 or 3 "blog" mods that do the full blog-type and layout thing already without aneed for a paid mod...
Or you can do just what this thread demonstrates....
Quote from: Kindred on May 24, 2013, 12:49:43 PM
There are 2 or 3 "blog" mods that do the full blog-type and layout thing already without aneed for a paid mod...
Or you can do just what this thread demonstrates....

There are SMFBlog and ADKBlog.

SMFBlog is still a beta
ADKBlog is generating an awfull lot of errors in the errorlist, you absolutely don't want to use it, it shouldn't even be in the MOD-list because of this errors.

So, a good working alternative one is very welcome.

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Kindred

Actually, I run ADK Blog on on of my sites and I don't seem to be getting errors like that.

However, I think that feline also has a blog system...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Smythe

Ok so I am having issues.... I dont think I understand how/where to put portions of the code and how it's supposed to look when its complete.

I have installed all 3 mods

I am using SMF 2.0.4

I have created/hidden the Blog Category, and the boards to go with... only 2 boards.

Inserted the following codes: Custom Action for Blog

echo'
<div align="center"><table width="915px" border="0" cellpadding="2" cellspacing="2" bgcolor="f9f7f5">
<tr valign="top">
<td>
<div> <h3 class="titlebg grid_header"><span class="left"></span>
Blog Home - blog description goes here
</h3>
<div class="roundframe grid">';
$parameters = array(
  'limit' => 10,
  'board' => array(2,3),
  'board_disp' => false,
  'category_disp' => false,
  'length' => '300',
  'attachments' => 'none', 
);
ssi_multiBoardNews($parameters);
echo'
</div>
</td>
<td>
<div>
<h3 class="titlebg grid_header"><span class="left"></span>
Categories
</h3>
<table class="tborder" width="100%">
<tr class="windowbg">
<td><li><a href="relicblade.sytes.net/index.php?action=blog">Blog Home</a></li>
<hr />
<li><a href="relicblade.sytes.net/index.php?action=khujatosblog">Khuja'to's Blog</a></li>
<li><a href="relicblade.sytes.net/index.php?action=leadersblog">FC Leaders Blog</a></li></td></tr>
</table>
<br />

echo'
<span class="lowerframe"><span><!-- // --></span></span>
<br class="clear">
</div>
</td>
</tr>
</table></div>';


Custom Action: FC Leaders Blog

echo'
<div align="center"><table width="915px" border="0" cellpadding="2" cellspacing="2" bgcolor="f9f7f5">
<tr valign="top">
<td>
<div> <h3 class="titlebg grid_header"><span class="left"></span>
Category 1 - category 1 small description goes here
</h3>
<div class="roundframe grid">';
$parameters = array(
  'limit' => 10,
  'board' => array(99999,2,3),
  'board_disp' => false,
  'category_disp' => false,
  'length' => '300',
  'attachments' => 'none', 
);
ssi_multiBoardNews($parameters);
echo'
</div>
</td>
<td>
<div>
<h3 class="titlebg grid_header"><span class="left"></span>
Categories
</h3>
<table class="tborder" width="100%">
<tr class="windowbg">
<td><li><a href="relicblade.sytes.net/index.php?action=blog">Blog Home</a></li>
<hr />
<li><a href="relicblade.sytes.net/index.php?action=khujatosblog">Khuja'to's Blog</a></li>
<li><a href="relicblade.sytes.net/index.php?action=leadersblog">FC Leaders Blog</a></li></td></tr>
</table>
<br />

echo'
<span class="lowerframe"><span><!-- // --></span></span>
<br class="clear">
</div>
</td>
</tr>
</table></div>';


Custom Action : Khuja'to's Blog

echo'
<div align="center"><table width="915px" border="0" cellpadding="2" cellspacing="2" bgcolor="f9f7f5">
<tr valign="top">
<td>
<div> <h3 class="titlebg grid_header"><span class="left"></span>
Category 2 - category 2 small description goes here
</h3>
<div class="roundframe grid">';
$parameters = array(
  'limit' => 10,
  'board' => array(99999,2,3),
  'board_disp' => false,
  'category_disp' => false,
  'length' => '300',
  'attachments' => 'none', 
);
ssi_multiBoardNews($parameters);
echo'
</div>
</td>
<td>
<div>
<h3 class="titlebg grid_header"><span class="left"></span>
Categories
</h3>
<table class="tborder" width="100%">
<tr class="windowbg">
<td><li><a href="relicblade.sytes.net/index.php?action=blog">Blog Home</a></li>
<hr />
<li><a href="relicblade.sytes.net/index.php?action=khujatosblog">Khuja'to's Blog</a></li>
<li><a href="relicblade.sytes.net/index.php?action=leadersblog">FC Leaders Blog</a></li></td></tr>
</table>
<br />

echo'
<span class="lowerframe"><span><!-- // --></span></span>
<br class="clear">
</div>
</td>
</tr>
</table></div>';


ERROR for all 3 custom actions

QuoteParse error: syntax error, unexpected 'to' (T_STRING), expecting ',' or ';' in xxx\xxx\xxx\Themes\default\CustomAction.template.php(20) : eval()'d code on line 30

I am sure I am just an idiot and trying to read into it too much.....

Any help would be greatly appreciated ..... thanks

Kindred

Whatever else you do, you really need to upgrade ASAP
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

The issue is probably here:

>Khuja'to's Blog

(last chunk of code you put there)
The quotes have to be escaped, like this:

>Khuja\'to\'s Blog


Quote from: Kindred on January 28, 2014, 11:13:24 PM
Whatever else you do, you really need to upgrade ASAP
^^ This
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Smythe

OK now that I have cleared that issue up.... of course I get new errors....

QuoteParse error: syntax error, unexpected 'class' (T_CLASS), expecting ',' or ';' in C:\xampp\htdocs\2.0.7\Themes\default\CustomAction.template.php(20) : eval()'d code on line 36

echo'
<div align="center"><table width="915px" border="0" cellpadding="2" cellspacing="2" bgcolor="f9f7f5">
<tr valign="top">
<td>
<div> <h3 class="titlebg grid_header"><span class="left"></span>
Blog Home - blog description goes here
</h3>
<div class="roundframe grid">';
$parameters = array(
  'limit' => 10,
  'board' => array(2,3),
  'board_disp' => false,
  'category_disp' => false,
  'length' => '300',
  'attachments' => 'none', 
);
ssi_multiBoardNews($parameters);
echo'
</div>
</td>
<td>
<div>
<h3 class="titlebg grid_header"><span class="left"></span>
Categories
</h3>
<table class="tborder" width="100%">
<tr class="windowbg">
<td><li><a href="relicblade.sytes.net/index.php?action=blog">Blog Home</a></li>
<hr />
<li><a href="relicblade.sytes.net/index.php?action=khujatosblog">Khuja\'to\'s Blog</a></li>
<li><a href="relicblade.sytes.net/index.php?action=leadersblog">FC Leaders Blog</a></li></td></tr>
</table>
<br />

echo'
<span class="lowerframe"><span><!-- // --></span></span>
<br class="clear">
</div>
</td>
</tr>
</table></div>';


Line 36 = <span class="lowerframe"><span><!-- // --></span></span>

Advertisement: