Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: TheBliveon - lokakuu 19, 2013, 04:48:00 IP

Otsikko: Adk portal, change size
Kirjoitti: TheBliveon - lokakuu 19, 2013, 04:48:00 IP
Hello everybody.

I have ADK portal installed on my website, but i want to change the size of the following thing.
My portal is now like this:
  -->>>url http://i.imgur.com/zjU1SOx.jpg

How do i make it that the news block takes in the whole space?
So basically i don't want the white borders at the side.

I get no response from smfpersonal.
Also i want to shop the title, post and author instead of just the title and author.
This is the code of the block:
<?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>'
;

?>


So a summary is:

The block has to take the full space (I don't need right or left blocks.
And i want the Title, post and author, instead of title and author.

Again, I didn't get any replies from SMF personal.
King Regards if somebody knows the awnser.
Otsikko: Re: Adk portal, change size
Kirjoitti: TheBliveon - lokakuu 20, 2013, 06:15:31 AP
Sorry for the bump, But could anybody tell me if it's also possible to change backgrounds and stuff.
Otsikko: Re: Adk portal, change size
Kirjoitti: Burke ♞ Knight - lokakuu 20, 2013, 06:20:46 AP

For mod Related Questions it is best to ask the mod author. You can find a link to a topic for the mod or a support board on the mod's page in the Mod Site (http://custom.simplemachines.org/mods/)

Also, please do not bump threads so soon.
We are all volunteers, with a lot to do. :)
Otsikko: Re: Adk portal, change size
Kirjoitti: TheBliveon - lokakuu 20, 2013, 06:23:48 AP
Lainaus käyttäjältä: BurkeKnight - lokakuu 20, 2013, 06:20:46 AP

For mod Related Questions it is best to ask the mod author. You can find a link to a topic for the mod or a support board on the mod's page in the Mod Site (http://custom.simplemachines.org/mods/)

Also, please do not bump threads so soon.
We are all volunteers, with a lot to do. :)

Well the problem is, i don't get any reply from the mod author, thats why i'm asking here. :( And sorry about the early bump :(
Otsikko: Re: Adk portal, change size
Kirjoitti: IchBin™ - lokakuu 21, 2013, 12:24:57 IP
You haven't posted in that mod help topic in the last few months that I can see.
Otsikko: Re: Adk portal, change size
Kirjoitti: TheBliveon - lokakuu 21, 2013, 12:30:58 IP
Lainaus käyttäjältä: IchBin™ - lokakuu 21, 2013, 12:24:57 IP
You haven't posted in that mod help topic in the last few months that I can see.

I posted on their website i meant, but it's ok now, somebody is helping me in privatE.