Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
  #1  
Old 30 Jan 2005, 10:48
aussiev8 aussiev8 is offline
 
Join Date: Aug 2004
having clickable link in postbit for users with a garage!

how can i do this?
can someone give me the exact code?
Reply With Quote
Comments
  #2  
Old 30 Jan 2005, 14:29
Rick Sample Rick Sample is offline
 
Join Date: Apr 2004
Real name: Rick Sample
In postbit_legacy, whereever you want it to appear, add this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but replace my http://www.muscle-mustangs.com/forums with your exact URL and change, View My Mustang to "my garage" or whatever you would like the text to say!
Reply With Quote
  #3  
Old 30 Jan 2005, 15:56
noppid noppid is offline
 
Join Date: Mar 2003
This will work in 4.0.0. This will not work in the new version as empty garages are no longer viewable.

Any comments are welcome. Nothing is set in stone.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #4  
Old 03 Feb 2005, 11:39
aussiev8 aussiev8 is offline
 
Join Date: Aug 2004
is there anyway of checking if theres a car in the garage or if its empty?
i'd rather not have clickable links for all members, just the ones that have a car?
Reply With Quote
  #5  
Old 03 Feb 2005, 17:53
noppid noppid is offline
 
Join Date: Mar 2003
Originally Posted by aussiev8
is there anyway of checking if theres a car in the garage or if its empty?
i'd rather not have clickable links for all members, just the ones that have a car?
There is, but you don't want to do it just yet. I have to take a close look at this one or we could add 20 queries to the post loop and I'm not about to cache the entire vbg user table either.

I'm no mysql expert, but what I tried is a LEFT join on the vbguser table in the query that gets the posts. Problem is, there is more then one record per user in vbg. So you see posts duplicated for a user for every garage they have. I will try to figure this out. Maybe someone out there will be kind enough to give a hint.

Of course I could add a field to the vB user table and make it real easy, but I won't commit to DB mod of a vB table.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #6  
Old 03 Feb 2005, 19:54
javageek javageek is offline
 
Join Date: Jan 2005
I have both the Timeslip Database and vBGarage 4.0.0 installed. Under the avatar in the postbit I had it where it displayed the Ride that is identified in the timeslip database. I have now added it so that display also links to the rides garage. I don't have multigarage set up yet, I don't think it will interact properly with the timeslip database. You can see it in use at http://www.rdtiburon.com.

Here is my code...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 03 Feb 2005, 23:58
noppid noppid is offline
 
Join Date: Mar 2003
In the next version, you can use this in postbit and get a parked list with random photos.

http://www.cpurigs.com/forums/vbgarage.php?do=viewparked&id=USERID

Users with no garage will output no photos and no garages to the list.

No Garage:
http://www.cpurigs.com/forums/vbgara...ewparked&id=22

Invalid user ID's will display the same with an invalid username message.

INVALID:
http://www.cpurigs.com/forums/vbgara...arked&id=55555

User id zero or blank throw an error message.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.

Last edited by noppid; 04 Feb 2005 at 00:56.
Reply With Quote
  #8  
Old 08 Feb 2005, 05:25
aussiev8 aussiev8 is offline
 
Join Date: Aug 2004
can't you just have a variable that counts the amount of times the userid is present in the vbgarage, and if its > 0 have a column in the vbgarageusers "`hasgarage` - default 0", set it to 1.
Reply With Quote
Reply

Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases EG - Donation link in postbit for users mac27 vBulletin 3.6 Add-ons 30 18 Feb 2012 06:22
[release] Adding "clickable" MSN Messenger link to postbit Xbox vBulletin 2.x Template Modifications 18 17 Sep 2003 15:54



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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 17:28.

Layout Options | Width: Wide Color: