|
#1
May 17, 2013, 02:25 AM
|
|
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
May 17, 2013, 05:04 AM
|
|
|
|
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
May 17, 2013, 05:17 AM
|
|
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
May 17, 2013, 05:20 AM
|
|
+ Add main template?
or
+ Add sub template?
|
#5
May 17, 2013, 07:03 AM
|
|
|
|
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
May 17, 2013, 07:18 AM
|
|
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
May 17, 2013, 08:08 AM
|
|
|
|
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
May 17, 2013, 08:19 AM
|
|
I'll say I'll know in a few hours ...
|
#9
May 17, 2013, 10:12 AM
|
|
no not work
other solution?
|
#10
May 17, 2013, 10:22 AM
|
|
|
367 posts · Oct 2012
Florida
|
|
Instead of editing physical templates, I prefer to use php plugins. Try this technique.
|
#11
May 18, 2013, 03:05 AM
|
|
not work
|
#12
May 18, 2013, 04:00 AM
|
|
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
May 18, 2013, 06:33 AM
|
|
|
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
May 18, 2013, 06:43 AM
|
|
|
|
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
May 18, 2013, 08:47 AM
|
|
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
May 18, 2013, 08:50 AM
|
|
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
May 19, 2013, 12:19 AM
|
|
|
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
May 19, 2013, 02:58 AM
|
|
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
May 19, 2013, 07:20 AM
|
|
|
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?
|
|