News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

ezPortal

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

Previous topic - Next topic

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

PocketChange

Nothing, actually!

This code places the "X" for the admin:
if ($adminShoutBox && empty($ezpSettings['ezp_shoutbox_hidedelete']))
echo ' <a href="',$scripturl,'?action=ezportal;sa=removeshout;shout=',$row['id_shout'],'" style="color: #FF0000">[X]</a>';


If I change it to:
if (empty($ezpSettings['ezp_shoutbox_hidedelete']))
echo ' <a href="',$scripturl,'?action=ezportal;sa=removeshout;shout=',$row['id_shout'],'" style="color: #FF0000">[X]</a>';


Then the "X" is there for everyone (except guests, as this is disabled)

Just to see if I could get it to work for GMs only, I replaced
$adminShoutBox = allowedTo('admin_forum');
with
$adminShoutBox = allowedTo('moderate_forum');

That doesn't work for Anyone!  Tried moderator, global_moderator, moderate, but none worked!

vbgamer45

What permissions do you global mods have? like moderate_forum i thought they should have that.
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

PocketChange

They have all permissions under Moderate Boards, and they also are set with all (3) permissions for ezPortal!  They can't edit or delete account or profile settings though!

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

PocketChange

ezportal_manage?  As in $adminShoutBox = allowedTo('ezportal_manage_forum'); ??

EDIT: Ok, tried the above, $adminShoutBox = allowedTo('ezportal_manage_forum');, but back to only admin can delete!  :(

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

PocketChange

Quote from: vbgamer45 on December 13, 2011, 04:17:25 PM
No just
$adminShoutBox = allowedTo('ezportal_manage'); ??

YES!!  That worked!  8)

Thank you so much for your help, fast responses and sticking with me on getting this done!  Much appreciated!  ;D

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

Tonyvic

Hi vbgamer45,
I expect you missed my post Reply #1315 as you were busy with another problem.
I would be really grateful for some help with this, although it works ok I do like to keep my forum validated.

TIA,
Tony

vbgamer45

Quote from: Tonyvic on December 16, 2011, 10:52:07 AM
Hi vbgamer45,
I expect you missed my post Reply #1315 as you were busy with another problem.
I would be really grateful for some help with this, although it works ok I do like to keep my forum validated.

TIA,
Tony
Try this file
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

Tonyvic

Many thanks,
It's very much appreciated.

That was it, all 21 errors now gone.

Tony

Jeff B

My error log is filling up with this error:

8: Undefined offset: 152
Apply Filter: Only show the errors from this file
File: /var/www/virtual/XXXXXXXXXXXXX.com/htdocs/board/Themes/default/GenericControls.template.php (ezblock_above sub template - eval?)
Line: 5

Any Ideas?

vbgamer45

Run this query on you db and wait for next error to get the correct file and line number

REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
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

Jeff B

Okay,  I got this:

File: /var/www/virtual/XXXXXXXX.com/htdocs/board/Themes/default/EzPortal2.template.php(1614) : eval()'d code
Line: 5

Jeff B

It seems that all these errors are related to the block I have on the private message action. At a request I tried to add a block that let people know how many messages they had in their inbox, so I used a php box that has this code in it. Could this be the source of the issue?

echo'
<ul class="reset"><li class="greeting"><strong> ';

echo '
          ', $context['user']['name'], ', You currently have', $context['allow_pm'] ? ' ' . $txt[152] . ' ' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . ' messages saved to your inbox ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.</strong></li></ul>';

vbgamer45

Yeah that is the source. Looks like you have SMF 1.1.x text strings instead of SMF 2.0 version

Since you have text such as $txt[471] and $txt[153]  which in SMF 2.0 was replaced with a proper name instead of a number
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

Jeff B

Cool, I'll use my normal "try this until it works" method and see if I can fix it.  :)

Jeff B

I got lucky. Fixed it on the second try.  Thank you for your assistance. :)

echo'
<ul class="reset"><li class="greeting"><strong> ';

echo '
          ', $context['user']['name'], ', You currently have', $context['allow_pm'] ? ' ' . $txt[152] . ' ' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ?) . ' messages saved to your inbox ' . $context['user']['unread_messages'] . ' ' . ($context['user'] $txt['newmessages0'] : $txt['newmessages1']) : '', '.</strong></li></ul>';

Advertisement: