Finished-[6.0-6.1-6.2-6.3] Mod: Copy link to clipboard - 08/14/2003 8:08 AM
Mod Name / Version: Mod: Copy link to clipboard
Description: Shortcut link to copy the current post's URL to clipboard.
Working Under: UBB.Threads 6.0-6.1-6.2-6.3
Mod Status: Finished
Any pre-requisites: None
Author(s): santana
Date: 08/13/03
Credits: gossamer-threads.com
Files Altered:
/inlcudes/header-insert.php
/templates/default/showflat.tmpl
/templates/default/showthreaded.tmpl
New Files: link.gif (put this under your image directory whatever you set on the $config['images'])
Database Altered: No
Info/Instructions:
Add the following codes into your header-insert.php:
Add the following codes into your showflat.tmpl & showthreaded.tmpl within:
<!-- for($i=0;$i<$postrowsize;$i++) { //UBBTREMARK -->
<!-- echo <<<UBBTPRINT -->
Hope it works
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Description: Shortcut link to copy the current post's URL to clipboard.
Working Under: UBB.Threads 6.0-6.1-6.2-6.3
Mod Status: Finished
Any pre-requisites: None
Author(s): santana
Date: 08/13/03
Credits: gossamer-threads.com
Files Altered:
/inlcudes/header-insert.php
/templates/default/showflat.tmpl
/templates/default/showthreaded.tmpl
New Files: link.gif (put this under your image directory whatever you set on the $config['images'])
Database Altered: No
Info/Instructions:
Add the following codes into your header-insert.php:
Code
<br /><script language="Javascript"><br /><!--<br />function postShortcut(post_id) {<br /> document.all.post_shortcut.value = 'http://www.yourdomain.com/ubbthreads/showflat.php?Number=' <br />+ post_id + '#' + post_id; document.all.post_shortcut.createTextRange().execCommand("Copy");<br />}<br />//--><br /></script><br />
Add the following codes into your showflat.tmpl & showthreaded.tmpl within:
<!-- for($i=0;$i<$postrowsize;$i++) { //UBBTREMARK -->
<!-- echo <<<UBBTPRINT -->
Code
<br /><img src="{$config['images']}/link.gif" align="absmiddle" border="0" alt="Copy Link" title="Copy Link" /><br /> <a href="javascript: postShortcut({$postrow[$i]['Number']})">Copy Link</a><br />
Hope it works
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.