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 Reply Box (https://vborg.vbsupport.ru/showthread.php?t=34597)

Boofo 07-26-2002 09:13 PM

Yes. Take the 5 lines above it to the 5 lines below the error and post all of those.

Quote:

Originally posted by Kiraly


line? how can i see this line? in the notepad?


Kiraly 07-27-2002 08:05 AM

$post=$DB_site->query_first("
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
FROM post
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid = '$postid'
");

if (!$getperms['cangetattachment']) {
$viewattachedimages=0;
}

$postbits = getpostbit($post);

updateuserforum($thread['forumid']);

eval("dooutput(\"".gettemplate("showpost")."\");") ;
exit;
}

Boofo 07-27-2002 08:20 AM

Which line is the line with the error in it (line 94, I think)?

Kiraly 07-27-2002 08:29 AM

LEFT JOIN customavatar ON customavatar.userid=user.userid","")."

Boofo 07-27-2002 08:35 AM

Try changing this:

PHP Code:

eval("dooutput(\"".gettemplate("showpost")."\");");
exit;


to this:

PHP Code:

eval("dooutput(\"".gettemplate("showpost")."\");");
exit; 

and let me know if it works. If it doesn't, make sure you put the code back as it was and we will go from there. :)

Boofo 07-27-2002 08:37 AM

You need to delete this message. You can't post your php files for download. :) This is according to the vBulletin licensing agreement.

Quote:

Originally posted by Kiraly
this in php file

thx :)


Kiraly 07-27-2002 09:57 AM

Quote:

Originally posted by Boofo
You need to delete this message. You can't post your php files for download. :) This is according to the vBulletin licensing agreement.


sorry :cry:

Kiraly 07-27-2002 10:07 AM

i resolve the problem but the quick reply don't appear :(

Kiraly 07-27-2002 11:21 AM

Quote:

Originally posted by Kiraly
i resolve the problem but the quick reply don't appear :(
ok Quick reply go ON ;)

Heineken77 07-27-2002 04:09 PM

How can I set it that when you use the quick reply box, people are automatically subscribed to the thread and receive email notification when there is a reply? :)

DrkFusion 07-27-2002 05:27 PM

Hey Heineken, now I am sure if the members turn that off in there options, there must be a reason for it, you really shouldn't go forcing that.

If they have it on, it automaticaly gets subscribed anyways.

Drk

Boofo 07-27-2002 05:50 PM

How did you resolve it?

Quote:

Originally posted by Kiraly
i resolve the problem but the quick reply don't appear :(

Heineken77 07-27-2002 07:17 PM

Hey DrkFusion :)

Thanks for the reply, but are you sure that if we have it picked to notify by email to reply it automatically subscribes us when we reply through the quick reply box?

I have email notification enabled, however whenever I use the quick reply box, I never get subscribed :(

Thanks for the reply :)
Heineken

DrkFusion 07-27-2002 07:21 PM

Well, I remember that FireFly said that the reply box does use the newreply.php and well it should work.

Drk

Heineken77 07-27-2002 07:22 PM

Doh! well i'll try reinstalling it and see if that changes:)

thanks again.

Boofo 07-27-2002 07:28 PM

Sorry, buddy, I have to call you on this one. It will not use the email check in newreply. I had to add an external one to do it for the Quick Reply box. :)

Quote:

Originally posted by DrkFusion
Well, I remember that FireFly said that the reply box does use the newreply.php and well it should work.

Drk


Heineken77 07-27-2002 07:30 PM

Hey Boofo :) Think you could explain to me how to do that? :D

DrkFusion 07-27-2002 07:34 PM

Quote:

Originally posted by Boofo
Sorry, buddy, I have to call you on this one. It will not use the email check in newreply. I had to add an external one to do it for the Quick Reply box. :)


Really...hmm, when I posted a problem, I said that people were able to post though it was closed (this was when I was new to vb) he said they shouldn't be able to because, it uses the newreply.php, later I found out, they can't post only I can cuz im admin lol

Drk

Boofo 07-27-2002 07:45 PM

Here is a simpler way to do it than I did it. :)

1- in showthread.php (in hacks code), find:

PHP Code:

if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
  
show_nopermission();


after that add:

PHP Code:

if ($bbuserinfo[emailnotification]!=0) {$emailchecked='yes';} 


2- edit template showthread_replybox, find:

PHP Code:

<input type="hidden" name="email" value=""

Replace it AS:

PHP Code:

<input type="hidden" name="email" value="$emailchecked"


Quote:

Originally posted by Heineken77
Hey Boofo :) Think you could explain to me how to do that? :D

Boofo 07-27-2002 07:47 PM

Yes, but they won't get a notification email about the new message to the thread if it is made with the Quick reply Box unless you add some code to it to check for email notification. :)

Quote:

Originally posted by DrkFusion

Really...hmm, when I posted a problem, I said that people were able to post though it was closed (this was when I was new to vb) he said they shouldn't be able to because, it uses the newreply.php, later I found out, they can't post only I can cuz im admin lol

Drk


