The embedded coding to display the photos on other sites is just posting a straight url intead of the html coding to display them.
Does anyone know how to fix this, or which file to edit?
Here is a sample link of what it is doing:
http://getshizzled.com/community/media/images/sharingImages/5.jpg
Should be something like:
<img src="http://getshizzled.com/community/media/images/sharingImages/5.jpg" />
Sample of what it does Below

|
Yes, you have to add the code just like the one in bold. ---- |
The problem is is that Dolphin did not generate that code..
Dolphin just generates the URL like this: http://getshizzled.com/community/media/images/sharingImages/5.jpg
Instead of adding the <img> tag to it.
I altered the code to make it display as I think it is intended.
The question is, which file controls that code so I can fix the issue?
|
Darn he's right. OK I'll find the code for this tonight. |
Got it!
IN file BxDolSharedMedia.php locaed in /inc/classes
change line 286 to this:
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<img src="<?=htmlspecialchars($sEmbedCode)?>"/>"/>
If you want to take it one step further, you can embed the code like this, and add a link below the pic..
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<img src="<?=htmlspecialchars($sEmbedCode)?>"/><a href="http://getshizzled.com"><br>getshizzled - Friends with Benefits</a>"/>
|
To change the direct link url to the actual page
Alter the code on line 282 from this:
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=$this->getFileUrl($aFile['medID'], $aFile['medUri'])?>"/>
to This:
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<a href="<?=$this->getFileUrl($aFile['medID'], $aFile['medUri'])?>"><br>getshizzled - Friends with Benefits</a>"/>
which will make the link look like this:
getshizzled - Friends with Benefits
|
Well Crap - The problem is it that it is the same coding for videos, which will mess up the embedding linking for those.
Let me see if I can add another entry to the layout.
|
Got it!
IN file BxDolSharedMedia.php locaed in /inc/classes
change line 286 to this:
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<img src="<?=htmlspecialchars($sEmbedCode)?>"/>"/>
If you want to take it one step further, you can embed the code like this, and add a link below the pic..
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<img src="<?=htmlspecialchars($sEmbedCode)?>"/><a href="http://getshizzled.com"><br>getshizzled - Friends with Benefits</a>"/>
THANKS!!
|
Now how did I get a post in as georgemedia????
We just might of found a security issue with the forum here??!
Either way, that doesn't work because the embed coding for video files is different, and those tags are added, it will mess up the coding. I will figure out a way to get the coding seperated into different sets when I get the time.. and report the results. I think support should look at this issue though. Anyone know to get ahold of the developers?
|
For now, I added the codes below the original codes. I would like to find a way to show the codes ONLY if it is not a video and/or not a photo, etc..
add below the <div> tag on line 300: Notice I changed the language fields to something I needed
This will place the tags right above the 'Tags"
<div> <?=_t("Link to this page!")?>: <input type="text" onClick="this.focus();
this.select();" readonly="true" value="<a
href="<?=$this->getFileUrl($aFile['medID'],
$aFile['medUri'])?>"><br>getshizzled - Friends with
Benefits</a>"/> </div> <div> <?=_t("HOTLINK TO IMAGES ONLY!")?>: <input type="text" onClick="this.focus();
this.select();" readonly="true" value="<img
src="<?=htmlspecialchars($sEmbedCode)?>"/><a
href="http://getshizzled.com"><br>getshizzled
- Friends with Benefits</a>"/><br> </div>
|
Add that code inside the HTML editor of the tinymce in the HTML block. ---- |
Add that code inside the HTML editor of the tinymce in the HTML block.
I am not understanding. What is TinyMCE??
|
Do you mean to add it as a block on the photo layout instead of tweaking the code in the source? |
I am considering that you have added the code to HTML block in page builder.
In the place to add the html.
The top bar represents the tinymce. You can see a text HTML in it. Click it and add the code.
---- |
I didn't add it via an HTML block, rather changed the source code to reflect the change. This issue will be fixed in the next update to dolphin. |
How about getting some UBBcode in there for forums, a linked thumnailed image, and HTML code to the medium sized image that is being displayed rather than the full image?
|
|