Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Greentexting
Not Solved
I'm trying to implement a 4chan ">greentext" kind of coding in my myBB forum and I was wondering what files I need to edit with this:


$.fn.tweetify = function() {
	this.each(function() {
				.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1">$1</a>')
				.replace(/(^|\s)#(\w+)/g,'$1<a href="$2">#$2</a>')
				.replace(/(^|\s)@(\w+)/g,'$1<a href="$2">@$2</a>')
				.replace(/(^|\s)&gt;&gt;(\w+)/g,'$1<a href="$2">>>$2</a>')
				.replace(/(^|\s)&gt;(.*?)(<br( )*(\/)?( )*>|\n|$)/g,'$1<span>>$2</span>$3')				
	return $(this);



I'm suggesting implementing the code as a means of modifying text that appears in posts "outside" of myBB so that all it does is alter text after myBB performs a post.

> Example

I tried adding in the javascript to "general.js" and the CSS to "global.css" to see if that would work, but it didn't so I figured I would try asking here.

Forum Jump:

Users browsing this thread: 1 Guest(s)