DrkFusion 07-27-2002 07:57 PM

Ah I see, thanks didn't know that

Drk

Boofo 07-27-2002 08:02 PM

No problem. I didn't know either. I found out the hard way. :)

Kiraly 07-28-2002 08:18 AM

thx Boofo! ;)

Boofo 07-28-2002 08:43 AM

My pleasure. Enjoy! ;)

DrkFusion 07-28-2002 06:41 PM

How do I add a Attatchement field?

Drk

Boofo 07-28-2002 06:49 PM

Put this:

PHP Code:

<tr>
    <
td bgcolor="#4A7B9D" valign="top" nowrap><normalfont><b>Attach file:</b></normalfont><br>
    <
smallfont>Size Limit$maxattachsize bytes</smallfont></td>
    <
td bgcolor="#4A7B9D" valign="top"><smallfont><input type="hidden" name="MAX_FILE_SIZE" value="$maxattachsize_temp">
    <
input type="file" class="bginput" name="attachment"><br>
    
Valid file extensions$attachextensions</smallfont></td>
</
tr

right after this:

PHP Code:

<a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont>

<
br>

</
table

Quote:

Originally posted by DrkFusion
How do I add a Attatchement field?

Drk


DrkFusion 07-28-2002 06:58 PM

Thanks man

Drk

Kiraly 07-28-2002 07:52 PM

Drk have you screeshots of this hack?

nemesis01 07-28-2002 11:11 PM

Quote:

Originally posted by Allstar DC
to add the smilies do the following:


open showthread_quickreply template

find:
PHP Code:

<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td


and replace it with:

PHP Code:

<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b><br>$clickysmilies</normalfont></td

That should do the trick


*Remove the spaces after { and before }

Sorry to bring this up again, I installed the quick reply box easy poo and want this addon described here, I have done it exactly as it says but the smilies will not appear.

I took the 'showthread_quickreply' template for the 'showthread_replybox' template, dont think that's anything to do with it though. I know this subject is old but I need an answer for this please......ta. :ermm:

nemesis01 07-31-2002 05:44 PM

Sorry to bring this up again but I still need help, I dont like clogging up email or PM inboxes asking for help so i'll ask again here. I have been working on this now for 2 days with another person and we still cannot get the clickable smilies to show up in the quickreply box, I really dont know what we are doing wrong.

We are using the exact same template as described in the hack txt file with the small adjustment highlighted earlier in this thread, alas it does not work.

If somebody can please help I would be grateful, would be even better help if somebody could post a modified showthread_replybox template with the changes implemented to enable the clickable smilies. If it helps we are running 2.2.6 if that makes any difference to what needs to be added to the showthread_replybox template.

Thanks. :dead:

Boofo 07-31-2002 05:50 PM

To add smilies to the quick reply box:

Add this line:

$clickysmilies = getclickysmilies();

to showthread.php right after this:

$textareacols = gettextareawidth();

then use $clickysmilies in the showthread_quickreply template to add the box with the smilies in it, but you will also need to add these two lines:

<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>

to the template right after the <form> tag. That should work.

nemesis01 07-31-2002 07:21 PM

Cheers Boofo, you have just saved me another load of greif.:D

Top man. :bored: :cheeky: :)

Boofo 07-31-2002 07:37 PM

Glad I could help. Enjoy. ;)

ExAvIoUr 08-01-2002 01:30 PM

hey can some1 help on this. i installed it almost perfect. the problem is that the reply box it at the top of the thread instead at the bottom. how can i fix that?

reply asap

Boofo 08-01-2002 01:44 PM

Reply ASAP? What is that?

You need to put the code after the second instance in the showthread template.

Quote:

Originally posted by ExAvIoUr
hey can some1 help on this. i installed it almost perfect. the problem is that the reply box it at the top of the thread instead at the bottom. how can i fix that?

reply asap


ExAvIoUr 08-01-2002 01:51 PM

asap = as soon as possible.

thanx a lot. it worked.

Boofo 08-01-2002 02:31 PM

I knew what it meant. I was just giving you a hard time. :)

Glad I could help. Enjoy! ;)

Quote:

Originally posted by ExAvIoUr
asap = as soon as possible.

thanx a lot. it worked.


bommelchen 08-01-2002 06:53 PM

I have install a fresh VB2.2.6 and i follow exactly the instructions for this Hack but i cant see the replybox !!!

Any Idears ????

Bommelchen

Darth Cow 08-02-2002 12:44 AM

Quote:

Originally posted by bommelchen
I have install a fresh VB2.2.6 and i follow exactly the instructions for this Hack but i cant see the replybox !!!

Any Idears ????

Bommelchen

Are you sure you saved and uploaded the files? Updated the templates? Just go over each step again and you probably forgot something basic :).

bommelchen 08-02-2002 05:52 AM

Im realy sure that i have upload the files !! I have checked today but i see nothing !

Whats happend here ?
Bommelchen


All times are GMT. The time now is 08:17 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.03370 seconds
  • Memory Usage 1,850KB
  • 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
  • (10)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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