News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

ezPortal

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

Previous topic - Next topic

DEEPSNUYB

I have gone through the manual install instructions and checking the code and still cannot find what is wrong.  Here are the mods I have on the site so far.

Ad Management Mod 3.0
Contact Page 2.1.1
Custom Copyright 1.0
Effectively Remove SMF Logo
Enotify
Remove Index From Title
Show Your Social Networks 2.5
SimplePokes 1.1
Social Bookmarks 2.0
Tagging System

SMF RC5

DEEPSNUYB

Can you post up the code to manually install the tables in mysql here or is it the same coding by looking in the install file?  I may be missing one of those.  Sometimes these install files don't create all the tables for whatever reason.

vbgamer45

Same as looking in the install file just copy it to the root directory of your forum and run via the browser
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

DEEPSNUYB

Quote from: vbgamer45 on March 18, 2011, 10:52:59 PM
Same as looking in the install file just copy it to the root directory of your forum and run via the browser

I understand that.  But sometimes the install file doesn't install all the tables for whatever reason.  Yes I have run the install file but am asking is the CODING THE SAME IN THE INSTALL FILE AS IF YOU WERE TO COPY AND PASTE IT INTO MYSQL?  If not can you give the correct coding so I can manually upload it into MySql directly.

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

UKShark

Hi,

I hope someone can help.

I have recently installed EZPortal on my SMF Forum (Version 2.0 RC5) and for the most part I am very happy with it.

Unfortunately the title bars for each section appear to be cropped and not showing fully (see attachment below).

I have tried searching this thread for a solution and have also tested this on different browsers and tried adjusting the dimension of the different areas with no effect.

Any advice?

MrGrumpy

Looks like the ezportal mod is using the catbg and span classes to create the titlebars where things have changed a little and need the cat_bar & catbg classes for the titlebars now
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

UKShark

Quote from: MrGrumpy on March 29, 2011, 10:48:26 AM
Looks like the ezportal mod is using the catbg and span classes to create the titlebars where things have changed a little and need the cat_bar & catbg classes for the titlebars now

Thanks for taking the time to reply MrGrumply! Any idea what the solution is to this?

Sorry, I was beginning to be quite adept with the 1.X version of the software but the 2.0 is like a new language to me!

MrGrumpy

Well every instance of the catbg/span classes need to be changed for the cat_bar/catbg classes but not knowing the files for ezportal I wouldn't know to tell you exactly where to make the changes.

Best option, if as i suspect and the classes need changing, is that vbgamer45 makes the changes to the mod and updates the package
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

vbgamer45

Currently there is an issue with SMF 2.0.x for rounded corners on one side I don't have a solution for it at this time. If anyone has a fix let me know.
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

MrGrumpy

It's relatively easy, you just need to swap some classes around, think they were changed in the RC3 to RC4 update - this isn't tested and I'm not an expert but just going off looking at the code in the EzPortal2.template.php, so might not be 100% perfect but this is the basic idea

Wheres  before category bars were done like this

<div class="catbg" valign="center">
<span class="left">
</span>


Now it's done by

<div class="cat_bar">
<h3 class="catbg">
</h3>
</div>




EzPortal2.template.php

echo '
<tbody class="header">
<tr>
<td class="catbg" valign="center"><span class="left"></span>';

// Check if they can collapse the ezBlock
if ($ezBlock['can_collapse'])
echo ' <span style="float:right"><img src="' . $settings['images_url'] . '/' .( $ezBlock['IsCollapsed'] ? 'expand.gif' : 'collapse.gif' ). '" onclick="javacscript:EzToogle(\'block',$ezBlock['id_layout'],'\',',$ezBlock['id_layout'],',this,1)" alt="+-" /></span>';


// Show icon
if (!empty($ezBlock['icon']))
echo '<img src="',$ezpSettings['ezp_url'],"icons/" . $ezBlock['icon'] . '" alt="" /> ';

// Show title of ezBlock
echo $ezBlock['customtitle'];


