vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   quick reply help (https://vborg.vbsupport.ru/showthread.php?t=74404)

sabret00the 01-15-2005 05:13 PM

quick reply help
 
ok i've got the quick reply working fine on a third party page, however if i click the quick reply icon in order to quote the post, it pulls the post from the database instead of the info i wanted, now i couldn't make out the js as i know nowt to do with js but in the php i'm guessing the lines

PHP Code:

        $originalposter fetch_quote_username($getpost['username']);
         
$pagetext trim(strip_quotes($getpost['pagetext']));
         eval(
'$quotemessage = "' fetch_template('newpost_quote'10) . '";');
         
$newpost['message'] = "$quotemessage $newpost[message]";
         unset(
$_POST['WYSIWYG_HTML']); 

has something to do with it, however i've trudged through the php files and can't find the $getpost query.

am i looking for the right thing?

oh maybe it'd be easier to ask, how should i try and get it to pull the info i want rather than the info vbulletin set it to extract initially?

sabret00the 01-16-2005 11:10 AM

*bump*

Dean C 01-17-2005 09:52 AM

sabe - no need to bump that much ;)

sabret00the 01-17-2005 10:24 AM

sorry dean :)

deathemperor 01-17-2005 11:42 AM

how about using Xenon's quick reply button hack ?

otherwise: if you want to quote, then in the link button it should have been included that postid then in the quote page like abc.php?do=quote&postid=12345 you query for the post with id 12345 and include it in the textarea with the [quote] tag around the message with this postusername also.

is that your problem ?

sabret00the 01-17-2005 01:05 PM

[QUOTE=deathemperor]how about using Xenon's quick reply button hack ?

otherwise: if you want to quote, then in the link button it should have been included that postid then in the quote page like abc.php?do=quote&postid=12345 you query for the post with id 12345 and include it in the textarea with the
Quote:

tag around the message with this postusername also.

is that your problem ?
not really, i got a whole new script away from the forums, basically i need to find out how the query is being done, what is the clause so that i can hopefully try and overwrite it in my script when it's processing the reply.

but i can't find the $getpost query :(

deathemperor 01-17-2005 01:36 PM

writing for a new script, that's what I was talking about.

if you want to query post from vbulletin's post table you may want to look at function_newreply.php or similar functions in includes. I don't think it's hard to do things like this manually.

Basicly you just have to get the postid, then in the quote newreply page, it's simply like posting a newreply without quotes, you query that post with the specified id and put it in the quote so that the new reply will content the correct words in it.

sabret00the 01-17-2005 02:06 PM

let me try and explain this, the way the quick reply is set up it queries the post table with the postid and inserts the relevant text in the right place with the username, now cos i'm using an external script what i'm wanting is for it to query my table grps_post instead, however if i can't find the query i can't even begin to investigate the best method and i'm having problems finding the query at present.

deathemperor 01-18-2005 04:53 AM

they why don't you write your own query ?

sabret00the 01-18-2005 09:18 AM

that's what i wanna do but i need to replicate the clause

i.e.
PHP Code:

FROM grps_post
WHERE postid 
quickreplyclickid 

and in order to do that, i need to find out what the clause is for the $getpost query in order to steal it effectively.


All times are GMT. The time now is 03:46 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.01616 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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