PDA

View Full Version : hacks created in profile type of thing....


TaP
06-18-2002, 09:13 AM
when you goto someones profile that have made a hack you get a list of there hacks that they have made..

example
https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=1

i was wondering if someone could make a hack that would do kinda the same thing but would just display the topic name from a certain forum.

i dont think it would be to hard... can someone please help me...

if you dont understand just say so and i will reword

Thanks

Logician
06-18-2002, 05:56 PM
in member.php find:

// display user info

Before that add:



$hisposts_db=$DB_site->query("SELECT threadid,title FROM thread WHERE forumid=X AND visible=1 AND postuserid='$userid'");
while ($hisposts=$DB_site->fetch_array($hisposts_db)) {
$his_posts.='<a href="showthread.php?threadid='.$hisposts[threadid].'">'.$hisposts[title].'</a><br>';
}

Replace X with the forumid you want his threads compiled.

Then edit the relevant template (regarding user profile display) and use the variable


$his_posts


in the place you want his posts listed..Should do the trick..

Logician

TaP
06-18-2002, 08:36 PM
<a href="https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=2355" target="_blank">https://vborg.vbsupport.ru/membe...fo&userid=2355</a>

what is the template name used for that?

TaP
06-18-2002, 08:46 PM
oh i found it... any way to include a number next to the url... soo like

1. url
2. url

just to see how many urls there is

Xenon
06-18-2002, 09:15 PM
change this lines while ($hisposts=$DB_site->fetch_array($hisposts_db)) {
$his_posts.='<a href="showthread.php?threadid='.$hisposts[threadid].'">'.$hisposts[title].'</a><br>';
}
into this:$counter=0;
while ($hisposts=$DB_site->fetch_array($hisposts_db)) {
$counter++;
$his_posts.=$counter.'. <a href="showthread.php?threadid='.$hisposts[threadid].'">'.$hisposts[title].'</a><br>';
}