BEGIN/END Tags In Order To See Specific Content (IcyPhoenix)


Subject: BEGIN/END Tags In Order To See Specific Content (IcyPhoenix)
Hi guys.

At XS I made the following sky bar (the red rounded):

skybar

And I used this TAGS:

Code: [Download] [Hide] [Select]

<!-- BEGIN switch_user_logged_in -->

<!-- END switch_user_logged_in -->
------------------------------------------------------
<!-- BEGIN switch_user_logged_out -->

<!-- END switch_user_logged_out -->


to specific when a link was visible for an user, and when for a guest.

Ok, now with IcyPhoenix no one of that TAGS run. Links stay visible for everyone, so for example the Register link now is visible both for an user and a guest, instead of just the guest, who isn't registered, do I explain?

That SkyBar was OK, and I would like to know, if it's possible, what to do, to make the bar run at Icy.

Thanky!!

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
same tags :?

remember it is overall_header_sq.tpl

Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Yes, I had seen that TAGS were the same, so I don't understand why don't run.

And, of course, I did it at overall_header_SQ.tpl


Any idea?

___________

Oh my goddess!!

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Perhaps it may be due to putting the menu bar within the DIV of header. I have tried it, and I've seen that if I put the bar under the DIV, the TAGS work, but if I put it within the DIV, do not work. The problem is that I must keep it within the DIV, because forum's edges become bad if I keep the menu bar out, however inside they stay ok. Some idea?

Thanks

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Maybe MG can help you Lord Karadura.

Your header looks nice :-)

One hint, on every site the music plays automaticly. In my opinion it's not so good. ;-)

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Thanks, TheSteffen. Yes it looks fine, but I had to delete the both right and left shadows :( in order not to get the forum deformed. If MG finds a way to keep them, I'll be pleased.

Greetings !!

PD: Yes, music is exasperating, cause every refresh makes it start again. I was trying, but I will surely remove it. ;)

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Lord Karadura wrote: [View Post]
Perhaps it may be due to putting the menu bar within the DIV of header. I have tried it, and I've seen that if I put the bar under the DIV, the TAGS work, but if I put it within the DIV, do not work. The problem is that I must keep it within the DIV, because forum's edges become bad if I keep the menu bar out, however inside they stay ok. Some idea?

Try to post here that code, so I can check.

Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Ok, here is the overall_header_sq.tpl code. The Sky banner is DOWN the header, out of the Div:

Code: [Download] [Hide] [Select]
<!-- TOP LINKS -->

<center><table width="100%" height="70" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->

<tr>
<!-- BEGIN mg_switch_user_is_admin -->
<td width="11%" height="42" valign="top">&nbsp;</td>
<!-- END mg_switch_user_is_admin -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_PORTAL}"><img src="images/webtitle/menu/inicio.png" width="42" height="42" border="0" /></a></td>
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_INDEX}"><img src="images/webtitle/menu/foro.png" width="42" height="42" border="0" /></a></td>
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_DOWNLOADS}"><img src="images/webtitle/menu/descargas.png" width="42" height="42" border="0" /></a></td>
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="viewforum.php?f=3"><img src="images/webtitle/menu/videos.png" width="42" height="42" border="0" /></a></td>
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_BOARDRULES}"><img src="images/webtitle/menu/normas.png" width="42" height="42" border="0" /></a></td>

<!-- BEGIN switch_user_logged_in -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_PROFILE}"><img src="images/webtitle/menu/paneldecontrol.png" width="42" height="42" border="0" /></a></td>
<!-- END switch_user_logged_in -->

<!-- <td align="center" style="text-align: center; font-size: 11px; color: #FF1010;"><div align="center"><a href="{U_SEARCH_NEW}"><img src="file:///D|/Documentos de Sergio/Mis imágenes/imagenes web/nuevo.png" alt="{L_NEW2}" width="42" height="42" border="0" /></a></div></td> -->

<!-- BEGIN switch_user_logged_out -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_REGISTER}"><img src="images/webtitle/menu/registrarse.png" width="42" height="42" border="0" /></a></td>
<!-- END switch_user_logged_out -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_SEARCH}"><img src="images/webtitle/menu/buscar.png" width="42" height="42" border="0" /></a></td>
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_LOGIN_LOGOUT}"><img src="images/webtitle/menu/conectarse.png" width="42" height="42" border="0" /></a></td>
</tr>
<tr>
<!-- BEGIN mg_switch_user_is_admin -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><b>{ADMIN_LINK}</b></td>
<!-- END mg_switch_user_is_admin -->
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #C6A946;"><a href="{U_PORTAL}" class="Estilo1">{L_HOME}</a></td>
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_INDEX}" class="Estilo1">{L_INDEX}</a></td>
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #C6A946;"><a href="{U_DOWNLOADS}" class="Estilo1">{L_DOWNLOADS}</a></td>
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="viewforum.php?f=3" class="Estilo1">Videos</a></td>
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_BOARDRULES}" class="Estilo1">{L_BOARDRULES}</a></td>
<!-- BEGIN switch_user_logged_in -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_PROFILE}" class="Estilo1">{L_CPL_NAV}</a></td>
<!-- END switch_user_logged_in -->

