hi,
i want to change this code __fileLink__
into profile nick for example __profilenick__
i tried many times but it hard to guess
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. |
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 = '')
but again, need a bit more detail to be able to help you more. caredesign.net |
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. |
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 |
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 |
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. |
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. |
thank you ProfessorSr, i think its too risky and i not php guru (yet) but Always remember that the future comes one day at a time. |
{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. |
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. |
7.1.1 Always remember that the future comes one day at a time. |
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. |
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. |
i will try again, thanks any way Always remember that the future comes one day at a time. |