![]() |
|
Article Options |
#106
|
|||
|
|||
thanks
No members have liked this post.
|
#107
|
||||||||
|
||||||||
Originally Posted by ICannt.org
I don't know if "$show['newthreadlink']" works in forumdisplay but if it does you're better off using an AND statement than two IF's...![]()
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#108
|
|||
|
|||
Hello,
The "$show['newthreadlink']" was in forumdisplay to begin with, I just added the array bit. I tried what you gave, yet it still didn't hide the New thread button from display :/ No members have liked this post.
|
#109
|
||||
|
||||
What exactly are you trying to do- I know hide "New Thread" but under what conditions?
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#110
|
|||
|
|||
Essentially, we've got Easy Forms installed and we want users to only be able to submit a form on particular forums so they can follow a pre-defined template instead of being able to post whatever they want.
I've got a "Notice" on the forums saying with a bit of text, including a link to the needed form, but I know of no other way to hide the "New Thread" button. I originally tried simply taking away permissions for Registered Users to Create New Threads, but then that wouldn't let them upload attachments to the form - which is a necessity. If you know of any other way to do this, that would be greatly appreciated. No members have liked this post.
|
#111
|
||||
|
||||
Hmmm... you could force users to use a specific style for that forum, and in that style you could remove the code for the new thread button completely... but that seems overkill... the IF condition should work... I'm surprised it's not.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#112
|
|||
|
|||
I was surprised it didn't work either, unless there's something I might have missed?
No members have liked this post.
|
#113
|
||||
|
||||
Originally Posted by ICannt.org
You can make a plugin so that if the "New Thread" button is used it generates your form.![]()
Hook Location: newthread_start Two examples in the code below - (change the forum ID numbers and the form addresses)
No members have liked this post.
|
#114
|
||||
|
||||
I want a user to be able to disable and enable a plugin that starts:
if ($vbulletin->options['mob_detect_enabled'] == 1) So, I've created a profile field (for a setting) and I want to use this conditional inside the plugin so that ordinary members can disable it (it uses the style_fetch hook). I think I need to add something like this at the top of the plugin, but in php ...
Can anyone tell me how I write the same thing in PHP to get it to work? No members have liked this post.
Last edited by moonclamp; 03 Sep 2010 at 03:09. |
#115
|
||||
|
||||
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#116
|
||||
|
||||
No that didn't do it ... but that may be down to my lack of php understanding.
No members have liked this post.
|
#117
|
||||
|
||||
Yeah the problem is the $bbuserinfo - there are various ways to access the same data, different ways work in different places... it may be something like $vboptions->bbuserinfo['fieldX'] or even $this->registry->bbuserinfo['fieldX'] but honestly I'm not sure of the exact syntax off hand, if you search around for it you should be able to find one that works, that's what I usually do.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#118
|
||||
|
||||
try
worked for me No members have liked this post.
|
#119
|
||||
|
||||
I tried that one to no avail.
I'll have a go with the above a bit later (when nobody is on my site), thanks ![]()
Originally Posted by XLCR GODFATHER
Already tried that, and unfortunately it didn't do it.
![]()
No members have liked this post.
|
#120
|
|||
|
|||
Originally Posted by midnz
This worked!![]()
Thanks to the people who helped, greatly appreciated. ![]() No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 14:25.