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 Edit! -Edit posts directly from within the thread itself (https://vborg.vbsupport.ru/showthread.php?t=54851)

David Bott 01-18-2004 09:12 PM

Thanks for the help.

Sorry...Same error as I was getting.

Fatal error: Call to a member function on a non-object

But your code seems much nicer.

EvilLS1 01-18-2004 09:14 PM

Quote:

Originally Posted by David Bott
Thanks for the help.

Sorry...Same error as I was getting.

Fatal error: Call to a member function on a non-object

But your code seems much nicer.

Thats odd. I tested it on my own forum and its working perfectly. Perhaps its not compatible with some other hack you've installed?

EvilLS1 01-18-2004 09:16 PM

You did remove all of the code that you added earlier right? You could try adding this to a fresh (unhacked) functions.php to see if it works.

David Bott 01-18-2004 09:18 PM

Pondering...Can't see why it would not work, after all, it is just a call to the DB to look up a status and set a value.

Note...I am also using this if it makes a difference...

Code:

if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7) or ($post[username] == $bbuserinfo[username])) {
    $edittext = htmlspecialchars($post[pagetext]);


EvilLS1 01-18-2004 09:19 PM

That shouldn't make any difference.

David Bott 01-18-2004 09:22 PM

Code is as such...

Code:

if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7) or ($post[username] == $bbuserinfo[username])) {
    $edittext = htmlspecialchars($post[pagetext]);
$subuserid=$post[userid];
$pthreadid=$post[threadid];
if ($subuserid!=0) {
$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$pthreadid' AND userid='$subuserid' LIMIT 1");
$poop=$subscribed[subscribethreadid];
if ($poop > 0){
$emailchecked="CHECKED";
}else{
$emailchecked="";
}
}

eval("\$quickedit = \"".gettemplate('showthread_quickedit')."\";");
} else {
$edittext="";
$quickedit="";
}

But produces that error like something was not defined.

May I send you my test functions.php file vai e-mail? If so, please be so kind to PM me your address.

EvilLS1 01-18-2004 09:27 PM

Try it on an unhacked functions.php and see what happens..

Also make sure you have the code placed in the right place (above this):

//highlight words for search engine

I'm using 2.2.8 and its working like a champ for me.

David Bott 01-18-2004 09:29 PM

If I did that, some other items would surely fail. :) (That being to put in a fresh functions.php)

David Bott 01-18-2004 09:32 PM

It does not like this line it seems...

Code:

$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$pthreadid' AND userid='$subuserid' LIMIT 1");
Which is line 274.

EvilLS1 01-18-2004 09:34 PM

Quote:

Originally Posted by David Bott
If I did that, some other items would surely fail. :) (That being to put in a fresh functions.php)

I meant temporarily.. Just to see if it works. ;)


All times are GMT. The time now is 03:49 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.01236 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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