The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi peeps
I have this code to show some rotating banners/ads Code:
<p align="center">
<SCRIPT LANGUAGE="Javascript"><!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/bashyshosting.jpg' border='1'></a>"
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/webhosting.gif' border='1'></a>"
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/bashyshosting.jpg' border='1'></a>"
banner[number++] = "<a href='https://www.hosting.bashys-place.com' target='_blank'><img src='http://www.bashys-place.com/images/webhosting.gif' border='1'></a>"
banner[number++] = "<a href='http://www.credit-busters.co.uk' target='_blank'><img src='http://www.bashys-place.com/images/credit.gif' border='1'></a>"
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//--></SCRIPT>
<br />
<font color="#008000"><b><br>If you wish to advertise here?<br>Please </b></font>
<b><a href="http://www.bashys-place.com/forums/advertise.php">
<font color="#FF0000"><span style="background-color: #FFFF00">View this page</span></font></a></b></p>
Can anyone advise please |
|
#2
|
|||
|
|||
|
you would then want to put
Code:
<if condition="is_member_of($user, usergroup id number of your VIP group eg 17)"> The stuff you want your VIP's to see <else /> Code:
</if> |
|
#3
|
|||
|
|||
|
Thanks KA will try this
|
|
#4
|
|||
|
|||
|
Hi KA
How would i create a conditional for 1 or multiple members then? example: We have the Moderator Application system installed, We have 1 or 2 members that are repeatedly filling in the application, i would therefore like to be able to add there user ID's to the condtional for the link in the quick links menu, i just aint sure as to the condional to use? |
|
#5
|
||||
|
||||
|
Where the userIDs are 1 2 and 3:
Code:
<if condition="in_array($vbulletin->userinfo['userid'], array(1, 2, 3))">...</if> Code:
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7) or in_array($vbulletin->userinfo['userid'], array(1, 2, 3))"> PHP Code:
Code:
<if condition="$show['moderator_app_links']"> |
|
#6
|
|||
|
|||
|
Hi Sir
![]() Thannks, i will have a good read of these and see whats what, thanks again ![]() I take it thats a plugin to create? then just update it as and when? |
|
#7
|
||||
|
||||
|
Yeah it's a plugin. I'm not sure I understand your question though...
|
|
#8
|
|||
|
|||
|
I meant just update it with each user that i dont want to see the link?
Actually i have just tried this and the user in question can still see and click the link heres what i have in the template Code:
<if condition="$show['moderator_app_links']" <tr><td class="vbmenu_option"><a href="$vboptions[bburl]/modapp.php?$session[sessionurl]">Apply To Be A Mod</a></td></tr></if> Code:
$moderator_usergroups = array(5, 6, 7);
$moderator_users = array(9);
$show['moderator_app_links'] = (
is_member_of($vbulletin->userinfo, $moderator_usergroups) or
in_array($vbulletin->userinfo['userid'], $moderator_users)
);
What do i do to turn it round please? |
|
#9
|
||||
|
||||
|
lol
PHP Code:
|
|
#10
|
|||
|
|||
|
Thats the 1 m8, thank you very much for your help!!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|