futbolli
|
Problem with portalshttp://futbollishqiptar.net/
When i click one of the links on the left menus, like Album or Contakt for example, the page opens with different components on each side (left and right columns).
How can I change these components? Or how can I match it to the home page ?
I hope i explained clear enough
|
Symon
|
Look in index.tpl AND cms_index.tpl
Index.tpl is found in the top drop box cms_index.tpl is found in the portal drop box ant the bottom
|
futbolli
|
at cms_index.tpl i see all the components that show up in the home page.
index_body.tpl doesnt have any components (MYFF.TOP or anuthing like that)
I don't where these pages for example
http://futbolli.myfreeforum.org/viewportal.php?component=gallery
or
http://futbolli.myfreeforum.org/kontakt.html
are getting the components on the left and right from. Since they're different from the components on the left and right on the main page here
http://futbolli.myfreeforum.org/index.php?component=indexpage
|
admin (no pm's please)
|
http://futbolli.myfreeforum.org/index.php?component=indexpage
will show things as defined in cms_index_body.tpl
http://futbolli.myfreeforum.org/viewportal.php?component=gallery
will show things as defined in your webpage configuration.
|
futbolli
|
The first one I know, since I use it often to make changes to the home page. But where can I change the webpage configuration?
|
admin (no pm's please)
|
admin/web pages/web configuration
|
futbolli
|
I have
Template that will be applied to the page Portal
What should I change?
|
admin (no pm's please)
|
I think this is your day for spotting bugs.
I am surprised this has not been spotted before. Portal picks up the default cms_index_body.tpl, and you have modified yours.
I will fix this.
|
futbolli
|
| admin (no pm's please) wrote: | I think this is your day for spotting bugs.
I am surprised this has not been spotted before. Portal picks up the default cms_index_body.tpl, and you have modified yours.
I will fix this. |
So this means there were no mistakes on my part
I had this problem for a while, but I though it would be a lot of work to fix it, so never asked about it. Since I had some time on my hands, I decided to give it a try.
|
admin (no pm's please)
|
Should be fixed now.
With a system as complex as this, there will be bugs, with viewing pages, there are a lot of different methods, html pages, component= pages, viewportal etc.
So we do rely a lot on bug reporting.
|
futbolli
|
| admin (no pm's please) wrote: | Should be fixed now.
With a system as complex as this, there will be bugs, with viewing pages, there are a lot of different methods, html pages, component= pages, viewportal etc.
So we do rely a lot on bug reporting. |
Can't blame you.
And I'm glad to help with the bugs.
So thanks again for your fast response with answering questions and fixing this problem also. Great work
|
futbolli
|
Ok another problem
With the web pages I still get the same problem even though I selected
Template that will be applied to the page Portal
or
Template that will be applied to the page Default
Is this still because of the bug ?
This is an example
http://futbolli.myfreeforum.org/kontakt.html
|
admin (no pm's please)
|
same bug, different place, now fixed
|
futbolli
|
Ok i get the side menus on all of the pages but now I also get the components of the middle column
http://futbolli.myfreeforum.org/viewportal.php?component=gallery
When you fixed the bug the first time I didnt get the middle components on this page, on the ones in the side columns. I only got the gallery in the middle. Now after the second fix that you just did I also get the chat and the latest posts.
I hope this doesn't require any work from me because I get the idea that it's not a bug.
|
admin (no pm's please)
|
That does make sense, as I think you have put those bits in cms_index_body.tpl and that is acting now as the template.
|
futbolli
|
| admin (no pm's please) wrote: | | That does make sense, as I think you have put those bits in cms_index_body.tpl and that is acting now as the template. |
Damnit, more work for me
So what should I do to show the components in the middle column only in the Homepage and show the components on the left and right column on all pages.
I understand that I probably should remove the components on the middle column from the template, but then where should I put them ?
|
admin (no pm's please)
|
cms_index_body.tpl defines a template where MYFF.COMPONENT is replaced with the content you want on a particular page.
So the easiest method is to create a web page with the components you want displayed in the middle of each page.
The default view :
http://futbolli.myfreeforum.org/index.php?component=indexpage
is only ever going to show the one portal defined in the OPTIONS portal.
|
futbolli
|
| admin (no pm's please) wrote: | cms_index_body.tpl defines a template where MYFF.COMPONENT is replaced with the content you want on a particular page.
So the easiest method is to create a web page with the components you want displayed in the middle of each page.
The default view :
http://futbolli.myfreeforum.org/index.php?component=indexpage
is only ever going to show the one portal defined in the OPTIONS portal. |
That's what I thought, that I had to create a homepage.html for example.
And I wanted to ask how come MYFF.COMPONENT doesnt show on the other pages, but only on the homepage. You gave me the answer.
I'll try doing this then. Hopefully I wont need anymore help.
Thanks a lot.
|
futbolli
|
Ok I did it.
The only problem is the Online Visitors component that showed how many members and guests were online before, and now doesnt show anything, only the title.
It's on the right column on the template, named "Vizitore"
http://futbollishqiptar.net/
This is the code that I have
| Code: | <table width="150" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<tr>
<th class="thRight">Vizitore</th>
</tr>
<tr>
<td class="row1" align="center"><span class="gensmall">{LOGGED_IN_USER_LIST}<br />{TOTAL_USERS_ONLINE}</span>
</td>
</tr>
</table> |
|
admin (no pm's please)
|
That is explained by the fact that this page is now index.html and unlike the forum index page it does not have the:
{LOGGED_IN_USER_LIST}
{TOTAL_USERS_ONLINE}
macros defined.
|
futbolli
|
| admin (no pm's please) wrote: | That is explained by the fact that this page is now index.html and unlike the forum index page it does not have the:
{LOGGED_IN_USER_LIST}
{TOTAL_USERS_ONLINE}
macros defined. |
So.. how can I add that component again in the same place?
|
admin (no pm's please)
|
It will need a new PORTAL which I will try and write later today.
If you think about it, this makes sense. It really would be pretty silly if each web page came with every macro you might possibly want defined for you, there would be enormous server load and 95% of the data loaded from the database would not be being displayed on that particular page.
Hence all apart from the core data is gathered by placing a portal on the page, when we see the portal the code to get that data is executed.
|
futbolli
|
| admin (no pm's please) wrote: | It will need a new PORTAL which I will try and write later today.
If you think about it, this makes sense. It really would be pretty silly if each web page came with every macro you might possibly want defined for you, there would be enormous server load and 95% of the data loaded from the database would not be being displayed on that particular page.
Hence all apart from the core data is gathered by placing a portal on the page, when we see the portal the code to get that data is executed. |
I was looking through the portal since I remembered seeing some names in there with "online users" but I guess the one I need doesn't exist.
Thanks for your help again. That would be a nice portal to have I think.
|
futbolli
|
I was wondering..
Once you create the portal to show online members and guests, how can I add that to the right column?
Can I use MYFF.COMPONENT in more than one place in the template to show different things from a page? Doesn't seem possible.
|
admin (no pm's please)
|
You cannot use MYFF.COMPONENT more than once.
But in most templates/pages you can place as many portals as you need.
e.g. in this case placing {MYFF.ONLINELIST} will show this portal.
|
futbolli
|
| admin (no pm's please) wrote: | You cannot use MYFF.COMPONENT more than once.
But in most templates/pages you can place as many portals as you need.
e.g. in this case placing {MYFF.ONLINELIST} will show this portal. |
I understand that I can just put {MYFF.ONLINELIST} on the template on the left column and it will show on every page.
But how would I do it if I only wanted to show it on the left column of the index.html ? (I'm just wondering, I'm fine with it showing on every page)
|
admin (no pm's please)
|
Not sure on what template type you are using now. If it is not a portal but a web template, then you can use the substitution macros.
In the web template where you want things you would put something like:
{LEFTSPOT}
and when defining index.html as a substitution macro you would put:
LEFTSPOT={MYFF.ONLINELIST}
|
futbolli
|
| admin (no pm's please) wrote: | Not sure on what template type you are using now. If it is not a portal but a web template, then you can use the substitution macros.
In the web template where you want things you would put something like:
{LEFTSPOT}
and when defining index.html as a substitution macro you would put:
LEFTSPOT={MYFF.ONLINELIST} |
I don't think I'm using a template.
|
admin (no pm's please)
|
http://forum.myfreeforum.org/sutra103666.php#103666
|
futbolli
|
Greattt
I added it already.
Does it show guests as well as it is? Or do I have to modify it?
|
admin (no pm's please)
|
The summary macro will show guests like the index page does.
e.g.
{TOTAL_USERS_ONLINE} should be :
In total there are 28 users online :: 4 Registered, 0 Hidden and 24 Guests [ Administrator ] [ Moderator ]
or similar.
|
futbolli
|
I'm using the table view, since the summary view was a little too big to put on a sidebar
|
admin (no pm's please)
|
Remember you can edit the template, the different views only effect the "S_ONLINELIST_FORMAT" switch.
|
futbolli
|
| admin (no pm's please) wrote: | | Remember you can edit the template, the different views only effect the "S_ONLINELIST_FORMAT" switch. |
Great . Thanks a lot admin.
made it nice and simple.
The text can not be changed right?
| Quote: |
In total there are 2 users online :: 1 Registered, 0 Hidden and 1 Guest
Registered Users: admin |
|
admin (no pm's please)
|
It should be using the default language of the forum for the text, but aside from that it cannot currently be changed.
But the "load" here is in getting the information, if you want some extra macros for presenting things as you want then I am not promising, but I am listening.
|
futbolli
|
| admin (no pm's please) wrote: | It should be using the default language of the forum for the text, but aside from that it cannot currently be changed.
But the "load" here is in getting the information, if you want some extra macros for presenting things as you want then I am not promising, but I am listening. |
I was just hoping I could put the text in my weird language
|
admin (no pm's please)
|
Logged in view with language profile set to Italian:
In totale c'è 1 utente in linea :: 1 Registrato, 0 Nascosti e 0 Ospiti [ Amministratore ] [ Moderatore ]
Record utenti in linea 2 in data 06 Mar 2007 06:42 pm
Utenti registrati: admin
Logged out view with board language set to French:
Il y a en tout 1 utilisateur en ligne :: 0 Enregistré, 0 Invisible et 1 Invité [ Administrateur ] [ Modérateur ]
Le record du nombre d'utilisateurs en ligne est de 2 le Mar Mar 06, 2007 6:42 pm
Utilisateurs enregistrés : Aucun
So seems to work for me.
|
Symon
|
| futbolli wrote: | | admin (no pm's please) wrote: | | Remember you can edit the template, the different views only effect the "S_ONLINELIST_FORMAT" switch. |
Great . Thanks a lot admin.
made it nice and simple.
The text can not be changed right?
| Quote: |
In total there are 2 users online :: 1 Registered, 0 Hidden and 1 Guest
Registered Users: admin |
|
You can change some of it , but not all.
www.facebookappchat.co.uk
|
|
|