Advertisement:

Author Topic: Adk Blog (A blog system for each user)  (Read 198535 times)

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #40 on: September 02, 2010, 01:11:46 PM »
You're welcome ;)
Adk Portal 3.1 is coming....

Design your universe!

Offline Kreator

  • Jr. Member
  • **
  • Posts: 225
  • Gender: Male
    • Anim8orWorld on Facebook
    • Anim8orWorld
Re: Adk Blog (A blog system for each user)
« Reply #41 on: September 03, 2010, 04:27:34 AM »
Now working nicely, see blog at

http://www.animanon.com/Forum3/index.php?blog=1;sa=cat;id=4

sorry, not enabled for visitor viewing any more

one other category enabled as well, just need some bloggers to post haha!!


Thanks for the mod lucas I hope you add some nice enhancements to it!. ie: bloggers section with table of contents  instead of the whole list of blogs when you click on the blog ( does that make sense??)
« Last Edit: February 25, 2011, 12:36:16 PM by Kreator »

Offline Kreator

  • Jr. Member
  • **
  • Posts: 225
  • Gender: Male
    • Anim8orWorld on Facebook
    • Anim8orWorld
Re: Adk Blog (A blog system for each user)
« Reply #42 on: September 03, 2010, 11:39:01 AM »
Just a quick one here, I can  get visitors to view blogs,


 but there is no permissions for visitors to comment, (see screenshot) is that standard??


and how can I set the blogs in Simple Portal??





Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,297
Re: Adk Blog (A blog system for each user)
« Reply #43 on: September 03, 2010, 01:23:24 PM »
Still one question not answered, one blog a user, or can they have, for example, two?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,120
  • Gender: Male
    • Kindred-999 on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #44 on: September 03, 2010, 01:50:28 PM »
actually, another, similar question...   How can the blog owner be switched?  In other words, user X is blogging about a topic, but gets bored or busy and passes the blogging responsibility to user Z...   how do I switch the blog to be under user Z's account now?

Same theme, different detail: Can a blog have MULTIPLE owners?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #45 on: September 03, 2010, 02:26:48 PM »
Just a quick one here, I can  get visitors to view blogs,


 but there is no permissions for visitors to comment, (see screenshot) is that standard??


and how can I set the blogs in Simple Portal??

Iap... the visitor can't add new comments...

If you want create a php block for your simple portal... you can use the following code:
Code: [Select]
<?php

global $smcFunc$context$scripturl$modSettings$txt$settings;

$limit 5;

$sql $smcFunc['db_query']('','
   SELECT co.id_initial, co.subject, co.body, co.time, co.id_cat, co.icon, co.id_member, ca.id_cat, ca.title,
   mem.avatar, mem.real_name, mem.id_member,
      IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type
   FROM {db_prefix}blog_comments AS co, {db_prefix}blog_categories AS ca, {db_prefix}members AS mem
   LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
   WHERE co.is_started = {int:s} AND co.id_cat = ca.id_cat AND mem.id_member = co.id_member
ORDER BY co.id_initial DESC
   LIMIT {int:limit}'
,
   array(
      
'limit' => $limit,
      
's' => 1,
   )
);

$context['info'] = array();

$width 50;
$height 50;

while(
$row $smcFunc['db_fetch_assoc']($sql))
{
   
$image '<img src="'.$settings['images_url'].'/post/'.$row['icon'].'.gif" alt="" />&nbsp;';
   
   
$context['info'][] = array(
      
'id' => $row['id_initial'],
      
'id_member' => $row['id_member'],
      
'member' => '<a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">'.$row['real_name'].'</a>',
      
'avatar' => $row['avatar'] == '' ? ($row['id_attach'] > '<img width="'.$width.'" height="'.$height.'" src="' . (empty($row['attachment_type']) ? $scripturl '?action=dlattach;attach=' $row['id_attach'] . ';type=avatar' $modSettings['custom_avatar_url'] . '/' $row['filename']) . '" alt="" class="avatar" border="0" />' '') : (stristr($row['avatar'], 'http://') ? '<img width="'.$width.'" height="'.$height.'"src="' $row['avatar'] . '" alt="" class="avatar" border="0" />' '<img width="'.$width.'" height="'.$height.'"src="' $modSettings['avatar_url'] . '/' $smcFunc['htmlspecialchars']($row['avatar']) . '" alt="" class="avatar" border="0" />'),
      
'subject' => $row['subject'],
      
'time' => timeformat($row['time']),
      
'id_cat' => $row['id_cat'],
      
'title' => $row['title'],
      
'icon' => !empty($row['icon']) ? $image '',
      
'cat' => '<a href="'.$scripturl.'?blog='.$context['blog']['id_user'].';sa=cat;id='.$row['id_cat'].'">'.$row['title'].'</a>',
   );
}
echo
'
<table style="width: 100%;">'
;

