Proxy Coder

Free Proxy List Script

Bug Fix : Error Message on Invalid Reciprocal

with 6 comments

There is a small display bug (not a security one) on the old version.
If a user submits a proxy, and you require a backlink, and the backlink is invalid on the submitted proxy, there is no error message displayed.
This will confuse the user because he can not know what is wrong with the submission.

So here is how to fix this bug.
Open your
/includes/templates/submit-proxy.php

And you can add this PHP code to display the error message.
<?php submitError($error, 'backlink'); ?>

You can add it anywhere you like. Near the submit button, near the reciprocal button, etc.
But i suggest you to put it after

<input type="text" readonly="readonly" value="<?php echo htmlentities(PLX_RECIPROCAL_LINK_2); ?>" size="40" />

So it will become

<input type="text" readonly="readonly" value="<?php echo htmlentities(PLX_RECIPROCAL_LINK_2); ?>" size="40" />
<?php submitError($error, 'backlink'); ?>

Just a simple copy paste and you’re done :)

Written by ProxyCoder.com

September 22nd, 2009 at 5:15 pm

Posted in Bug Fix

Tagged with ,

6 Responses to 'Bug Fix : Error Message on Invalid Reciprocal'

Subscribe to comments with RSS or TrackBack to 'Bug Fix : Error Message on Invalid Reciprocal'.

  1. I have a small problem.
    @ Config Under “Submission” Category while configuring the link-back, after clicking Save, the link gets displayed as Free Proxy List instead of Free Proxy List

    What do i have to do to make it appear without the \ symbol ?

    I just installed the latest version of this great script.Oh and by the way, how do i change the default values [ located in the right side of the configuration panel] too?

    Thanks,

    Alex

    26 Nov 09 at 2:33 am

  2. I left an empty space between the characters not to form the link but anyway,

    it displays like this:

    Free Proxy List

    instead of

    Free Proxy List

    Alex

    26 Nov 09 at 2:38 am

  3. To change the default value for each config, open your phpMyAdmin, go to “config” table, and modify the value of “config_default_value” column :)

    ProxyCoder.com

    27 Nov 09 at 12:25 pm

  4. ..and how would i do that?I mean, what value of “config_default_value” should i change?yeah.. noob here:D

    oh, and the problem with my “reciprocal_link_1 & 2″ is that, when i save the links , instead of *a htef=”site”* ,i get *a href\=”site\”* .

    now, what could cause this problem & how could i resolve it?

    :) Thanks`

    Alex

    28 Nov 09 at 1:55 am

  5. .. I DiD it! :D

    I found the way to change the links and all from inside the DB.

    Thanks for this script:)
    It Rules!!! :D

    Alex

    28 Nov 09 at 4:39 am

  6. @Alex : about the \ thing, it has been fixed, but still not released. Please wait for the next release.
    Yes, actually you can change anything from the “config” table. Everything is stored there :)

    ProxyCoder.com

    28 Nov 09 at 7:46 am

Leave a Reply