News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

ezPortal

Started by SMFHacks.com Team, November 02, 2008, 10:10:03 AM

Previous topic - Next topic

Kindred

well, if you have aeva installed, I would think that you need to be calling subs-aeva, instead of subs-mgallery... so, I assume that you took an ancient code clip instead of a recent one...
Сл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."

BigPain

Oh.... My... God!!!

FANTASTIC!!!!

It worked! Took a few minutes to load after I deleted that entry, but it is back up!!

Thanks a TON for your help. I have spent three days trying to figure this out and was desperate. Thanks again for your help!
Now I think I will not attempt to add that particular EZ Block again because it has failed in many ways over the past 5 months.

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

BigPain

Quote from: Kindred on January 23, 2012, 01:39:59 PM
well, if you have aeva installed, I would think that you need to be calling subs-aeva, instead of subs-mgallery... so, I assume that you took an ancient code clip instead of a recent one...

This is good information moving forward. I will look for an updated download and try again. At least I now know how to 'undo' what is done in case of errors.

Arantor

It's not the download that needs updating; Mgallery is the old internal name for Aeva Media.
Holder of controversial views, all of which my own.


fullmoonya

hi. i just want to request(if possible) to add some other type of column in center like center-top(upper part of center column), center-bottom(bottom of center column) and header top column(the very top part of forum i want to place this column). i hope in the next update this be added.
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

Kindred

Ummmmmmm....  Those spots already exist as block locations....
Сл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."

fullmoonya

Quote from: Kindred on January 30, 2012, 07:47:23 AM
Ummmmmmm....  Those spots already exist as block locations....
it is? please post here the path where can i get those.
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

MrNicotine

I would like to update to 0.6, but it would actually be less work to follow the parser instead of backing up all my blocks ;)
I'm not sure if I can simply update or do I have to uninstall first?
Is this possible or would I run into problems?

vbgamer45

You can simply update you do not need to uninstall and reinstall.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

So, I've been running EZPortal on 40konline for several years now...

but today, we decided to try making the site a little more interactive/friendly.

I added content to the right column... and moved some stuff around in the main column/front page.

Then we decided to move the forum up to the root of the site...

that's when it all went to hell.
The ezportal is all screwy. For some reason, on most forum pages, the center column has a HUGE space at the top...  and I can't figure out where that is coming from...
Сл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."

Kindred

I don't know what caused the problems to start with... but I have fixed them

one thing...   the content appearing far down the screen was due to the fact that the table/row/cell for exportal did not have a valign="top" in it.

but now there are some other issues.

the biggest is that EZPortal is NOT respecting my visibility options.
I have added the mod actions for several mods, including the ADK Blog mod...
However, ALL columns and Blocks are appearing in the ADK Blog, even though I have the blocks set to appear ONLY on the portal homepage.
Сл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."

vbgamer45

Will check it out over the weekend. Bah I had posted a reply to your last post above it looked like their was a space in the area of theme looks like that reply was lost or did not get posted.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

additional note...  if I set ANY value for the visibility of the column itself (instead of individual blocks) the screws up the layout

i.e. I set Center to portal only. I set right to portal & boardindex.
the left column then shows, spread across the entire screen and the content appears under the left column.

you can see the blog problem at http://www.40konline.com/index.php?blog=1833

I would think that this code would be correct...


foreach ($context['ezportal_actions'] as $key => $ezActions)
{
if ($visibleActions != '')
if (in_array($ezActions['action'],$visibleActions))
$context['ezportal_actions'][$key]['selected'] = 1;
else
$context['ezportal_actions'][$key]['selected'] = 0;
else
$context['ezportal_actions'][$key]['selected'] = 0;
}

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

vbgamer45

Quote from: Kindred on February 24, 2012, 12:41:32 PM
I don't know what caused the problems to start with... but I have fixed them

one thing...   the content appearing far down the screen was due to the fact that the table/row/cell for exportal did not have a valign="top" in it.

but now there are some other issues.

the biggest is that EZPortal is NOT respecting my visibility options.
I have added the mod actions for several mods, including the ADK Blog mod...
However, ALL columns and Blocks are appearing in the ADK Blog, even though I have the blocks set to appear ONLY on the portal homepage.
Looked at your site couldn't find the valign="top" change.
Still looking into the visible actions.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

hmmmm....

trying to add this code in a php block

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


but it rejects it... with the following error message:
The database value you're trying to insert does not exist: s
Сл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."

vbgamer45

Been think about doing a base64 encoding for block html/php downside with that is harder to edit if you had to via database. Upside don't have to worry about quote issues/formatting.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

yourdailysaver

Hello Seniors,

what i want to do is i have two forums A and B,
people posts images on B forum with <img> tag
i want to display slideshow of those images in forum A's EZ Portal sidebar .

is it possible anyhow ?

thanks in advance for your support :)

Advertisement: