Finger Of Light Administrator
     member is offline
![[avatar]](http://i25.photobucket.com/albums/c56/ashkare/Kaylitha.jpg)
Main Admin
Joined: Feb 2006 Gender: Female  Posts: 101 Karma: 0 |  | Portal dynamic code « Thread Started on Jul 27, 2007, 6:08am » | |
I got this code from Proboards. Its very cool, but the suker likes to argue alot.
Possible Features Below is a small list of possible features that I may implement before the final release:
- Shoutbox support - Member information (posts, last 5 threads viewed etc) - Members online in the last 24 hours (Ross' code) - Templates - RSS feed of articles
The Code
Global Header
<script type="text/javascript"> <!-- /******************************************** * * Portal.Dynamic Alpha 1 * * Created By Peter & Ross * * Copyright © 2007 * http://pixelDepth.net * http://templates.proboards1.com * * All rights reserved * *********************************************/
if(location.href.match(/(\?|id=\*&|3&)act=/i)){ document.write('<div id="portal"></div><div style="display: none;">'); }
//--> </script>
-----------------------------
Global Footer
<script type="text/javascript"> <!-- /******************************************** * * Portal.Dynamic Alpha 1 * * Created By Peter & Ross * * Copyright © 2007 * http://pixelDepth.net * http://templates.proboards1.com * * All rights reserved * *********************************************/
var _settings = { script_location: "http://proboards.pixeldepth.net/Portal.Dynamic/", image_location: "http://proboards.pixeldepth.net/Portal.Dynamic/images/", btn_location: 1, show_btn: 1, show_btn_guests: 1, guests_view: 1, guest_msg: "Guests do not have permission to access this page, please login.", btn_image: 1, btn_image_url: "", title_font_size: "11", body_font_size: "11", date_font_size: "10", edited_font_size: "10", btn_text: "Portal", news_title: "Welcome", news_body: "Enter your news here.", news_show: 0, stats_display: 1, pm_display: 1, welcome_display: 1, users_online_display: 1, most_online_display: 1 };
var _banned = { ban_list: [], ban_msg: "Sorry, but it appears you have been banned from viewing the portal." };
var _pages = { settings: { show_list: 1, list_location: 1, guests_view: 1 },
pages: [ ] };
var _addons = { settings: { disable_all: 1 },
addons: [ { position: 0, title: "Get Your Own Portal", content: "<center><a href=\"http://templates.proboards1.com\" target=\"_blank\"><img src=\"http://proboards.pixeldepth.net/Portal.Dynamic/images/pvmini.jpg\" border=\"0\" /></a>", guest_view: 1 } ] };
var _articles = { settings: { show_modify: 1, show_date: 1, show_by: 1, per_page: 5 },
articles: [ { date: 1185051864765, title: "Welcome To Portal.Dynamic", body: "Thanks for selecting Portal.Dynamic.<br /><br />Portal.Dynamic is a project that started out as an entry for a coding competition at ProBoards. Until now the project was left dormant, only until recently I (Peter) decided to look at the code and see what needed to be done so I could get a working version out there.<br /><br />Please note, this is an early alpha version, which means there are bugs and features that have not been implemented yet.<br /><br />Although this is free to use, and no link back to <a href=\"http://templates.proboards1.com\">ProVision</a> is required, it would be appreciated due to the efforts gone into this.<br /><br />Enjoy ", by: ["admin", "ProVision"], last_edit: 0 } ] };
var _affiliates = { enabled: 0, mini_banner: "http://pixeldepth.net/templates/images/pD88.gif", randomize: 1, total_show: 8, hide_broken_images: 0, resize: 0, width: "100%", affiliates: [ ] };
if(location.href.match(/(\?|id=\*&|3&)act=/i)){ document.write('</div>'); }
document.write('<script type="text/javascript" src="' + _settings.script_location + 'kernel/portal_dynamic.js" defer><\/script>');
//--> </script>
| |
|