Jump to content

Bradpl6

Members
  • Posts

    14
  • Joined

  • Last visited

Bradpl6's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks, that worked brilliantly!
  2. Thanks, I'm now finding codon.config.php however I'm getting this message. Fatal error: Cannot redeclare codon_autoload() (previously declared in /home/**/public_html/core/classes/autoload.php:42) in /home/**/public_html/core/classes/autoload.php on line 69
  3. Ahh thanks. I've just tried to include codon.config.php however I'm finding difficulty in doing this too, absolute directories won't work nor will navigating up a directory using the old ../../ method. Edit This is what I have in my .htm file in the 'pages' folder. <? include('../codon.config.php'); Template::Show('featchartvote.tpl'); ?>
  4. I'm aware of how to put php into the custom pages, what I'm looking for is a solution on how to use code such as <? echo $pilotcode; ?> or <? echo $user->firstname; ?>
  5. Hi all, I'm having a bit of a struggle with the custom .htm pages, I can get php to work however when it comes to things like <? echo $pilotcode; ?> they won't display. I understand it's to do with the defining variable not being passed to the custom page but can't figure out how to solve it. Any suggestions or solutions?
  6. You need to remove <?php PopUpNews::PopUpNewsList(5); ?> from layout.tpl, you will have it in there twice one for the main content and one for the sidebar. You can identify which one is in the sidebar by looking for a sidebar divider or you might see <!-- sidebar -->. You can modify the way it looks by opening up the module which can be found in core > modules > PopUpNews > Popupnews.php. Sadly if you remove the copyright mark you will no longer receive support on any simpilot module.
  7. Ok, It looks like your calling the default news module: Open layout.tpl remove <?php News::ShowNewsFront(5);?> Open frontpage_main.tpl and put <?php PopUpNews::PopUpNewsList(5); ?> wherever you want your news to show. You will need to do the same for your sidebar, the result should be a list with links on your homepage and a list with links in your sidebar.
  8. Can you provide a link to your website? So we can decipher what is going on.
  9. It sounds like you have put <?php PopUpNews::PopUpNewsList(5); ?> in a global template, which would explain why the news is showing on every page. As for the links open popupnewslist.tpl and check to see if all is correct, I would show an example but I'm on my phone.
  10. It would be useful if you could explain more on what you are trying to achieve.
  11. I used a combination of the original module and the simpilot module, after some modification they both fit together quite nicely http://www.airsouthwestvirtual.com/
  12. I follow the method you are using but im unable to find the correct variable to diplay the body of the news item in the popupnews_list, I can get the subject quite easily but not the main message itself. Any suggestions?
  13. It seems great minds think alike as I already had that code I was looking for the $variable to display the news item. Thanks
  14. Great addon, works perfectly for what I need. Just one question what would the correct code be to diplay the first few sentences of the news item?
×
×
  • Create New...