Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

insert code newtickers


  #1  
Old May 17, 2013, 02:25 AM
masmaz
 
38 posts · Apr 2013
Hi all

I installed a plugin for inserting a scroll bar that shows the latest news.
http://www.iwebix.de/wp-newsticker-j...for-wordpress/

Newsticker is called, to make it work just enter this code in the page code:
Code:
<?php include (ABSPATH . '/wp-content/plugins/wp-newsticker/news.php');?>
I tried to put it at the end of the code of header.php but it does not work, I tried in other pages but there 'to view it.
However if I put this code [newsticker] in a new article, the plugin works.

help me please

regards
max

Last edited by juggledad; May 18, 2013 at 06:41 AM.
  #2  
Old May 17, 2013, 05:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can only add the PHP that is in the 'Limited PHP Code' button to the virtual templates. You would have to create a physical 'page.php' and add it there.

Last edited by juggledad; May 17, 2013 at 07:02 AM.
  #3  
Old May 17, 2013, 05:17 AM
masmaz
 
38 posts · Apr 2013
Maybe I understood but I would not want to mess it up, please, could you kindly explain the steps I need to do?
thanks
max
  #4  
Old May 17, 2013, 05:20 AM
masmaz
 
38 posts · Apr 2013
+ Add main template?

or

+ Add sub template?
  #5  
Old May 17, 2013, 07:03 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
You would have to create a physical 'page.php' and add it there.
Note the word physical
  #6  
Old May 17, 2013, 07:18 AM
masmaz
 
38 posts · Apr 2013
ok I understand

I create a file newsticker.php and then call the file in to the heather.php, with this code

Code:
<? include ("newsticker.php");?>
is that correct?

regards
max
  #7  
Old May 17, 2013, 08:08 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I don't know, does it work?
  #8  
Old May 17, 2013, 08:19 AM
masmaz
 
38 posts · Apr 2013
I'll say I'll know in a few hours ...
  #9  
Old May 17, 2013, 10:12 AM
masmaz
 
38 posts · Apr 2013
no not work

other solution?
  #10  
Old May 17, 2013, 10:22 AM
jerryc
 
367 posts · Oct 2012
Florida
Instead of editing physical templates, I prefer to use php plugins. Try this technique.
  #11  
Old May 18, 2013, 03:05 AM
masmaz
 
38 posts · Apr 2013
not work
  #12  
Old May 18, 2013, 04:00 AM
masmaz
 
38 posts · Apr 2013
I've tried everything ..
all this does not make sense ... It is not acceptable in a theme you can not enter a code ... I disagree with the fact of thme vistuale ... Montezuma lose appreciation
  #13  
Old May 18, 2013, 06:33 AM
jerryc
 
367 posts · Oct 2012
Florida
Not all plugins play nicely with MZ. Some don't work well with any theme.

If you switch to twenty twelve does it work?
  #14  
Old May 18, 2013, 06:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) this is not a plugin from the wordpress repository
2) it hasn't been updated since august of 2011
  #15  
Old May 18, 2013, 08:47 AM
masmaz
 
38 posts · Apr 2013
Quote:
1) this is not a plugin from the wordpress repository
2) Has not Been updated it since august of 2011
I installed other plugins like updated, but do not work all
any code same this <? php include ('xxxx'); ?> not work in MZ
  #16  
Old May 18, 2013, 08:50 AM
masmaz
 
38 posts · Apr 2013
I tried this, it works!

<!-- Start of Quotemedia.com Horizontal News Ticker Tool Code -->
<script LANGUAGE="javascript" align="center" type="text/javascript" src="http://www.xxxx.com?webmasterId=500&toolWidth=550&toolHei ght=22&bordercolor=000080&topics=MSFT,ORCL,DELL&bg =ffffff&fg=000000&highlight=00ff00&hbg=3366cc&hfg= ffffff&fontsize=16&speed=6"></script>
<!-- End of Quotemedia.com Horizontal News Ticker Tool Code --><!--******End QuoteMedia.com Module*******-->

but it is so beautiful ... :-(

Last edited by masmaz; May 18, 2013 at 10:31 AM.
  #17  
Old May 19, 2013, 12:19 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by masmaz
I installed other plugins like updated, but do not work all
any code same this <? php include ('xxxx'); ?> not work in MZ
Include is not an allowed php command in MZ. You need to use a php plugin, like I referred to earlier in this thread, to do that.
  #18  
Old May 19, 2013, 02:58 AM
masmaz
 
38 posts · Apr 2013
unfortunately with those plug in that you have shown me, does not work ... one of those is also in conflict with the code of MZ
  #19  
Old May 19, 2013, 07:20 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by masmaz
unfortunately with those plug in that you have shown me, does not work ... one of those is also in conflict with the code of MZ
It works fine for me. Did you put it in a sidebar?

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to insert code above the loop? Harald New Versions, & Updating 6 Jun 3, 2011 10:36 AM
WP-Table Reloaded code insert johnnybravo Plugins & Atahualpa 8 May 31, 2011 03:35 AM
Where to insert code for jquery plugins ? twola Header configuration & styling 3 Jan 24, 2010 12:18 AM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 07:16 PM


All times are GMT -6. The time now is 11:58 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.