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

madfitz

Quote from: vbgamer45 on January 28, 2021, 02:44:52 PM
That is strange, haven't seen that happen before.. Anything in the error log for SMF? If possible can you pm me an admin user to view? I did test on a fresh install this morning to be sure.
PM sent

vbgamer45

Kindred added your fix


madfitz - I believe the issue is due to the forum being in maintenance mode. Blocks don't appear in maintenance mode
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

madfitz

Quote from: vbgamer45 on January 28, 2021, 03:04:10 PM
madfitz - I believe the issue is due to the forum being in maintenance mode. Blocks don't appear in maintenance mode

Well heck that was easy! Thanks for your help. I was naturally configuring the board in maintence mode before inviting the users.

vbgamer45

Yeah, I might change that So admins can't see. Originally the issue was you didn't want non logged in users to see blocks when in maintenance mode.
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

vbgamer45

Update

5.0a/b
!Admins can now see blocks in Maintenance Mode
!Fix error for php 7.4 on printpage for ezportal menu
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

madfitz

Quote from: vbgamer45 on January 28, 2021, 03:24:29 PM
Update

5.0a/b
!Admins can now see blocks in Maintenance Mode
!Fix error for php 7.4 on printpage for ezportal menu


Thank you!

vbgamer45

5.0c
!Fixed a couple more possible error log conditions when testing with full errors displayed.
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

vbgamer45

5.0.1
!Fixed cache issue for columns from 5.0c for 2.0 and 2.1x
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

mrkid

Where does the pre-coded block for SMF Store live? I wanted to change out "recent items" for "categories".

vbgamer45

For SMF 2.0+ those blocks are found in Subs-EzPortalMain2.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

mrkid

Quote from: vbgamer45 on April 05, 2021, 02:47:56 PM
For SMF 2.0+ those blocks are found in Subs-EzPortalMain2.php

Got it, thanks!

I'm trying to add a "Catagory" option. Since I only have 2 categories in my store, I thought it would be easy, but I can't even get it to populate the pull down.

case 'viewed':
$query = "SELECT i.ID_ITEM, i.commenttotal, i.totalratings, i.rating,
i.primaryID_PICTURE, i.productname, p.thumbfilename, i.price,i.currency,
i.qtyinstock, i.needsstock, i.date, i.views
FROM {db_prefix}store_item as i LEFT JOIN {db_prefix}store_item_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE)
WHERE  i.hideproduct = 0  ORDER BY  i.views DESC LIMIT $products";
break;

case 'catagory':
$query = "SELECT i.ID_CAT,
i.primaryID_PARENT, i.title
FROM {db_prefix}store_cat as i LEFT JOIN {db_prefix}store_cat_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE)
WHERE  i.hideproduct = 0  ORDER BY  i.title DESC LIMIT $products";
break;

vbgamer45

The pulldown menu is installed by EzPortalInstall2.php for the block


// SMF Store EzBlock
$paramArray = array();
$paramArray[] = array('name' => 'products','title' => 'Number of Products to show','defaultvalue' => 4,'parameter_type' => 'int', 'required' => 1);
$paramArray[] = array('name' => 'rows','title' => 'Number of items per row','defaultvalue' => 4,'parameter_type' => 'int', 'required' => 1);
$paramArray[] = array('name' => 'type','title' => 'Type','defaultvalue' => 'recent','parameter_type' => 'select', 'required' => 1, 'selectvalues' => 'recent,viewed,mostcomments,toprated');

$ezBlocksInstall[] = array('title' => 'SMF Store ezBlock','description' => '','blockdata' => 'EzBlockStoreBlock','version' => '1.0','blockauthor' => 'EzPortal','blockwebsite'=>'http://www.ezportal.com','no_delete' => 1, 'parameters' => $paramArray);