foreach(
$context['info'] AS $post)
{
   echo
'
   <tr>
      <td style="width: 60px;">
         '
.$post['avatar'].'
      </td>
      <td>
         <div class="smalltext">
            '
.$post['icon'].'<a href="'.$scripturl.'?blog='.$post['id_member'].';sa=topic;id='.$post['id'].'" style="font-weight: bold;">'.$post['subject'].'</a> '.$txt['by'].' '.$post['member'].' '.$txt['on'].' '.$post['time'].'
         </div>
      </td>
   </tr>'
;
}

echo
'
</table>'
;

?>


Still one question not answered, one blog a user, or can they have, for example, two?

Each user can manage your own blog, create your custom categories... and add your posts. It's one blog per user.

actually, another, similar question...   How can the blog owner be switched?  In other words, user X is blogging about a topic, but gets bored or busy and passes the blogging responsibility to user Z...   how do I switch the blog to be under user Z's account now?

Same theme, different detail: Can a blog have MULTIPLE owners?


No, They doesn't.

« Last Edit: September 13, 2010, 01:26:17 AM by lucas-ruroken »
Adk Portal 3.1 is coming....

Design your universe!

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,297
Re: Adk Blog (A blog system for each user)
« Reply #46 on: September 03, 2010, 06:27:15 PM »
One per user. Thank you I don't really need this then. Good job tho!!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #47 on: September 03, 2010, 08:14:04 PM »
Thanks ^^
Adk Portal 3.1 is coming....

Design your universe!

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,297
Re: Adk Blog (A blog system for each user)
« Reply #48 on: September 03, 2010, 10:22:52 PM »
No problem. I really need this for my site though.

Offline Kreator

  • Jr. Member
  • **
  • Posts: 225
  • Gender: Male
    • Anim8orWorld on Facebook
    • Anim8orWorld
Re: Adk Blog (A blog system for each user)
« Reply #49 on: September 04, 2010, 06:19:41 AM »
Thanks Lucas,  the simple Portal Script works fine.

I have one other problem with the "about me" each time I click on another users "about me" it just goes out to the text editor with a title "changing course - about me"

I think there is something wrong here., any fix??


Also blog posts do not show in recent posts could this be implemented ?



« Last Edit: September 04, 2010, 06:29:50 AM by Kreator »

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #50 on: September 04, 2010, 02:06:44 PM »
Let me check!
Adk Portal 3.1 is coming....

Design your universe!

Offline Kreator

  • Jr. Member
  • **
  • Posts: 225
  • Gender: Male
    • Anim8orWorld on Facebook
    • Anim8orWorld
Re: Adk Blog (A blog system for each user)
« Reply #51 on: September 08, 2010, 02:31:59 AM »
ah I can get it working now, "about me", I think the opening blogs page should have an itemised list of bloggers rather that displaying all the blogs in one hit. I know it can be paged,  but I think it would be better navigation wiseif there were a bloggers listing.


Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #52 on: September 08, 2010, 06:15:01 PM »
mmmm can you add a little example? :P
Adk Portal 3.1 is coming....

Design your universe!

Offline Kreator

  • Jr. Member
  • **
  • Posts: 225
  • Gender: Male
    • Anim8orWorld on Facebook
    • Anim8orWorld
Re: Adk Blog (A blog system for each user)
« Reply #53 on: September 08, 2010, 06:30:42 PM »
This is the old Zcommunity Blog


see attachment, as you can see the bloggers are sectioned

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,120
  • Gender: Male
    • Kindred-999 on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #54 on: September 08, 2010, 06:38:40 PM »
see my link to the 40konline blogs for a similar display in different colors. :)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #55 on: September 08, 2010, 06:41:43 PM »
Your index.php?zc show the top user blogs?
Adk Portal 3.1 is coming....

Design your universe!

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,120
  • Gender: Male
    • Kindred-999 on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #56 on: September 08, 2010, 08:24:35 PM »
it shows a catalog of the user blogs in order of recent posts (per the zCommunity blog system which I am looking to replace)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #57 on: September 08, 2010, 08:35:53 PM »
ok good idea
Adk Portal 3.1 is coming....

Design your universe!

Offline seelie

  • Semi-Newbie
  • *
  • Posts: 34
Re: Adk Blog (A blog system for each user)
« Reply #58 on: September 08, 2010, 10:12:09 PM »
Would it be possible to make it so a user could designate a given post as "Blog Moderator Viewable Only" or is that kinda too difficult?

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Blog (A blog system for each user)
« Reply #59 on: September 08, 2010, 10:16:17 PM »
and... what could be this moderator?
Adk Portal 3.1 is coming....

Design your universe!