Jump to content

monkeypaw201

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by monkeypaw201

  1. So it turns out that there is a way to create admin templates, in the /admin/lib/ folder you'll see a folder called 'layout' which is the default template. Templating works the same as for standard skins. The configuration option is available in /core/app.config.php on line 258: Config::Set('ADMIN_SKIN', 'layout');
  2. Template Name: Admin In The Clouds Current Version: BETA 1.1 Demo URL: http://www.la92.com/thread-5.html Download URL: http://www.la92.com/attachment.php?aid=9 (233 KB) Neat Features to Note: First Admin Panel Template jQuery Effects Dropdown Menu 2-Color Options Template Notes: This template is easy to install, won't get overwritten with updates, and offers two colors to choose from (blue and red). The exact same functionality is maintained (including new features from updates), however in order to keep it as dynamic as possible, I've had to sacrifice some of the formatting so I don't need to change too many core template files. As a result, I'm releasing this as a BETA while I work on repairing those formatting issues. Please reply or rate this thread if you would like more work seen on this, as I'm somewhat hesitant to continue work on the admin side. EDIT: Instructions on how to change colors are posted below (3 posts down) Preview Image: Installation Directions: Download Unzip / Extract Upload folder (aitc) + contents to /admin/lib/ folder Edit app.config.php as shown below (Appendix 1) Appendix 1 In /core/app.config.php replace line 258 which reads: Config::Set('ADMIN_SKIN', 'layout'); With: Config::Set('ADMIN_SKIN', 'aitc');
  3. I was looking at this yesterday as well, trying to see if there was a way around it, but I think without tweaking some core files (shouldn't be TOO hard) its not possible. I will take a look this week and see if there is a not overly complicated way of doing it.
  4. I have a gut feeling I know what is wrong.. but if post or PM me the layout.tpl for the skin/template you are using, I can quickly tell you what is wrong.
  5. Something solely via phpVMS or in general? I ask because I've played with the facebook connect comment API, and I know how to implement that.
  6. Template Name: Brilliance Template Current Version: 1.1 Download URL: http://rapidshare.com/files/440863338/phpvmstemplate_brilliancev111.zip (233 KB) Neat Features to Note: jQuery Pilot Center Top Picture Slider (Cool Switch / Slide Effect) Utility Links Template Notes: This template is rather neat in the fact, that the pilot center is actually in a jQuery slider at the top of the page. Only 3 Templates are overridden; acarsmap.tpl , frontpage_main.tpl , route_map.tpl acarsmap.tpl - Override google map width/height to fit into template (600 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '600px'); Config::Set('MAP_HEIGHT', '600px'); frontpage_main.tpl - Remove the latest reports, pilots and online users as its redundant. Some information already available in sidebar. route_map.tpl - Override google map width/height to fit into template (600 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '600px'); Config::Set('MAP_HEIGHT', '600px'); Preview Image: Installation Directions: Download Unzip / Extract Upload folder (brilliancev1) + contents to /lib/skins/ folder Active template in admin center
  7. Template Name: Clouds Template Current Version: 1.0 Removed for copyright infringement Neat Features to Note: Dropdown Menu Top Picture Slider (Cool Switch / Slide Effect) Utility Links Template Notes: The background is rather unique with this template, and as I result, I thought I'd explain how to tweak it. If you look in the images folder of the template/skin you'll see back_land.jpg and back_top.jpg If you want the clouds, but not the land, just make the land a solid block (check background blue of the right shade). Only 3 Templates are overridden; acarsmap.tpl , frontpage_main.tpl , route_map.tpl acarsmap.tpl - Override google map width/height to fit into template (700 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '700px'); Config::Set('MAP_HEIGHT', '600px'); frontpage_main.tpl - Remove the latest reports, pilots and online users as its redundant. Some information already available in sidebar. route_map.tpl - Override google map width/height to fit into template (700 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '700px'); Config::Set('MAP_HEIGHT', '600px'); Installation Directions: Download Unzip / Extract Upload folder (cloudsv1) + contents to /lib/skins/ folder Active template in admin center
  8. 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>
  9. As a brief update.. A bug I found is that you will need at least two posts in your forum for this to work propery. Also, if you get errors like this: It means that your web hosting provider is a little paranoid with their PHP security, so you can use this code instead, which uses a different method of retrieving the information. <?php /** SMF Forum RSS Feed to Latest Posts List Built for phpVMS www.phpvms.net Built by Lorenzo Aiello www.la92.com **/ /********* CONFIGURATION *********/ // Full URL to your SMF installation, WITH trailing slash $board_url = 'http://forum.yourwebsite.com/'; // Want the list to be linkable? TRUE = Yes, FALSE = No $linkable = TRUE; /******* END CONFIGURATION *******/ /** == STOP == DO NOT EDIT BELOW THIS **/ function xml2ary(&$string) { $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parse_into_struct($parser, $string, $vals, $index); xml_parser_free($parser); $mnary=array(); $ary=&$mnary; foreach ($vals as $r) { $t=$r['tag']; if ($r['type']=='open') { if (isset($ary[$t])) { if (isset($ary[$t][0])) $ary[$t][]=array(); else $ary[$t]=array($ary[$t], array()); $cv=&$ary[$t][count($ary[$t])-1]; } else $cv=&$ary[$t]; if (isset($r['attributes'])) {foreach ($r['attributes'] as $k=>$v) $cv['_a'][$k]=$v;} $cv['_c']=array(); $cv['_c']['_p']=&$ary; $ary=&$cv['_c']; } elseif ($r['type']=='complete') { if (isset($ary[$t])) { // same as open if (isset($ary[$t][0])) $ary[$t][]=array(); else $ary[$t]=array($ary[$t], array()); $cv=&$ary[$t][count($ary[$t])-1]; } else $cv=&$ary[$t]; if (isset($r['attributes'])) {foreach ($r['attributes'] as $k=>$v) $cv['_a'][$k]=$v;} $cv['_v']=(isset($r['value']) ? $r['value'] : ''); } elseif ($r['type']=='close') { $ary=&$ary['_p']; } } _del_p($mnary); return $mnary; } // _Internal: Remove recursion in result array function _del_p(&$ary) { foreach ($ary as $k=>$v) { if ($k==='_p') unset($ary[$k]); elseif (is_array($ary[$k])) _del_p($ary[$k]); } } $curl_handle=curl_init(); curl_setopt($curl_handle,CURLOPT_URL,$board_url.'index.php?type=rss;action=.xml'); curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2); curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1); $feed = curl_exec($curl_handle); curl_close($curl_handle); $feed = xml2ary($feed); $feed = $feed['rss']['_c']['channel']['_c']; foreach($feed['item'] as $item) { if($linkable) { echo '<li><a href="'.$item['_c']['link']['_v'].'" target="_blank">'.$item['_c']['title']['_v'].'</a></li>'; }else{ echo '<li>'.$item['_c']['title']['_v'].'</li>'; } } ?>
  10. I did this as a favor for someone, but I figured I'd share it with everyone.. you know, spread the wealth. This code simply reads the RSS feed that SMF outputs (of the latest posts) and returns it as a list (with the option to make it linkable). The implementation technique can vary, you could include the file, or just copy and paste it into your page (~100 lines). <?php /** SMF Forum RSS Feed to Latest Posts List Built for phpVMS www.phpvms.net Built by Lorenzo Aiello www.la92.com **/ /********* CONFIGURATION *********/ // Full URL to your SMF installation, WITH trailing slash $board_url = 'http://forum.yourwebsite.com/'; // Want the list to be linkable? TRUE = Yes, FALSE = No $linkable = TRUE; /******* END CONFIGURATION *******/ /** == STOP == DO NOT EDIT BELOW THIS **/ function xml2ary(&$string) { $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parse_into_struct($parser, $string, $vals, $index); xml_parser_free($parser); $mnary=array(); $ary=&$mnary; foreach ($vals as $r) { $t=$r['tag']; if ($r['type']=='open') { if (isset($ary[$t])) { if (isset($ary[$t][0])) $ary[$t][]=array(); else $ary[$t]=array($ary[$t], array()); $cv=&$ary[$t][count($ary[$t])-1]; } else $cv=&$ary[$t]; if (isset($r['attributes'])) {foreach ($r['attributes'] as $k=>$v) $cv['_a'][$k]=$v;} $cv['_c']=array(); $cv['_c']['_p']=&$ary; $ary=&$cv['_c']; } elseif ($r['type']=='complete') { if (isset($ary[$t])) { // same as open if (isset($ary[$t][0])) $ary[$t][]=array(); else $ary[$t]=array($ary[$t], array()); $cv=&$ary[$t][count($ary[$t])-1]; } else $cv=&$ary[$t]; if (isset($r['attributes'])) {foreach ($r['attributes'] as $k=>$v) $cv['_a'][$k]=$v;} $cv['_v']=(isset($r['value']) ? $r['value'] : ''); } elseif ($r['type']=='close') { $ary=&$ary['_p']; } } _del_p($mnary); return $mnary; } // _Internal: Remove recursion in result array function _del_p(&$ary) { foreach ($ary as $k=>$v) { if ($k==='_p') unset($ary[$k]); elseif (is_array($ary[$k])) _del_p($ary[$k]); } } $feed = file_get_contents($board_url.'index.php?type=rss;action=.xml'); $feed = xml2ary($feed); $feed = $feed['rss']['_c']['channel']['_c']; foreach($feed['item'] as $item) { if($linkable) { echo '<li><a href="'.$item['_c']['link']['_v'].'" target="_blank">'.$item['_c']['title']['_v'].'</a></li>'; }else{ echo '<li>'.$item['_c']['title']['_v'].'</li>'; } } ?>
  11. 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: Installation Directions: Download Unzip / Extract Upload folder (illuminativ1) + contents to /lib/skins/ folder Active template in admin center
  12. So I took a look for you, and found that its located in /core/common/Countries.class.php on line 72. So you have two options as I see it; 1. Edit the class file (that may get overwritten when you update) by changing 'TW' => 'Taiwan, Province Of China','TJ' => 'Tajikistan','TZ' => 'Tanzania, United Republic Of', To: 'TW' => 'Taiwan','TJ' => 'Tajikistan','TZ' => 'Tanzania, United Republic Of', 2. Copy /core/templates/registration_mainform.tpl to /lib/skins/<SKIN_YOU_ARE_USING/registration_mainform.tpl and then edit it and change as follows (will NOT get overwritten with updates) Change line 63 from: echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>'; To: echo '<option value="'.$countryCode.'" '.$sel.'>'.str_replace("Taiwan, Province of China","Taiwan",$countryName).'</option>';
  13. Removed due to copyright violation - Nabeel Template Name: Surreal Template Current Version: 1.1.1 Neat Features to Note: Dropdown Menu Top Picture Slider (Cool Switch / Slide Effect) Template Notes: Only 3 Templates are overridden; acarsmap.tpl , frontpage_main.tpl , route_map.tpl acarsmap.tpl - Override google map width/height to fit into template (550 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '550px'); 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 (550 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '550px'); Config::Set('MAP_HEIGHT', '600px'); Preview Image: Installation Directions: Download Unzip / Extract Upload folder (surrealv1) + contents to /lib/skins/ folder Active template in admin center
  14. Hi Jeff, thanks for the positive feedback. It sure can have nested menus. I've actually added an example to the demo, but here is what you do. Your normal menu item (dropdown) will look similar to this: <li><a href="#">Sample Dropdown</a> <ul> <li><a href="#">Remove This</a></li> <li><a href="#">Or Use It</a></li> <li><a href="#">In layout.tpl</a></li> </ul> </li> All you need to do, is add another list inside one of the items, like this: <li><a href="#">Sample Dropdown</a> <ul> <li><a href="#">Remove This</a></li> <li><a href="#">Or Use It</a></li> <li><a href="#">In layout.tpl</a> <ul> <li><a href="#">Nested</a></li> </ul> </li> </ul> </li>
  15. Template Name: Sleek Template Current Version: 1.1 Download URL: http://rapidshare.com/files/440863609/phpvmstemplate_sleekv112.zip (181 KB) Neat Features to Note: Dropdown Menu Sidebar Tabs (Cool Switch / Slide Effect) Template Notes: Only 3 Templates are overridden; acarsmap.tpl , frontpage_main.tpl , route_map.tpl acarsmap.tpl - Override google map width/height to fit into template (550 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '550px'); 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 (550 x 600). It can also be done in your /core/local.config.php # Google Map Options Config::Set('MAP_WIDTH', '550px'); Config::Set('MAP_HEIGHT', '600px'); Preview Image: Installation Directions: Download Unzip / Extract Upload folder (sleekv1) + contents to /lib/skins/ folder Active template in admin center
  16. Well, i dont have any "standard" entries.. so its not showing anything
  17. It seems as though the acars map won't display anything in the `acarsdata` table. I've checked the XML output and its outputting fine, just not reaching the map.
  18. You were supposed to post a bit more info... Nick's having problems with the import schedules, they say they're imported correctly, but then aren't in the database. The Airports, Airline, and Fleet are all there. And the CSV is uploaded so you can confirm the format. Cheers!
  19. California Regional - http://www.caliregional.com
×
×
  • Create New...