$smcFunc['db_query']('', "INSERT INTO {db_prefix}ezp_blocks
(blocktitle, blockdata, blocktype,blockversion,blockauthor,blockwebsite,can_cache,data_editable,no_delete)
VALUES ('" . $installBlock['title']. "','" . $installBlock['blockdata']. "', 'builtin','" . $installBlock['version']. "','" . $installBlock['blockauthor']. "','" . $installBlock['blockwebsite']. "',0," . $data_editable  . "," . $installBlock['no_delete']. ")");

// EzBlock ID
$blockID =  $smcFunc['db_insert_id']('{db_prefix}ezp_blocks', 'id_block');

foreach($installBlock['parameters'] as $myparam)
{
$smcFunc['db_query']('', "INSERT INTO {db_prefix}ezp_block_parameters
(id_block, title, parameter_name, parameter_type,defaultvalue,required)
VALUES ($blockID,'" . $myparam['title']. "','" . $myparam['name']. "',
'" . $myparam['parameter_type']. "','" . $myparam['defaultvalue']. "',
'" . $myparam['required']. "'
)");

$paramID =  $smcFunc['db_insert_id']('{db_prefix}ezp_block_parameters', 'id_parameter');

if (!empty($myparam['selectvalues']))
{
$selectvalues = explode(",",$myparam['selectvalues']);
foreach ($selectvalues as $sv)
{
// Insert select value
$smcFunc['db_query']('', "INSERT INTO {db_prefix}ezp_paramaters_select
(id_parameter, id_block, selecttext, selectvalue)
VALUES ($paramID,$blockID,'" . $sv. "','" . $sv. "')");

}

}

}


Basically you need to insert a record into the database table ezp_paramaters_select with the blockID, paramID and valuename/displayname
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

dungeonseeker

Just installed v5.0.1 onto an otherwise clean SMF 2.1RC3 install and every time I click on Admin > Permissions I get the following 4 errors in the error logs...

Type of error: Undefined
8: Undefined index: permissiongroup_ezportal
https://***/index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1671)


Type of error: Undefined
8: Undefined index: permissionname_ezportal_page
https://***/index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1680)


Type of error: Undefined
8: Undefined index: permissionname_ezportal_blocks
https://***/index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1680)


Type of error: Undefined
8: Undefined index: permissionname_ezportal_manage
https:///index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1680)


Edit - NVM, its the Theme I'm using. Reverting back to Curve removes the errors.

shadav

Quote from: dungeonseeker on April 19, 2021, 10:39:28 AM
Just installed v5.0.1 onto an otherwise clean SMF 2.1RC3 install and every time I click on Admin > Permissions I get the following 4 errors in the error logs...

Type of error: Undefined
8: Undefined index: permissiongroup_ezportal
https://***/index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1671)


Type of error: Undefined
8: Undefined index: permissionname_ezportal_page
https://***/index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1680)


Type of error: Undefined
8: Undefined index: permissionname_ezportal_blocks
https://***/index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1680)


Type of error: Undefined
8: Undefined index: permissionname_ezportal_manage
https:///index.php?action=admin;area=permissions
/volume1/web/smf/Sources/ManagePermissions.php (Line 1680)


Edit - NVM, its the Theme I'm using. Reverting back to Curve removes the errors.

when you installed it did you check the box(es) to install it on all themes?
use the parse on the download page and make all the template edits to your custom theme(s) or uninstall and reinstall making sure to check all the boxes for it to install on other themes

vbgamer45

It looks like you are missing these text lines from your theme/langauges/modifiactions.*.php file


// Begin EzPortal Text Strings
$txt['ezp_forum_tab'] = 'Forum';
$txt['ezportal_admin'] = 'EzPortal';
$txt['ezportal_settings'] = 'Settings';
$txt['ezportal_block_manager'] = 'ezBlock Manager';
$txt['ezportal_page_manager'] = 'Page Manager';

$txt['ezp_settings'] = 'Settings';
$txt['ezp_modules'] = 'Modules';
$txt['ezp_blocks'] = 'ezBlocks';
$txt['ezp_pagemanager'] = 'Page Manager';
$txt['ezp_import'] = 'Import';
$txt['ezp_txt_ordercopyright'] = 'Order Copyright Removal';
$txt['ezp_download_blocks'] = 'Download ezBlocks';
$txt['ezp_installed_blocks'] = 'Installed ezBlocks';
$txt['ezp_txt_copyrightremoval'] = 'Copyright Removal';
$txt['ezp_credits'] = 'Credits';

// Permissions
$txt['permissiongroup_ezportal'] = 'EzPortal';
$txt['permissiongroup_simple_ezportal'] = 'Use EzPortal';

$txt['permissionname_ezportal_page'] = 'Manage Pages';
$txt['permissionhelp_ezportal_page'] = 'Allows adding,editing,and deleting of pages.';
$txt['cannot_ezportal_page'] = 'You are not allowed to manage EzPortal pages.';

$txt['permissionname_ezportal_blocks'] = 'Manage ezBlocks';
$txt['permissionhelp_ezportal_blocks'] = 'Allows adding,editing,and deleting of ezBlocks.';
$txt['cannot_ezportal_blocks'] = 'You are not allowed to manage ezBlocks.';


$txt['permissionname_ezportal_manage'] = 'Admin EzPortal';
$txt['permissionhelp_ezportal_manage'] = 'Allows full control of EzPortal';
$txt['cannot_ezportal_manage'] = 'You are not allowed to manage EzPortal.';

// END EzPortal Text Strings
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

vbgamer45

Update
5.0.2
!Removed || changed to OR in SQL statements for MariaDB for SMF Gallery and Downloads 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

Drug Mile

I have small issue with responsiveness of EZ Portal:

https://www.perforum.info/forum/index.php

Theme is Curve, responsive mod ON and working good. EZ portal updated. With screen width below 640 px it is nice, and also above 1500 px. With screen width 640-1500, Column 1 and Column 3 are resized, but it's content is not, so text overlaps text from next column.

Am I missing some setting in CSS?

vbgamer45

Try this then do a hard refresh/clear cache

Copy this to themes/default/css
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

vbgamer45

Update

5.1
+You can now override the css class used for the header and body of ezblocks.
Changes the h3 and tr tags.
The h3 tag you could catbg centertext which allow you to center the title block
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

Drug Mile

Updated to 5.1. I didn't quite understand your advice, but in your file ezportal.css I changed
.ezTable {
display: table;
width: 100%;
table-layout: fixed;
position: relative;
}


with this
.ezTable {
display: table;
width: auto;
table-layout: fixed;
position: relative;
}


That gave me much better outfit and I am quite happy with that. This is good enough.

Advertisement: