News:

Create A Forum Installed

Author Topic: [Code] Remove Gallery  (Read 701 times)

0 Members and 0 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
[Code] Remove Gallery
« on: November 05, 2012, 12:54:13 am »
Description: Removes the Gallery tab and if someone somehow gets to the gallery, it will redirect them to the forum.


This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/

Footers:
Code: [Select]
<script>$("#button_gallery").remove();if(location.href==smf_scripturl+"?action=gallery"){window.location.replace(smf_scripturl+"?action=forum")}</script>
« Last Edit: November 10, 2012, 05:26:28 am by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


 

Related Topics

  Subject / Started by Replies Last post
7 Replies
2385 Views
Last post August 05, 2010, 01:23:17 am
by Nick9
2 Replies
2204 Views
Last post March 01, 2011, 03:11:15 am
by Arekay
0 Replies
324 Views
Last post July 07, 2012, 10:49:14 pm
by lionsgatechristian
1 Replies
779 Views
Last post October 28, 2012, 06:46:06 pm
by aIURbliS
3 Replies
396 Views
Last post April 11, 2013, 11:43:33 pm
by CreateAForum