Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Copy thumbnail img tag
i want to add an option to copy img tag of the Thumbnail image and not the img tag of the original image
can somebody help me?
0
This discussion has been closed.
Comments
Now in answer to your question, and I havent tested this so you might have to play with it a little, try opening up index.php and finding:
$FolderPath = substr($Config->CurrentBrowsingDirectory, strlen($Config->CurrentWorkingDirectory)+1,(strlen($Config->CurrentBrowsingDirectory)-strlen($Config->CurrentWorkingDirectory)+1)); $FolderPath = ($FolderPath != "")?$FolderPath."/".$FileName:$FileName; $EncodedPath = EncodeLinkUrl(FilePath(CurrentWebPath(),$FolderPath));
Then below it, add this:
$ThumbPath = ($FolderPath != "")?$FolderPath."/_thumb.".$FileName:."_thumb.".$FileName; $EncodedThumbPath = EncodeLinkUrl(FilePath(CurrentWebPath(),$ThumbPath));
Then below that, find:
$Return = "<input type=\"hidden\" name=\"Item$ItemID\" value=\"".$EncodedPath."\" />
and below it add:
<input type=\"hidden\" name=\"ItemThumb$ItemID\" value=\"".$EncodedThumbPath."\" />
Slightly further down, find:
<li class=\"Copy\"><a href=\"Javascript:copy(document.frmLinkContainer.Item$ItemID);\">Copy url</a></li>\r\n";
and below it add:
<li class=\"Copy\"><a href=\"Javascript:copy(document.frmLinkContainer.ItemThumb$ItemID);\">Copy Thumb url</a></li>\r\n";