We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Redirecting the 'new topic' button
Topic Started: Aug 5 2012, 06:36 PM (278 Views)
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Board Address: click here
Board Software: Zetaboards
Description: I am using Reid's Flexible form script and because people got confused when I removed the 'new topic' button so they would use the form I was wondering if maybe the link for the 'new topic' button could be replace by what page I set it to. Something like

replaceLink("FORUM_ID", "LINK")

I'm pretty sure this is possible so could this code be provided?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
function changeLink(forumID, newLink) {
if (location.href.indexOf('/forum/' + forumID + '') !== -1) $('div.cat-buttons a').attr('href', newLink);
}

changeLink('FORUM_ID', 'NEW_LINK');
</script>
Replace the capitalized text and you may repeat that line to affect more forums.
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Yep, working. Thanks again
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic