Jump to content

Illuminati Template v1 With News Marquee


monkeypaw201

Recommended Posts

Template Name: Surreal Template

Current Version: 1.1

Download URL: http://rapidshare.com/files/440863527/phpvmstemplate_illuminativ11.zip (255 KB)

Neat Features to Note:

  • Scrolling Marquee with Latest News

Template Notes:

In order to have a list, instead of paragraphs (without changing the core), a little 'hack' is used for the recent pireps and recruits at the bottom by using the native MainController for RecentFrontpage by using:

<?php str_replace("<p>","<li>",str_replace("</p>","</li>",MainController::Run('PIREPS', 'RecentFrontPage', 5))); ?>

Instead of:

<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

In addition to the little 'hack' used above, its also used to generate the latest new in the marquee by using this:

                           <?php 
                           ob_start();
                           MainController::Run('News', 'ShowNewsFront', 5);
                           $buffer = ob_get_contents();
                           ob_end_clean();
                           $data = explode("<h3>",$buffer);
                           $data = explode("</h3>",$data[1]);
                           ?>

and using $data[0] to display the latest news item for the marquee, and something similar for the bottom 'Latest news item'

Only 3 Templates are overridden; acarsmap.tpl , frontpage_main.tpl , route_map.tpl

acarsmap.tpl - Override google map width/height to fit into template (625 x 600). It can also be done in your /core/local.config.php

# Google Map Options
Config::Set('MAP_WIDTH', '625px');
Config::Set('MAP_HEIGHT', '600px');

frontpage_main.tpl - Remove the latest reports, pilots and online users as its redundant. Information already available in sidebar.

route_map.tpl - Override google map width/height to fit into template (625 x 600). It can also be done in your /core/local.config.php

# Google Map Options
Config::Set('MAP_WIDTH', '625px');
Config::Set('MAP_HEIGHT', '600px');

Preview Image:

o8ulp4.jpg

Installation Directions:

  • Download
  • Unzip / Extract
  • Upload folder (illuminativ1) + contents to /lib/skins/ folder
  • Active template in admin center

Link to comment
Share on other sites

Hi Tom,

Thanks for pointing that out, I've updated the download to include the fix, but if you want to do it manually, here is how:

In layout.tpl replace line 55 which reads:

<div id="content_bar"><marquee>Latest News: <?php echo $data[0]; ?></marquee></div>

With:

<div id="content_bar"><marquee width="950px">Latest News: <?php echo $data[0]; ?></marquee></div>

Link to comment
Share on other sites

  • 4 months later...
  • 1 year later...

The core_navigation.tpl is located at core/templates. Look in that folder and you will be sure to find it! Haha :) I would suggest making a copy of it and placing it in the skin folder, then you can play around with the links without messing the original up if you come across problems you can always refer to the original!

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...