Using the Link Function

Temporary forum to obtain support while phpBB.com is offline.
Please use the support forum on phpBB.com
Forum rules
Temporary forum to obtain support while phpBB.com is offline.
Please use the support forum on phpBB.com
Locked
kevb8ll
Registered User
Posts: 5
Joined: Thu Feb 05, 2009 12:13 pm

Using the Link Function

Post by kevb8ll »

I have created a link on the forum, (from within the acp from new forums page), for a chat facility. Obviously when the user clicks on the link it opens the chat as if you are going into a forum. I couldn't see any setting on the settings for the link - but is there a way of making just this link (and NOT) the forums to be opened as a new window so the users can easily move across both.

User avatar
James N
Posts: 143
Joined: Thu Jun 29, 2006 7:35 pm

Re: Using the Link Function

Post by James N »

open

forumlist_body.html

find

Code: Select all

<a class="forumlink" href="{forumrow.U_VIEWFORUM}">
replace with

Code: Select all

<a class="forumlink" href="{forumrow.U_VIEWFORUM}" onclick="window.open(this.href);return false;">
Save, upload, and purge the cache

All 'forums' that are links will now open in new tab/page

kevb8ll
Registered User
Posts: 5
Joined: Thu Feb 05, 2009 12:13 pm

Re: Using the Link Function

Post by kevb8ll »

Thanks for this James. Can I just clarify something.

By editing this code, out of the 3 types, (Category, forum and Link) - ONLY the link will open as a new window, the category and forums won't?

I just want to be clear.

User avatar
James N
Posts: 143
Joined: Thu Jun 29, 2006 7:35 pm

Re: Using the Link Function

Post by James N »

Yes, it will just open the links in a new page. All other functions of the board are not changed

kevb8ll
Registered User
Posts: 5
Joined: Thu Feb 05, 2009 12:13 pm

Re: Using the Link Function

Post by kevb8ll »

Thank you James, I'll try it out now.

Kev

kevb8ll
Registered User
Posts: 5
Joined: Thu Feb 05, 2009 12:13 pm

Re: Using the Link Function

Post by kevb8ll »

Sorted. Thanks James.

Kev

Locked