Go Back   vBulletin Modification Discussions > vBulletin Discusions > vBulletin Modifications
Home Register FAQ Members List Calendar Mark Forums Read
vBSEO Info Tags

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


Reply
 
LinkBack Thread Tools
Old 01-10-2007, 08:13 AM   #1 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
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.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Old 01-13-2007, 04:52 PM   #2 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Any ideas, CM ???
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-13-2007, 05:23 PM   #3 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
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.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-13-2007, 05:42 PM   #4 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
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.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-13-2007, 07:16 PM   #5 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
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*
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 07:48 PM   #6 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Is it still just me and the crickets?
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 08:02 PM   #7 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
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.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 08:31 PM   #8 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
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.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 08:53 PM   #9 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
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.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 09:20 PM   #10 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
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...
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 10:21 PM   #11 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
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.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 10:27 PM   #12 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
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.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-18-2007, 10:39 PM   #13 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
No You Won't have to set it for every user group.

You are confusing your settings.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 06:16 AM   #14 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
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*
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 07:35 AM   #15 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
THAT IS WHICH usergroup you are promoting TOOOOO!


*eats the last candy bar he was saving for G_Man*
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 07:57 AM   #16 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
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.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 04:14 PM   #17 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
iTrader: (0)
Quote:
Originally Posted by Code Monkey View Post
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
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-19-2007, 04:18 PM   #18 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,194
Code Monkey is on a distinguished road
iTrader: (0)
Just add registered to those peeps as a secondary group and you can do a promotion on registered members. 1 group.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply
Tags: , ,





Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


A vBSkinworks Design Recoded By vBModder.
All Code Distributed On This Site is © 2006 by it's author.
Search Engine Optimization by vBSEO 3.1.0

All times are GMT -7. The time now is 07:18 AM.
Online Users 86
Registered 0
Guests 86
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.
Speak Out! vBulletin gets the web talking!


vBulletin Setup SEO