PDA

View Full Version : html quotes


mark|3
April 1st, 2008, 10:58 AM
Currently my gallery displays the "Linked Thumbnail" when the user click on the image. He/she has to click on the small icon to further display the other html quotes.

But i would like the default to be in this manner or to replace the "Linked Thumbnail"

http://www.site.com/photopost/data/512/medium/3.JPG

Will this be possible?

Thanks

Chuck S
April 1st, 2008, 11:37 AM
you would need to modify your scripts and change orders of things I guess cause we do show the code you want just not first

http://www.reeftalk.com/gallery/showphoto.php/photo/1372

mark|3
April 1st, 2008, 08:27 PM
how do i go about changing the order? thank you :)

Chuck S
April 1st, 2008, 08:35 PM
well you can ask specific hacking questions in the mod corner outside product support

But in showphoto template there is this code you want to look at and change the order around possibly but I do not offer support for it here


if ( $Globals['showubb'] == "yes" )
{
echo<<<PPPRINT
<tr>
<td class="{$Style['tddetails']}" align="center">
<b>{$Globals['pp_lang']['linkedmed']}:</b> <input class="{$Style['blockquote']}" type="text" name="bbcode" value="$showbbmed" size="80" onclick="this.focus();this.select()" /><br />
PPPRINT;


if ( $imgurl && (($dispmed == 1 && $Globals['showubb'] == "yes") || $Globals['showhtml'] == "yes") )
{
echo<<<PPPRINT
<span class="{$Style['small']}">&nbsp;<a href="javascript:showcodes();"><img src="{$Globals['idir']}/photo_link.png" alt="{$Globals['pp_lang']['more']}" border="0" /></a></span>
PPPRINT;
}

echo<<<PPPRINT
</td>
</tr>
PPPRINT;
}

echo<<<PPPRINT
</table>
PPPRINT;

if ( ($imgurl && $Globals['showubb'] == "yes") && ($Globals['showubb'] == "yes" || $Globals['showhtml'] == "yes") )
{
echo<<<PPPRINT
<div id="showcodes" style="display: none;">
<br />
<table class="{$Style['tableborders']}" cellpadding="6" cellspacing="1" border="0" width="90%" align="center">
<tr>
<td class="{$Style['tddetails']}" align="center">

PPPRINT;

if ( $Globals['showubb'] == "yes" && $dispmed == 1 )
{
echo<<<PPPRINT
<b>{$Globals['pp_lang']['linkedthumb']}</b> <input class="{$Style['blockquote']}" type="text" name="bbthumb" value="$showbbthumb" size="80" onclick="this.focus();this.select()" />
PPPRINT;
echo<<<PPPRINT
<b>{$Globals['pp_lang']['medimage']}:</b> <input class="{$Style['blockquote']}" type="text" name="bbcode" value="$showbbcode" size="80" onclick="this.focus();this.select()" /><br />
PPPRINT;
}

if ( $Globals['showhtml'] == "yes" )
{
echo<<<PPPRINT
<b>{$Globals['pp_lang']['htmlcode']}:</b> <input class="{$Style['blockquote']}" type="text" name="html" value="$showhtmlcode" size="80" onclick="this.focus();this.select()" /><br />
PPPRINT;
}

if ( $Globals['showdirect'] == "yes" )
{
echo<<<PPPRINT
<b>{$Globals['pp_lang']['directcode']}:</b> <input type="text" name="direct" value="$showdirectcode" size="80" onclick="this.focus();this.select()" /><br />
PPPRINT;
}

mark|3
April 2nd, 2008, 02:07 AM
thank you chuck :D

Chuck S
April 2nd, 2008, 10:21 AM
not a problem enjoy.