Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 06-06-2012, 09:20 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try:

$gthread[postusername]

This is the username of the user who started the thread.
Reply With Quote
  #12  
Old 06-06-2012, 09:27 AM
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the username of the user who started the thread. $gthread[postusername] no
Reply With Quote
  #13  
Old 06-06-2012, 10:09 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, then I just don't know what you want.

The ONLY two userrnames available in thread are postusername and lastposter.
Reply With Quote
  #14  
Old 06-06-2012, 10:18 AM
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reply With Quote
  #15  
Old 06-06-2012, 10:48 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Posting the same file and same image will not help.

You need to find someone who can give a better translation of what you want.
Reply With Quote
  #16  
Old 06-06-2012, 11:09 AM
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please have a look at the documents that i attached. I would like to edit the statistics as writer of the topic and last message...the code of the last massage writer's is $gthread[lastposter] i need to have the code of the writer of the topic the codes that you have given to me does not work
Reply With Quote
  #17  
Old 06-06-2012, 03:04 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the code that creates $gthreads, which each individual thread becomes $gthread:

Code:
$gthreads = $db->query_read(" 
    SELECT 
thread.forumid AS forumid, thread.visible,
	thread.lastposter, thread.prefixid, thread.title, thread.threadid as threadid, thread.attach AS attach, 
	thread.taglist AS tag, thread.deletedcount AS deletedcount, thread.postusername, thread.postuserid, thread.dateline AS date, views AS views, thread.replycount AS reply, thread.lastposter, 
	forum.title_clean as forum_title, id, post.pagetext AS pagetext, post.postid, post.pagetext AS pagetext,
	user.userid, user.username, user.usergroupid, icon.title AS icontitle, icon.iconpath,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
	FROM " . TABLE_PREFIX . "thread AS thread
	LEFT JOIN " . TABLE_PREFIX . "post AS post on (thread.firstpostid = post.postid)
	LEFT JOIN " . TABLE_PREFIX . "forum AS forum on (thread.forumid = forum.forumid)
  LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = thread.postuserid)
  LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = thread.iconid)
        WHERE NOT ISNULL(thread.threadid) 
        $excludedforums AND thread.visible = 1 ORDER BY postid DESC LIMIT 0, $dzmmax");
The only usernames options for $gthread are:

$gthread[lastposter],
$gthread[postusername]

If it's not one of those it's not available.
Reply With Quote
  #18  
Old 06-06-2012, 03:27 PM
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

unfortunately did not

--------------- Added [DATE]1339071247[/DATE] at [TIME]1339071247[/TIME] ---------------

? ? ?

--------------- Added [DATE]1339077044[/DATE] at [TIME]1339077044[/TIME] ---------------

the codes are existing in the attachemenet.... But $gthread[lastposter], $gthread[postusername] are not working... $gthread[lastposter] this is the code of last message writer... I need to have the code of writer of the topic...
Reply With Quote
  #19  
Old 06-07-2012, 07:25 PM
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the codes are existing in the attachemenet.... But $gthread[lastposter], $gthread[postusername] are not working... $gthread[lastposter] this is the code of last message writer... I need to have the code of writer of the topic...
Reply With Quote
  #20  
Old 06-07-2012, 07:39 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@vBMerkezi , please stop contacting me in private to help you with this. My signature is not for nothing. You are getting all the help here by BirdOPrey5.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06672 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete