News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

ezPortal

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

Previous topic - Next topic

vbgamer45

Thanks glad you enjoy. It works great for SMF 2.1 as well!
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

SMFHacks.com Team

Major update a lot of new changes/additions for ezPortal pages

3.5
+Improve the look and feel of ezPortal pages for SMF 2.0/2.1. Now includes title bar, and content area along with edit/delete links when viewing the page
+Added option to add a button to the menu when adding a page in ezPortal you can set the page title for SMF 2.0.x and SMF 2.1.x
+Added support for the Oneall Social Login mod on the login form page
!When adding a shoutbox block make sure it is enabled when they add it
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

Jeff B

I'm moving to a new server so I can upgrade from 2.0.13 to 2.0.15   I've noticed that my Ezportal is way old. 
Your Version: 0.5.2 Latest Version: 3.5 Your EzPortal version is not up to date!
Can I update that directly without loosing my current data it contains?

vbgamer45

You should be able to. The upgrader handles all versions. I would do a backup of your database just in case
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

Jeff B

Thanks, I'll be testing it when I switch servers before I actually make the final move from old to new.  Thanks again.  I didn't read back through all of the topic. I suspect I've really missed out on some things not keeping updated.

vbgamer45

Yes, always check or subscribe to the topic here or the modsite or ezportal.com
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

SMFHacks.com Team

New update

3.5.1
+Added new setting for blocks Show Only Mobile. Allows a block to only be shown on mobile devices.
!Fixed bug with hide mobile block setting not working correctly
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

Jeff B

Is there a way in the newer versions to disable this by theme?  I updated my version, and the code I used long ago for disabling in smf4mobile no longer works in the newer version of ezportal

vbgamer45

I took over smf4mobile and have a new version posted.

But yeah it is possible.
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

Jeff B

okay...  ;)  Hint?

vbgamer45

Sources/Ezportal2.php

Find

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

// If wireless skip the ezPortal stuff.
if (defined('WIRELESS'))
{
$wirelessCheck = WIRELESS;
if (!empty($wirelessCheck))
return;
}


Add after

if ($user_info['theme'] == THEMEIDHEREOFSMF4MOBILE)
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

Jeff B

no joy  Unless I'm not picking the theme id correctly

vbgamer45

That should do it. $user_info['theme'] if that contains the theme of the user that they are on.
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

Jeff B

Got it! Thank you!

Jeff B

I'm getting many many error in my log.


Apply Filter: Only show the error messages of this URL
http://mysite/board/index.php?action=dlattach;attach=3549;type=avatar
Apply Filter: Only show the errors with the same message
8: Undefined index: theme_id
Apply Filter: Only show the errors from this file
File: /var/www/virtual/mysite.com/htdocs/board/Sources/EzPortal2.php

any ideas?

clicking on the EZPotal error link the pop up shows this as the offending text, what I added to have smf4mobile theme opt out. It did work however, just generating a couple thousand errors

   if ($settings['theme_id'] == 10)

vbgamer45

THEME_ID is not defeined or you haven't added $settings in your globals
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

Jeff B

Yer talking to a guy that knows anything you want to know about a sawmill. Php?  notsomuch :)

vbgamer45

Try

global $settings;
   if ($settings['theme_id'] == 10)
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

Jeff B

Isn't that what I have?  I tried it without the  return;  and the disable did not work.

I have:

global $settings;
if ($settings['theme_id'] == 10)
return;

vbgamer45

It may no work it was a guess on my end on the code that might do 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

Advertisement: