PDA

View Full Version : Threads In Profile


tnguy3n
12-02-2005, 10:00 PM
Last XX Threads In Profile
Author: tnguy3n
Support: www.vbviet.org

This hack show users' last XX threads in their profile. Forum viewing permission applied. Regular users can't see soft-deleted and inactive threads in thread list.

Open the plugin and adjust the value of $maxthread and $titlelength to change the number of threads to show in user's profile and max thread title length respectively.

Installation: 2-4 mins (easy)
- new template: 1
- template mod: 1
- plugin: 2

Kihon Kata
12-03-2005, 01:41 AM
woo hoo, I'm first! reserved!

tnguy3n
12-03-2005, 01:55 AM
pls let me know how the installation goes.

Kihon Kata
12-03-2005, 02:06 AM
pls let me know how the installation goes.

Went fine..installed perfect. I think I would prefer the last 5 POSTS not threads.

Daniel
12-03-2005, 02:06 AM
Hmmm very interesting. Nice idea.

tnguy3n
12-03-2005, 02:42 AM
Went fine..installed perfect. I think I would prefer the last 5 POSTS not threads.

It's last threads, but order by lastpost time. ;)

lazyseller
12-03-2005, 03:16 AM
Alot of people asked for this .... thanks tnguy3n for releasing this hack

rb290
12-03-2005, 04:07 AM
good stuff, installed.

vibe
12-03-2005, 04:31 AM
i get this, please see attachment.

Kihon Kata
12-03-2005, 04:32 AM
i get this, please see attachment.

Your HTML is messed up.

vibe
12-03-2005, 04:37 AM
Your HTML is messed up.

How? please advise.


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar

<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>
<tr>
<td class="alt2">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" width="100%" colspan="2">
<if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
<div style="float:$stylevar[right]; padding:4px">
<if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
</div>
</if>
<div style="font-size:18pt">$userinfo[musername] $userinfo[onlinestatus]</div>
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>

<if condition="$userinfo[fieldX] != ''"><div>
Country: <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center">
</div></if>
</td>
<if condition="$show['profilepic']">
<td valign="top" align="$stylevar[right]" rowspan="2">
<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
</td>
</if>
</tr>
<tr valign="top">
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td>&nbsp;</td>
</if>
<td class="smallfont" valign="bottom" align="$stylevar[right]">
<if condition="$show['lastactivity']">
<div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
</if>
<if condition="$show['currentlocation']">
<div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
</if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->

<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$userinfo['showvcard']">
<td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]" rel="nofollow">$vbphrase[download_vcard]</a></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control">
<if condition="$show['addbuddylist']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
</if>
</td>
<td class="vbmenu_control">
<if condition="$show['addignorelist']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
</if>
</td>

</if>
<if condition="can_moderate()">
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
</if>
</tr>
</table>
</if>
<!-- / button row -->

<br />

<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="50%">$vbphrase[forum_info]</td>
<td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
</div>

<fieldset class="fieldset">
<legend>$vbphrase[posts]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)

<!-- Start Post Anumotana Hack -->
<br />
$vbphrase[post_anu_total_thanks]: <strong>$userinfo[post_anu_user_amount]</strong>
<br />
<if condition="$userinfo[post_anu_thanked_times] == 1">
$vbphrase[post_anu_time_post]
<else />
<if condition="$userinfo[post_anu_thanked_posts] == 1">
<phrase 1="$userinfo[post_anu_thanked_times] Times">$vbphrase[post_anu_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_anu_thanked_times]" 2="$userinfo[post_anu_thanked_posts]">$vbphrase[post_anu_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_anu_search_user]</phrase></a>
<!-- End Post Anumotana Hack -->

</td>
</tr>
<if condition="$vboptions['profilelastpost']">
<tr>
<td>
$vbphrase[last_post]:<br />
<a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
$userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
</td>
</tr>
</if>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;s earchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
</tr>
</table>
</fieldset>

<if condition="$vboptions['usereferrer']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[referrals]: <strong>$referrals</strong>
</div>
</div>
</if>

