Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
thumpn8974
Worker
Worker



Joined: Feb 09, 2011
Posts: 188
Location: US

PostPosted: Wed Sep 24, 2014 3:54 pm Reply with quote

I am going to post this, and then I am going to do some digging. I am in a hurry to leave, so I am going to go ahead and post this.

My question:
Can you set up Ravenuke to where it doesn't show all the blocks just on the home page? Can you have multiple pages to set up like a media area where it is just videos, pictures, and media player? A page with a calandar instead of just on the front page, and so on? How hard would that be? Would I have to create html pages and incorporate them into the theme with a link pointing to that area? The only issue is that I don't know how to make it where they stay in the security of Ravenuke. I can add links into the header and create html pages and link them. It would just be cool if I could spread the different modules / blocks around instead of one long home page. I am a novice in php. I can do some really basic programing in visual basics, so you know I am at the bottom of the Learn-ed barrel...lol. Thanks
 
View user's profile Send private message Visit poster's website Yahoo Messenger
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Thu Sep 25, 2014 2:35 am Reply with quote

Its simply theme-based. Try a look into the themes RickTido and CT_RN. There you have options to hide the left blocks for specific modules. In every index.php of a module you can show/hide the right blocks with:

php Code:
// BEGIN: Added in v2.40.00 - Mantis Issue 0001043

$index = 0;
if (!defined('INDEX_FILE')) define('INDEX_FILE', true); // Set to FALSE to hide right blocks
if (defined('INDEX_FILE') AND INDEX_FILE===true) {
// auto set right blocks for pre patch 3.1 compatibility
$index = 1;
}
// END: Added in v2.40.00 - Mantis Issue 0001043


So you can create for each wanted page a simple module, add the modules in your theme.php to hide the left blocks and change the $index options in the index files of the modules to hide the right blocks. You could leave the left and right blocks maybe only for the News module on homepage.


To create a module with a simple html content you can create a folder with the name test in the modules-folder and create in there the file index.php with this code:

php Code:
<?php

if ( !defined('MODULE_FILE') ) {
die('You can\'t access this file directly...');
}

// BEGIN: Added in v2.40.00 - Mantis Issue 0001043
$index = 0;
if (!defined('INDEX_FILE')) define('INDEX_FILE', false); // Set to FALSE to hide right blocks
if (defined('INDEX_FILE') AND INDEX_FILE===true) {
// auto set right blocks for pre patch 3.1 compatibility
$index = 1;
}
$module_name = basename(dirname(__FILE__));

include_once 'header.php';
OpenTable();

echo '
<div class"text-center">
<strong>Hello World!</strong>
<br /><br />
<img src="http://www.ravenphpscripts.com/themes/RavenIce/images/logo.gif" alt="" />
</div>
';


CloseTable();
include_once 'footer.php';


After that you can activate the test-module in your modules-administration and you can call it with the url: /modules.php?name=test

_________________
Github: RavenNuke 
View user's profile Send private message
thumpn8974







PostPosted: Thu Sep 25, 2014 7:05 pm Reply with quote

I appreciate the response, and I will try it out. Thank you. Can I have different backgrounds and such like a regular website, or am I going to have to do a different setup and how about html5? Is ravenuke html5 compatible?
 
neralex







PostPosted: Fri Sep 26, 2014 2:43 am Reply with quote

RN have a XHTML doctype, that you can see if you try a look with the source code viewer of your browser. But you don't need HTML5 for different backgrounds. That is css-based and you can override the background css class in every module.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©