Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 May 2009, 13:32
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Replace New Thread Button in Specific Forums

Hi,

I am using the easy forms Mod, and would like to replace the New Thread Button within certain forums and have a New Advert Button that links to one of the Forms i have created.

I would also like to do the Same for a Support forum, the user would click a New Ticket Button and this would take them to the new ticket form.

I have already created the Images, and placed them in the Forum description so they show as well as the new Thread button.

But people still click the New Thread and get told they do not have priviliges to do so.

Can anyone help me with this.


Thanks
Derek
Reply With Quote
  #2  
Old 27 May 2009, 13:55
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Just put a condition around it - something like this :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 27 May 2009, 14:10
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
how do i define the button? I have only done small amounts of coding and the link.

would it be something like this?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


EDIT* I just place the Above code into the FORUMDISPLAY template, and now i have both the New Thread and New Ad buttons showing right on top of each other.

Just need to work out how to remove the New Thread button from the specific forums.

--------------- Added 27 May 2009 at 14:51 ---------------

Ahh.. I have just noticed this has placed the New Ad button in every forum. not just the one specified.

Last edited by Derekclarke; 27 May 2009 at 14:51. Reason: Auto-Merged DoublePost
Reply With Quote
  #4  
Old 27 May 2009, 14:57
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #5  
Old 27 May 2009, 15:17
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Have just tried your code too Snakes and it is not working either.

I am assuming the numbers in the array (4,168) are the forum Id's?
Reply With Quote
  #6  
Old 27 May 2009, 15:24
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
This is how I was intending the conditions to be used.... Let's say forumid 168 and 169 are for the New Advert Button and forumid 1 and 2 are for the New Ticket Button:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

As for the button code, you can basically copy the New Thread Button code and change the image source and link url.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 27 May 2009, 17:33
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
Originally Posted by Derekclarke View Post
Have just tried your code too Snakes and it is not working either.

I am assuming the numbers in the array (4,168) are the forum Id's?
change the forumid's to yours, like lynne, i only used an example set of numbers for the id's
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:22.

Layout Options | Width: Wide Color: