Results 1 to 3 of 3

Thread: HTML in Profiles, but NOT in Members online

  1. #1
    bigal0228's Avatar
    Join Date
    Sep 2007
    Posts
    409
    Blog Entries
    1

    Default HTML in Profiles, but NOT in Members online

    I installed a mod that allows HTML in profiles. While this is a nice? feature for our members, the only problem is that when you click the "Online" menu or link, it displays the user's Profile info in html CODE, not the actual HTML. Any suggestions or ideas? I've already considered the "remove HTML Mod from profiles" and if I can't resolve this issue, I will lol
    If at first you don't succeed, go to a forum and ask like hell. (Using Joomla 1.5.18, JomSocial 1.6.12, Fully Customized)
    <div>

<a href="http://www.fancamtastic.com/?idAff=5"><img src="http://www.fancamtastic.com/media/images/banners/Banner6.gif" width="445" height="49" border="0"></a><br />
<a href="http://www.fancamtastic.com/?idAff=5"></a>

</div>

  2. #2

    Join Date
    Oct 2006
    Posts
    130

    Default

    See this is why I added an Extra HTML/CSS Code Box to my site so it wouldn't show in searches... Easy enough to do... In the description box was not acceptable for me neither.. It just looks bad..

  3. #3

    Join Date
    Oct 2006
    Posts
    130

    Default

    CSS-HTML PROFILES!


    HTML Enable Profiles:

    Open BxBaseProfileView.php in templates/base/scripts/

    In "function showBlockDescriptions( $sCaption )"

    Find This:

    Code:
    {
                $text = '<div class="discr">' . 
                    '<div class="rss_item_header">' . process_text_output( $this -> _aProfile['Headline'] ) . '</div>' .
                    process_smiles( process_line_output( $this -> _aProfile['DescriptionMe'] ) ) .
                '</div>';
                echo DesignBoxContent( _t( $sCaption ),  $text, 1 );
            }
    Replace it with this:

    Code:
    {
                $text = '<div class="discr">' . 
                    '<div class="rss_item_header">' . process_text_output( $this -> _aProfile['Headline'] ) . '</div>' .
                    trim (process_smiles( process_html_output( $this -> _aProfile['DescriptionMe'],255 ) ) ) .
                '</div>';
                echo DesignBoxContent( _t( $sCaption ),  $text, 1 );
            }
    Now you will be able to add HTML in your Description Field on your User Profiles.
    __________________________________________________ __________________________________

    To add HTML in input fields

    In "function showProfileFields( $aFields )" at the end of the page

    Find This:
    Code:
    case 'c': // input box
                            $p_arr[$fname] = process_line_output( $p_arr[$fname] );
    Replace with This:

    Code:
    case 'c': // input box
                            $p_arr[$fname] = trim (process_html_output( $p_arr[$fname],255 ));
    Now the profile is html enabled. If we leave it as it is now you can
    enter html and css codes in the description field but we don't want
    this because some of the code used will be shown in the members
    description of the members shown on the search page. So now we must
    create a form field that will show users where to enter the codes.

    Create your HTML Code Box:
    (After you set this up you can adjust these settings).

    1. Go to the admin panel and under MODS ADMIN select Profile Fields
    2. Click the Add new field link
    3. Under Field Type select MEMO
    4. Under Add new field select At the beginning, I placed mine after Description Me...
    5. Under Field Name enter HTMLCODES
    6. Under Captions enter Custom HTML/CSS/Music/Video Codes
    7. Under Visible to select Visitor, Member and Admin
    8. Under Editable For select Admin and Member
    9. Under Show on Page select View Profile Page and Edit Profile Page
    10. Under Memo Rows enter 80
    11. Under Memo columns enter 20


    Make your new HTML field viewable in profile view:

    IN file : /base/scripts/BxBaseProfileView.php

    IN function : showBlockDescriptions( $sCaption )
    Find This:
    Code:
    function showBlockDescriptions( $sCaption )
        {
            if( strlen(  $this -> _aProfile['DescriptionMe'] ) )
            {
                $text = '<div class="discr">' . 
                    '<div class="rss_item_header">' . process_text_output( $this -> _aProfile['Headline'] ) . '</div>' .
                    process_smiles( process_text_output( $this -> _aProfile['DescriptionMe'] ) ) .
                '</div>';
                echo DesignBoxContent( _t( $sCaption ),  $text, 1 );
            }
            
            if( strlen( $this -> _aProfile['DescriptionYou'] ) )
            {
                $text = '<div class="discr">' . process_smiles( process_text_output( $this -> _aProfile['DescriptionYou'] ) ) . '</div>';
                echo DesignBoxContent( _t( '_Ideal match description' ), $text, 1 );
            }
    Add This Afterwards:

    Code:
    // START ADDED CUSTOM FIELD MEMO TO SHOW IN PROFILE VIEW
            if( strlen(  $this -> _aProfile['HTMLCODES'] ) )
            {
                    $text = '<div class="discr">' .trim (process_smiles( process_html_output( $this -> _aProfile['HTMLCODES'],255 ) ) ) . '</div>';
                echo DesignBoxContent( _t( "Custom HTML/CSS/Music/Video Codes" ),  $text, 1 );
            }
    // END ADDED CUSTOM FIELD MEMO TO SHOW IN PROFILE VIEW
    Now you have a box in your Edit Profile, and On the Profiles themselves for the HTML/CSS Codes Enjoy..
    Last edited by rscott4581; 11-03-2007 at 06:45 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. html in profiles
    By kill4f in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 03-19-2010, 02:41 PM
  2. html in profiles
    By Toreador in forum Dolphin General Discussion v5.0 to v5.21
    Replies: 92
    Last Post: 06-25-2007, 07:32 PM
  3. HTML in Profiles v2
    By kurdawane in forum Free Mod Exchange
    Replies: 6
    Last Post: 06-01-2007, 02:44 PM
  4. HTML in profiles
    By freexel in forum General Issues, Comments, Questions
    Replies: 1
    Last Post: 04-24-2007, 01:57 PM
  5. Last 10 members online
    By treedguy in forum Free Mod Exchange
    Replies: 1
    Last Post: 08-09-2006, 09:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •