[Solved] Right blocks show on portal, don't show on index

Support for the IM Portal Project

Moderator: Integra Moderator

[Solved] Right blocks show on portal, don't show on index

PostAuthor: gettingbetter » Thu Apr 05, 2007 12:35 pm

Well, I'm pretty much hoping someone can help me at this point. I've tried overwriting the portal_body.tpl templates with fresh (unaltered) copies and looked at the overall_header and footer.tpl files. Can't seem to find the reason why the blocks show up in portal.php but not index.php.

I've configured this and configured that. Confused and my brain is wired.

Can anyone help? Here is the code for the files:

portal_body.tpl:

Code: Select all
<table><tr> <td>  <BEGIN><table width="100%" cellpadding="5" cellspacing="0" border="0" <BEGIN>class="forumline"<END>>     <BEGIN>     <tr>         <th>{center_blocks_row.title.TITLE}</th>     </tr>     <END>     <tr>         <td         <BEGIN>         class="row1"         <END>         >{center_blocks_row.OUTPUT}</td>     </tr></table><br><END>  </td>  <td><img></td><td>  <BEGIN><table>     <BEGIN>     <tr>         <th>{right_blocks_row.title.TITLE}</th>     </tr>     <END>     <tr>         <td>{right_blocks_row.OUTPUT}</td>     </tr></table><br><END>  </td></tr></table>


I'm lost... learning this is a bit confusing. What's the difference between header, footer, left, right? Is it the obvious? Header is at the top going all the way across the forum, and left and right are, well... just positioned to the left and right of the forum??
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: shaythong » Thu Apr 05, 2007 1:17 pm

Set your portal style to: layout_1.tpl

Then go to portal settings: Enable system-wide portal footer: set to YES

Then open block management for your page.

Make all on "footer", like all that is "right", or blank to "footer"
Last edited by shaythong on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

shaythong
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 18, 2007 9:25 am
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: gettingbetter » Thu Apr 05, 2007 2:30 pm

THanks for your help, but that didn't solve the problem. I still can't get the blocks to show up on the right, and now, left. Header and footer show up just fine. I can't get either to show up on index.php or portal.php.

Any pointers?
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: Helter » Thu Apr 05, 2007 4:42 pm

footer blocks are on the right. Did you set "Enable system-wide portal footer" to yes?
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: gettingbetter » Fri Apr 06, 2007 12:22 pm

"HelterSkelter";p="23768" wrote:footer blocks are on the right. Did you set "Enable system-wide portal footer" to yes?


I enabled system-wide portal footers, yes. That just makes blocks appear at the top and bottom of the pages. Still no luck with the right and left blocks.

Let me know how I can help you help me. <img>
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: Helter » Fri Apr 06, 2007 1:30 pm

not sure what layout your using or how you have edited it, but

footer=right
header=left

the difference between a right block and a footer block, is this:
a right blocks width is set in the block tpl file, and displays on a portal page
a footer blocks width is set in the acp, and will display on the on a portal page and the index if you select "Enable system-wide portal footer"
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

PostAuthor: gettingbetter » Tue Apr 17, 2007 8:48 am

[quote=""HelterSkelter";p="23805""]
not sure what layout your using or how you have edited it, but

footer=right
header=left

the difference between a right block and a footer block, is this]

Allright, I'm either too thick-headed to understand or I'm just tired. Let me see if I have this straight...

A HEADER "block" is a block that appears on the LEFT side of the main "middle" portion of the forum. A FOOTER "block" appears to the right. Is that correct?

I'll assume it is. If that's true - why do we have "right" and "left" blocks in the Block Management panel??? That just makes it terribly confusing to me. What is the function of "right" and "left" blocks if footer and header take care of this purpose??

And my other confused question is - within the Block Management configuration screen, there is a setting for "Block File." What is the point of that? Isn't using that kind of redundant, unnecessary, since the block has already been created or modified?