<!-- <td valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><div align="center"><a href="{U_SEARCH_NEW}">{L_NEW2}</a></div></td> -->

<!-- BEGIN switch_user_logged_out -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_REGISTER}" class="Estilo1"><b>{L_REGISTER}</b></a></td>
<!-- END switch_user_logged_out -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_SEARCH}" class="Estilo1" onMouseOver="dropdownmenu(this, event, menu1, '250px')" onMouseOut="delayhidemenu()">{L_SEARCH}</a></td>
<td width="11%" align="center" valign="top"><a href="{U_LOGIN_LOGOUT}" class="Estilo1">{L_LOGIN_LOGOUT}</a><strong>
<!-- BEGIN switch_user_logged_out -->
&nbsp;
<!-- END switch_user_logged_out -->
</strong></td>
</tr>
</table>
</center>
<!-- BEGIN switch_header_table -->
<tr>
<td width="100%" colspan="3">
<center>
<table class="forumline" width="90%" cellspacing="0" cellpadding="0">
<tr><td class="row-header"><span>{L_STAFF_MESSAGE}</span></td></tr>
<tr>
<td class="row-post"><div class="post-text">
<br /><div class="post-text">{switch_header_table.HEADER_TEXT}</div><br /><br /></div>
</td>
</tr>
</table>
</center>
</td>
</tr>
<!-- END switch_header_table -->


And it would look like this:

withinthedivs

As you can see, I had to delete the shadow_borders from the CSS, because it got deformed.

Watch the third button from the right, it's the Register button, and it appears ok.

Now, the next would be the code for the Skybaner IN the header's Div:

Code: [Download] [Hide] [Select]
<div id="top_logo">
<!-- BEGIN switch_header_banner -->
<table width="100%" height="200" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><img src="templates/mg_themes/images/{TPL_COLOR}/webtitle_l.gif" width="40" height="200"></td>
<td class="webtitle"><center>{HEADER_BANNER_CODE} </center></td>
<td align="left"><img src="templates/mg_themes/images/{TPL_COLOR}/webtitle_r.gif" width="40" height="200"></td>
</tr>
</table>
<table width="100%" height="70" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->

<tr>
<!-- BEGIN mg_switch_user_is_admin -->
<td width="11%" height="42" valign="top">&nbsp;</td>
<!-- END mg_switch_user_is_admin -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_PORTAL}"><img src="images/webtitle/menu/inicio.png" width="42" height="42" border="0" /></a></td>
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_INDEX}"><img src="images/webtitle/menu/foro.png" width="42" height="42" border="0" /></a></td>
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_DOWNLOADS}"><img src="images/webtitle/menu/descargas.png" width="42" height="42" border="0" /></a></td>
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="viewforum.php?f=3"><img src="images/webtitle/menu/videos.png" width="42" height="42" border="0" /></a></td>
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_BOARDRULES}"><img src="images/webtitle/menu/normas.png" width="42" height="42" border="0" /></a></td>

<!-- BEGIN switch_user_logged_in -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_PROFILE}"><img src="images/webtitle/menu/paneldecontrol.png" width="42" height="42" border="0" /></a></td>
<!-- END switch_user_logged_in -->

<!-- <td align="center" style="text-align: center; font-size: 11px; color: #FF1010;"><div align="center"><a href="{U_SEARCH_NEW}"><img src="file:///D|/Documentos de Sergio/Mis imágenes/imagenes web/nuevo.png" alt="{L_NEW2}" width="42" height="42" border="0" /></a></div></td> -->

