Topic: Making a Clickable Link to Another Site?

Although I have the Option set to allow users to "Make Clickable Links", it doesn't seem to work.
When yes is chosen, this is what the Option states, "When enabled, PunBB will automatically detect any URL's in posts and make them clickable hyperlinks."
When I placed a link to another site, the url ended up placing my forum website in front of the intended link, causing a 404 error.
Sample: http://mysite/Punbb/forum/http://www.intendedsite.com

I have BBCode enabled. Don't know if that's good or bad.

2 (edited by Venter 2007-02-28 04:55)

Re: Making a Clickable Link to Another Site?

Here is the actual link:
http://boroughvent.com/PunBB/forum/viewtopic.php?id=4

Note the address in the status bar when you pass over the linked url.

Thanks.

Re: Making a Clickable Link to Another Site?

Anybody? Please...
Maybe I'm not asking the question clearly enough to be understood?

Re: Making a Clickable Link to Another Site?

http://mysite/Punbb/forum/http://www.intendedsite.com

That's an invalid link. Which is probably the problem.
The other link you posted is fine though.

5 (edited by Venter 2007-02-28 23:02)

Re: Making a Clickable Link to Another Site?

Thanks elbekko,
BUT...
Please connect to the link above. I think you'll see what I mean.

Then try the gettysburg-pa.com link.
It goes to 404.
The address includes the boroughvent address in addition to the gburg one

Re: Making a Clickable Link to Another Site?

You don't run it through your site, the users just type in the url and it connects it.

eg:

http://google.com

Re: Making a Clickable Link to Another Site?

I have tried this MANY ways.
Just typing it in, using the codes [url],etc.

It is adding the stuff to the beginning of the URL, not me.

Please look at the link above for the example.

This is driving me nuts.
I know it has to be simple.

I am going to try this link here just to test it:
www.gettysburg-pa.gov

Re: Making a Clickable Link to Another Site?

So WHY does it work here but it won't on my forum???

Re: Making a Clickable Link to Another Site?

Venter wrote:

So WHY does it work here but it won't on my forum???

BBCode can be disabled in your forum, so can automatically making links clickable. Check out your admin options/permissions

10

Re: Making a Clickable Link to Another Site?

My BBCode is ON
Make links Clickable is ON

Please look at the link   http://boroughvent.com/PunBB/forum/viewtopic.php?id=4   to get to the page I'm referring to.

This line of code is copied directly from the page view source :
<a href="../../PunBB/forum/http://www.gettysburg-pa.gov">www.gettysburg-pa.gov</a>

I did not enter the PunBB stuff, only the www.gettysburg... stuff.
How do I make the forum work like it should?
Try it yourself on my forum, I'll remove it later.
You will not be able to link!

If you can, please let me know how you did it.

Re: Making a Clickable Link to Another Site?

Have you installed any mods? Try uploading a fresh copy of parser.php.

12

Re: Making a Clickable Link to Another Site?

Umm... unless I did it accidently, no mods. I wouldn't know one if it bit me.

I'll check the parser.php
Anything in there I should futz with?

13

Re: Making a Clickable Link to Another Site?

I reloaded the copy of parser from my local computer to the remote.

Are you saying to find one on this PunBB site and uploading that one?

Re: Making a Clickable Link to Another Site?

Don't futz, just replace it with a fresh copy.

When you go to edit the post with the link how does the link appear in the edit box?

15

Re: Making a Clickable Link to Another Site?

In the edit box, when I type in www.gettysburg-pa.gov , it looks just like that.
The highlighted link looks fine.
When you click on the "correct-looking" url, then it goes to the 404 message because SOMEWHERE along the line the base url of boroughvent.com adds itself to the front of the "gettysburg..." url link

Re: Making a Clickable Link to Another Site?

Well I don't know where the issue is but if you go to http://boroughvent.com/PunBB/forum/exte … action=new the links all include http://boroughvent.com/PunBB/upload/ before the actual url which may be a clue for someone else.

17

Re: Making a Clickable Link to Another Site?

That's interesting.

I can't find any other reference to the "upload" file on my remote site or on my local site.
I can't see it when I visit the ftp info and look at those files.

Where & why would they show up?
Is this even something that may be the problem or just something weird?

Re: Making a Clickable Link to Another Site?

The upload/ folder is the folder in the PunBB archive containing the files that should be uploaded to the server.

I wonder tho, does it work then you post the link with the [url ] tags?

19

Re: Making a Clickable Link to Another Site?

I tried the www.gettysburg... combination a couple of times, with and without "www".
I thought that may have been an issue.

BUT... I can't expect users to do that.

Re: Making a Clickable Link to Another Site?

Hrmm. Can you put your include/parser.php on elbekko.pastebin.ca and post the link? I have a feeling something is wrong there tongue

Re: Making a Clickable Link to Another Site?

That upload reference is strange. Double check your baseurl in admin options and clear your cache (delete all the files that end with .php in the cache directory).

22

Re: Making a Clickable Link to Another Site?

This is the base url listed in cache-config.php:
'o_base_url' => 'http://boroughvent.com/PunBB/forum',

It's safe to remove all of the .php files in the forum/cache files!!???

I'm working on getting the parser file to you.

23

Re: Making a Clickable Link to Another Site?

If I did this right, there should be a screen shot of the settings in my BB.


http://www.boroughvent.com/ImagesBV/clickable.png

24

Re: Making a Clickable Link to Another Site?

I've done all I can do to figure this out. I've checked every file on any site/server/host/local/whatever!!! that I can think to look in.

ElBekko, I hope you received the files I sent to you. Was the parser any help?

Any other suggestions? Please, anybody!

I would like to know more about deleting all of the php files from my cache. Is it wise?
Won't they just reload next time I synchronize with DreamWeaver?

25

Re: Making a Clickable Link to Another Site?

You haven't got a site defined and have told Dreamweaver to verify all absolute urls have you? I'm thinkg that dear old nightmare stitcher might be inserting your site url in places where it shouldn't, like parser.php.