I have something i want to do but i personally dont know how i could do it so i am hoping someone here can help.
As you can see in the screenshot below i have a list of pages next to calender ect and one of them is Fan Club which goes to a page asking members to become a fan and donate ect.
But i want to make it so when a person donates and i move them to the Fan Club group they will still see the Fan Club button at the top but once clicked it will go to another website link.
Can anyone please help.
Thank you.
Do you have template conditionals? If not, install it.
http://mybbhacks.zingaburga.com/showthread.php?tid=464
Now, in your header template, add these,
<if in_array($GLOBALS['mybb']->user['usergroup'], array(1,4)) then>
<a href="/fanclublink.php">Fan Club</a></if>
^ this is for groups that have not donated, replace or add to 1 and 4 with the group ID's.
Now add this one,
<if in_array($GLOBALS['mybb']->user['usergroup'], array(6)) then>
<a href="http://yourotherlink.com">Fan Club</a></if>
Replace '6' with your donors usergroups.
Thanks so much for your reply, i wasn't sure if members would know what i meant lol.
So do i just need to install the plugin above then change/add the header template with the above instructions?
Excellent thanks.
Is it possible to make a forum/category but not make it visible to only the people who have the link only.
When you set forum permissions, untick the "can view?" option for whatever groups you like.
But how can i make a section so it not on my main forum. I want it like away from the index page if possible. I know there was a way to do it on VBulletin but cant seem to get my head around it on MYBB.
Ah, so it's to be accessible from a link or something, but not from forum listing? I'm not sure that's possible.
(2012-05-05, 11:20 PM)Solidus Wrote: [ -> ]Ah, so it's to be accessible from a link or something, but not from forum listing? I'm not sure that's possible.
Yeah thats right, i have been searching google and found two plugins but they dont work
(2012-05-05, 10:11 PM)Solidus Wrote: [ -> ]Do you have template conditionals? If not, install it.
http://mybbhacks.zingaburga.com/showthread.php?tid=464
Now, in your header template, add these,
<if in_array($GLOBALS['mybb']->user['usergroup'], array(1,4)) then>
<a href="/fanclublink.php">Fan Club</a></if>
^ this is for groups that have not donated, replace or add to 1 and 4 with the group ID's.
Now add this one,
<if in_array($GLOBALS['mybb']->user['usergroup'], array(6)) then>
<a href="http://yourotherlink.com">Fan Club</a></if>
Replace '6' with your donors usergroups.
I have eventually just got around to using this today and it doesn't work, i have set myself who is admin to a additional group which is fan club member and it doesn't change the link at the top.
Any help please because i really need this.
Right i have now got this working. Could anyone tell me how to add an image next to the title please?