The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

BuddyPress Portfolio
Column Layout and Making URL Not Mandatory (2 posts)

  1. praisehim
    Posted 3 years ago #


    I love this plugin. I have two questions:

    1. How do I make the layout 2 column as opposed to 1 column? I find that it is a waste of space.

    2. I'm using this for people who may not want to link their work. How do I make it so that the URL is not mandatory?

    Thanks and awaiting your reply,


  2. designerschokolade
    Posted 3 years ago #

    To answer your question No. 2: You will have to change two things in the ----> bp.portfolio-screens.php

    1. Within "check the nonce" delete one condition:
    OR empty($_POST['url-input'])

    so that the new text is like this:
    if(empty($_POST['title-input']) OR empty($_POST['description'])) {
    bp_core_add_message(__('All fields but the URL must be filled in!', 'bp-portfolio'), 'error');
    } else {


    Search for
    // Check the url
    if (!preg_match("/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/", $_POST['url-input'])) {

    Replace with
    // Check the url
    if ((!empty($_POST['url-input'])) AND (!preg_match("/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/", $_POST['url-input']))) {

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Portfolio
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.