You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 324 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - The use of: themes/$ThemeSel/modules/$name [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
wHiTeHaT
Private
Private


Joined: May 31, 2003
Posts: 41


PostPosted: Sat May 17, 2008 1:14 pm Reply with quoteBack to top

Hello @all,

What's the use of this function , or better HOWTO use it , in the file modules.php :

Code:

if (file_exists("themes/$ThemeSel/modules/$name/".$file.".php")) {
      $modpath = "themes/$ThemeSel/";
    } else {
      $modpath = "";
    }


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 Wink
Find all posts by wHiTeHaTView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 18, 2008 6:38 pm Reply with quoteBack to top

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.

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
wHiTeHaT
Private
Private


Joined: May 31, 2003
Posts: 41


PostPosted: Sun May 18, 2008 10:25 pm Reply with quoteBack to top

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. Embarassed
That is why i want it to have figured out , it looks more like a ghost code to me.

Grtzz wHiTeHaT
Find all posts by wHiTeHaTView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 18, 2008 10:30 pm Reply with quoteBack to top

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.

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
wHiTeHaT
Private
Private


Joined: May 31, 2003
Posts: 41


PostPosted: Sun May 18, 2008 11:03 pm Reply with quoteBack to top

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.

Grtzz wHiTeHaT
Wink
Find all posts by wHiTeHaTView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.040 Seconds - 390 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::