Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   insert code newtickers (http://forum.bytesforall.com/showthread.php?t=20345)

masmaz May 17, 2013 01:25 AM

insert code newtickers
 
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

juggledad May 17, 2013 04:04 AM

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.

masmaz May 17, 2013 04: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

masmaz May 17, 2013 04:20 AM

+ Add main template?

or

+ Add sub template?

juggledad May 17, 2013 06:03 AM

Quote:

You would have to create a physical 'page.php' and add it there.
Note the word physical

masmaz May 17, 2013 06: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

juggledad May 17, 2013 07:08 AM

I don't know, does it work?

masmaz May 17, 2013 07:19 AM

I'll say I'll know in a few hours ... :)

masmaz May 17, 2013 09:12 AM

no not work :(

other solution?

jerryc May 17, 2013 09:22 AM

Instead of editing physical templates, I prefer to use php plugins. Try this technique.

masmaz May 18, 2013 02:05 AM

not work :(

masmaz May 18, 2013 03: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

jerryc May 18, 2013 05:33 AM

Not all plugins play nicely with MZ. Some don't work well with any theme.

If you switch to twenty twelve does it work?

juggledad May 18, 2013 05:43 AM

1) this is not a plugin from the wordpress repository
2) it hasn't been updated since august of 2011

masmaz May 18, 2013 07: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

masmaz May 18, 2013 07: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 ... :-(

jerryc May 18, 2013 11:19 PM

Quote:

Originally Posted by masmaz (Post 100734)
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.

masmaz May 19, 2013 01: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

jerryc May 19, 2013 06:20 AM

Quote:

Originally Posted by masmaz (Post 100757)
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?


All times are GMT -6. The time now is 07:50 AM.

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