• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

One click select

wout000

Chevereto Member
This little piece of code will allow you to select the entire links by only clicking once on it.

onclick="this.focus();this.select();"

example in INDEX.PHP find

<div class="ctninput">
<div class="codex">Full image:</div>
<div class="inputshare"><input tabindex="2" value=" /></div>
</div>
<div class="ctninput">
<div class="codex">Thumbnail image:</div>
<div class="inputshare"><input tabindex="2" value=" /></div>
</div>

replace with:

<div class="ctninput">
<div class="codex">Full image:</div>
<div class="inputshare"><input tabindex="2" value="" onclick="this.focus();this.select();" /></div>
</div>
<div class="ctninput">
<div class="codex">Thumbnail image:</div>
<div class="inputshare"><input tabindex="2" value="" onclick="this.focus();this.select();" /></div>
</div>
 
It's not working at all for me. This is what i ended up with: (i added the code to the other text fields too)

Code:
        <div id="mostrar_mas_enlaceview">
            <h2 id="mev"><?=SHARE_THUMB_VIEWER;?></h2>
            <div class="ctninput">
                <div class="codex">HTML Thumbnail:</div><div class="inputshare">
                <input id="C1" tabindex="1" value="&lt;a href=&quot;<?=$URLvim?>&quot;&gt;&lt;img src=&quot;<?=$URLthm?>&quot; border=&quot;0&quot;&gt;&lt;/a&gt;" onclick="this.focus();this.select();" />
                </div>
            </div>
            <div class="ctninput">
                <div class="codex">Forum Thumbnail:</div><div class="inputshare">
                <input id="C2" tabindex="2" value="[url=<?=$URLvim?>][img]<?=$URLthm?>[/img][/url]" onclick="this.focus();this.select();" />
                </div>
            </div>
        </div>
        
        <div id="mostrar_directa">
            <h2 id="md">Direct Links</h2><!---lalala --->
            <div class="ctninput">
                <div class="codex"><a href="<?=$URLvim?>" target="_blank"><?=SHARE_VIEWER;?>:</a></div>
                <div class="inputshare"><input id="C3" tabindex="3" value="<?=$URLvim?>" onclick="this.focus();this.select();" /></div>
            </div>
            <div class="ctninput">
                <div class="codex">Forum:</div>
                <div class="inputshare"><input id="C4" tabindex="4" value="[img]<?=$URLimg?>[/img]" onclick="this.focus();this.select();" /></div>
            </div>
            <div class="ctninput">
                <div class="codex"><a href="<?=$URLimg?>" target="_blank">URL:</a></div>
                <div class="inputshare"><input id="C5" tabindex="5"value="<?=$URLimg?>" onclick="this.focus();this.select();" /></div>
            </div>
            <? if (isset($TinyURL) && !empty($TinyURL)) { ?>
            <div class="ctninput">
                <div class="codex"><a href="<?=$TinyURL?>" target="_blank">TinyURL:</a></div>
                <div class="inputshare"><input id="tinyurl" tabindex="6" value="<?=$TinyURL?>" onclick="this.focus();this.select();" /></div>
            </div>
            <? } ?>
        </div>

Look for yourself:
http://blubbz.com/host/?v=1231895813832.jpg

I've checked with both IE, FF and Chrome.

Can anybody see what i'm doing wrong?
 
Back
Top