<if condition="$show['usernotes']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[user_notes]:
<if condition="$show['usernoteview']">
<strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
</if>
<if condition="$show['usernotepost']">
[<a href="usernote.php?$session[sessionurl]do=newnote&amp;u=$userinfo[userid]">$vbphrase[post_user_note]</a>]
</if>
<if condition="$show['usernoteview']">
<br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>
<if condition="$show[journalinfo]">
<fieldset>
<legend>$vbphrase[journal_information]:</legend>
<table>
<tr>
<td>
<div class="fieldset">
<a href="journal.php?$session[sessionurl]do=showjournal&j=$journal[journal_id]"><phrase 1="$userinfo[username]">$vbphrase[visit_xs_journal]</phrase></a><br />
$vbphrase[journal_entries]: $journal[entrycount]<br />
$vbphrase[journal_comments]: $journal[commentcount]<br />
$vbphrase[journal_views]: $journal[journalviews]<br />
$vbphrase[last_entry]: <if condition="$show[journal_lastentry]"><a href="journal.php?$session[sessionurl]do=showentry&e=$journal[lastentry_id]">$journal[lastentry]</a> ($journal[lastentry_date])<br /><else />$vbphrase[private]</if>
</div>
</td>
</tr>
</table>
</fieldset>
</if>
</div>
</div>
</td>

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="!$show['contactlinks']">
<tr>
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_has_no_contact_info]</phrase></strong></td>
</tr>
</if>
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
</td>
</tr>
</if>
<if condition="$show['email']">
<tr>
<td>
$vbphrase[email]:<br />
<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
</td>
</tr>
</if>
<if condition="$show['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
</table>
</div>

<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['textimicons']">
<if condition="$userinfo['showicq']">
<tr>
<td>$vbphrase[icq]<td>
<td>$userinfo[icq]</td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$vbphrase[aim]<td>
<td>$userinfo[aim]</td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$vbphrase[msn]<td>
<td>$userinfo[msn]</td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$vbphrase[yahoo]<td>
<td>$userinfo[yahoo]</td>
</tr>
</if>
<else />
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
</tr>
</if>
</if>
</table>
</fieldset>
</if>


</div>
</div>
</td>

</tr>
<tr>
<td class="tcat" width="50%">$vbphrase[additional_information]</td>
<td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<if condition="$show['extrainfo']">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['birthday']">
<tr>
<td>
<strong>$vbphrase[birth_date]</strong>:<br />
$userinfo[birthday]
</td>
</tr>
</if>
<if condition="$show['age']">
<tr>
<td>
<strong>$vbphrase[age]</strong>:<br />
$userinfo[age]
</td>
</tr>
</if>
$customfields
</table>
<else />
<em>$vbphrase[n_a]</em>
</if>
</div>

</div>
</div>
</td>

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
<tr>
<if condition="$show['membergroups']">
<td></td>
<else />
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
</if>
</tr>
$membergroupbits
</table>
</table>

<if condition="$numthread">
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td colspan="7" align="center">
$userinfo[username]'s Last $maxthread Threads
</td>
</tr>
<tr class="thead" align="center">
<td>Thread Title</td>
<td>Forum</td>
<td>Last Poster</td>
<td>Last Post</td>
<td width="30" align="center">Views</td>
<td width="30">Replies</td>
</tr>
$threadlist
</table>
<br />
</if>

$footer

</body>
</html>

tnguy3n
12-03-2005, 05:01 AM
that seems fine.
and what you got in your memberinfo_threadlist template?

vibe
12-03-2005, 05:06 AM
Figured it out.
I missed <

thanks all

joeychgo
12-03-2005, 08:23 AM
Great Job..!