if (($context['ezportal_block_manager'] == 1 || $ezBlock['IsManager'] == 1) && empty($ezpSettings['ezp_hide_edit_delete']))
{
/*
echo '<br /><a href="',$scripturl,'?action=admin;area=ezpblocks;sa=editblock;block=',$ezBlock['id_layout'],'">',$txt['ezp_edit'], '</a>
&nbsp;
<a href="',$scripturl,'?action=admin;area=ezpblocks;sa=deleteblock;block=',$ezBlock['id_layout'],'">',$txt['ezp_delete'], '</a>';
*/

echo ' <a href="',$scripturl,'?action=ezportal;sa=editblock;block=',$ezBlock['id_layout'],'"><img src="',$ezpSettings['ezp_url'],'icons/page_white_edit.png" alt="',$txt['ezp_edit2'], '" /></a>
&nbsp;
<a href="',$scripturl,'?action=ezportal;sa=deleteblock;block=',$ezBlock['id_layout'],'"><img src="',$ezpSettings['ezp_url'],'icons/plugin_delete.png" alt="',$txt['ezp_delete2'], '" /></a>';


}

echo '</td>
</tr>
</tbody>


Needs changing to


echo '
<tbody class="header">
<tr>
<td>
<div class="cat_bar" valign="center" >
<h3 class="catbg">';

// Check if they can collapse the ezBlock
if ($ezBlock['can_collapse'])
echo ' <span style="float:right"><img src="' . $settings['images_url'] . '/' .( $ezBlock['IsCollapsed'] ? 'expand.gif' : 'collapse.gif' ). '" onclick="javacscript:EzToogle(\'block',$ezBlock['id_layout'],'\',',$ezBlock['id_layout'],',this,1)" alt="+-" /></span>';


// Show icon
if (!empty($ezBlock['icon']))
echo '<img src="',$ezpSettings['ezp_url'],"icons/" . $ezBlock['icon'] . '" alt="" /> ';

// Show title of ezBlock
echo $ezBlock['customtitle'];


if (($context['ezportal_block_manager'] == 1 || $ezBlock['IsManager'] == 1) && empty($ezpSettings['ezp_hide_edit_delete']))
{
/*
echo '<br /><a href="',$scripturl,'?action=admin;area=ezpblocks;sa=editblock;block=',$ezBlock['id_layout'],'">',$txt['ezp_edit'], '</a>
&nbsp;
<a href="',$scripturl,'?action=admin;area=ezpblocks;sa=deleteblock;block=',$ezBlock['id_layout'],'">',$txt['ezp_delete'], '</a>';
*/

echo ' <a href="',$scripturl,'?action=ezportal;sa=editblock;block=',$ezBlock['id_layout'],'"><img src="',$ezpSettings['ezp_url'],'icons/page_white_edit.png" alt="',$txt['ezp_edit2'], '" /></a>
&nbsp;
<a href="',$scripturl,'?action=ezportal;sa=deleteblock;block=',$ezBlock['id_layout'],'"><img src="',$ezpSettings['ezp_url'],'icons/plugin_delete.png" alt="',$txt['ezp_delete2'], '" /></a>';


}

     echo'
</h3>
    </div>
</td>

</tr>
</tbody>


the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

vbgamer45

Will try that out when I get home and see how it works.
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

Tyrsted

Hello,

Ive just installed my copy of the RC5 and then EzPortal 0.4.6, but when i try to go in the admin panel(for SMF, Not EzPortal) i get the "famous" Unable to load the 'main' template.
Now since this is a Fresh install, I'm using the Default template. So my question is, whats the workaround? or fix?

Thanks in Advance.

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

Tyrsted

didnt work, anything else i can do? or do i need to do another Fresh install?

vbgamer45

I don't know I would try making a general support topic and see if they can help before doing a fresh install.
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

Tyrsted

Nah its allright, I'm just gonna go ahead and Reinstall SMF and EzPortal. I have loads of time anyways.

vbgamer45

New update!

0.4.7
!Fixed the rounded corners for SMF 2.0 RC5 big thanks to MrGrumpy for the fix!
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

UKShark

Thanks for the fast response, it has worked perfectly for me.

Just one more thing...

I had original made changes so that the background to each portal section was white instead of light blue, unfortunately this has reverted back since the reinstall and I can't recall where I made the changes.

Any ideas?

MrGrumpy

Blocks use the windowbg2 class for the background colour - so you have 2 options

First is to change the colour of the windowbg2 in index.css BUT that will change the colour of some backgrounds on your theme, if you don't mind other parts background changing colour this is the easy option

Second is to edit the ezportal file(s) to change the windowbg2 to a new class, say ezportalbg and add that class in index.css with the background colour you want to use - I'm on my laptop at the moment so don't have what I need to double check the files but I would look at the EzPortal2.template.php first
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

Advertisement: