Page 1 of 1

Another problem i got - The problem finder in action ;)

Posted: Sun Jun 18, 2006 1:49 am
by Leon
Another problem i got - Statistic Mod

The problem and what i think is the problem is that
because these modules whit the tpl files for this mod is in the

root/stat_modules/
And not in the normal template directory

Therefore i think it can result in the problem that i cant use
{TPL_HDR1}blabla{TPL_HDR2}
That is used to make a normal block in Morpheus.

It seems like the style {TPL_HDR1} cant be found somehow.
So the results is that there is nothing there..

I want to change:

Code: Select all

<table border="0" cellpadding="4" cellspacing="1" class="forumline" width="100%"> 
  <tr> 
    <td class="catHead" align="center" colspan="6"> 
      <span class="cattitle">{L_TOP_SMILIES}</span> 
    </td> 
  </tr>
To

Code: Select all

{TPL_HDR1}{L_TOP_SMILIES}{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<th nowrap="nowrap" colspan="2">xxx undertext xxx</th>
But as i said if i do that the page cant find the style somehow..
And i think it is because all the modules is in the
root/stat_modules/

Any idé how to proceed ?

The stranges thing here is:
As you can see it looks stupid now (original code)
http://www.volunteerforum.se/statistics.php

But the same tpl file in root/stat_modules/
Is the same template file for the Admin Index Statistic page to
(Because when i try to change it it changes in admin page to)

The strange thing is that this same file
As you can see (image of admin page)
adminstatiscs.JPG
Looks alot more "ok" :? :? :?

Why :?: :?: :?:

Posted: Sun Jun 18, 2006 3:20 am
by battye
I think it looks fine the way it is :?

Posted: Sun Jun 18, 2006 11:52 am
by Leon
I dont think that.
All my site should have the same style on all pages.


Look here for example:
http://forum.talk.pri.ee/statistics.php

That is how it should be, and compare it whit mine.
Do you still think it looks "ok" whit grey *Beeeeeeeep* at my site ? :roll:

Posted: Sun Jun 18, 2006 12:01 pm
by battye
To be honest, I think yours looks better :)

Posted: Sun Jun 18, 2006 12:05 pm
by Leon
Ofcourse mine is better, mine always gona be better then anyone elses :wink:

But i could make it look even better (As always) :D

So do you have any idé why i cant use

{TPL_HDR1} {TPL_HDR2}

In all the tpl files in another folder then the normal
template folder ?

Posted: Sun Jun 18, 2006 12:15 pm
by battye
What exactly does {TPL_HDR1} and {TPL_HDR2} do?

Posted: Sun Jun 18, 2006 12:21 pm
by Leon
{TPL_HDR1} make the start:

Image


The {TPL_HDR2} create the end:

Image

I have also updated the stat page whit the right code now

Posted: Sun Jun 18, 2006 1:24 pm
by Leon
Just to see if this work, after the module code i added a module
i have on the Portal page:

Code: Select all

{TPL_HDR1}Volunteer Photos{TPL_HDR2_SMALL}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
	<tr>
		<td class="row1" align="center">
<br>
	<A href="album.php"><IMG src="Minmapp/Portalen/upload_volunteer_photo.jpg" alt="Upload volunteer photos here at Volunteer Forum for free. Enjoy!"></A><br>
<br>
	</tr>
		</td>
</table>{TPL_FTR}
Because this i know that work...

But the same problem accurs, it cant find the *beeeeeeepp*

Posted: Sun Jun 18, 2006 1:37 pm
by battye
I'm afraid I can't help you with this one, I've never used that particular theme before :(

Posted: Sun Jun 18, 2006 1:39 pm
by Leon
I dont think its the theme in question here..

The question i think is more like, "why cant i use any
normalt template code in a folder that isent in the normal template path"

Posted: Sun Jun 18, 2006 2:05 pm
by battye
Have you defined the variable through the $template->assign_vars() class?

Posted: Sun Jun 18, 2006 3:24 pm
by Leon
Well i did uistall 2.1.5 and updated it to the latest 3.0.1 BETA3h
(Another one has taken this script in hand and updated it
there for i dident see that it was updated first)

Its alot buggfixes in this new version and the ACP is quite good now
but the same template problem remain still.

But the problem now, is that i cant find the modules,
but they are there somewhere :? :oops:

Posted: Sun Jun 18, 2006 11:23 pm
by Leon
Whata fu***

diden't see it until now that you have the same statistic mod,
but the old version :o