![]() |
Parker - don't replace that part, I didn't tell you to :)
Only replace what I said to replace there with what I told you to replace it with - no more, no less. If you follow the directions, you will still have the other PM related stuff there. |
just thought i'd add
the location/interest hack works on my upgraded 1.1.3 beta 3 forum too :D thanks Ed :D |
Ed, can you add a third field into there for me? Let's say I want to add "occupation" to it, how would add that in addition to the other ones?
|
Code:
if ($userid!=0) { |
okay... how does one reapply the location/interest hack in light of installing rangersfan's avatar hack at http://vbulletin.com/forum/showthread.php?threadid=2127 ?
|
Don't replace the $userinfo=$DB_site-> line, just add biography to where I told you to add if before. Then just add the rest of the code the same way.
|
Just add 'iconpath' along side 'biography.
|
do you mean add to showthread.php ? where ? in the below code ?
Quote:
|
I don't really understand as you appear to have it working on your forum.
If you are trying to get the location back to working. Just add 'iconpath' in the following like this: $userinfo=$DB_site->query_first("SELECT userid,email,username,biography,usertitle,signatur e,showemail,homepage,icq,aim,y ahoo,joindate,posts,iconpath |
yeah i want to bring back location display...the thing is i have this already in showthreads
This is what i have: [quote]if ($userid!=0) { $userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemai l,homepage,icq,aim,yahoo,joind ate,posts,iconpath FROM user WHERE userid=$userid"); $bio = split("\n", trim($userinfo[biography])); $location = ""; $interests = ""; while(list($key,$val)=each($bio)) { if (strlen(strpos($val, 'Location:'))) { $location = eregi_replace("^Location:([^\\[]*)", "\\1", "$val"); } elseif (strlen(strpos($val, 'Interests:'))) { $interests = eregi_replace("^Interests:([^\\[]*)", "\\1", "$val"); } } if ($location) { $location = "Location: $location"; } if ($interests) { $interests = "Interests: $interests"; }[quote] |
All times are GMT. The time now is 04:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|