Skip to content
FREE & OPEN SOURCE Million Dollar Script is a free WordPress plugin for sponsor walls, campaign grids, fundraiser boards, and premium add-on workflows.

Modifications

remove links

Started May 12, 2010 by jael

Hello!!I need some help with the script, i'm doing a free web when the user can public a photo and write a message, but the user not necessarily have a site to re-direct, that's why i want to know how can i remove or block the link.I hope someone can help me.

3 replies

Sorry for the delayed response.Are you saying that you want the purchased pixels to not link to a website?It looks like you can edit the form in the admin area under Configuration and go to Ad Form. Then at the top you should see a Edit Fields button. Click that and then click the URL* link. You should be able to uncheck the Is Required? checkbox and save it. I am not sure if it works when you delete that box but you can try if you want to. I would back everything up first if you are worried.

Hi Ryan,thanks for your answer.I had already tried unchecking the request URL box, however is still enabled link to the website.I think the amendment should be in the code because I've checked and said that this field can not be changed because it is restricted by the system.I hope you can help me with this.Thanks again.

Sorry for the delayed response again, I don't think I was getting emails from the forum but I think I fixed that now.It seems the URL field is required by the template. You can comment out some lines in the following file:/includes/dynamic_forms.php line 2765 - 2766Change to:/case "URL":return true;/Now you can delete the URL field completely if you wish. However, on output it will still try to use it unless you modify the output.To do this do the following:Open /includes/area_map_functions.phpRemove lines 18-23:[code]if (ENABLE_CLOAKING == 'YES') { fwrite($fh, "onclick="return po(".$data['block_id'].");" href="".$data['url'].""");} else { fwrite($fh, "onclick="block_clicked=true;" href="click.php?block_id=".$data['block_id']."&BID=$BID" target="_blank" " );}[/code]Open /lang/english.phpRemove line 598:[code]%URL% [/code]Now go to the admin area and Process pixels to update the pixel map.I believe this should do it but there may be more places it tries to use the URL.