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 thanks bro, do u knw any message in forum DAT can fit this site oluboizones.wapka.me it can also be BB code thanks
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 how to allow more than 20kb image in my forum the code pls,
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 Weezy pls share me this site message in forum and themes pls, this is the link to forum giditech.in/forum2_theme_112765156.xhtml?tema=19 while this is link to theme giditech.in/forum2_112765194.xhtml pls
Weezy
olumofe6 Ok, try the code below
<script language="javascript">document. write('<a href="whatsapp://send?text='+document.title+' @ '+document.URL+'"> <img src="http://i0.wp.com/wapkaimage.com/1672/1672959_57d3df6d62.jpg?resize=76%2C18" data-recalc-dims="1" /> </a>')</script> <a href="javascript:void(0)" onclick="fbshare()"><img src="http://i0.wp.com/wapkaimage.com/1642/1642522_01105ada03.png?resize=76%2C18" data-recalc-dims="1" /></a> <script type="text/javascript">document.write('<a href="https://twitter.com/intent/tweet?text=::THEME_NAME::&related=yoursite.wapka.mobi&via=yoursite&hashtags=MySchoolAndI&url='+document.URL+'"><img src="http://i0.wp.com/wapkaimage.com/1642/1642521_89459453ae.png?resize=76%2C18" data-recalc-dims="1" /></a>');</script>
Copy code
olumofe6
Weezy yes, help me to get it, thanks bro