Weezy
olumofe6 Anyday am through, hv been working on it for a while now but still cnt get it right yet, u can also be requesting for other codes while u wait!
olumofe6
Weezy how to allow more than 20kb image in my forum the code pls,
Weezy
olumofe6 First of all, you have to disable the
[img] code in wcode for forum. Go to Edit site » Global settings » Forum look for enable WCODE. Enable it and save. By the side of Enable WCODE, you will see (about WCODE). Click on it. Look for img and untick it and save. Now the code to show photos is javascript as follows:
<script language="javascript">var msg=document.getElementsByName("porter"); for(var i=0;i<msg.length;i++){ var oldtext=document.getElementsByName("porter")[i].innerHTML; var newtext=oldtext.replace(/(^|[n ])([w]+?://[^ ,"nrt<]*)/ig,"$1<a href='$2'>$2</a>"); newtext=newtext.replace (/ <img src='(.+?)' alt='image' />/ig," <img src='$1' alt='image' />"); document.getElementsByName("porter")[i].innerHTML=newtext; }</script>
Copy code Post the above code in your forum bottom autocontent. Now go to Edit site » Wap2 » Styles for content in forum/chat » Set global settings of styles for forum/chat » Messages in forum (thesecond one). Look for
::msg:: and wrap it like this:
That's all.
olumofe6
Weezy thanks bro, do u knw any message in forum DAT can fit this site oluboizones.wapka.me it can also be BB code thanks
olumofe6
Weezy I tested it, but is not working on my site oluboizones.tk I did it like this [img]https://i0.wp.com/loadedguruz.com/wp-
content/uploads/2016/05/glo-3.jpg[/img]
olumofe6
Weezy I only saw ::msg:: in my first box
Weezy
olumofe6 Try the one below, i got it from a wapka site author, he said its working on his site ..
Step 1: Goto Global settings > Forum > Enable WCODE (about WCODE) click on that (about wcode) You will see many tick box just untick the one with (:img:)
Step 2: Goto Wap2 > Styles for content in forum/chat > Set global settings of styles for forum/chat > and click on the second "Messages in forum" which is or set own form for:
after u click u will see 3 boxes, In the first box which is "Style of messages in the forum:*" Remove
:msg: in that box and replace it with
<span name="topic"><ing id="topic">::msg::</ing></span>
Copy code
Step 3: Goto your forum bottom autocontent default, botton
autocontent is site_-1.xhtml, but it will be advisable to create another site id for ur forum bottom autocontent, No long story, Now goto ur Forum bottom autocontent 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>
Copy code thats all, its working 101% ..
To post image in your forum, use the code below
<div align='center' class=''><a href='http://image_url.png'><img src='http://image_url.png' alt='Image' style='background-color:;max- width:100%' width='' height=''/></a></div>
Copy code
olumofe6
Weezy thanks, but I don't get rite, can u help me with
olumofe6
Weezy I should give u my detils