solosails

DMS Subscriber†
  • Content count

    77
  • Joined

  • Last visited


Community Reputation

1 Neutral

About solosails

  • Rank
    Advanced Member
  • Birthday 05/16/1973

Profile Information

  • Gender Male
  • Location Cornwall, UK
  • Interests Photography, Sailing, Surfing, Geeking Out

PageLines Details

  • Framework Version DMS2 Personal

solosails's Activity

  1. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    Great thanks. 
     
    Can you let me know if you have problems with editing reply posts.
     
    I have (still) an issue where you can edit the original post (front end), but when a user tries to edit subsequent replies to topics, they are not presented with the same front end edit screen, they get some sort of post summary that doesn't allow editing.
     
    Id be interested to see if you have the same issues?
     
    Cheers, A
    • 0
  2. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    Great, glad you found a solution, thanks for sharing.
     
    Are you using DMS or DMS2?
     
    Thanks, 
    • 0
  3. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    Unfortunately, I don't know! It just started working and I don't know what changed.

    There is a tool that repairs bbpress in the tools sidebar menu. Try that. Sorry I can't help!
    • 0
  4. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    hi,

    The user profile works for me now, but editing forums after the primary post Still isn't working for me. It just goes to a post summary and not the edit page.

    Sorry I can't help any more.
    • 0
  5. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    Hi Danny, Thanks for your help. Cheers, Andrew
    • 0
  6. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    I am very disappointed there is no fix or response to this issue, as yet, I don't even know if the problem exists for anyone else.
     
    It appears to me that it is related to Page ID's but I can find no documentation on this.
     
    So, my guess is that for some reason, buddypress is using the same page ID as a Pagelines 404 page (I get 70000008) that means that I can get buddypress profiles working fine, BUT, they are running on a 404 page and as such I have to add in a WPContent section to make it visible.
     
    This is OK as a temp fix, but it does mean that whenever I get a real 404 response, I don't get a 404 page, I get a list of post archives.
     
    I need to know if this is a page lines bug, or a mess up on my system, either way, it is causing some very irritating issues for me on our site. I would like to get this solved ASAP please, thanks.
     
     
    • 0
  7. solosails added an answer to a question BBPress DMS2 User profile 404 error   

    I was hoping the last DMS update 2.1.9.1 might fix this 404 issue as it says it fixes a rare temporary 404 page issue (seemingly the problem I have (still)
     
    I still have this issue, many BuddyPress and BBpress pages are using 404 pages - It is a big problem for me as 90% of the website is built on the Buddypress system, I REALLY need to get this sorted.
     
    Has anyone made any progress with this or at least been able to recreate the problem?
     
    Thanks, Andrew
    • 0
  8. solosails added an answer to a question iBox Count number mode - dynamic   

    Hi Danny Ah, yes, that could well be it. Anyway, it is working now. 
     
    As I mentioned, if anyone who actually knows what they are doing could extend this hack to make it have a few options available in the section's control panel, like post numbers etc, that would be fantastic.
     
    Cheers, A
    • 0
  9. solosails added an answer to a question iBox Count number mode - dynamic   

    Here's the amended section for anyone interested ..
     
    [ptiframe]116-uwmfjj[/ptiframe]
    • 1
  10. solosails added an answer to a question iBox Count number mode - dynamic   

    Oh, I think I've done it with a combination of renaming it iBox2 and flushing the cache.
     
    Cheers, A
    • 0
  11. solosails added an answer to a question iBox Count number mode - dynamic   

    Danny I originally edited the core file to test this, but now I have it working, I restored the core file and tried uploading it as a child version, but dont seem to be able to get it working?
     
    Am I right in thinking you simply copy that entire folder /sections/ibox/ into your child theme yes?
     
    It doesn't seem to be working for me.
     
    Cheers, Andrew
    • 0
  12. solosails added an answer to a question iBox Count number mode - dynamic   

    If anyone is interested in this, I have made a mod to the base iBox section to enable the count of users.
     
    It only works if you leave the counter option box blank, then it will read the number of total Wordpress users. 
     
    If anyone can get it to work so that you can type in USERS or POST or other shortcodes in the count box to chose an option, this would be great!
     
    I changed lines 153 and 162
    <?php /* Section: iBox Author: PageLines Author URI: http://www.pagelines.com Description: An easy way to create and configure several box type sections at once. Class Name: pliBox Filter: component Loading: active */ class pliBox extends PageLinesSection { var $default_limit = 4; function section_opts(){ $options = array(); $options[] = array( 'title' => __( 'iBox Configuration', 'pagelines' ), 'key' => 'ibox_config', 'type' => 'multi', 'opts' => array( array( 'key' => 'ibox_cols', 'type' => 'count_select', 'count_start' => 1, 'count_number' => 12, 'default' => '4', 'label' => __( 'Number of Columns for Each Box (12 Col Grid)', 'pagelines' ), ), array( 'key' => 'ibox_media', 'type' => 'select', 'opts' => array( 'icon' => array( 'name' => __( 'Icon Font', 'pagelines' ) ), 'count' => array( 'name' => __( 'Counter', 'pagelines' ) ), 'image' => array( 'name' => __( 'Images', 'pagelines' ) ), 'text' => array( 'name' => __( 'Text Only, No Media', 'pagelines' ) ) ), 'default' => 'icon', 'label' => __( 'Select iBox Media Type', 'pagelines' ), ), array( 'key' => 'ibox_format', 'type' => 'select', 'opts' => array( 'top' => array( 'name' => __( 'Media on Top', 'pagelines' ) ), 'left' => array( 'name' => __( 'Media at Left', 'pagelines' ) ), ), 'default' => 'top', 'label' => __( 'Select the iBox Media Location', 'pagelines' ), ), ) ); $options[] = array( 'key' => 'ibox_array', 'type' => 'accordion', 'col' => 2, 'title' => __('iBoxes Setup', 'pagelines'), 'post_type' => __('iBox', 'pagelines'), 'opts' => array( array( 'key' => 'title', 'label' => __( 'iBox Title', 'pagelines' ), 'type' => 'text' ), array( 'key' => 'text', 'label' => __( 'iBox Text', 'pagelines' ), 'type' => 'textarea' ), array( 'key' => 'link', 'label' => __( 'iBox Link (Optional)', 'pagelines' ), 'type' => 'text' ), array( 'key' => 'class', 'label' => __( 'iBox Class (Optional)', 'pagelines' ), 'type' => 'text' ), array( 'key' => 'icon', 'label' => __( 'Icon (Icon Mode)', 'pagelines' ), 'type' => 'select_icon', 'help' => '<a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Click here</a> for a complete list of Font Awesome Icons' ), array( 'key' => 'count', 'label' => __( 'Count Number (Counter Mode)', 'pagelines' ), 'type' => 'text_small' ), array( 'key' => 'image', 'label' => __( 'Box Image (Image Mode)', 'pagelines' ), 'type' => 'image_upload' ), array( 'key' => 'color', 'label' => __( 'Icon/Count Color', 'pagelines' ), 'type' => 'color' ), ) ); return $options; } function section_template( ) { // The boxes $ibox_array = $this->opt('ibox_array'); $format_upgrade_mapping = array( 'text' => 'ibox_text_%s', 'title' => 'ibox_title_%s', 'link' => 'ibox_link_%s', 'class' => 'ibox_class_%s', 'image' => 'ibox_image_%s', 'icon' => 'ibox_icon_%s' ); $ibox_array = $this->upgrade_to_array_format( 'ibox_array', $ibox_array, $format_upgrade_mapping, $this->opt('ibox_count')); // must come after upgrade if( !$ibox_array || $ibox_array == 'false' || !is_array($ibox_array) ){ $ibox_array = array( array(), array(), array() ); } // Keep $cols = ($this->opt('ibox_cols')) ? $this->opt('ibox_cols') : 4; $media_type = ($this->opt('ibox_media')) ? $this->opt('ibox_media') : 'icon'; $media_format = ($this->opt('ibox_format')) ? $this->opt('ibox_format') : 'top'; $width = 0; $output = ''; $count = 1; if( is_array($ibox_array) ){ $boxes = count( $ibox_array ); $result = count_users(); foreach( $ibox_array as $ibox ){ $text = pl_array_get( 'text', $ibox, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id lectus sem. Cras consequat lorem.'); $title = pl_array_get( 'title', $ibox, 'iBox '. $count); $link = pl_array_get( 'link', $ibox ); $user_class = pl_array_get( 'class', $ibox ); $image = pl_array_get( 'image', $ibox ); $icon = pl_array_get( 'icon', $ibox ); $counter = pl_array_get( 'count', $ibox, $result['total_users']); $color = pl_hash( pl_array_get( 'color', $ibox ), false); $text = sprintf('<div data-sync="ibox_array_item%s_text">%s</div>', $count, $text ); $title = sprintf('<h4 data-sync="ibox_array_item%s_title">%s</h4>', $count, $title ); $text_link = ($link) ? sprintf('<div class="ibox-link"><a href="file:///C|/Users/Woody/www/Sole Sails/wp-content/themes/dms/dms/sections/ibox/%s">%s <i class="icon icon-angle-right"></i></a></div>', $link, __('More', 'pagelines')) : ''; $text_color = ( $color && $color != '' ) ? sprintf( 'color: %s;', $color ) : ''; $format_class = ($media_format == 'left') ? 'media left-aligned' : 'top-aligned'; $media_class = 'media-type-'.$media_type; $style = ''; $media_html = ''; if( $media_type == 'icon' ){ if(!$icon || $icon == ''){ $icons = pl_icon_array(); $icon = $icons[ array_rand($icons) ]; } $background = ($color) ? sprintf('<span class="invert-icon" style="background-color: %s;"></span>', $color) : ''; $media_html = sprintf( '<i class="iii icon icon-3x icon-%s " style="%s"></i>%s', $icon, $text_color, $background ); } elseif( $media_type == 'image' ){ $media_html = ''; $style .= ($image) ? sprintf('background-image: url(%s);', $image) : ''; } elseif( $media_type == 'count' ){ $media_html = sprintf('<span class="pl-counter" style="%s">%s</span>', $text_color, $counter); } $wrap_class = 'wrap-'.$media_type; $media_link = ''; $media_link_close = ''; if( $link ){ $media_link = sprintf('<a href="file:///C|/Users/Woody/www/Sole Sails/wp-content/themes/dms/dms/sections/ibox/%s">',$link); $media_link_close = '</a>'; } if($width == 0) $output .= '<div class="row fix">'; $output .= sprintf( '<div class="span%s ibox %s %s %s fix"> <div class="ibox-media img"> %s <span class="ibox-icon-border pl-animation pl-appear pl-link pl-link-invert %s" style="%s"> %s </span> %s </div> <div class="ibox-text bd"> %s <div class="ibox-desc"> %s %s </div> </div> </div>', $cols, $format_class, $user_class, $wrap_class, $media_link, $media_class, $style, $media_html, $media_link_close, $title, $text, $text_link ); $width += $cols; if($width >= 12 || $count == $boxes){ $width = 0; $output .= '</div>'; } $count++; } } printf('<div class="ibox-wrapper pl-animation-group">%s</div>', $output); $scopes = array('local', 'type', 'global'); // foreach($scopes as $scope) // $this->opt_update( 'ibox_array', false, $scope ); } function old_section_template( ) { $boxes = ($this->opt('ibox_count')) ? $this->opt('ibox_count') : $this->default_limit; $cols = ($this->opt('ibox_cols')) ? $this->opt('ibox_cols') : 3; $media_type = ($this->opt('ibox_media')) ? $this->opt('ibox_media') : 'icon'; $media_format = ($this->opt('ibox_format')) ? $this->opt('ibox_format') : 'top'; $width = 0; $output = ''; for($i = 1; $i <= $boxes; $i++): // TEXT $text = ($this->opt('ibox_text_'.$i)) ? $this->opt('ibox_text_'.$i) : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id lectus sem. Cras consequat lorem.'; $text = sprintf('<div data-sync="ibox_text_%s">%s</div>', $i, $text ); $user_class = ($this->opt('ibox_class_'.$i)) ? $this->opt('ibox_class_'.$i) : ''; $title = ($this->opt('ibox_title_'.$i)) ? $this->opt('ibox_title_'.$i) : __('iBox '.$i, 'pagelines'); $title = sprintf('<h4 data-sync="ibox_title_%s">%s</h4>', $i, $title ); // LINK $link = $this->opt('ibox_link_'.$i); $text_link = ($link) ? sprintf('<div class="ibox-link"><a href="file:///C|/Users/Woody/www/Sole Sails/wp-content/themes/dms/dms/sections/ibox/%s">%s <i class="icon icon-angle-right"></i></a></div>', $link, __('More', 'pagelines')) : ''; $format_class = ($media_format == 'left') ? 'media left-aligned' : 'top-aligned'; $media_class = 'media-type-'.$media_type; $media_bg = ''; $media_html = ''; if( $media_type == 'icon' ){ $media = ($this->opt('ibox_icon_'.$i)) ? $this->opt('ibox_icon_'.$i) : false; if(!$media){ $icons = pl_icon_array(); $media = $icons[ array_rand($icons) ]; } $media_html = sprintf('<i class="icon icon-3x icon-%s"></i>', $media); } elseif( $media_type == 'image' ){ $media = ($this->opt('ibox_image_'.$i)) ? $this->opt('ibox_image_'.$i) : false; $media_html = ''; $media_bg = ($media) ? sprintf('background-image: url(%s);', $media) : ''; } $media_link = ''; $media_link_close = ''; if( $link ){ $media_link = sprintf('<a href="file:///C|/Users/Woody/www/Sole Sails/wp-content/themes/dms/dms/sections/ibox/%s">',$link); $media_link_close = '</a>'; } if($width == 0) $output .= '<div class="row fix">'; $output .= sprintf( '<div class="span%s ibox %s %s fix"> <div class="ibox-media img"> %s <span class="ibox-icon-border pl-animation pl-appear pl-contrast %s" style="%s"> %s </span> %s </div> <div class="ibox-text bd"> %s <div class="ibox-desc"> %s %s </div> </div> </div>', $cols, $format_class, $user_class, $media_link, $media_class, $media_bg, $media_html, $media_link_close, $title, $text, $text_link ); $width += $cols; if($width >= 12 || $i == $boxes){ $width = 0; $output .= '</div>'; } endfor; printf('<div class="ibox-wrapper pl-animation-group">%s</div>', $output); } }
    • 0
  13. solosails added an answer to a question Add media from library box too narrow to be able to select media!   

    Hi, yes I understand.
     
    I will just try and figure something out. Thanks
    • 0
  14. solosails added an answer to a question iBox Count number mode - dynamic   

    ok, thanks. 1 for the devs to consider perhaps?
     
     
    • 0
  15. solosails added a question in Technical Support (Personal, Business, & Developer)   

    iBox Count number mode - dynamic
    Hi,
     
    I like the iBox's count mode, but at present, it is pretty limited in its use, is there anyway to make it dynamic so that it could look up number of users, or number of posts, or some other dynamically changing figure?
     
    This would be great for the star slider option too.
     
    Thanks in advance , Andrew
    • 8 replies
    • 36 views