Ofcourse i understand it is module specific, however, i cant find a way to pass the $vars to the themes module specific folder.
I ended up finaly copying the whole News module into the themes folder, wich ofcourse isnt a solution to have an pre-styled News module.
In past nuke versions there was used a folder especialy for the Forum design ( deepblue theme).
However as phpbb has its own template stucture it doesnt clear up how to use it.
I really wonder if someone can clear this up for me or show me a theme what has an extra folder for a module specific.
Grtzz wHiTeHaT
Evaders99 Site Admin
Joined: Aug 17, 2003
Posts: 12373
Posted:
Sun May 18, 2008 6:38 pm
Looks like it checks for a module defined by your theme. So assuming it exists, it tries to pull those files.
Copying the News module should work, just activating that theme should do the trick. I'm not sure there's anything else specific that you have to do.
lol i still not understand , couse it is original php-nuke code what comes with al versions.
What is the actual reason this code is made.
It is located in modules.php
Like i said, in the past we had a folder for forums inside our theme, in the deepblue theme.
However this folder contained only the tpl's for it.
In these tpl's ofcourse there where phpbb's { place holders }.
And in the deepblue theme nothing else was required to let it function.
My goal finaly was to make a themes/mytheme/modules/News layout withouth inserting all news functions or includes etc.
But something simple like <div id=newstitle">$title</div> .
Infact i really assumed it was the purpose of it.
i work since a verry long time with php-nuke and i never infact let my eye fall on it before.
That is why i want it to have figured out , it looks more like a ghost code to me.
Grtzz wHiTeHaT
Evaders99 Site Admin
Joined: Aug 17, 2003
Posts: 12373
Posted:
Sun May 18, 2008 10:30 pm
It seems to be to completely write your own customizations with the PHP code. You would basically edit all the news functions and such.
Actually news layout is basically abstracted out into theme.php (and possibly story_home.html and other .html files). Depending on how your theme is written, it should be fairly easy to edit the look of them, if that's what you are trying to do.
Well , as you might now.
The theme.php is also restricted passing $vars to the story page / story home code.
As the news module itself already combines the $morelink var.
What contain readmore/bytes/comments etc.
Also dont forget the themesidebox coded directly inside the newsmodule for login/voting-rate/poll/printer freindly etc and the comments.php
I thought with use of the code in modules.php i could bypass the combinations made in actual News module and grab the $vars as i wanted.
I still think it is somehow posseble but i never seen it used this way.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum