PLS! Some help
Results 1 to 3 of 3

Thread: PLS! Some help

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    2

    PLS! Some help

    Hello
    I am trying to modify a wordpress pluging, so instead of using some iframe tags, to use file use content.

    Pls Help. Here - the first commented line is how the script used to be (and working), and the second is what I am trying to build...

    Can you pls. advise, or need the whole code?

    thank you


    // iframe tag zusammen bauen

    //$res='<iframe class="wpf-iframe" src="'.plugins_url( 'wp-forecast-show.php?wpfcid='.$id.'&amp;header=1' , __FILE__ );

    $res= file_get_contents ("http://http://www.vremeanet.ro/wp-content/plugins/wp-forecast/"'wp-forecast-show.php?wpfcid='.$id.'&amp;header=1' , __FILE__ )');

  2. #2
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    error I get is


    Parse error: syntax error, unexpected T_STRING in /home/vremea/public_html/vremeanet.ro/wp-content/plugins/wp-forecast/shortcodes.php on line 23

  3. #3
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    Location
    Ankh-Morpork
    Posts
    14,541
    I'm just guessing that you want something more like this:
    PHP Code:
    $res file_get_contents ("http://http://www.vremeanet.ro/wp-content/plugins/wp-forecast/") .
           
    plugins_url('wp-forecast-show.php?wpfcid='.$id.'&amp;header=1' __FILE__); 
    PS: You'll be more likely to get useful responses if (a) you use a thread title that describes your problem, not just that you need help, and (b) make use of this forum's [php]...[/php] bbcode tags when posting your code.

    PPS: Welcome to the forums!
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •