News:

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

Main Menu

SimplePortal 2.0 Beta 1 Public

Started by [SiNaN], June 25, 2008, 01:12:26 PM

Previous topic - Next topic

Sudhakar Arjunan

Hey SiNaN,

When will be the release, and when i could install in Our Site.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

[SiNaN]

Quote from: [SiNaN] on June 26, 2008, 12:42:39 PM
I suggest you waiting for the final release. It will be ready in 10 days I hope.
Former SMF Core Developer | My Mods | SimplePortal

Burke ♞ Knight

2 Things I've noticed:

1. In the block for Boards News, the text starts above the Avatar.

2. In the Latest Member block, need to center the avatar and username.

Otherwise, looks great! I like the ability to move the blocks around. Great Job! :)

http://smfpif1.bkwebhost.com/
That is my test forum. SMF 1.1.5 with Simple Portal only.

[SiNaN]

Thanks BurkeKnight, this was what I was expecting from people. Unfortunately I wasn't able to check all the blocks.

Added to the Bug List. Thanks again. ;)
Former SMF Core Developer | My Mods | SimplePortal

Burke ♞ Knight

I found out something about the avatar in the board news blocks.
It only does it for linked to other site avatars, not ones in the forum or uploaded.
So I think it has to do with the resizer, since it defaults as Let the html resize it when they use a link for their avatar.

I had tested this out on a forum running the old version of SimplePortal, and same thing. This might mean that there is nothing that can be done on your end to fix this, but on SMF's end to fix the resizing. :)

[SiNaN]

Actually the fix is at user. The problem is I guess when avatar settings are set like this:

gallery avatar width => 50
link avatar width => 65
upload avatar width => 75

In the example above, you see they are all different. I can just take one of the values to calculate the width of the avatar area.
Former SMF Core Developer | My Mods | SimplePortal

[SiNaN]

Time for some screenshots.

I finally had some time and encouragement for completing the portal. I fixed all the reported bugs and added some features.

Mass-Add-Article Feature

As you see in the first attachment picture, have we have the feature of adding articles from admin panel. Before, it was just handled within the topics. Also you can add many articles at a time.

Quick Block Edit

The other feature is what makes the things easier. Now you are able to change the status of the blocks from the blocklist. Just you should click on the green or red dots in the actions column. Also by clicking the up and down icons, you can move the block up or down.

Continue watching us...
Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Your Latest updates or good in Pics.

When you will be completing it SiNaN.

Eagerly waiting to install in Our Site.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Burke ♞ Knight

Actually Sinan, I alwas have both types of avatars set at 100x100.
However, I'd recommend to anyone, to have the url selection download the avatar anyway, as it saves on hotlinking issues. :)

Also, is there a way to make it so we can move blocks from one section to another without having to delete them and remake them?

[SiNaN]

I think I've fixed totally fixed the avatar issue in board news. :)

Unfortunately, we do not have such a feature. But will think on that too.
Former SMF Core Developer | My Mods | SimplePortal

DonGiovanni

great  :D I made buddies list on your old Simple Portal 1, and test it on Simple Portal 2 and works

you can change it and if you don't understand some variables ( it's on my language) just ask or send me PM

here is code

you need to add in SPortal.php

function sp_prijatelji()
{
global $context, $txt, $scripturl, $settings, $memberContext, $modSettings, $member_id;

$member_id = $context['user']['id'];
loadMemberData($member_id);
loadMemberContext($member_id);
$brojac=0;
foreach($memberContext[$member_id]['buddies'] as $key=>$value){
$ime[] = $value;
$brojac++;
}
for($i=0;$i<$brojac;$i++){
loadMemberData($ime[$i]);
loadMemberContext($ime[$i]);
if($memberContext[$ime[$i]]['online']['is_online']){
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr class="catbg3">
<td width="90%">'.$memberContext[$ime[$i]]['link'].'</td>
<td width="5%" align="center"><a href="', $scripturl , '?action=pm;sa=send;u='.$ime[$i].'" title="Send him private message">PM</a></td>
<td width="5%" align="center"><a href="',$scripturl,'?action=profile;u=',$member_id,';sa=editBuddies;remove=',$ime[$i],'" title="Delete Friend">X</a></td>
</tr>';
}

}


}

