[WCDDL] Tweet Download on Twitter, Modification

Description:
Allows users/visitors to tweet a download to their followers, with the 'name' of download, and 'url' to framed page etc.

Example:


How to implement?
1. Open notepad2/ide (index.php)
2. Find this line (or similar):
Code: 
<tr><td>Type</td><td><strong>Title</strong></td><td>Views</td><td>Google Plus</td><td>Facebook</td></tr>
Modify to:
Code: 
        <tr><td>Type</td><td><strong>Title</strong></td><td>Views</td><td>Google Plus</td><td>Facebook</td><td>Twitter</td></tr>
3. Find this block (or similar):
Code: 
		<tr>
			<td><?php echo $row->type; ?></td>
			<td><a href="download.php?id=<?php echo $row->id; ?>"><?php echo $row->showTitle(); ?></a></td>
			<td><?php echo $row->views; ?></td>
                        <td><g:plusone size="small" href="download.php?id=<?php echo $row->id; ?>"></g:plusone></td>
                        <td><div class="fb-like" data-href="<?php echo WCDDL_PATH; ?>download.php?id=<?php echo $row->id; ?>" data-send="false" data-layout="button_count" data-width="40" data-show-faces="false"></div></div></td>
		</tr>
Modify to:
Code: 
		<tr>
			<td><?php echo $row->type; ?></td>
			<td><a href="download.php?id=<?php echo $row->id; ?>"><?php echo $row->showTitle(); ?></a></td>
			<td><?php echo $row->views; ?></td>
                        <td><g:plusone size="small" href="download.php?id=<?php echo $row->id; ?>"></g:plusone></td>
                        <td><div class="fb-like" data-href="<?php echo WCDDL_PATH; ?>download.php?id=<?php echo $row->id; ?>" data-send="false" data-layout="button_count" data-width="40" data-show-faces="false"></div></div></td>
                        <td><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://seecure.me" data-text="test">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-KWWHs");</script></td>
                </tr>
4. Modify this:
Code: 
		<tr>
			<td><?php echo $row->type; ?></td>
			<td><a href="download.php?id=<?php echo $row->id; ?>"><?php echo $row->showTitle(); ?></a></td>
			<td><?php echo $row->views; ?></td>
                        <td><g:plusone size="small" href="download.php?id=<?php echo $row->id; ?>"></g:plusone></td>
                        <td><div class="fb-like" data-href="<?php echo WCDDL_PATH; ?>download.php?id=<?php echo $row->id; ?>" data-send="false" data-layout="button_count" data-width="40" data-show-faces="false"></div></div></td>
                        <td><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://seecure.me" data-text="test">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-KWWHs");</script></td>
                </tr>
Replace "http://seecure.me" with:
Code: 
"<?php echo WCDDL_PATH."download.php?id=".$row->id; ?>"
Find:
Code: 
data-text="test">Tweet
Replace with:
Code: 
data-text="<?php echo $row->showTitle(); ?>">Tweet
5. Trial and error, refresh, save, post, tweet, etc.
_Vick Reviewed by _Vick on . [WCDDL] Tweet Download on Twitter, Modification Tweet Download on Twitter, Modification Description: Allows users/visitors to tweet a download to their followers, with the 'name' of download, and 'url' to framed page etc. Example: http://screensnapr.com/e/OngHpr.jpg How to implement? 1. Open notepad2/ide (index.php) Rating: 5