Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Tue Apr 03, 2012 11:44 am Reply with quote

I have been playing with a new type of module - it has an MVC architecture and uses HTML 5 but have come across a small problem Sad
I'm using jQuery to manipulate some data via AJAX but the information that is displayed in the modules administration area has to be nested to reflect the way the data is organised (i'm also using tabs).
With a fixed width theme like RickTido, (around 960px) I have run out of width on the page, even with right blocks turned off and need to find a mechanism to turn off the left blocks as well.

We do have an array within our themes ($hide_blocks_left) for turning of left blocks but this only seems to be working on the module index page NOT within the modules administration area.

Has anyone come across this and found a solution?
 
View user's profile Send private message Send e-mail
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Apr 03, 2012 12:17 pm Reply with quote

I use Ravenice mostly. The code in the theme file can be changed to do something like this:

[code] global $hide_blocks_left;
if (in_array($name, $hide_blocks_left) || defined('ADMIN_FILE')) {

down around line 71. Probably there is something similar in the other themes.
 
View user's profile Send private message Visit poster's website
wHiTeHaT
Life Cycles Becoming CPU Cycles


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

PostPosted: Tue Apr 03, 2012 3:45 pm Reply with quote

you can also define per $file
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Guardian2003
PostPosted: Tue Apr 03, 2012 3:57 pm Reply with quote

Thanks, I'll try that when the old brain cells have had a nap Smile
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Fri Apr 06, 2012 9:01 am Reply with quote

Pretty long nap there G-man... ROTFL

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Guardian2003
PostPosted: Fri Apr 06, 2012 11:15 am Reply with quote

Thanks for reminding me. I never actually got to try the two idea's that were proposed.
After my nap, I decided that since the module uses it's own mini-template system and MVC architecture I decided to just put in my own header code in the 'template' files. Access is restricted via admin.php as usual but apart from that, the module itself runs completely stand alone and has no dependency on RN at at all. You can literally cut the module folder and paste it into the webroot and it will work identically, the only difference being that you need to add the DB connection details and 'path' settings in the modules config file for stand alone operation.
It has been an informative POC project.
 
montego
PostPosted: Fri Apr 13, 2012 10:08 am Reply with quote

Guardian2003 wrote:
It has been an informative POC project.


Sometimes, that is just what one needs.
 
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Fri Apr 13, 2012 10:29 am Reply with quote

I assume POC does not mean "Piece of Cake"
I don't think those projects exist, lol Rolling Eyes
 
View user's profile Send private message Visit poster's website
montego
PostPosted: Fri Apr 13, 2012 10:57 am Reply with quote

ROTFL

so true.... POC = "Proof of Concept"... for those who are not familiar with the term (not saying you weren't spastic as I know you were just kidding)
 
hicuxunicorniobestbuildpc
Life Cycles Becoming CPU Cycles


Joined: Aug 13, 2009
Posts: 967
Location: Netherland

PostPosted: Sun Apr 15, 2012 3:42 am Reply with quote

Oh my God, I was trying to get what POC was but now I know it is a not a piece of cake. hmmm
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©