9lessons programming blog
Loading Search
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!

Share this post

Comments
{ 28 comments }
Anonymous said...

you must use template engine like vbulletin or smarty.

sabato said...

Nice script. A live demo would be nice. Thanks

Anonymous said...

Nice! But what about a lightbox for the pictures ?

Brayan Cru said...

Thanks

ridha said...

thanks a lot for update..

Anonymous said...

Very good sir! Thank you.

Anonymous said...

Thank you sir...

Anonymous said...

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

Mohit Bumb said...

nice demo srinivas

fuad indra said...

great post....srinivas

Sean said...

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

Lars said...

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

Srinivas Tamada said...

Included Expand_URL.php in newly purchased Wall.zip

Anonymous said...

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

Anonymous said...

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

Anonymous said...

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

Rohit

Anonymous said...

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

Anonymous said...

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

Srinivas Tamada said...

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

Jean-Yves said...

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

Terry said...

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

Thalhah Amir said...

i would like to buy if it can integrate with ipboard

Anonymous said...

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

norwich web design said...

awesome wall updates thanks for sharing helpful data

Anastasia said...

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 ... ?

Anonymous said...

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.

Baekaku said...

awesome ......

Anonymous said...

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

Post a Comment

Subscribe now!Recent Posts

Categories

Subscribe now!Popular Posts

People Says

@9lessons thank you for the great tutorials, we truly appreciate your contributions to the design community.

Smashing Magazine
After developing a site you’ll require a web hosting plan to host your site, a recommended host is justhost.com which operates a LAMP environment and has been established a number of years.

Like Me