I installed it - you can see it working here: Joeychgo Profile (http://www.vbwebmaster.com/forums/member.php?u=1)


and I also wrote about it on vBwebmaster recommending it.

Inserting Threads In Member Profile (http://www.vbwebmaster.com/forums/showthread.php?p=11126)

Thanks for a Great Job!


-

tnguy3n
12-03-2005, 11:15 AM
Great Job..!


I installed it - you can see it working here: Joeychgo Profile (http://www.vbwebmaster.com/forums/member.php?u=1)


and I also wrote about it on vBwebmaster recommending it.

Inserting Threads In Member Profile (http://www.vbwebmaster.com/forums/showthread.php?p=11126)

Thanks for a Great Job!

-

Thanks, joeychgo.

joeychgo
12-03-2005, 12:47 PM
Your quite welcome

tidy_boy
12-03-2005, 02:15 PM
Excellent installed perfectly

Snake
12-03-2005, 03:12 PM
Wow thanks for the hack.

Trovador
12-03-2005, 05:15 PM
I want to make something like this but with "Last Messages" instead of "Threads", what should I change? Thanks a lot.

Thanks and good work!

lazyseller
12-03-2005, 07:07 PM
change the memberinfo template change "threads" to "last message"

Gizmo5h1t3
12-03-2005, 07:16 PM
working a treat here.....

swa
12-03-2005, 11:37 PM
Nice hack! thanks!

Lizard King
12-04-2005, 10:44 AM
There are 2 problems. One is the memberinfo_threadlist template is not cached and the second one it is not showing the correct threads.

tnguy3n
12-04-2005, 11:39 AM
to cache memberinfo_threadlist,create a new plugin from cache_templates hook with the following content:
$globaltemplates[] = 'memberinfo_threadlist';

for 2nd issue, could you pls clarify?

Lizard King
12-04-2005, 02:08 PM
to cache memberinfo_threadlist,create a new plugin from cache_templates hook with the following content:
$globaltemplates[] = 'memberinfo_threadlist';

for 2nd issue, could you pls clarify?

I double check the second issue and it takes the last replied threads to profile.
http://www.ayyas.com/member.php?u=4&styleid=69 check in here for example the thread En Son Ben Post Atıcam was opened in 2004 but it is in the profile. I opened tons of threads after this one but this had a new reply.

FleaBag
12-04-2005, 02:27 PM
Yeah thanks for this one, I'll get it installed when I finish working on my profiles! :D

Mastar
12-04-2005, 02:36 PM
I got this:
Parse error: parse error, unexpected T_STRING in /home/thebedrock/domains/thebedrocktavern.com/public_html/global.php(334) : eval()'d code on line 83

After I installed this hack in my usercp but the threads didn't show.

tnguy3n
12-04-2005, 03:04 PM
I double check the second issue and it takes the last replied threads to profile.
http://www.ayyas.com/member.php?u=4&styleid=69 check in here for example the thread En Son Ben Post Atıcam was opened in 2004 but it is in the profile. I opened tons of threads after this one but this had a new reply.

I already said the thread is ordered by lastpost time. If you want to order it by thread dateline, open the plugin and change the query. Here's what you want to change:
ORDER BY thread.dateline DESC

tnguy3n
12-04-2005, 03:05 PM
After I installed this hack in my usercp but the threads didn't show.

This hack doesn't touch or modify usercp.php file. maybe some other hacks you installed.

Lizard King
12-04-2005, 03:23 PM
I missed that. Thanks it worked out :)

Mastar
12-04-2005, 05:01 PM
This hack doesn't touch or modify usercp.php file. maybe some other hacks you installed.

I am seeing it above the header and when I disable the plugin it then goes away.

Justice
12-16-2005, 04:19 AM
great plugin. i want to install but, how many queries does this add to the profile page though? there's basically a mini-forumdisplay on there. if I removed the number of replies, views, and last poster, would that reduce the server load at all?

thanks

chikkoo
12-16-2005, 09:23 AM
Wow... Tnguy3n you did a wonderful job.
I was looking for this Mod, but.... with a small change.

Is it possible to include or exclude certain forums?
I want to the threads of 2 forums that contain poems.
So that I could see how many poems posted by each user.

KBV
12-16-2005, 10:47 AM
I get:

Parse error: parse error, unexpected $ in /var/www/vhosts/japani.no/httpdocs/forum/global.php(344) : eval()'d code on line 23

all over my forum when the plugin is active.

Great mod though, cheers.

dreamer81
12-16-2005, 10:52 AM
I get:

Parse error: parse error, unexpected $ in /var/www/vhosts/japani.no/httpdocs/forum/global.php(344) : eval()'d code on line 23

all over my forum when the plugin is active.

Great mod though, cheers.

i get the same error..... whacked

KBV
12-16-2005, 10:57 AM
The one plugin seems to install three instances of itself on the board. Just turn the plugin off and it's normal again.

dreamer81
12-16-2005, 11:15 AM
++++, i can't log into my admincp now!!!!! because this stupid mod ++++ed it up...


Unable to add cookies, header already sent.
File: /usr/home/web/web30955/global.php(334) : eval()'d code
Line: 5

how do i fix this?

dreamer81
12-16-2005, 04:08 PM
someone help me, how do I get my board back!!!! i can't login due to the above error!

dreamer81
12-16-2005, 04:14 PM
stupid hack!!!
i had to edit my global php at line 334, and insert a @ in order to override the exception!

Justice
12-16-2005, 04:47 PM
since quite a few people installed it with no problem, maybe it wasn't the hack. is it possible you're human and made an error?

KBV
12-16-2005, 05:01 PM
How can you call it human error when the script is installed, and the problems exsists only when the plugin is active, and no other edits have been made? :)

Justice
12-16-2005, 05:08 PM
I assume a human installed the script. Correct me if I'm wrong.

How do you explain the numerous people who installed it with no error?

KBV
12-16-2005, 05:18 PM
It might not play well with other products or plugins, might be a problem with the server, the skinning done with the site, a phrase installed, a custom bbcode or anything else on the board.

The error must be on the coders side, seeing as I installed it the same way as everyone else. So calling it "human error", saying that me and dreamer installed it wrong and dismissing the whole error sounds silly, fixing the problem sounds better, don't you think?

Justice
12-16-2005, 05:34 PM
you just finished saying the script didn't work on a forum with no edits, but all those issues you listed are on your end.

I'm not saying nothing's wrong with the code. But this "stupid hack!!" "stupid mod" reaction was very childish and disrespectful. The coders here aren't offering you a paid service and you install all of these at your own risk. That type of behavior is really awful for something you aren't paying for, and unconstructive for the rest of us who appreciate the time put into the hacks.

Be an adult, uninstall it and figure out what the problem is, but don't start flaming the code, especially when there's numerous reports of it working perfectly.

dreamer81
12-16-2005, 05:57 PM
you just finished saying the script didn't work on a forum with no edits, but all those issues you listed are on your end.

I'm not saying nothing's wrong with the code. But this "stupid hack!!" "stupid mod" reaction was very childish and disrespectful. The coders here aren't offering you a paid service and you install all of these at your own risk. That type of behavior is really awful for something you aren't paying for, and unconstructive for the rest of us who appreciate the time put into the hacks.

Be an adult, uninstall it and figure out what the problem is, but don't start flaming the code, especially when there's numerous reports of it working perfectly.

i know i reacted very childish. But tell me how you would react when u suddenly have no access to your admincp anymore. What would you have done??? Called it a nice sweet hack??? I dont think so.

If i didn't have no skills with php, and knew that i had to put a @ in front of the eval function, i would have to reinstall my vb board. Think about a normal user with no php skills... he would probably be more pissed than me.

Justice
12-16-2005, 06:05 PM
what would I have done? Well for starters, I wouldn't have installed a hack of this nature on a LIVE board. That's what test forums are for. Mistakes happen. Coders, installers, and sometimes hacks just aren't compatible with each other. CTRL+Z is your friend. Get to know him.

KBV
12-16-2005, 06:25 PM
Stop being such a hypocrytical bastard. I never once said "stupid mod" or anything along the lines, I even said it was a great mod. The mod works except for the parsing error in global.php, it's a great hack and would be a great edition to my board.

I want this hack to work on everyones board, and somewhere the code is trying to do something that creates this error. Bad coding? I don't think so. If two people who installed the hack get the same error, then I would think it's a problem with the code for the plugin. Because the board works perfectly with it disabled.

Submitting bugs is what one who installes a plugin from this board does, it's to help the coder. And you coming in here and telling everyone to basically "++++ off" because that error is not on your board whine whine whine, is childish as hell.

Justice
12-16-2005, 06:46 PM
I didn't say you did. I was referring to dreamer91, who just admitted his reaction was indeed childish. I was replying to his posts, you took it upon yourself to hop in and address me, when I wasn't even talking to you. Stop trying to "oneup" me, it's not working.

KBV
12-16-2005, 07:47 PM
[quote] is your friend. Get to know him.

FleaBag
12-16-2005, 07:52 PM
Great hack!

:)

chikkoo
12-19-2005, 03:05 AM
Today I installed this Mod,
I too have the same problem, but with different line numbers
"global.php(332) : eval()'d code on line 9"

KBV
12-19-2005, 10:52 AM
It must have something to do with the other mods that are installed in vB. I have yet to figure out why. Any insight would be much appreciated.

tnguy3n
12-19-2005, 10:48 PM
Sorry guys, I've been busy with final exams and stuffs.
Anyway, I've just checked the hack ... and yeah, there was a typo. I missed out one closing quote in 'memberinfo_threadlist'.
To fix that, open the Threads In Profile plugin (cache_template hook),

FIND:
$globaltemplates[] = 'memberinfo_threadlist;

CHANGE THAT TO:
$globaltemplates[] = 'memberinfo_threadlist';

that would fix the bug.

For those who are un-able to log into AdminCP as caused by this stupid hack; in your phpMyAdmin, run following query:
DELETE FROM plugin WHERE title = 'Threads In Profile';

KBV
12-20-2005, 09:43 AM
Thank you! Works perfectly. ;) Great mod. ^^

