ezPortal

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

Previous topic - Next topic

vbgamer45

Made one mistake new code thanks for donation!



Open Sources/ezPortal2.php

Find

function SetupEzPortal()
{
    global $sourcedir, $context, $maintenance, $user_info, $ezpSettings, $boarddir, $boardurl, $smcFunc, $settings, $disableEzPortal;

    // If wireless skip the ezPortal stuff.
    if (WIRELESS)
        return;


Add After

$user_agents = array(
array('iPhone', 'iphone'),
array('iPod', 'ipod'),
array('PocketIE', 'iemobile'),
array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])),
array('Opera Mobile', 'Opera Mobi'),
array('Android', 'android'),
array('Symbian', 'symbian'),
array('BlackBerry', 'blackberry'),
array('BlackBerry Storm', 'blackberry05'),
array('Palm', 'palm'),
array('Web OS', 'webos'),
);

foreach ($user_agents as $ua)
{
$string = $ua[1];
if ((is_bool($string) && $string == true) || (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $string)))
return;
}

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

T3CHN0


vbgamer45

Glad that helps. Think I might build into ezPortal as a feature.
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

T3CHN0

Quote from: vbgamer45 on June 15, 2014, 01:05:04 PM
Glad that helps. Think I might build into ezPortal as a feature.
I think it would be a great option to have in EzSettings.
Thanks again.

SMFHacks.com Team

Have just released a new version of ezPortal!

Details below:

2.1
+Improved layout of shoutbox and RSS feed display thanks to Maxx
+Updated menu display block thanks to Maxx
!Increased max execution time for getting RSS feed information
!Fixed two missing images on some themes for SMF 2.0.x for the shoutbox  thanks to Maxx
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

T3CHN0

Quote from: vbgamer45 on June 15, 2014, 12:33:11 PM
Made one mistake new code thanks for donation!



Open Sources/ezPortal2.php

Find

function SetupEzPortal()
{
    global $sourcedir, $context, $maintenance, $user_info, $ezpSettings, $boarddir, $boardurl, $smcFunc, $settings, $disableEzPortal;

    // If wireless skip the ezPortal stuff.
    if (WIRELESS)
        return;


Add After

      $user_agents = array(
         array('iPhone', 'iphone'),
         array('iPod', 'ipod'),
         array('PocketIE', 'iemobile'),
         array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])),
         array('Opera Mobile', 'Opera Mobi'),
         array('Android', 'android'),
         array('Symbian', 'symbian'),
         array('BlackBerry', 'blackberry'),
         array('BlackBerry Storm', 'blackberry05'),
         array('Palm', 'palm'),
         array('Web OS', 'webos'),
      );

      foreach ($user_agents as $ua)
      {
         $string = $ua[1];
         if ((is_bool($string) && $string == true) || (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $string)))
            return;
      }


hello
When I update ezPortal will I need to make this edit for iphones again?

vbgamer45

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

T3CHN0


T3CHN0

New problem

I don't know if this started happening after last Ez update or from the iphone edit
or is it not related and the problem is somewhere else.

Trying to edit a HTML block but it opens a blank page.
No errors in the logs relating to coding.

I wouldn't know when this started happening as I have not needed to edit this block for the passed month.

Cheers



vbgamer45

Click work around there should be a hide tinymce optin either in settings or on the block page to remove 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

T3CHN0

OK
I found in settings [Disable TinyMCE when adding/editing html ezBlock]
Makes it plain text style but now I can edit it.
cheers

Kindred

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

gonza28

Hi there.
Ezportal I installed on my local server. I would like to know how to put into Spanish.
thank you very much

vbgamer45

Translate the following text added to
themes/default/languages/modifications.english.php

And themes/default/languages/ezportal.english.php
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

iain sherriff

What do I alter to return by default to Forum (instead of portal)
smf 2.0.8 and EZP 2.1

Thanks
SMF 2.0.12

vbgamer45

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

iain sherriff

SMF 2.0.12

iain sherriff

hmm
but that removes the portal page altogether ?

I want it to be active , just want to return to form after marking all as read
SMF 2.0.12

vbgamer45

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

iain sherriff

SMF 2.0.12

Advertisement: