Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

insert code newtickers


  #1  
Old May 17, 2013, 01: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 05:41 AM.
  #2  
Old May 17, 2013, 04:04 AM
juggledad's Avatar
juggledad
 
23,630 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 06:02 AM.
  #3  
Old May 17, 2013, 04: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, 04:20 AM
masmaz
 
38 posts · Apr 2013
+ Add main template?

or

+ Add sub template?
  #5  
Old May 17, 2013, 06:03 AM
juggledad's Avatar
juggledad
 
23,630 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, 06: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, 07:08 AM
juggledad's Avatar
juggledad
 
23,630 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, 07:19 AM
masmaz
 
38 posts · Apr 2013
I'll say I'll know in a few hours ...
  #9  
Old May 17, 2013, 09:12 AM
masmaz
 
38 posts · Apr 2013
no not work

other solution?
  #10  
Old May 17, 2013, 09: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, 02:05 AM
masmaz
 
38 posts · Apr 2013
not work
  #12  
Old May 18, 2013, 03: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, 05: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, 05:43 AM
juggledad's Avatar
juggledad
 
23,630 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, 07: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, 07: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 09:31 AM.
  #17  
Old May 18, 2013, 11:19 PM
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, 01: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, 06: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 09:36 AM
WP-Table Reloaded code insert johnnybravo Plugins & Atahualpa 8 May 31, 2011 02:35 AM
Where to insert code for jquery plugins ? twola Header configuration & styling 3 Jan 23, 2010 11:18 PM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM


All times are GMT -6. The time now is 08:09 AM.


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