Forum Moderators: coopster

Message Too Old, No Replies

Problem with phpBB inside PostNuke

De-linking in postings....

         

trillianjedi

9:50 am on May 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, I think this is my first post on this particular forum!

We're running a phpBB forum engine inside a site which has PostsNuke as the backend engine.

We'd like to stop URL's automatically being qualified as links in people postings. At the moment, the "www." seems to trigger it into being turned into a link.

Using the "<PRE>" directive doesn't seem to work (which surprised me).

In the adminstration panel, I can't seem to turn off the "URL" button.

We don't want to have a policy of no links (like here) because people being pointed in various directions for resources is actually incredibly helpful.

But, we don't want to encourage spam or end up inadvertantly linking to a banned site or something.

I'm no code junky, but I have a programming background and I'm sure I'll be able to follow any ideas you care to throw at me, even if it takes me a little while to work through.

Thanks,

TJ

ncsuk

10:06 am on May 7, 2003 (gmt 0)

10+ Year Member



Just put something in the terms of service about not putting url's in posts...

In one of my sites I put in that if you link to a site of your own I will charge a $25 advertising fee and I have that backed up with a solicitor.

Seems a nasty way to do it but as long as people know they wont do it.

On the other hand if it is a good resource then they should be able to post the url so I just say ask me and ill tell you if you can do it.

Pain in the butt however it helps.

ncsuk

10:07 am on May 7, 2003 (gmt 0)

10+ Year Member



In answer to can I turn it of..! Ill have a look for you. I think you can though...

I seem to remember something about changing new user permissions, ill check it out.

trillianjedi

10:08 am on May 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, thanks for the info....

Yes, I just want to turn it off.

I don't mind their putting in URLS I just don't want them as links.

Can't see anything in User Permissions. I suspect it'll be something I have to hand-code, so if anyone can offer any help with that and point me in the right direction, I'd be grateful!

TJ

ruserious

10:34 am on May 7, 2003 (gmt 0)

10+ Year Member



To turn off automagically linking look in viewtopic.php somewhere there is a call to a make_clickable function. This turns "words" that are formed like urls, and turns them into hrefs.

Then you will still have to disable the [url] BBCode. There a probably a dozen ways to do this. I prefer the following: Since BBCodes in phpBB are templetable. go into your /templates/subSilver directory and look for bbcode.tpl (you have to do this for every template you use) and find the following code:

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->

The <!-- --> comment-style tags are for templating engine and should NOT be changed. The {} style Tags are Variables which ret replaced by the script. The rest is the Code that will be displayed on your page. I would change it into somthing like:

<!-- BEGIN url --><acronym title="{URL}">{DESCRIPTION}</acronym><!-- END url -->

Although acronym is syntactically the wrong tag, it does a nice hover of the title. Anyway feel free to do as you like it. :)

trillianjedi

11:03 am on May 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ruserious:-

You're a star - I really appreciate you making the effort to reply in such detail!

That's exactly what I needed - maybe will try that this evening. I'll let you know how I get on.....

TJ