Danny Diamond
12-24-2005, 01:23 PM
What are we supposed to edit.

I just get this.....

if condition="">
Joe Cool's Last Threads
Thread Title Forum Last Poster Last Post Views Replies

Nothing shows up......

AWI
12-27-2005, 08:44 AM
Installed on 3.5.2 and it looks great in Firefox but not in IE, any suggestions?

http://www.idnba.com/member-find_lastposter-f_13.html

neutek
01-06-2006, 07:22 PM
thanks
+install

lightwave
01-06-2006, 07:34 PM
Upload plugin-lastthreads.xml in your Plugin Manager.

but where in the hook does ti go?

and also how do i make a new template?

Hellraider
01-06-2006, 09:14 PM
and also how do i make a new template?

ACP --> Styles & Templates --> Style Manager --> In pulldown menu klick on Add new template

Zachariah
01-29-2006, 12:45 AM
to cache memberinfo_threadlist,create a new plugin from cache_templates hook with the following content:
$globaltemplates[] = 'memberinfo_threadlist';

for 2nd issue, could you pls clarify?

if (THIS_SCRIPT == 'member'){
$globaltemplates[] = 'memberinfo_threadlist';
}

So the cache only is used on member.php

Invalid ID
05-06-2006, 12:57 PM
Installed... Enjoying .. lots of claps for tnguy3n

turkforum
05-22-2006, 05:26 PM
It seem to be great hack..What i am wondering is,
How can i also show user's last x threads in postbit?

ramone_johnny
05-28-2006, 06:18 AM
Sorry guys, just installed this on V 3.5.4 and I get nothing at all within the profiles section. Any chance this is going to be modded to suit the later version?

RJ

lightwave
06-12-2006, 10:16 PM
i get nothing aswell

moveforward
05-07-2007, 04:55 PM
Where is this plugin. I could really do with this or something like it.

TotalTorque.net
05-08-2007, 01:31 PM
Indeed, where are the download files?

PinkDaisy
05-10-2007, 09:30 PM
I'd like to install it but no plug in file ??