vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User has started X threads (https://vborg.vbsupport.ru/showthread.php?t=12104)

Joshua Clinard 01-29-2002 03:21 AM

SO did the bug with the ' in usernames get fixed? Also, I have seen the % of posts in this fourm hack, where can I find it?

Lesane 03-10-2002 05:39 PM

Quote:

Originally posted by Joshua Clinard
SO did the bug with the ' in usernames get fixed?
Yup its fixed :)

lifesourcerec 07-21-2002 06:50 PM

Does this work on v2.26? Can't get the threads started to work. When I put the code directly under:

PHP Code:

eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
  } 

I get a T_else error. When I put it after:

PHP Code:

eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
   } else {
                
$birthday '';
        } 

It is blank (no numbers). Where do I insert the code that says directly under:

"eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
}" ?

Floris 10-11-2002 01:42 PM

Update it to
PHP Code:

$startcount $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'"); 

so it uses id's and not names, since names can change and id's are unique. And when users have a ' or " in their name, it won't db error you :>

THANX KURAFIRE for the fix.

and now it works on 2.2.0 - 2.2.8

KuraFire 10-11-2002 02:05 PM

Wow, so tubedogg made this hack but never realized the flaws of WHERE'ing by username instead of userid? Cool :D

VAN 10-27-2002 05:13 AM

I'd like to add $starts to my postbit template below a users total post count, but I guess it needs a bit more tweaking for this to work.

ANy ideas?

PsyBlast 12-17-2002 02:00 AM

how could I get this to also show the last 5 threads a user has started?

Zelda-King 04-04-2003 03:35 PM

I like this. What'd be great is being able to run a search for a user's threads.

I've found a bug though. You get a SQL syntax error when clicking on the profile of a user with ' in their name. The ' interferes with the query.

DiscussAnything 06-22-2003 07:54 PM

Quote:

07-21-02 at 08:50 PM lifesourcerec said this in Post #83
Does this work on v2.26? Can't get the threads started to work. When I put the code directly under:

PHP Code:

eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
  } 

I get a T_else error. When I put it after:

PHP Code:

eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
   } else {
                
$birthday '';
        } 

It is blank (no numbers). Where do I insert the code that says directly under:

"eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
}" ?


It's actually not the php that causes it to not work. You can put it under the birthday function's last }

What you need to do is remove the TR html code after the total posts in the getinfo template. If you paste the code he suggested, there will be two TR's which mess up the table.

At least, that works for me....

Salazar 08-08-2003 06:16 PM

Works great on 2.3.0 ;)

*install*

father max 09-01-2003 06:48 PM

thank you!

: )


All times are GMT. The time now is 04:17 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
  • Page Generation 0.01319 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete