vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   topic post code ? (https://vborg.vbsupport.ru/showthread.php?t=283978)

BirdOPrey5 06-06-2012 09:20 AM

Try:

$gthread[postusername]

This is the username of the user who started the thread.

vBMerkezi 06-06-2012 09:27 AM

This is the username of the user who started the thread. $gthread[postusername] no

BirdOPrey5 06-06-2012 10:09 AM

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

The ONLY two userrnames available in thread are postusername and lastposter.

vBMerkezi 06-06-2012 10:18 AM

http://imagesturk.net/images/mYkiO.jpg

BirdOPrey5 06-06-2012 10:48 AM

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.

vBMerkezi 06-06-2012 11:09 AM

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

BirdOPrey5 06-06-2012 03:04 PM

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.

vBMerkezi 06-06-2012 03:27 PM

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...

vBMerkezi 06-07-2012 07:25 PM

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...

borbole 06-07-2012 07:39 PM

@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.


All times are GMT. The time now is 12:54 PM.

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.01019 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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