Adk Blog (A blog system for each user)

Started by lucas-ruroken, August 30, 2010, 05:12:44 PM

Previous topic - Next topic

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Kreator

#41
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??)

Kreator

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





KensonPlays

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

Kindred

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?
Сл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."

lucas-ruroken

#45
Quote from: Kreator 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??

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:

<?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>'
;

?>



Quote from: Kcmartz on September 03, 2010, 01:23:24 PM
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.

Quote from: Kindred 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?


No, They doesn't.

Adk Portal 3.1 is coming....

Design your universe!

KensonPlays

One per user. Thank you I don't really need this then. Good job tho!!

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

KensonPlays

No problem. I really need this for my site though.

Kreator

#49
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 ?




lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Kreator

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.


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Kreator

This is the old Zcommunity Blog


see attachment, as you can see the bloggers are sectioned

Kindred

see my link to the 40konline blogs for a similar display in different colors. :)
Сл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."

lucas-ruroken

Your index.php?zc show the top user blogs?
Adk Portal 3.1 is coming....

Design your universe!

Kindred

it shows a catalog of the user blogs in order of recent posts (per the zCommunity blog system which I am looking to replace)
Сл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."

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

seelie

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?

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Advertisement: