Teddybear
|
All working fine at the moment with one exception. I'm trying to add portals to my default template, Blackbox, which is a copy of the original. I've put the code in the overall header and overall footer but nothing happens. Maybe i missed something. http://danglyendchronicles.ford3.myfastforum.org
I've tried a left portal, a right portal and portals on both sides. I've deleted my browser cache just in case but to no avail. Could this be one of the templates that needs to be altered in a different way. Thanks in advance for any advice.
|
Teddybear
|
Ignore this post it's in the wrong place.
|
Symon
|
I moved this post to the correct area, why ignore it .
And then why repost in the wrong thread again?????
Whats new is no the place for support questions on phpbb3 ... this area is.
|
Teddybear
|
Sorry i didn't realise you may of moved it i though my computer was going screwy. The question however still stands.
|
Symon
|
if you have
| Code: |
<!-- BEGIN switch_forum_view --> |
and
| Code: | | <!-- END switch_forum_view --> |
in your code then please remove them
The guides were wrong on HOWTODOIT 3 and i have just edited them.
|
Teddybear
|
Thanks. Another job jobbed.
|
Teddybear
|
Now i've got some of the portals i want. The others i want to have don't work, (Clock, userranks, recently online etc), but i notice from reading other posts that this is a on going problem so i shall be patient and wait. Got a lot of other things to sort out anyway.
http://danglyendchronicles.ford3.myfastforum.org
|
Nick(NR)
|
new clock guide up:
http://portalogy.myfabforum.org/index.php
seems pretty sound as I've had no problems with it, membership is required as the test portals section is hidden and members only.
|
Teddybear
|
Your a diamond and a life saver. I've been pulling my hair, what there is of it, out trying to solve the borders problem on the portals and getting the clock to work. However, (you knew there'd be a however) I can't seem to get the clock text to appear. I've even changed the color in the portaltitle to #ffffff instead of #fff as was written just in case it was wrong, but still nothing. I must have missed something but I'm sure I haven't.
http://danglyendchronicles.ford3.myfastforum.org
|
Nick(NR)
|
nope, it's all there, I think it's not showing because the clocks javascript is too high up, I've got mine under the stylesheet part, but above the javascript for the popup on pm.
|
Teddybear
|
Nope! still nothing. This is gonna be one of those lifes mysteries things.
|
Teddybear
|
It's interesting to note that i've tried half a dozen different themes now and the clock doesn't work with any of them. I'm sure my java is up to date but i'll try anyway.
|
Teddybear
|
Managed to sort out the boders for the portals, and got login, mainmenu, topposters and announcements working fine. But the clock that doesn't say anything still escapes me. I haven't tried any of the other portals yet.
|
Nick(NR)
|
what have you put into the new portal for the clock?
|
Teddybear
|
Right. In the cms_currenttime.tpl i placed this code:
| Code: | <table width="100%" cellpadding="4" cellspacing="0" border="0" class="portalline" align="center">
<tr>
<th colspan="1" width="150" height="25" class="portaltitle" nowrap="nowrap">Live Time!</th>
</tr>
<tr>
<td class="row2" align="center">
<span class="forumlink">
<span id="clock"> </span>
</span>
</td>
</tr>
</table>
|
In the overall header i placed this code between the ref to the stylesheet and the pop-up-pm:
| Code: | <script type="text/javascript">
<!--
function updateClock ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;
// Update the time display
document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
// -->
</script> |
And finally this piece of code into the css file under the layout section: Maybe this piece should further down.
| Code: | /* portal styling */
.portaltitle {
border-bottom: 1px solid #444444;
color: #ffffff
}
.portalline {
border: 1px solid #444444;
} |
|
Teddybear
|
On the same theme of problems with portals. I'm currently trying to sort out the template i would like to use as a default. That being, 'X-Treme'. My problem is this. If i try to put portals on the left, the portals appear but the forums don't appear until after the portals have finished. If i put the portals on the right they don't appear until the end of the forum. I wonder if you could shed any light on this.
http://danglyendchronicles.ford3.myfastforum.org
|
Nick(NR)
|
I need to see the template your editing, not a default one
|
Teddybear
|
The one on the screen at the moment is tyhe one i'm trying to fix. Try it now.
|
Nick(NR)
|
your overall_footer is showing me an error:
| Code: | <tr>
<td align="center"
</span>
</td>
</tr>
</table> |
the < td align isn't closed, close it and see how that goes, it may be a case of me needing to test on that template to see where to put the portals as it does use various images where most templates don't.
|
Teddybear
|
I closed the error as you suggested and it did nothing to improve the situation as i expected. Looks as though you may have to tinker with the template after all.
|
Teddybear
|
I've decided not to use the X-Treme template any more as there are too many errors on it. Portals not sitting right, Goto pages wrong. So i've decided to use another template and i'll come back this one later when it may be fixed.
|
Nick(NR)
|
I need an error list, so I can fix various things, portal placement will have to be a new section on portalogy-V3 for people to check.
but I need that list if you can help, as much info on each as possible and if you think it could help throw in a few screen shots.
|
Teddybear
|
Right here goes:
3 errors i managed to fix. 2 errors still remain.
1. Portals incorrectly positioned. (see pics 1 & 2)
2. Goto page function incorrect. (see pics 2 & 3)
Error 2 is somehow connected with error 1.
Click to see full size image
As you can see portals are incorrectly positioned.
Click to see full size image
When you access topics, portals are now correct but goto pages are incorrect.
Click to see full size image
With no portals goto page function now correct.
I hope this has been of some help to you. If any other info is required then please let me know. I have reinstalled X-Teme template for you to look at.
http://danglyendchronicles.ford3.myfastforum.org
|
Teddybear
|
Yet another error has cropped up with X-Treme template. This time it's the Friend/Foe section it just won't let you put any friends on. Where as with the Blue Moon template it all works lovely, no probs at all. Do you think it's worth comparing the two templates?
|
Nick(NR)
|
Well tbh it would seem this template is just plain dire tbh, have checked the friend/foe thing you mention and it does work, but I have moved all the portal code around to various locations without joy, even fiddled the width of the forums and still nothing.
|
Teddybear
|
I vote that it should be removed as a template for phpBB3. Due to the amount of errors it contains. Pity really coz it's a nice looking template. But there are plenty oif others.
|
Nick(NR)
|
| Teddybear wrote: | | I vote that it should be removed as a template for phpBB3. Due to the amount of errors it contains. Pity really coz it's a nice looking template. But there are plenty oif others. |
There are no real errors as such, the image borders around the forums are done in table with the phpbb3 table lists inside, as a template it's fine, it just wont take portals and I doubt this will get pulled on one shout of friend and foe not working seeing as I've tried it on this template and it works, so will need more to check and shout back as to friend and foe not working with this template.
|
|
|