![]() |
Code to change button link in one forum
I need to know what plugin code I would use to change the "+Post New Thread" button to say "+Submit Ticket" in just one forum only.
|
You could use the following PHP Plugin Code (Hook Location: forumdisplay_complete):
PHP Code:
|
Perfect! Worked great, thanks.
|
Good idea Len, thanks Mark for this, I will use it some how.
Edit: How include more forum id? |
Quote:
PHP Code:
|
Thanks Richie, I will try this.
|
Quote:
PHP Code:
|
Ok I found it how
This PHP Code:
And this is opposite PHP Code:
|
Quote:
Thanks for the correction. I should not have missed that!:erm: |
Ok now, how make this more complicated :)
Make 2 or 3 buttons. 1st 'Submit Ticket' as it is. 2nd 'New Help Thread' or what else. Do I have to make another plugin or I can include it in the first one If so include, how? Thanks... |
You could use something like:
PHP Code:
|
Yes Mark, this works as I asked.
But I cannot include more than one forum ID in each case. Suppose this needs to have an array or how? Thanks |
Then you could use something like:
PHP Code:
|
I am confused. Sorry for not understanding easily.
That's take the first code in post #11 PHP Code:
case XX: case YY: case ZZ: Thanks |
|
Quote:
PHP Code:
|
Sorry Mark I could not understand at start, that I can put as many case χχχ: i want.
I have read PHP Manual, but unfortunately i don't understand. You see many things that are easy for some people are very difficult for others. I try very hard but how forward can some one can go. Thanks for your help, and by making a lot of tests-combinations than I realized. Yes now its easy when is there a way to understand. For some dummies like me. PHP Code:
Hope if we put many forums id there is no problem to forum or else? :) EDIT: Len, we posted same time, did not see it first :) |
LOL that is ok at least the info is there now for someone else if they get lost. :)
|
Suppose I have a forum with forumid 2 and I wish for the button to read "Submit Ticket", and I have 2 forums with forumids 3 and 4, and I wish for the button to read "Add to Tutorial" and I have 3 forums with forumids 5, 6 and 7 and I wish for the button to read "Ask the Expert."
Then my PHP Code should be: PHP Code:
edit: If not, then I will be glad to whip up a simple mod that will let you define the text for the button based on forumid, and use phrasing so you can translate them. |
Its ok for me as it is, the only thing, if there is a problem when we put many forum ids.
As i see no problem with it to. Thanks guys for help. |
All times are GMT. The time now is 10:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|