Displaying images of more than 20kb on wapka forum site.
I have been receiving complaints about some wapmasters not been able to display images more than 20kb on their WAPKA forum.
Let us begin. First add this to your bottom autocontent for forum
<@script language="javascript">var msg=document.getElementsByName("zoom"); for(var i=0;i<@msg.length;i++){ var oldtext=document.getElementsByName("zoom")[i].innerHTML; var newtext=oldtext.rep@lace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig,"$1$2"); newtext=newtext.replace (@/\[img\](.+?)\[\/img\]/ig," <@img src='$1' alt='image' />"); document.getElementsByName("zoom")[i].innerHTML=newtext; }<@/script>
Then in style of message in the forum (FIRS BIG BOX) and wrap your ::msg:: with
<@div name="zoom">::msg::<@/div>
Then go to ES=>gobal settings=> FORUM=> and click on about WCODE and untick [img].
Now go and post with [img] tag as usual and see it work.
NOTE: Locate all @ from the codes and remove them, and make sure you have a forum bottom auto content for it to work. Drop your comment if you dont understand.
Comments
Post a Comment
We love to hear from you!
Want to be notified when your comment is been replied? Tick the "Notify Me" box.
THANKS.