Working method to display images more than 20kb on wapka forums
Today I decided to share this code, I used this on our old wapka platform.
It's working perfectly, Just follow the below instructions.
Step 1: Goto Global settings >> Forum >> Enable WCODE (about WCODE) click on "about wcode" Boxes you have to tick will appear but just find and untick the one with "img: "
Step 2: Edit site >> Goto Wap2 >> Styles for content in forum/chat >> Set global settings of styles for forum/chat
>> Click on the second "Messages in forum" which is "set own form for forum"
>> Click on the second "Messages in forum" which is "set own form for forum"
When it opens you'll see 3 boxes,
On the first box which is "Style of messages in the forum:*"
Remove :msg: in that text field and replace it with <span name="topic"><ing id="topic">::msg::</ing></span>
On the first box which is "Style of messages in the forum:*"
Remove :msg: in that text field and replace it with <span name="topic"><ing id="topic">::msg::</ing></span>
Step 3: Goto your forum buttom autocontent default button autocontent is -1 or -2, I personally used -2 on our former wapka platform, But I will advise you create another site 'id' for your forum buttom autocontent.
Now goto your Forum buttom autocontent page and add the code below.
<script language="javascript"><br />var
msg=document.getElementsByName("topic");<br />for
(var i=0;i<msg.length;i++){<br />var
oldtext=document.getElementsByName("topic")
[i].innerHTML;<br />var newtext=oldtext.replace(/(^|
[n ])([w]+?://[^ ,"nrt<]*)/ig, "$1<a href='$2'>$2</
a>");<br />newtext=newtext.replace(/<img src='(.+?)'
alt='image' />/ig, "<a href='$1'><img src='$1'
alt='image' /></a>");<br /
>document.getElementsByName("topic")
[i].innerHTML=newtext;<br />}<br /></script>
msg=document.getElementsByName("topic");<br />for
(var i=0;i<msg.length;i++){<br />var
oldtext=document.getElementsByName("topic")
[i].innerHTML;<br />var newtext=oldtext.replace(/(^|
[n ])([w]+?://[^ ,"nrt<]*)/ig, "$1<a href='$2'>$2</
a>");<br />newtext=newtext.replace(/<img src='(.+?)'
alt='image' />/ig, "<a href='$1'><img src='$1'
alt='image' /></a>");<br /
>document.getElementsByName("topic")
[i].innerHTML=newtext;<br />}<br /></script>
Once this is done, you're good to go.
If you don't understand kindly drop your comments.
If you don't understand kindly drop your comments.