![]() |
You need to stick "biography" back in the field list. Add ",biography" after "iconpath"
|
yep, that worked adding ,biography after iconpath, line :D
yipee :D thanks guys :) |
This is a really nice hack, but it looks like the code changed in 1.14. I can't find anything that resembles this in showthread.php:
$userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemai l,homepage,icq,aim,yahoo,joindate,posts FROM user WHERE userid=$userid"); Any plans on updating this, or is it better to wait until version 2.0? Thanks, TigerLily:) |
Yep. Line has changed to:
$posts=$DB_site->query("SELECT post.dateline as dateline,post.postid as etc... |
Tack this:
,user.biography as biography to the end of the SELECT section. |
Thanks, Ed, but I still can't get it to show up. I'm sure I'm doing something wrong! Since the code is different, where do you put this part?
$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"; } I've tried putting the code right beneath the changed line and farther down. I've called the $location in the templates, but nothing shows up. Not sure what I'm doing wrong! TigerLily:) |
Put that under
$userinfo = $post; |
Thanks so much, Ed! Works like a charm now!
TigerLily:) |
<bump>
Instructions for 1.1.4 in original post now. |
Just thaught I would bring this back to the top and say it works fine with 1.1.5
just installed it on my test board http://www.clubbers.ws/forums/showthread.php?threadid=1 |
All times are GMT. The time now is 05:37 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:
|