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)
-   -   Quick Quote II -Quote posts instantly in your Quick Reply box (https://vborg.vbsupport.ru/showthread.php?t=54939)

Oblivion Knight 08-10-2003 10:55 PM

Quote:

Yesterday at 01:54 PM PurpleCow said this in Post #69
Oblivion Knight - I tried the new text file instructions. But, no its not working again :( . This is what happens :

1. When i click on the image that appears, the page just refreshes. When i click on the image again, it gives me javascript errors in the status bar and this time, it doesn't refresh at all.

But nothing towards the required effect happens, that is to quote.

Thanks for your help again.

Cheers

Very strange..
I've just tested the code and it's working perfect for me.

It even anchors without my original anchor code.! :surprised:

EvilLS1 08-11-2003 12:52 AM

leesa,
Thanks for the feedback. Glad you like it. :)

PurpleCow 08-11-2003 02:43 AM

Oblivion Knight - Actually, I already have the checkbox version installed on my forums. Now with your instructions, i just changed the quickquote template ( complete template ) replaced with your code.

But, it still doesn't work for me.

Am i missing something ?? Do i have to make changes or remove any code from the initially installed checkbox version ??

Thanks for any help.

Cheers

Oblivion Knight 08-11-2003 10:03 AM

Nope, originally you'd have needed to add a bit of java to your postbit template (found in the anchor instructions). With the code I've just posted, that java is no longer required.. :confused:

PurpleCow 08-11-2003 12:25 PM

Andrew - Unfortunatly, it still doesn't work for me.

I am not sure, whts wrong with me. I have followed the instructions, given very clearly and yet, i get the same errors, i mentioned in my previous post.

Okay, I have also installed quick edit, does that make any difference ? Also, whats the anchor instructions, you mentioned for your previous version. where can i find that ??

Thanks much for your valuable time.

Oblivion Knight 08-11-2003 12:47 PM

If there was no conflict between the checkbox version and the QuickEdit mod, there shouldn't be a problem between the second image version and QuickEdit since they're based on the same java structure..

The Anchor instructions can be found HERE.

No problem, I hope that we can eventually get this working for you.



Thankyou for the feedback leesa :).

PurpleCow 08-11-2003 01:27 PM

Hello OBK,

I placed the anchor instructions at the top of my postbit template : this was the anchor instruction :

Quote:

<script language="JavaScript">
<!--

function insertAtCaret (textEl, text) {
if (textEl.createTextRange && textEl.caretPos) {
var caretPos = textEl.caretPos;
caretPos.text =
caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
text + ' ' : text;
} else {
textEl.value = textEl.value + text; // for non MSIE browsers just append it
}

return true;
}// fn

//-->
</script>
And then, I replaced the entire contents of quick quote template with this code :

Quote:

<FORM name="p$post[postid]" style="display:inline;">
<div style="position:absolute; z-index:1; visibility: hidden">

<textarea name="message" rows="7" cols="1" wrap="virtual" tabindex="1">
Quote:

Originally posted by $post[username]
$quotetext
</textarea>
</div>
<a href="#vbform" onclick="document.vbform.message.value = document.vbform.message.value + document.p$post[postid].elements[0].value"><img src="{imagesfolder}/quick_quote.gif" border="0"></a>
</FORM>
However, in your anchor instructions file, you had made a mention of this :

Quote:

Find:

code:
onclick="document.vbform.message.value = document.vbform.message.value + document.p$post[postid].elements[0].value"



Replace with:

code:
onclick="insertAtCaret(document.vbform.message, document.p$post[postid].elements[0].value); document.vbform.message.focus();"
which template do i find and replace this last step. I checked it the postbit and quickquote template, but i don't have any such code to replace.

Also, previously, i didn't have any conflict between quick quote and quick edit hacks. they are qorking individually very fine. One more to mention is that, I have installed quote selected also for my boards, does that affect anyway ??

Thanks for all the help and sorry to trouble you soo much.


Cheers

Aaron1 08-30-2003 07:10 AM

Nice hack!

Just a thought: Wouldn't it be nice if the quotes have this information aswell:

Originally posted by $originalposter on $postdate at $posttime

But the question is, how do i get the $postdate at $posttime in the quote?

Best regards,

EvilLS1 08-30-2003 04:42 PM

Aaron1,

In your quickquote template replace this:
Code:

Originally posted by $post[username]
with this:
Code:

Originally posted by $post[username] on $post[postdate] at $post[posttime]
Later,
Dewayne

Aaron1 08-30-2003 05:36 PM

Dewayne thanks for replying!
I already tried that. But it won't work.

I might be wrong, but i think $post[postdate] and $post[posttime] are functions(?) that are defined in newreply.php only, and not in Showthread.php. I guess that's why it won't be displayed.

Maybe the showthread.php needs some additional hacking to show the postdate & time?


All times are GMT. The time now is 09:34 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.01098 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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