Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 01-19-2005, 04:19 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WetWired
The modification to the existing query would require a left joins then a left join to that left join to relink the post table for the parent post to the post table with the original posts and then to link the user table to the parent posts.
I'm sorry, I'm a UI guy--html & javascript I can do--that paragraph was so far over my head, I need binoculars to read it!

An chance you could translate it into noob for me? <G>

--don
Reply With Quote
  #12  
Old 01-19-2005, 04:37 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basicly, I believe that you should be able to modify the query to get posts by adding
,parentpost.username AS parentpostusername, parentpostuser.username AS parentpostuserusername
to the SELECT part, then right before the WHERE clause, add
LEFT JOIN post AS parentpost ON post.parentid=parentpost.postid LEFT JOIN user AS parentpostuser ON parentpostuser.userid=parentpost.userid
Then in the part to construct the postbit, you would check for a valid parentpostuserusername element in the array, and if it was invalid user parentpostusername instead. I am unsure of the way that PHP represents NULL values in results from mySQL, though, and the query may not work with those changes (I am by no means an expert on mySQL, and the changes add a good deal of complexity to the query).
Reply With Quote
  #13  
Old 01-20-2005, 05:27 AM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, let me see if I get this...

What you're saying is that, at the time the thread is displayed (or, more specifically, when each post within the thread is displayed) that a query can be performed to find the poster of the parent. When this is done, one has to make arrangements in case the parent message has been deleted.

If the query is made at the time that the reply is created (I think this is how the quote bbcode gets it), then that value needs to be stored somewhere. Quote simply puts it into the body of the message. Can a field be added to the post record so that the postbit can just call it from there? In that case, even if the parent message was deleted, the "to" value would still exist and be valid.

--don
Reply With Quote
  #14  
Old 01-20-2005, 12:00 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, actually, it's a matter of soft deleted posts and back-linking to them that I was talking about, but yes if the original post was hard deleted, then the parentid field would point to the parent of the deleted post. Yes, a field could be added and you could probably fill it when the post is stored.
Reply With Quote
  #15  
Old 01-20-2005, 12:27 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=61490" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=61490</a>
Reply With Quote
  #16  
Old 01-20-2005, 08:33 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I did not forget you, I just trying to finish my expanded search mod, so I did not have time to do what I said! I have the search mode done and I am just writing the installer information. Once I have that done I will work on getting a demo up for you to try!

Sorry, for being so slow!

Sonia!
Reply With Quote
  #17  
Old 01-20-2005, 11:25 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by why-not
Sorry, for being so slow!
no need to appologize. I can wait a bit.

--don
Reply With Quote
  #18  
Old 01-22-2005, 04:57 PM
4number8 4number8 is offline
 
Join Date: Nov 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much WetWired, My members also thank you for your work, Excellent job to btw

Works great.
Reply With Quote
  #19  
Old 01-23-2005, 10:18 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by why-not
I just trying to finish my expanded search mod
I saw your "save draft" mod--looks very cool. I'll keep an eye open for the expanded search too!

--don
Reply With Quote
  #20  
Old 03-05-2005, 01:54 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sonia-

I notice that you're back on the forum again. Please PM me about this mod. I'm eager to move forward with this.

--don
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 06:18 PM.


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.14168 seconds
  • Memory Usage 2,262KB
  • Queries Executed 12 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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