Bradpl6
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Bradpl6
-
-
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
-
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'); ?>
-
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; ?>
-
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?
-
So how do i get the news off every page??? I only want it in the sidebar
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.
-
www.brtvirtualairlines.com and i will make a test news item
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.
-
So what do i do to fix this? And what did i do wrong?
Can you provide a link to your website? So we can decipher what is going on.
-
Basically when i add news from the admin panel. It shows on every page. And also in the popup news module in the sidebar however there's no link to the news item in the sidebar (popup news module). In other words i tried adding news from admin panel and it doesnt work . Because it shows the news on every page.
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.
-
Yeah but that makes everynews thing on all the page aswell as the popupnews module
It would be useful if you could explain more on what you are trying to achieve.
-
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/
-
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?
-
It seems great minds think alike as I already had that code I was looking for the $variable to display the news item. Thanks
-
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?
PHP variable on custom page
in Support Forum
Posted
Thanks, that worked brilliantly!