parse the url tag in [code]
#11
This user has been denied support. This user has been denied support.
somewhat achieved the above request is filled by other member, but as you people say its not good idea to break the code tag functionality. so i'm thinking of requesting a custom code which is similar to code tag and can be used when required. it must be included in the inc/class_parser instead of creating through mycode.
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#12
(2010-12-17, 04:06 AM)TheGodFather Wrote: somewhat achieved the above request is filled by other member, but as you people say its not good idea to break the code tag functionality. so i'm thinking of requesting a custom code which is similar to code tag and can be used when required. it must be included in the inc/class_parser instead of creating through mycode.

I still don't see why you wont just use the Quote tag. It has clickable URLs and for all intents and purposes is the same as the code tags in terms of looks.
Reply
#13
This user has been denied support. This user has been denied support.
i dont like to use default quote and code tags as i want to change the heading of the new custom code block and some info in a bar at bottom of code block if needed.
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#14
(2010-12-17, 01:18 PM)TheGodFather Wrote: i dont like to use default quote and code tags as i want to change the heading of the new custom code block and some info in a bar at bottom of code block if needed.

Was that so hard? Wink Big Grin
Yes, a custom MyCode is what you need then, and I'm glad someone is making it for you.
Reply
#15
This user has been denied support. This user has been denied support.
Smile

Can we duplicate the [code] tag code and functions in inc/class_parser? so that i can custom name them and use? Big Grin
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#16
Here is a better idea. Make a MyCode for the quote style.

Regular Expression
\[block\=(.*?)\](.*?)\[/block\]

Replacement
<blockquote><cite>$1</cite>$2</blockquote>

[block=Code]yadayadayada[/block] will result in a window identical to a code window except it will parse everything inside.

If you don't want the bar on the top that says what you put for $1, you can make the code like this.

Regular Expression
\[block\](.*?)\[/block\]

Replacement
<blockquote>$1</blockquote>

On my site, I use both. (Oh and just a note, it can be a pain if you are going for w3c validation)
Reply
#17
You need to create Two Codes...

One, recreate the code, but EVERYTHING parses inside.
Simple expression:
\[parcode\](.*?)\[/parcode\]

HTML Expression:
<div class="codeblock">
<div class="title">Code:<br>
</div><div class="body" dir="ltr">$1</div></div>


Then you have to create the noparse code, this goes around everything you don't want to parse like a BBCode that AREN'T URL TAGS.


Simple Expression:
\[noparse\](.*?)\[noparse\]

HTML Replacement:
<code>$1</code>

(you do not need noparse tags around HTML)


Hope this helped!!
http://community.mybb.com/thread-99571-p...#pid726699
I wanna a response to that thread... any help?
Reply
#18
Fixed the noparse code so it works on html codes too
http://community.mybb.com/thread-99571-p...#pid726699
I wanna a response to that thread... any help?
Reply
#19
This user has been denied support. This user has been denied support.
thanks wes the bes,
anyway issue fixed.
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#20
yess Ok Thankss!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)