REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a plugin feature to only one forum index?
#1
Question 
I have done a few searches and have scrolled through countless posts but I can not seem to find an answer to this...

I am looking to add a plugin to a specific forum on my site... More specifically the mybet upcoming bets thread ( {$bets} ) that you can put on your index page. I want to have this display in a specific forum of my site and not on the index of the forums. Is something like this possible, if so how easy/hard would it be to do?

Any help is appreciated, thanks in advance!!
Reply
#2
Erm well, if you want to show it only in forumdisplay.php, it will be so easy and you wouldn't need to know so much about codes and others... but if you want to show it in a specific forum, you must edit the plugin and set it for just one forumdisplay id... though i think you neither need to know so much about codes.
Anyway in both cases, it will be easy
Reply
#3
Umm...excuse me if I misread, but you want it to post results in a forum, in the form of a new thread? It already does that.
[Image: mybbsig.php]
Reply
#4
(Feb 19, 2010, 11:03 AM)Riverthief Wrote: Umm...excuse me if I misread, but you want it to post results in a forum, in the form of a new thread? It already does that.

Thanks riverthief and arqui for replying..I think arqui is on the right path with what I am looking to do and I guess I will dig around the php files this weekend...

riverthief here is what I have, I want the circled area to appear only in my bookie forum and not on the index. I have attached a picture of what I am talking about (if you have any ideas or help I would be most appreciative!)

[Image: screen.jpg]
Reply
#5
Ah! Ok. All you have to do is remove the {bets} or {upcoming_bets} or whatever out of the index and then fiddle with some php files to put it in that forum. Not sure exactly how, but I definitely know it's possible.
[Image: mybbsig.php]
Reply
#6
It's possible, sure. If you have the plugin to allow PHP and Template Conditionals in themes, enable it. Then, just edit "forumdisplay" in template editor, and look for the place you want to put it (mybet, i mean).
And if the plugin works... you should put:

Code:
<if $forum['fid'] = X (X is the ID of the forum) then>
{$bets} or the variable of the table (i cant remember it)
</if>

The problem is the plugin... it doesn't usually work. Anyway, with that template conditional, you could try to edit "mybet.php" file, I think in that file, you could find the code required to edit.
Reply
#7
You can use a line like this:

if(!$forum['fid'])
return;

Probably to the plugin itself or the function. You might have to do some global changes.
Reply
#8
(Feb 20, 2010, 03:29 PM)labrocca Wrote: You can use a line like this:

if(!$forum['fid'])
return;

Probably to the plugin itself or the function. You might have to do some global changes.

Thanks arqui and labrocca, I am not too savvy with php but I will give it the old college try. You both have definitely pushed me in the right direction. Thanks Smile
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  MyBB change index page? Yoshistr 9 4,682 Nov 24, 2017, 11:01 PM
Last Post: Mercuy
Exclamation bans.php Plugin? Salsut 14 8,968 Jul 03, 2017, 08:15 PM
Last Post: Farrahs
  Profile Field on Index minionsweeper 2 970 May 01, 2017, 02:26 PM
Last Post: actavis
  mytab plugin does not function on my theme bushido 1 1,510 Jul 04, 2016, 11:01 PM
Last Post: Prince Tony
  Really need a plugin that blocks proxys getxoan 0 1,192 Nov 10, 2015, 07:32 PM
Last Post: getxoan

Forum Jump:


Users browsing this thread: 1 Guest(s)