News:

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

Main Menu

ezPortal

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

Previous topic - Next topic

mickjav

Just tried Adding The Todays Birthdays Block

mickjav

#2081
Got My Artists Banner Working so Rather than Edit Each Script I thought I would create A php Block that Would display the header but not going my way Lol

I am getting error "The database value you're trying to insert does not exist: this_gal"

I've tried loads of thing without luck any help would be appreciated.

    global $smcFunc, $sourcedir;

    require_once($sourcedir . '/artists/artists_module.php');
   
    // Get the Category
    if (!empty($_REQUEST['cat']))
        $cat = (int) $_REQUEST['cat'];
   
    //Get the All Artists
    $dbquery = $smcFunc['db_query']('', '
    SELECT art_id, artist_gallery_id
    FROM {db_prefix}artists
    WHERE artist_gallery_id = {int:this_gal}',
            array(
                'this_gal' => $cat
            ));
 
if ($smcFunc['db_affected_rows']() != 0)
    {
        $row = $smcFunc['db_fetch_assoc']($dbquery)
        echo GetArtistBanner($row['art_id']);       
    }
    $smcFunc['db_free_result']($dbquery);

mickjav

Found One Error ($dbquery))

But Still getting The "The database value you're trying to insert does not exist: this_gal"

vbgamer45

5.5.1
!Fixed undefined error with Birthdays block SMF 2.1.x
!Fix small option for Calendar block for SMF 2.1.x
Community Suite for SMF - Take your forum to the next level built for 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

mickjav

Managed To Sort My BlocK error I keep forgetting to set the $vars = '' lOL

global $smcFunc, $sourcedir;

require_once($sourcedir . '/artists/artists_module.php');

$cat = '';

// Get the Category
if (!empty($_REQUEST['cat']))
$cat = (int) $_REQUEST['cat'];

If ($cat != '')
{

//Get the All Artists
$dbquery = $smcFunc['db_query']('', '
    SELECT art_id, artist_gallery_id
    FROM {db_prefix}artists
WHERE artist_gallery_id =' . $cat);

if ($smcFunc['db_affected_rows']() != 0)
{
$row = $smcFunc['db_fetch_assoc']($dbquery);
        echo GetArtistBanner($row['art_id']);
}
$smcFunc['db_free_result']($dbquery);
}

Took me a while as still trying to figure the Bugging angle  ;D 

vbgamer45

Update
5.5.2
!Fixed possible undefined errors in SMF 2.1.x with attach tags in recent post/topics ezblocks
Community Suite for SMF - Take your forum to the next level built for 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

Shades.

I've noticed that one of my 2.1.2 forums (both with ezportal 5.5.2 installed) has this in .htaccess and the other one doesn't. Does the one without it need it?

Quote# ezPortal MOD Starts
RewriteEngine on
RewriteBase /
RewriteRule ^pages/([-_!~*()$a-zA-Z0-9]+)-([0-9]*)?$ ./index.php?action=ezportal;sa=page;p=$2 [L,QSA]
# ezPortal MOD ENDS
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

vbgamer45

Only if you want seo friendly urls for pages.
Community Suite for SMF - Take your forum to the next level built for 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

Speed King

Is there a limitation for shoutbox message lenght? I cannot find such option in admin panel.

vbgamer45

There is not a hard set limit. Do you want a setting to limit it?
Community Suite for SMF - Take your forum to the next level built for 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

Speed King

Yes, I think 1000 or 2000 characters would be a good limitation.

Mightymax44

Hi,

recent topics and recent post, it's a same?

When  i add new response in a old topic, the old topic appear on recent topic block and recent post...
 ::)
La connaissance, c'est partager le savoir qui nous fait grandir.

Diego Andrés

If using SSI, this might be why. Should be fixed in the next SMF patch.

SMF Tricks - Free & Premium Responsive Themes for SMF.

vbgamer45

I think it does will have to check if I am using queries themselves.
Community Suite for SMF - Take your forum to the next level built for 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

Mightymax44

i'm found a solution for me

I replace reccenttopic block with bloc news and i remplace in the Sub-EzportalMain2.php

foreach ($return as $news)
{
echo '
<div>
<a href="', $news['href'], '">', $news['icon'], '</a> <a href="', $news['href'], '"><b>', $news['subject'], '</b></a>
<div class="smaller">', $news['time'], ' ', $txt['ezp_built_by'], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>

', $news['link'], $news['locked'] ? '' : ' | ' . $news['comment_link'];

if ($showlike == true || $showgoogleplus == true)
echo '<br />';

if ($showlike == true)
echo '<iframe src="https://www.facebook.com/plugins/like.php?href=' . urlencode($news['href']) . '&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
';



echo  '
</div>';

if (!$news['is_last'])
echo '
<hr style="margin: 2ex 0;" width="100%" />';
}


with

foreach ($return as $news)
{
echo '
<div>
<a href="', $news['href'], '">', $news['icon'], '</a> <a href="', $news['href'], '"><b>', $news['subject'], '</b></a>
<div class="smaller">', $news['time'], ' ', $txt['ezp_built_by'], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding:  0;"></div>';





echo  '
</div>';

if (!$news['is_last'])
echo '
<hr style="margin: 2ex 0;" width="100%" />';
}


It works well so far and meets my expectations.
 ;)
La connaissance, c'est partager le savoir qui nous fait grandir.

hustreamload

Hello, on our SMF portal in EzPortal's Shoutbox there is an error:
While smileys checkbox is on

in shoutbox it is not appearing

but deafult smiley set is visible in posts
.
Any idea, how to repir it?
Thanks

vbgamer45

Have to look into. Looks like I don't have it support custom smilies. But do you want all those to appear? Would take up some space.
Community Suite for SMF - Take your forum to the next level built for 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

BugginIn

Feeling pretty stupid right now...

Have a fresh install of EZ 5.5.2 - portal home page in non-responsive... Latest 2.1.4 SMF.

Where the heck is that turn responsive on or off? Looked everywhere and I am just way missing it here...

Anyone remember how to do that?


Thank you...

vbgamer45

In SMF 2.1 there isn't a setting for ezPortal it should be responsive by default.
Community Suite for SMF - Take your forum to the next level built for 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

BugginIn

Quote from: vbgamer45 on August 12, 2023, 05:22:18 PMIn SMF 2.1 there isn't a setting for ezPortal it should be responsive by default.

OK, then any thoughts on resetting or something anyone might have?

Just cleared caches, ran all optimizing, still shows up like the below.

Any ideas?




Advertisement: