Activity Stream
48,167 MEMBERS
6835 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member

    Default php issue - any help? :P

    Hi guys,

    Im not a php expert myself, if any one has any idea how to get this fixed id appreciate it.


    PHP Code: 
    <?php

    $widget_comment_configuration 
    = array(
         
    "auto_approve"    => true,  // Automatically approve comments as they are posted?
        
    "do_captcha"    => true// Do we display a simple captcha question to help prevent spam?
        
    "display_avatars"    => false// Do we display gravatars next to comment 

        // overwrite default uri, useful for ?dynamic=pages. 
        // note:  users will be redirected here after posting a comment.
        
        
    "uri"    => "profile.php?id="<?php echo urlencode($dnn['id']); ?>"",  
         
    );
    include("run_script.php");

    ?>
    Basically since the profile.php is dynamic - im trying to encode the url with the 'id' ... but i get syntax error - i even tried removing the <?php ?> since they are already above and below but to no avail.

    so basically all that needs fixing is :

    PHP Code: 
     "uri"    => "profile.php?id="<?php echo urlencode($dnn['id']); ?>"",
    Any ideas?

    Cheers,
    Myself.
    vps9Ryan Reviewed by vps9Ryan on . php issue - any help? :P Hi guys, Im not a php expert myself, if any one has any idea how to get this fixed id appreciate it. <?php $widget_comment_configuration = array( "auto_approve" => true, // Automatically approve comments as they are posted? "do_captcha" => true, // Do we display a simple captcha question to help prevent spam? Rating: 5
    vpsBox - SolusVM Templates (w/cPanel) // PHP Scripts // BASH Scripts // Tutorials
    MyRSK - Budget (managed) VPS's with a touch of personal support!

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    u dont need to use <?php tags inside array
    this should fix ur issue
    PHP Code: 
    <?php 


    $widget_comment_configuration 
    = array( 
         
    "auto_approve"    => true,  // Automatically approve comments as they are posted? 
        
    "do_captcha"    => true// Do we display a simple captcha question to help prevent spam? 
        
    "display_avatars"    => false// Do we display gravatars next to comment  

        // overwrite default uri, useful for ?dynamic=pages.  
        // note:  users will be redirected here after posting a comment. 
         
        
    "uri"    => "profile.php?id=" urlencode($dnn['id'])
          
    ); 
    include(
    "run_script.php"); 

    ?>
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  4.     
    #3
    Member
    Cheers mRaza,

    That did it

    Cheers,
    Ryan
    vpsBox - SolusVM Templates (w/cPanel) // PHP Scripts // BASH Scripts // Tutorials
    MyRSK - Budget (managed) VPS's with a touch of personal support!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DNS issue with my VPS?
    By Micah Sin in forum Hosting Discussion
    Replies: 4
    Last Post: 4th May 2012, 01:42 PM
  2. [Selling] Some one take my VPS[[SERIOUS ISSUE]
    By toothmaniac in forum Completed Transactions
    Replies: 37
    Last Post: 7th Feb 2011, 01:18 PM
  3. Issue.
    By zakuza in forum Feedback and Suggestions
    Replies: 6
    Last Post: 31st Jan 2010, 05:58 AM
  4. Got up a new issue! Did'nt got it, please help!
    By pics_villa in forum Legal Issues
    Replies: 1
    Last Post: 22nd Oct 2009, 05:58 AM

Tags for this Thread

BE SOCIAL