Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorVincent
    • CommentTimeJun 2nd 2008
     

    I want to fully disable the Purchasing Guidelines from the purchase page, how can i do this. I made my own custom guidelines.

    • CommentAuthorSimon
    • CommentTimeJun 2nd 2008
     
    Project Admin

    In purchase/start.php, comment out the following code:

    <br /><br />
    <div style="text-align:justify; border:1px dashed #999; padding:10px; width:80%; margin:auto;">
    <b><?php echo $oiopub_lang['purchase']['text19']; ?></b>
    <br /><br />
    <?php
    if($oiopub_set->family == 1) {
    echo $oiopub_lang['purchase']['text20'];
    echo "<br /><br />\n";
    } else {
    echo $oiopub_lang['purchase']['text21'];
    echo "<br /><br />\n";
    }
    if(!empty($oiopub_set->rules)) {
    $oiopub_set->rules = str_replace("\r\n", "<br />", $oiopub_set->rules);
    $oiopub_set->rules = str_replace("\n", "<br />", $oiopub_set->rules);
    echo stripslashes($oiopub_set->rules) . "\n";
    }
    ?>
    </div>

    • CommentAuthorVincent
    • CommentTimeJun 2nd 2008
     

    This will delete the complete field, sorry for not being clear.

    What I want gone is

    "Purchasing Guidelines:

    We only accept family friendly ads!/all or purchase types"

    • CommentAuthorSimon
    • CommentTimeJun 2nd 2008
     
    Project Admin

    I think it would just be this code then:

    <b><?php echo $oiopub_lang['purchase']['text19']; ?></b>
    <br /><br />
    <?php
    if($oiopub_set->family == 1) {
    echo $oiopub_lang['purchase']['text20'];
    echo "<br /><br />\n";
    } else {
    echo $oiopub_lang['purchase']['text21'];
    echo "<br /><br />\n";
    }

    • CommentAuthorVincent
    • CommentTimeJun 2nd 2008
     

    I did it like this but this isn't correct and I don't know what I did wrong, I'm not a programmer.

    <!-- <b><?php echo $oiopub_lang['purchase']['text19']; ?></b>
    <br /><br />
    <?php
    if($oiopub_set->family == 1) {
    echo $oiopub_lang['purchase']['text20'];
    echo "<br /><br />\n";
    } else {
    echo $oiopub_lang['purchase']['text21'];
    echo "<br /><br />\n";
    } -->

    Parse error: syntax error, unexpected '>', expecting T_STRING or T_VARIABLE or '$' in /public_html/theworldofoffice.com/wp-content/plugins/payment-system/purchase/start.php on line 184

    • CommentAuthorSimon
    • CommentTimeJun 2nd 2008
     
    Project Admin

    It's because you've tried to use an html comment end in php.

    Taking the code from the 2nd post of this thread, it should now look like this:

    <br /><br />
    <div style="text-align:justify; border:1px dashed #999; padding:10px; width:80%; margin:auto;">
    <?php
    if(!empty($oiopub_set->rules)) {
    $oiopub_set->rules = str_replace("\r\n", "<br />", $oiopub_set->rules);
    $oiopub_set->rules = str_replace("\n", "<br />", $oiopub_set->rules);
    echo stripslashes($oiopub_set->rules) . "\n";
    }
    ?>
    </div>

    • CommentAuthorVincent
    • CommentTimeJun 2nd 2008
     

    Ahh, that makes more sense :)

    Thank you, it works like a charm!