function prebroji(){


global $context, $txt, $scripturl, $settings, $memberContext, $modSettings, $member_id;
$dali_ima = 0;
$member_id = $context['user']['id'];
loadMemberData($member_id);
loadMemberContext($member_id);
$brojac=0;
foreach($memberContext[$member_id]['buddies'] as $key=>$value){
$ime[] = $value;
$brojac++;
}
for($i=0;$i<$brojac;$i++){
loadMemberData($ime[$i]);
loadMemberContext($ime[$i]);
if($memberContext[$ime[$i]]['online']['is_online']){
$dali_ima++;
}

}

return $dali_ima;

}


and in SPortal.template.php

if($modSettings['enable_buddylist'] && count($user_info['buddies'])){
echo '
<!-- Buddies -->
<div class="tborder">
<table  class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;border:1px solid #3596B6">Buddies online</td>
</tr>
<tr class="windowbg" align="center">
<td style="padding: 5px;border:1px solid #3596B6"><table >';

            if(prebroji()){
sp_prijatelji();
}else{
echo'';
}
echo '
</table>
</td>
</tr>
</table>
</div>


<br />';
}


also add in global variables $user_info

and this block appear when buddies list is enable in Admin->Features and Options and users have one or more friends.

this is how it looks on my forum:



[SiNaN]

#31
I don't think to implement it but maybe we will setup a block-codes database and we will add this to there. Thanks. ;)

But a suggestion; better get the info with your own query. LoadMemberData gets so many useless data for this code. If a person has 10 buddies, the page would be quite hard to load.
Former SMF Core Developer | My Mods | SimplePortal

DonGiovanni


DonGiovanni

What you think will be ok?

loadMemberData($member_id,false,'minimal'); 

[SiNaN]

If the minimal data is enough, that would be okay. ;)
Former SMF Core Developer | My Mods | SimplePortal

Burke ♞ Knight

Sinan, what is the ETA on the final release?

I'm working on yet another site, so would like to plan accordingly, as the site will be a forum site. :)
I plan on using this new Simple Portal for it. :)

DonGiovanni

Quote from: [SiNaN] on July 06, 2008, 07:42:02 AM
If the minimal data is enough, that would be okay. ;)


Not working :( ,I have problem with isOnline but never mind we go off topic.

Anyways thanks. I will try do sth by my own :P

[SiNaN]

Quote from: BurkeKnight on July 06, 2008, 08:13:19 AM
Sinan, what is the ETA on the final release?

I'm working on yet another site, so would like to plan accordingly, as the site will be a forum site. :)
I plan on using this new Simple Portal for it. :)

Hope to release it in 4 days maximum.

Quote from: DonGiovanni on July 06, 2008, 08:14:52 AM
Quote from: [SiNaN] on July 06, 2008, 07:42:02 AM
If the minimal data is enough, that would be okay. ;)


Not working :( ,I have problem with isOnline but never mind we go off topic.

Anyways thanks. I will try do sth by my own :P


Where is the error?
Former SMF Core Developer | My Mods | SimplePortal

DonGiovanni

lots of

Undefined index: isOnline

Undefined index: ICQ
and so on....


[SiNaN]

'minimal' mod just gets this data:

mem.ID_MEMBER, mem.memberName, mem.realName, mem.emailAddress, mem.hideEmail, mem.dateRegistered,
mem.posts, mem.lastLogin, mem.memberIP, mem.memberIP2, mem.lngfile, mem.ID_GROUP


Better code your own query. ;)
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: