TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 09:38:09 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 114
  • Total: 114

Block code for Simple Blog mod?

Started by sanax, November 10, 2006, 05:00:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanax

Anyone has a code we can use in a php block to get recent blog entries from the 'Simple Blog' mod?

Mod is here: http://www.smfhacks.com/hacks/Simple-Blog.html

Thanks

IchBin

That is something you should probably ask the mod maker for. They know there mod and what it is capable of far more than any of us.

sanax

I don't think it can be that hard? A few guys worked out a code in no time for the Simple Gallery though ;D

Have a look here:http://www.tinyportal.net/smf/index.php?topic=8741.0

and in this thread someone almost made it:

Quoteecho '<div class="blogtitlebg">' . $txt['recent_blog'] . '</div>
';

      foreach ($context['blog'] AS $blogs)
                 {       
      if ($blogs['hide_entry'] == '1' || $blogs['hide_entry'] == '2' && $u == $ID_MEMBER)
           {           
  echo '<div class="smalltext">
  <a href="', $scripturl, '?action=viewblog;u=' . $blogs['ID_MEMBER']  . ';id=' . $blogs['ID_BLOG'] . '" >' . $blogs['subject'] . '</a> by <a href="', $scripturl ,'?action=profile;u=', $blogs['ID_MEMBER'] ,'">' . $blogs['realName'] .'</a></div>';
       echo '<div class="smalltext">' .$blogs['date'] .'</div>
';
           }
                 }

I found the above in this thread but it seems there ain't too much support:
http://www.smfhacks.com/index.php/topic,97.msg1671/topicseen.html#new

JPDeni

It may not be that hard, but unless someone has already installed that mod, they have no experience with it and would have to install it and study it at least for a bit before knowing how it works.

If someone has it installed already, they will likely come by to help out. Most folks here who use blogs, though, use FelBlog, as far as I can tell.

sanax

Thanks JP... hope someone will come up with an idea...

sanax

Quote from: JPDeni on November 10, 2006, 09:49:56 PM
It may not be that hard, but unless someone has already installed that mod, they have no experience with it and would have to install it and study it at least for a bit before knowing how it works.

If someone has it installed already, they will likely come by to help out. Most folks here who use blogs, though, use FelBlog, as far as I can tell.

btw JP... where can I find this FelBlog? I did a search but can't find it!

JPDeni

#6
There's info about it here and lots of other places on this forum.

Try http://www.xyfrauen.com/index.php?action=tpmod;dl=item62

sanax

Thanks! Weird, if I search FelBlog it only brings up your previous post in this thread... that's it! lol

JPDeni

That's because you used the quick search while in the topic. If you want to search the whole forum, you need to exit from the board you're in.

kran1um

This would be nice to have support on this as Im getting redundancy blogs, as someone writes one, it multiplies by 3! (Only installed it once) and it would be nice to see a block for the blogs, does the above work?