Download Script Live Demo
If you own Wall Script 4.0 please mail to [email protected] 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
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']));
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>
$(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>
</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'));
To
$("#content").prepend($(html).fadeIn('slow'));
Same way comment update fadein effect fix.
$("#commentload"+ID).append(html);
To
$("#commentload"+ID).append($(html).fadeIn('slow'));
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" />');
To
$("#more"+ID).html('<img src="icons/ajaxloader.gif" />');
Current Wall Script 4.0 Wall.9lessons.info version updated with all these fixes. Thanks!
you must use template engine like vbulletin or smarty.
ReplyDeleteNice script. A live demo would be nice. Thanks
ReplyDeleteNice! But what about a lightbox for the pictures ?
ReplyDeleteThanks
ReplyDeletethanks a lot for update..
ReplyDeleteVery good sir! Thank you.
ReplyDeleteThank you sir...
ReplyDeleteCan we see the demo which can move us to buy...
ReplyDeletenice demo srinivas
ReplyDeletegreat post....srinivas
ReplyDeleteIs this fix included on a newly purchased version? If I buy now will I have to update it?
ReplyDeleteThanks finaly it's working every time i load the wall not only once in a while when it's feeling happy :)
ReplyDeleteIncluded Expand_URL.php in newly purchased Wall.zip
ReplyDeletehello 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",
ReplyDeleteto
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
i already changed it into embed.ly but it still doesn't work, rohit. so any ideas?
ReplyDeleteplease help
well i have a solution which dosent uses website such as embed.ly and uses api of the video website directly .
ReplyDeleteRohit
eregi() is deprecated, so why use it in expand_url.hp
ReplyDeleteHow 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.
ReplyDeleteMichael
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
ReplyDeleteThere is some error in your instruction for upgrading. I will email you regarding it.
ReplyDeleteDo we delete the code from both load_messages.php and message_ajax.php or just one or the other?
ReplyDeletei would like to buy if it can integrate with ipboard
ReplyDeleteHello,
ReplyDeleteI 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
awesome wall updates thanks for sharing helpful data
ReplyDeleteHello Srinivas
ReplyDeleteabout 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 ... ?
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.
ReplyDeleteI'd like to get a working copy of this, but I need a guarantee that it works. Thank you.
awesome ......
ReplyDeleteis there any updates in this wall script like "like feature", tagging, smileys, shows users who liked post etc..???
ReplyDeleteEvery time I try to upload a image it returns with failed in a browser alert... Any ideas why this is happening?
ReplyDeleteHere 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
wow any of these on asp.net???
ReplyDeletebump
ReplyDeleteis there any updates in this wall script like "like feature", tagging, smileys, shows users who liked post etc..???
Thank you for sharing it for us. It is really very useful!
ReplyDelete