Author |
Message |
wHiTeHaT
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 18, 2004
Posts: 579
|
Posted:
Fri Jul 10, 2009 7:19 am |
|
Hello @all
I'm working on the themecp panel to use with themes i early ported over to ravennuke.
I've tweaked the themes so that it is posseble to either show a center up or a center down block to the right side of my theme for example:
center up block
leftblock||rightblock
center down block
Or simply see here www.soebiesplace.com
however i want to be able to override the default settings and show a particular block in the original center position.
For that i require to retrieve the block's name
Code:
head();
include_once 'includes/counter.php';
if (defined('HOME_FILE')) {
message_box();
if ($themeCB_Top == 0) *** make an AND + block name here*** {
blocks('Center');
}
}
|
So as you might notice if set the $themeCB_Top to 0 ( inside the theme.php)
It will show the original methode. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
duck
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 03, 2006
Posts: 273
|
Posted:
Fri Jul 10, 2009 9:37 am |
|
Very interesting idea and concept and I like it very much. I am thinking if it were me to make for bettor dynamics why not make a 5th block function called content blocks (or something like that) then if necessary modify the blocks table (although I doubt actual modification of it's table structure would be necessary) then modify your blocks admin functions to permit this 5th block type then just call the 5th (or 5th and 6th ie contentup contentdown) in the theme. Doing it this way would mean you can play and add subtract blocks at will thru admin rather than having to recode the theme each change. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 9:52 am |
|
That is what i treid to do.
As i made these templates a year ago , i totaly forgot what i have done and confuses me ![Embarassed](modules/Forums/images/smiles/icon_redface.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mars
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 08, 2006
Posts: 123
Location: Bloomsburg,Pennsylvania
|
Posted:
Fri Jul 10, 2009 10:01 am |
|
I hate to say it but you are trying to duplicate what AutoTheme already does.. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:02 am |
|
i need a methode to include a block without hardcode the content of the block into the theme.
And without using the original methode. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:03 am |
|
lol sorry to say , but i dont like autotheme , autotheme is to create themes (originaly)
and not to manipulate by a click.
also did you checked the size of autotheme?
to much resources needed , it is to overdone in my opinion. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mars
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:13 am |
|
The size? the size of the entire module is under a megabyte..
It is a small module, and does have complete block control.
You can put any block, in any position, based on any criteria, even down to the module.
You can use images in place of block titles, you can have custom html for each block.
Unlimited custom block positions too..
But I am not trying to knock what you are doing, just trying to let you know it is done already.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:32 am |
|
I apreciate your information , however it isnt the same as what my idea of the whole concept is.
As i said autotheme is to create themes either have all the options you mentioned or not , however , it is its purpose.
My intention is to manipulate excisting themes and eventualy strip out the whole theme control out of (raven)nuke's kernel.
to give you an idea check phpbb3's template engine |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
duck
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:42 am |
|
mars wrote: | I hate to say it but you are trying to duplicate what AutoTheme already does.. |
But Autotheme is not free so there is no duplication then, If Autotheme were an Open Source Solution then looking at Autotheme would be an option but it is not. If you know of any Open Source solutions then you can claim duplication of function cause then end users would have a free alternative to try. As is it is not. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mars
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:44 am |
|
Yes it is.
The free lite version does everything that the commercial version does except for caching. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 10:46 am |
|
Ok.. now we discussed autotheme , could we stay to the original post pls |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 11:05 am |
|
Ok i think i'm close to something * euhm euhm*
As i work since a long time with nuke i still come to surprises when i try to locate something.
As for now i try to find where it is told
blocks(Down)
Blocks(Center)
Blocks(left)
blocks(right)
where it is written to use Center,Down,left,right , i can only find in mainfile l,r,c,d
?????? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
warren-the-ape
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/5064660247507d6711183.jpg)
Joined: Nov 19, 2007
Posts: 196
Location: Netherlands
|
Posted:
Fri Jul 10, 2009 11:21 am |
|
Would this be a module or something you hack into your theme?
I always liked the blog like lay-out where you can combine either 1 or 2 blocks into 1 column, next to your main content.
It would be something I'd like to use for a new theme. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 11:22 am |
|
Ja aap , that's it gonna be |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 11:34 am |
|
I got it... it is working perfectly take a look aap |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
duck
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 11:39 am |
|
looks great! Good Job.
How about an full explanation of your approach? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 11:47 am |
|
i had to adapt the mainfile and did for now a manual database insertion.
I also needed to adapt header.php + footer.php , however i already needed to edit these 2 in first place.
As i for now just did a test ( couse it is working now the other way around) i want to complete the whole part.
just to give you an idea i go post you the mainfile.php , what needed the most edits , i'm also not 100% i did it correctly , there are also other things involved i might looked over.
for example the url rewrite part or headlines etc etc.
anyway take a look:
Only registered users can see links on this board! Get registered or login!
link now works |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 1:25 pm |
|
Package is complete and need testers
Only registered users can see links on this board! Get registered or login!
BACKUP YOUR INVOLVED FILES
mainfile.php
header.php
footer.php
admin/modules/blocks.php
no language included
in admin blocks you will see options:
_CENTERUP2
_CENTERDOWN2
Ravennuke version used: 2.30.02 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
horrorcode
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jan 17, 2009
Posts: 272
Location: Missouri
|
Posted:
Fri Jul 10, 2009 7:55 pm |
|
Hi. Can you better describe what the functions of this are? Im just a little confused, when I look at the link you posted it looks like a normal nuke layout.
Can you post some screenshots maybe? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jul 10, 2009 7:57 pm |
|
ho i'm sorry i was checking site.. look again and you see |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|