|
 
 |
|
|
 |
About This Page: This is a discussion on A vBulletin Conditional Question within the vBulletin Modifications forums, part of the vBulletin Discusions category, at vBulletin Modification Discussions. Hey CM. Hopefully this will be really simple for you to explain.
I want a conditional in the Postbit (or legacy - doesn't matter) to be placed right under the Join Date .
Basically it will say:
<If Joindate is |
01-10-2007, 08:13 AM
|
#1 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
A vBulletin Conditional Question
Hey CM. Hopefully this will be really simple for you to explain.
I want a conditional in the Postbit (or legacy - doesn't matter) to be placed right under the Join Date.
Basically it will say:
<If Joindate is greater than 1 year>
*I'll have a small graphic here*
</if>
Does that make sense? I plan on putting a small bar graphic under the join date of users who have been registered for more than year.
|
|
|
01-13-2007, 04:52 PM
|
#2 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Any ideas, CM ???
|
|
|
01-13-2007, 05:23 PM
|
#3 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
Never saw that first post. You should direct your questions at the community not specific individuals.  Unless you are posting in an individuals mod thread of course.
It would be best to do the calulations in PHP and then set a $show array value to yes. The you just show it if $show['not_rookie'] == 1 and don't show it if it is == 0.
|
|
|
01-13-2007, 05:42 PM
|
#4 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Quote:
Originally Posted by Code Monkey
Never saw that first post. You should direct your questions at the community not specific individuals.  Unless you are posting in an individuals mod thread of course.
It would be best to do the calulations in PHP and then set a $show array value to yes. The you just show it if $show['not_rookie'] == 1 and don't show it if it is == 0.
|
Cheers!
Okay then.
Is there ANYBODY who can tell me how to set this in PHP?
I understand the concept, but have no idea how to implement this. 
|
|
|
01-13-2007, 07:16 PM
|
#5 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
I'll try to find sometime this week to look at it. Many big projects going on. Unless Someone else around here has an answer. *listens to crickets*
|
|
|
01-18-2007, 07:48 PM
|
#6 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Is it still just me and the crickets? 
|
|
|
01-18-2007, 08:02 PM
|
#7 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
Ok this is real simple. Create a user rank for that. Then create a usergroup that has that user rank. Then create a promotion based on join date that adds that user group to their profile.
|
|
|
01-18-2007, 08:31 PM
|
#8 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
That would be simple, except I would have to create 12 promotion schemes for my 12 Usergroups.
I thought of going that route and planned on doing it. Then I thought a simple conditional in the template accomplished the same thing regardless of the Users current UserGroup.
Also, this would allow me to put the graphic where I want. If I use a secondary UserGroup and assign a Rank it will appear right under the Users primary Rank, which although okay, is not really where I would like it.
|
|
|
01-18-2007, 08:53 PM
|
#9 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
Why would you need 12? You only need one. You add it to the user as a secondary group. Just move the part of the template that is for ranks to where you want it in the template. Unless you plan on using it for something else. I am not big on adding hacks for things vBulletin does well.
|
|
|
01-18-2007, 09:20 PM
|
#10 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
How will it add it to members that have a year since registration?
And I know I can move the Ranks part of the template, but I want the 'year rank' under the Join Date... I don't want both ranks there...
I thought it might be a simple a conditional is why I asked...
|
|
|
01-18-2007, 10:21 PM
|
#11 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
You can set promotions for many reasons. Just set it for time since joined and set it to 365 days.
Moving it will not move the user title, just the rank bit.
|
|
|
01-18-2007, 10:27 PM
|
#12 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Quote:
Originally Posted by Code Monkey
You can set promotions for many reasons. Just set it for time since joined and set it to 365 days.
Moving it will not move the user title, just the rank bit.
|
Yes, but you'd have to set it for EVERY usergroup. Like here, you'd have to set a promotion for Admin, Mods, regular members, and subscribers.
And I not talking abou the title. My usergroups already have a rank and a title.
|
|
|
01-18-2007, 10:39 PM
|
#13 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
No You Won't have to set it for every user group.
You are confusing your settings.
|
|
|
01-19-2007, 06:16 AM
|
#14 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
YES, you will...
Show me how to set it to promote otherwise?
The Promotions wizard has a part where you have to set which usergroup you are promoting.
*waits for this* 
|
|
|
01-19-2007, 07:35 AM
|
#15 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
THAT IS WHICH usergroup you are promoting TOOOOO!
*eats the last candy bar he was saving for G_Man*
|
|
|
01-19-2007, 07:57 AM
|
#16 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
Oh, I see what your doing. You must be changing everyones primary group when you make them a mod or someting. It's best to just add a sub group to their profile. Then eveyone is still in the registered user group. Even if you make the registered usergroup a sub group they are still in it even though they are a mod or whatever. If you have set things up so that there is no common group that everyone is then you have set up a nightmare for more than just this task.
Sorry, I didn't think of that but I figured you wouldn't do that.
Add groups don't change groups.
|
|
|
01-19-2007, 04:14 PM
|
#17 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Quote:
Originally Posted by Code Monkey
Oh, I see what your doing. You must be changing everyones primary group when you make them a mod or someting. It's best to just add a sub group to their profile. Then eveyone is still in the registered user group. Even if you make the registered usergroup a sub group they are still in it even though they are a mod or whatever. If you have set things up so that there is no common group that everyone is then you have set up a nightmare for more than just this task.
Sorry, I didn't think of that but I figured you wouldn't do that.
Add groups don't change groups.
|
hmm....
Well, I did.
Live and learn I suppose.
You are right though. I is a serious pain! LOL
|
|
|
01-19-2007, 04:18 PM
|
#18 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,194
|
Just add registered to those peeps as a secondary group and you can do a promotion on registered members. 1 group.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |
|
| Online Users |
92 |
| Registered |
0 |
| Guests |
92 |
| Members |
3145 |
| Active Members |
229 |
| Threads |
1583 |
| Posts |
7000 |
| Top poster: Code Monkey (2194) |
| Welcome to our newest member, skopy |
| Most users ever online was 235, 04-11-2007 at 08:59 AM. |
|