Sorry if my questions or ignorance is annoying. I'm just experiencing the same problem - can't get the blocks to adjust to left or right on the index.php page. :(
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: gettingbetter » Thu Apr 19, 2007 5:51 am

Anyone able to help?
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: Frost » Thu Apr 19, 2007 6:12 am

lmao, don't ever call yourself ignorant because you run into troubles with new software, look at Windows... and bill gates is a moron :wink:

Anyway, you need to clear your head and start from the beginning. Go back and set your portal default back to the original one.

ACP > IM Portal > Page Management

Original settings I think are..

IntegraMOD Default portal_body.tpl 1 Yes All All Edit Default

Now if these do not match, click Edit, and set them to match what I have here.

Then press ok, or enter or whatever to save your changes.

Now go to..

ACP > eXtreme Styles > Styles Management > Manage Cache

Next to whatever theme you are using, clear the cache

Now clear the cache of your browser and then go back to your portal

Is your problem cleared up?
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: gettingbetter » Thu Apr 19, 2007 10:55 am

Thanks for helping me out. I did all you said. Unfortunately, it hasn't cleared up the problem.

LOL, my head is spinning here. I feel like I've tried every single combination known to all php variables everywhere throughout all time... still no progress.

So I know I'm not going crazy, and to narrow down what is afflicting the board, I uninstalled all of IM Portal, deleted the folders. Emptied the cache like you said. I then reinstalled the relevant database tables, applied the proper edits from a fresh download of IM Portal (most recent version) and installed the files again.

I even went ahead and installed extreme Styles - I didn't have it installed, but integrated it when you mentioned it in your post above. It looks like a cool mod, and I have an idea what you can do with it, but as it applies to the block problem, it appears not to have helped. I emptied the cache through the panel and my browser once the mod was installed.

Could it be there is some edit in index_body.tpl that is screwing up the block placement? That's the only thing I can possibly think of, as I have installed other mods and edited the that file.

If that is the case, I would have no idea where to look. The IM Portal instructions make no reference to anything within that file, although the IM Portal files could be somehow interacting with it, I have no idea.

When I make blocks active as headers, I get duplicate blocks that take up the whole page on portal.php (two huge sets of "Recent Topics" lol) and nothing on the index.php page. If I do place a block as "right" - it just indents the whole forum over to the right on index.php, and nothing shows on portal.php.

I've tried using other block positions - left, right, center, sideways, triangulated, backwards, reverse twist backflip side Karate kick... and just hit myself in the face. The whole thing is a mess. My only conclusion, after a fresh install, is that some other template file is interrupting or sending the blocks out of whack.

Bleh. One thing I'd like to really get in my mind is - what is the difference between "header", "footer" and "left" and "right" attributes? Someone posted that header is the left set of blocks, and footer the right set of blocks.

Thanks for helping.
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: Frost » Thu Apr 19, 2007 7:14 pm

Hmm, it seems that you're right and there is a corrupted file somewhere, either by edits or a bum upload.

You said that this is a fresh install? If you have nothing to lose other then work so far I would suggest trying it again from the start and pay close attention to edits. You can do this on a separate place and if it works, move it over to replace your current one.

Either way, what all have you done so far? What did you start with, what mods did you install?

Also, I will try to explain header, footer etc as best I can...

In the beggining... lol

There were top, bottom, left, and right. These were for the portal page only, and the portal body tpl's were designed for these.

Then someone came along and asked, "Hey, let's have some blocks on the index as well".
If you remember, phpbb never had anything on the index, just forums, and making a portal page wasn't that hard, but adding these blocks to the index was tricky.

So then someone did it, and they wanted to be able to control the width of the blocks as well via their ACP

They created a whole new portal body tpl that would work with their newly acquired features. So instead of calling the blocks "left and right" like the old ones and confusing everyone they called them "header and footer"

They mean the exact same thing, except header and footer are the ones you can control with your acp

Header = left (that can be controlled in acp)

Footer = right (that can be controlled in acp)

Now the reason you have several in ACP, is because it sees ALL of the available controls (header, footer, left, right, top, etc)

You'll notice that if you change your layout (portal_body.tpl) some of the footer, right, left etc, disapear
This is because they are no longer used and LUCKY enough for you the acp sees this and doesn't let you use them. This is all way more advanced than what I have here, but this is just the basic idea of how it all works.

Mind you, I have never spent more than 15 minutes looking at it, the only experience I have with it is when I'm making a theme... lol

So there is probably someone way more equipped to answer your questions but maybe this will help you

Also, I speak from integramod, I don't use IM Portal
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: gettingbetter » Sun Apr 22, 2007 6:37 pm

Thanks for your help, Frost. That does finally explain what the difference between right, left, header and footer is.

The only question I have left (for anyone) is how do the blocks relate to the index_body.tpl or index.php pages? I'm pretty sure the problem lies in those pages. When I make one block an active footer for example, TWO sets of blocks show up, one right on top of the other.

I'm not sure if there is some sort of switch the IM Portal relies upon in the template files, or where I would have to look in order to fix this problem. Also, headers do not show up correctly (with forum-wide headers enabled). They are just invisible.

Anyone know where I should look to correct the problem? I have already uninstalled and reinstalled the whole mod, so it's not in the mod files itself.
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: Frost » Thu Apr 26, 2007 5:19 am

Hmmmmm...

Can I have a link to your site with it showing two blocks?
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: gettingbetter » Thu Apr 26, 2007 6:52 am

Sure, let me PM it to you.
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Re: Right blocks show on portal.php, don't show on index.php

PostAuthor: gettingbetter » Fri Apr 27, 2007 10:13 pm

Okay, per Frost's request in a PM, I've included the index_body.tpl file here. I've X'ed out the site name where it appears in the file.

Code: Select all
<style><!--.style1 {font-weight]   [ {L_WHOSONLINE_MOD} ]<br>{RECORD_USERS}<br>{LOGGED_IN_USER_LIST}</span></td>         </tr>   <tr>     <td><span>{MOST_RECENT_WEBLOGS}</span></td>   </tr>    </table>              <table>      <tr>           <td><span>{L_ONLINE_EXPLAIN}</span></td>      </tr>      </table>              <BEGIN><form>   <table>           <tr>             <td><a></a><span>{L_LOGIN_LOGOUT}</span></td>           </tr>           <tr>             <td><span>{L_USERNAME}:               <input>                  {L_PASSWORD}:               <input>               <BEGIN>                    {L_AUTO_LOGIN}               <input>               <END>                                  <input>               </span> </td>           </tr>         </table>      </form>      <END>                <br>              <table>         <tr>           <td><img></td>           <td><span>{L_NEW_POSTS}</span></td>           <td>  </td>           <td><img></td>           <td><span>{L_NO_NEW_POSTS}</span></td>           <td>  </td>           <td><img></td>           <td><span>{L_FORUM_LOCKED}</span></td>         </tr>    </table>  
Last edited by gettingbetter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

gettingbetter
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 05, 2007 12:09 pm
Cash on hand: 0.00

Next

Return to IM Portal Support Forum

Who is online

Registered users: Bing [Bot], Google [Bot]