<!-- BEGIN switch_user_logged_out -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_REGISTER}"><img src="images/webtitle/menu/registrarse.png" width="42" height="42" border="0" /></a></td>
<!-- END switch_user_logged_out -->
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_SEARCH}"><img src="images/webtitle/menu/buscar.png" width="42" height="42" border="0" /></a></td>
<td width="11%" height="42" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_LOGIN_LOGOUT}"><img src="images/webtitle/menu/conectarse.png" width="42" height="42" border="0" /></a></td>
</tr>
<tr>
<!-- BEGIN mg_switch_user_is_admin -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><b>{ADMIN_LINK}</b></td>
<!-- END mg_switch_user_is_admin -->
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #C6A946;"><a href="{U_PORTAL}" class="Estilo1">{L_HOME}</a></td>
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_INDEX}" class="Estilo1">{L_INDEX}</a></td>
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #C6A946;"><a href="{U_DOWNLOADS}" class="Estilo1">{L_DOWNLOADS}</a></td>
<td width="11%" align="center" valign="top" class="Estilo1" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="viewforum.php?f=3" class="Estilo1">Videos</a></td>
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_BOARDRULES}" class="Estilo1">{L_BOARDRULES}</a></td>
<!-- BEGIN switch_user_logged_in -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_PROFILE}" class="Estilo1">{L_CPL_NAV}</a></td>
<!-- END switch_user_logged_in -->

<!-- <td valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><div align="center"><a href="{U_SEARCH_NEW}">{L_NEW2}</a></div></td> -->

<!-- BEGIN switch_user_logged_out -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_REGISTER}" class="Estilo1"><b>{L_REGISTER}</b></a></td>
<!-- END switch_user_logged_out -->
<td width="11%" align="center" valign="top" style="text-align: center; font-size: 11px; color: #FF1010;"><a href="{U_SEARCH}" class="Estilo1" onMouseOver="dropdownmenu(this, event, menu1, '250px')" onMouseOut="delayhidemenu()">{L_SEARCH}</a></td>
<td width="11%" align="center" valign="top"><a href="{U_LOGIN_LOGOUT}" class="Estilo1">{L_LOGIN_LOGOUT}</a><strong>
<!-- BEGIN switch_user_logged_out -->
&nbsp;
<!-- END switch_user_logged_out -->
</strong></td>
</tr>
</table>
<!-- END switch_header_banner --></div>


Look how the button before has disappeared, as well as the Profile button (if logged on):

withinthedivs2

It's unbelievable.

Saluti!

ADDED:

Please, take also note, if you can, that the nav_div (Home>Forum>Etc..) gets some increased height since I installed the Skybar, and I know no way to reduce again:

Before:

nav2

After:

nav1

Thanks.

Last edited by Lord Karadura on Wed 07 Feb, 2007 01:00; edited 1 time in total
Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Sorry, but I can't understand what the problem is... :sad:

It seems to work fine to me... :roll:

Can you please highlight only the SkyBanner code?

Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Ok, I shorted It a bit. The first shows the TOP LINKS code, and the second show the same code but inside the header div. When the code is placed in the div, the Tags don't work.

:?:

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Why are you using the switch_header_banner?

That is meant only for google ads... or some other banner you insert in ACP.

Why you can't use that HTML code outside the switch? :roll:

Sorry, but maybe I've not understood what you need. :sad:

Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Oops, I didn't use the right word, maybe. When I talk about "Sky Banner" I mean the Menu Buttons down the title, those buttons in which i've added a image over each of them. There is the problem, the tags don't run when I try to make disappear some of those buttons, with their respective image. Cause I placed that Menu Bar down the title, but IN the table where the title is, instead of OUT of the table. Then, when the Menu Bar is out of the table, the tags fail, but borders keep OK. However, if I place the Menu Bar IN the table, next to the title (with a breakline) the tags are ok, but borders get deformed, and Resizing in FFox causes a bothering efect. Should I give it up ? :cry:

:wink:

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Never give up... :wink:

I'll try to help you to get this sorted out.

Can you please take two extra snapshot of your problem, with and without your code, inserting a circle or an arrow indicating the problems... then attach in a zip files both snapshots and overall_header, so I can take a better look at the problem?

Thanks.

Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Strange, but I tried a last atempt, and I finally got the wanted results. I started from 0: used the Menu bar that I had, over the original overall_header_sq.tpl, and now it runs. LOL

I'm not sure why now it works, I must have tried it about 200 times, XD. But at least it works, that's the important thing.

Thanks for your time!! :D




Pd: here you have a preview: http://www.elautillocoloso.com
I know template's images are not a big thing, but i'm learning, just wait!! xd

Profile PM  
Subject: Re: BEGIN/END Tags In Order To See Specific Content (IcyPhoe
Great that you solved! :mri:

Your template is even nicer now with the new table headers... I think you are ready to create a new one for Icy Phoenix and distribute it! :icy_lol_flag:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0868s (PHP: 25% SQL: 75%)
SQL queries: 10 - Debug Off - GZIP Enabled