Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. It's basically all the latest updates and new features, but with it being a beta they're not always as polished as they would be in a stable release - that's all. Have a read through the last few topics in the Build Log forum for the features, I'm not entirely sure myself as I don't use beta versions... And I agree, it's never completely bug free, however I've never personally experienced any bugs with phpVMS (stable version) that I haven't caused myself...
  2. Tom

    VAForum 2

    Essentially you could achieve this with a category for your divisions, with a board for each, then they can each have their own topics within there. Nested categories would be a little too advanced I think.
  3. Tom

    VAForum 2

    Ray, what did you mean earlier by category heirarchy? Like categories within categories or..? I'll give you a few ideas I plan to include in the next forum: - text editor (there's your button to include an image) - possibly bit.ly & an image site API integration for images and URLs - read and unread topics, with forum and topic icons to indicate this - category visibility by pilot group - move admin into admin panel (probably using a 'forum admin' group) I think I have more but these will do for now
  4. Tom

    VAForum 2

    Yes, as well as the closing brace at the end: <? } ?> Those are the only changes, but I thought I'd make it easy...
  5. Yup: td{text-align:center;} Or a class where appropriate...
  6. Tom

    Ajax/PHP/VMS

    You just need to add a file in, you're calling a URL which doesn't exist. Like so: document.getElementById("main_time").innerHTML = <?php $SITE_URL . "action.php/mymodule/getGmt"; ?>; That will insert your module content into the div excluding all the layout.tpl code you would normally get.
  7. Tom

    VAForum 2

    Replace my previous code with the following: <?php if(Auth::LoggedIn()){?> <table cellspacing="0" cellpadding="2" border="0" width="100%"><thead><th>Topic</th><th>Updated</th><th>Posted by</th></thead><tbody> <? $topics = ForumData::get_new_topics(5); $row = 1; foreach($topics as $topic){ $forum = ForumData::get_forum_name($topic->topic_forumid); $forumcat = ForumData::get_cat_name($forum->forum_cat); if($forumcat->cat_ispublic == 0){ echo ' '; } elseif($forumcat->cat_ispublic != 0){ echo '<tr class="row'.$row.'">'; echo '<td><a href="'.url('Forum/get_topic_posts?id='.$topic->id).'&forum_id='.$topic->topic_forumid.'">'.$topic->topic_title.'</a></td>'; echo '<td>'.date('d/m/Y - g:i a', strtotime($topic->topic_dateupdated)).'</td>'; $updatedby=PilotData::GetPilotData($topic->topic_updatedby); echo '<td>'.PilotData::GetPilotCode($updatedby->code, $topic->topic_updatedby).'</td>'; echo '</tr>'; $row = 1 - $row; }else{ echo '<tr><td colspan="3">No topics!</td></tr>'; } } ?> </tbody></table> <? } ?> I'm really going to have to make that easier...
  8. Tom

    Ajax/PHP/VMS

    Uh, don't understand half of what you said, but I'm guessing the gist of it is you want to just show the page rather than the headers etc. Solution: action.php
  9. Tom

    VAForum 2

    It's horribly messy, but for now this should work: <table cellspacing="0" cellpadding="2" border="0" width="100%"><thead><th>Topic</th><th>Updated</th><th>Posted by</th></thead><tbody> <?php $topics = ForumData::get_new_topics(5); $row = 1; foreach($topics as $topic){ $forum = ForumData::get_forum_name($topic->topic_forumid); $forumcat = ForumData::get_cat_name($forum->forum_cat); if($forumcat->cat_ispublic == 0){ echo ' '; } elseif($forumcat->cat_ispublic != 0){ echo '<tr class="row'.$row.'">'; echo '<td><a href="'.url('Forum/get_topic_posts?id='.$topic->id).'&forum_id='.$topic->topic_forumid.'">'.$topic->topic_title.'</a></td>'; echo '<td>'.date('d/m/Y - g:i a', strtotime($topic->topic_dateupdated)).'</td>'; $updatedby=PilotData::GetPilotData($topic->topic_updatedby); echo '<td>'.PilotData::GetPilotCode($updatedby->code, $topic->topic_updatedby).'</td>'; echo '</tr>'; $row = 1 - $row; }else{ echo '<tr><td colspan="3">No topics!</td></tr>'; } } ?> </tbody></table> (Cut straight from the code on my own website so if the code is really bad feel free to tidy it up )
  10. Looks tacky now... was nicer before
  11. You're running the latest stable version, which unless you don't mind the possibility of bugs is a good version to stick with. If you'd like to use the latest beta version you can find the latest version in the build log forum or download it.
  12. border-radius:; -moz-border-radius:; These two should cater to them all until Firefox learns to play nicely (That is, except IE. Of course.) No need for -webkit any more either.
  13. That's quite nice IMO. Really makes the colour stand out
  14. Tom

    VAForum 2

    I've attached a replacement template to do this. I'll be re-doing all the templates etc for the new version to hopefully make it easier to read and modify. Edit: No, I haven't attached that file... apparently I'm not allowed to attach .tpl files...
  15. In frontpage_recentpilots.tpl: <?php foreach($pilots as $pilot) { ?> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" width="16" height="11" /> <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname; ?></a><br /> <?php } ?> (Loving the example names by the way )
  16. To be fair to the moderators (I was one myself on a fairly large site), who do a very good job - considering their role is totally voluntary etc, they aren't really obliged to be nice to anyone. They're just doing their job. (thankfully the moderators here are very nice though!) Now, you say the skinning is too complicated for you... I don't see any sign of you attempting to learn it or get any assistance? There are many people here who are very friendly and will no doubt be able to help with anything you may stumble upon. I highly recommend asking and learning, because it's good knowledge to have
  17. <?php if(Auth::LoggedIn() == false) { echo '<div class="mcright" id="error">Please login to view this page.'; Template::Show('login_form.tpl'); echo '</div></div>'; return; } ?>
  18. Way to make everyone here dislike you Seriously, it really isn't that hard to skin... just have a look at the crystal skin and read the commenting.
  19. Man what's with all the grave digging recently... this is from months and months ago
  20. Tom

    PHPVMS layout

    Sounds like you just want to continue what you were doing. phpVMS works by generating content into your template files. There are a set number of template files phpVMS itself uses (in core/templates/). You just need to continue with your new folder in lib/skins/ editing layout.tpl (which is the code applied to all pages) along with the associated stylesheet. Then if you want to edit the templates for other pages just copy the template from core/templates/ into your skin folder and modify. I am probably the worst person in the world for explaining things but hope that helps
  21. Mark is right. Downloads page is, by default, only available to logged in users. Open up core/modules/Downloads/Downloads.php and check, it should look something like this: class Downloads extends CodonModule { public function index() { if(!Auth::LoggedIn()) { echo 'You must be logged in to access this page!'; return; } $this->set('allcategories', DownloadData::GetAllCategories()); $this->render('downloads_list.tpl'); } And so on.
  22. It can't be. I do everything with ASP style tags and have never had a problem. However, I will change VAForum.
×
×
  • Create New...