littel code change

hi,

i want to change this code __fileLink__

into profile nick for example __profilenick__

i tried many times but it hard to guess

Always remember that the future comes one day at a time.
Quote · 16 Apr 2014

that looks to be from an html page. THat is a variable for something else. First search for:

'fileLink'

(with the single quotes)

 

From there you would have to add the variable for profileNick so that it can be displayed on your page. That is just a quick thought, but not knowing exactly what it is you are trying to do makes it a little hard to give a best solution. Please give more detail.

I found 'fileLink' on BxBaseSearchResultSharedMedia.php around line 340:

 

    function _getSharedThumb ($iId, $sFileLink, $sHash = '')
    {
        $sIdent = strlen($sHash) > 0 ? $sHash : $iId;
        $aUnit = array(
            'imgUrl' => $this->getImgUrl($sIdent),
            'spacer' => getTemplateIcon('spacer.gif'),
            'fileLink' => $sFileLink,
            'bx_if:admin' => array(
                'condition' => $this->bAdminMode,
                'content' => array('id' => $iId)
            )
        );
        return $this->oModule->_oTemplate->parseHtmlByName('thumb.html', $aUnit);
    }

 

but again, need a bit more detail to be able to help you more.

caredesign.net
Quote · 16 Apr 2014

The file is thumb.html in modules -> photos

the code is:

<div class="sys_file_search_pic bx_photos_file_search_pic" style="background-image: url('__imgUrl__');">

    <bx_if:admin>

        <div class="bx_sys_unit_checkbox">

            <input type="checkbox" name="entry[]" value="__id__"/>

        </div>

    </bx_if:admin>

    <a  href="__fileLink__"><img src="__spacer__"></a>

</div>

 

this mean that when user click on image it will go to the image page

of the user, i want that it will go to profile instead.

Always remember that the future comes one day at a time.
Quote · 16 Apr 2014

As per my earlier post - first search for the variable 'fileUnit', which when I did, I only found one place in all of Dolphin that this occurs, which I already posted. So from there, on that page in that section, you would have to make your changes. But - keep in mind that this may be used in several other places and your changes will be reflected there as well.

caredesign.net
Quote · 16 Apr 2014

 

But - keep in mind that this may be used in several other places and your changes will be reflected there as well.

As Professor mentioned above, that key may be used in other places.  Instead, add your own key under that key such as profilenick and then replace in the template file that is using filelink with your profilenick.  That way you won't break anything else on your site.

Geeks, making the world a better place
Quote · 16 Apr 2014

Use this:

 

    <a href="{from}"><img src="__spacer__"></a>

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 16 Apr 2014

However, I believe you'll find out that this has unintended consequences, so you need to give a little more details.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 16 Apr 2014

thank you ProfessorSr, i think its too risky and i not php guru (yet)

but
houstonlively can you explain what you ment here

Always remember that the future comes one day at a time.
Quote · 16 Apr 2014

{from} in the thumb.html file will stay the same way "{from}"

i have tried it before

Always remember that the future comes one day at a time.
Quote · 16 Apr 2014

 RE:

{from} in the thumb.html file will stay the same way "{from}"

i have tried it before

 That works in 7.1.4    What version of Dolphin are you using?

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 16 Apr 2014

7.1.1

Always remember that the future comes one day at a time.
Quote · 16 Apr 2014

I don't know what to tell you, because I know what I posted works, and it should still work in 7.1.1

The problem with what you want to do, is that you'll never be able to click on a thumbnail image to view the photo page.  Only clicking on the title will get you to the photo page.  If this strange behavior is what you want, then you'll be OK.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 16 Apr 2014

The only thing I can suggest is try it again. Make sure you have NO spaces within the curly brackets.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 16 Apr 2014

i will try again,

thanks any way

Always remember that the future comes one day at a time.
Quote · 16 Apr 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.