Wall Script The Social Network Script Blog: Wall Script 4.0 Updates

Wednesday, February 22, 2012

Wall Script 4.0 Updates

OEmbed expand URL service acquired by embed.ly, now it’s paid service so that I’m releasing this expanding URL fix. Right now this function will work with Youtube and Vimeo links. I have been working with few more popular services. For demo check my profile at labs.9lessons labs.9lessons.info/srinivas

If you own Wall Script 4.0 please mail to srinivas@9lessons.info with subject “ExpandURL WallScript” I will send you the Expand_URL.php file ASAP

Once you got the file just copy “Expand_URL.php” and paste it into wall script “includes” directory.

Note: Take your existing copy backup the do these modifications.

Step 1
Include new line in these files index.php, moreupdates_ajax.php and message_ajax.php.
include_once 'includes/db.php';
include_once 'includes/Wall_Updates.php';
include_once 'includes/Expand_URL.php'; // new line


Step 2
Delete following code in these file load_messages.php or message_ajax.php
<script type="text/javascript">
$(document).ready(function(){$("#stexpand<?php echo $msg_id;?>").oembed("<?php echo  $link; ?>",{maxWidth: 400, maxHeight: 300});});
</script>

And Replace
<div id="stexpand<?php echo $msg_id;?>">
</div>

To

<div id="stexpand<?php echo $msg_id;?>">
<?php
if(textlink($orimessage))
{
$link =textlink($orimessage);
echo Expand_URL($link);
}
?>
</div>

wall.js Fix

Remove following line.
$("#stexpand").oembed(updateval);

Message update FadeIn effect fix replace following code
$("#content").prepend(html);

To

$("#content").prepend($(html).fadeIn('slow'));

Same way comment update fadein effect fix.
$("#commentload"+ID).append(html);

To

$("#commentload"+ID).append($(html).fadeIn('slow'));

More button pre image loader fix.
$("#more").html('<img src="icons/ajaxloader.gif" />');

To

$("#more"+ID).html('<img src="icons/ajaxloader.gif" />');

Wall Script 4.0 Wall.9lessons.info.

No comments:

Post a Comment