{Unresolved} I need Help with a [URL] BBCODE Modification

Discussion forum for MOD Writers regarding MOD Development.
Locked
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

{Unresolved} I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

Hello guys, I need to modify the BBCODE. I think the modification needs ... .google.ca[/code]

Would Look Like:

Code: Select all

[url]http://anonlink.dfiber.com?http://www.google.ca[/url]
Thanks in advance for any help, highly appreciated.

Sincerely,
kiran_n444
Last edited by kiran_n444 on Tue Jun 03, 2008 12:29 am, edited 1 time in total.
T50
Registered User
Posts: 333
Joined: Mon May 07, 2007 11:51 pm
Contact:

Re: I need Help with a [URL] BBCODE Modification

Post by T50 »

umm why whould you want to do that?
Free Webhosting with option of getting paid plan <-- No Ads, No Pop-ups, Absolutely free/ or use promo code T50 to get a 10% discount on paid plan!
Make a few $$ in under a few minutes, easy to do

Webmaster of a Northeast Wisconsin Boy Scout Troop Website, http://bsat50.info
jquindlen
Registered User
Posts: 23
Joined: Sun Aug 13, 2006 9:50 pm

Re: I need Help with a [URL] BBCODE Modification

Post by jquindlen »

It disguises the referrer. Oh, and I have no idea how to do it. ;)
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

T50 wrote:umm why whould you want to do that?
WHYY Would I want to Do it.
I want to do it because:
jquindlen wrote:It disguises the referrer. Oh, and I have no idea how to do it.
Thats why. Aww lol I was hoping someone wouldve figured it out when i saw 2 reaplies.

Well, If anyone know, please share.
T50
Registered User
Posts: 333
Joined: Mon May 07, 2007 11:51 pm
Contact:

Re: I need Help with a [URL] BBCODE Modification

Post by T50 »

hmm I haven't worked on the bbcode page for a while now. so I don;t know how you could do this.. maybe someone else would know.
Free Webhosting with option of getting paid plan <-- No Ads, No Pop-ups, Absolutely free/ or use promo code T50 to get a 10% discount on paid plan!
Make a few $$ in under a few minutes, easy to do

Webmaster of a Northeast Wisconsin Boy Scout Troop Website, http://bsat50.info
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

T50 wrote:hmm I haven't worked on the bbcode page for a while now. so I don;t know how you could do this.. maybe someone else would know.
Yea, you and I both. I tried doingin some modifications uing a combinations of 's and &s. but no good luck. I know in other languages thats how you group strings togesther xD but PHP is a whole new language to me altogether xD
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: {Unresolved} I need Help with a [URL] BBCODE Modification

Post by A_Jelly_Doughnut »

You'd need to modify these lines in includes/message_parser.php

Code: Select all

			return ($var1) ? '[url=' . $this->bbcode_specialchars($url) . ':' . $this->bbcode_uid . ']' . $var2 . '[/url:' . $this->bbcode_uid . ']' : '[url:' . $this->bbcode_uid . ']' . $this->bbcode_specialchars($url) . '[/url:' . $this->bbcode_uid . ']';
		}
When done, it would be something like this:

Code: Select all

			return ($var1) ? '[url=http://anonlink.dfiber.com?' . $this->bbcode_specialchars($url) . ':' . $this->bbcode_uid . ']' . $var2 . '[/url:' . $this->bbcode_uid . ']' : '[url:' . $this->bbcode_uid . ']' . $this->bbcode_specialchars('http://anonlink.dfiber.com?' . $url) . '[/url:' . $this->bbcode_uid . ']';
		}

		return '[url' . (($var1) ? '=http://anonlink.dfiber.com?' . $var1 : '') . ']' . $var2 . '[/url]';
You may also want to make change to make_clickable_callback() in includes/functions_content.php




return '[url' . (($var1) ? '=' . $var1 : '') . ']' . $var2 . '[/url]';[/code]
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: {Unresolved} I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

thanks for the help donut. I'll post results later tonight or in the morning.
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: {Unresolved} I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

Still doesnt work. When Changes are made to message_parser.php

Code: Select all

Parse error: syntax error, unexpected T_RETURN, expecting T_FUNCTION in C:\wamp\www\phpBB3\includes\message_parser.php on line 963
Is the Returned Error.

Thanks for Trying. But problem still not resolved.
Also I couldn't understand/didn't know where you wanted me to add the

Code: Select all

return '[url' . (($var1) ? '=' . $var1 : '') . ']' . $var2 . '[/url]';
[/code]

Line, I'm sorry but I'm new when it comes to PHP.
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: {Unresolved} I need Help with a [URL] BBCODE Modification

Post by A_Jelly_Doughnut »

I made a mistake in formatting my post above.

It should have been
A_Jelly_Doughnut wrote:Find these lines in includes/message_parser.php

Code: Select all

			return ($var1) ? '[url=' . $this->bbcode_specialchars($url) . ':' . $this->bbcode_uid . ']' . $var2 . '[/url:' . $this->bbcode_uid . ']' : '[url:' . $this->bbcode_uid . ']' . $this->bbcode_specialchars($url) . '[/url:' . $this->bbcode_uid . ']';
		}

     return '[url' . (($var1) ? '=' . $var1 : '') . ']' . $var2 . '[/url]';
And change them to

Code: Select all

			return ($var1) ? '[url=http://anonlink.dfiber.com?' . $this->bbcode_specialchars($url) . ':' . $this->bbcode_uid . ']' . $var2 . '[/url:' . $this->bbcode_uid . ']' : '[url:' . $this->bbcode_uid . ']' . $this->bbcode_specialchars('http://anonlink.dfiber.com?' . $url) . '[/url:' . $this->bbcode_uid . ']';
		}

		return '[url' . (($var1) ? '=http://anonlink.dfiber.com?' . $var1 : '') . ']' . $var2 . '[/url]';
You may also want to make change to make_clickable_callback() in includes/functions_content.php
I suspect the error you recieved was because you didn't understand what I was trying to say :)
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: {Unresolved} I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

I receeive a similar error...its on line 963.

Sincerely,
kiran_n444
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: {Unresolved} I need Help with a [URL] BBCODE Modification

Post by kiran_n444 »

ummm No one besides jelly wants to take a crack at it?
Locked

Return to “[3.0.x] MOD Writers Discussion”