PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 7:19 am Reply with quote Back to top

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
Only registered users can see links on this board!
Get registered or login to the forums!

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.
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
duck
Involved
Involved


Joined: Jul 03, 2006
Posts: 267

PostPosted: Fri Jul 10, 2009 9:37 am Reply with quote Back to top

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.
View user's profile Send private message
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 9:52 am Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
mars
Worker
Worker


Joined: Jul 08, 2006
Posts: 123
Location: Bloomsburg,Pennsylvania

PostPosted: Fri Jul 10, 2009 10:01 am Reply with quote Back to top

I hate to say it but you are trying to duplicate what AutoTheme already does..
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 10:02 am Reply with quote Back to top

i need a methode to include a block without hardcode the content of the block into the theme.
And without using the original methode.
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 10:03 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
mars
Worker
Worker


Joined: Jul 08, 2006
Posts: 123
Location: Bloomsburg,Pennsylvania

PostPosted: Fri Jul 10, 2009 10:13 am Reply with quote Back to top

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..
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 10:32 am Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
duck
Involved
Involved


Joined: Jul 03, 2006
Posts: 267

PostPosted: Fri Jul 10, 2009 10:42 am Reply with quote Back to top

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.
View user's profile Send private message
mars
Worker
Worker


Joined: Jul 08, 2006
Posts: 123
Location: Bloomsburg,Pennsylvania

PostPosted: Fri Jul 10, 2009 10:44 am Reply with quote Back to top

Yes it is.
The free lite version does everything that the commercial version does except for caching.
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 10:46 am Reply with quote Back to top

Ok.. now we discussed autotheme , could we stay to the original post pls
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 11:05 am Reply with quote Back to top

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

??????
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
warren-the-ape
Worker
Worker


Joined: Nov 19, 2007
Posts: 196
Location: Netherlands

PostPosted: Fri Jul 10, 2009 11:21 am Reply with quote Back to top

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.
View user's profile Send private message
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 11:22 am Reply with quote Back to top

Ja aap , that's it gonna be
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 11:34 am Reply with quote Back to top

I got it... it is working perfectly take a look aap
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
duck
Involved
Involved


Joined: Jul 03, 2006
Posts: 267

PostPosted: Fri Jul 10, 2009 11:39 am Reply with quote Back to top

looks great! Good Job.

How about an full explanation of your approach?
View user's profile Send private message
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 11:47 am Reply with quote Back to top

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 to the forums!


link now works
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 1:25 pm Reply with quote Back to top

Cool

Package is complete and need testers

Only registered users can see links on this board!
Get registered or login to the forums!


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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 268
Location: Missouri

PostPosted: Fri Jul 10, 2009 7:55 pm Reply with quote Back to top

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?
View user's profile Send private message Visit poster's website MSN Messenger
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Fri Jul 10, 2009 7:57 pm Reply with quote Back to top

ho i'm sorry i was checking site.. look again and you see
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum