Wall Script 4.0 Update.
Wall Script
Follow Me:
Monday, February 27, 2012

Wall Script 4.0 Update.

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

Wall Script 4.0 Update.

Download Script     Live Demo

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 a backup existing wall application, then 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
Replace following code in these file load_messages.php or message_ajax.php
$message=tolink(htmlcode($data['message']));

to

$orimessage=$data['message'];
$message=tolink(htmlcode($data['message']));

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
Now open wall.js javascript file do these following modifications.

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" />');

Current Wall Script 4.0 Wall.9lessons.info version updated with all these fixes. Thanks!
Was this article helpful?
Thanks! Your feedback helps us to improve 9lessons.info


32 comments:

  1. you must use template engine like vbulletin or smarty.

    ReplyDelete
  2. Nice script. A live demo would be nice. Thanks

    ReplyDelete
  3. Nice! But what about a lightbox for the pictures ?

    ReplyDelete
  4. Very good sir! Thank you.

    ReplyDelete
  5. Can we see the demo which can move us to buy...

    ReplyDelete
  6. Is this fix included on a newly purchased version? If I buy now will I have to update it?

    ReplyDelete
  7. Thanks finaly it's working every time i load the wall not only once in a while when it's feeling happy :)

    ReplyDelete
  8. Included Expand_URL.php in newly purchased Wall.zip

    ReplyDelete
  9. hello srinivas since 1 yr i am visiting your website i have been a fan of your clean coded wallscript .after the oembed problem , i tried to search for a solution and found one if we change defaultOEmbedProvider: "oohembed",
    to

    defaultOEmbedProvider: "embed.ly",
    in ht oembed.js

    it works as expected now . and also youtu.be links works 2 .hope it helps you develop more awesome codes .

    Rohit

    ReplyDelete
  10. i already changed it into embed.ly but it still doesn't work, rohit. so any ideas?
    please help

    ReplyDelete
  11. well i have a solution which dosent uses website such as embed.ly and uses api of the video website directly .

    Rohit

    ReplyDelete
  12. eregi() is deprecated, so why use it in expand_url.hp

    ReplyDelete
  13. How can I make it so that it pulls in comments automatically, so the user does not have to keep refreshing the page to pull in new comments? I would really apprerciate your help. Thanks in advance.

    Michael

    ReplyDelete
  14. Solved the problem of overlapping on youtubenJust add ?wmode=trasparent to the end of youtube URLnreplace in Expand_URL.php n' . $splits[1] . '?wmode=transparent

    ReplyDelete
  15. There is some error in your instruction for upgrading. I will email you regarding it.

    ReplyDelete
  16. Do we delete the code from both load_messages.php and message_ajax.php or just one or the other?

    ReplyDelete
  17. i would like to buy if it can integrate with ipboard

    ReplyDelete
  18. Hello,

    I like to know how to replace \n by
    in load_messages.php?

    When I do get on my keyboard, the newline and does not indicate a "No".

    I tried to replace (/\r\n/g, "
    "), but it makes no difference ...

    In advance thank you

    ReplyDelete
  19. awesome wall updates thanks for sharing helpful data

    ReplyDelete
  20. Hello Srinivas

    about your post: "Solved the problem of overlapping on youtubenJust add ?wmode=trasparent to the end of youtube URLnreplace in Expand_URL.php n' . $splits[1] . '?wmode=transparent "
    in Expand_URL.php where do I add the ?wmode=transparent " ? in line 18, where is the $return ... ?

    ReplyDelete
  21. Does this script work? Version three I have recently tried and it has errors in it. Several errors, and it doesn't work. I guess that's why error reporting was turned off. Turn it on and bam....errors all over the place.

    I'd like to get a working copy of this, but I need a guarantee that it works. Thank you.

    ReplyDelete
  22. is there any updates in this wall script like "like feature", tagging, smileys, shows users who liked post etc..???

    ReplyDelete
  23. Every time I try to upload a image it returns with failed in a browser alert... Any ideas why this is happening?

    Here is firebug results..

    [jquery.form] state = uninitialized
    jquery...form.js (line 891)
    [jquery.form] state = loading
    jquery...form.js (line 891)
    [jquery.form] isXml=false
    jquery...form.js (line 891)

    $(options.target)[fn](data).each is not a function

    ReplyDelete
  24. wow any of these on asp.net???

    ReplyDelete
  25. bump
    is there any updates in this wall script like "like feature", tagging, smileys, shows users who liked post etc..???

    ReplyDelete
  26. Thank you for sharing it for us. It is really very useful!

    ReplyDelete

Make in India