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)
-   -   Custom Postbit for every User (https://vborg.vbsupport.ru/showthread.php?t=43688)

Xenon 02-17-2003 09:26 PM

:)
glad to hear :)

NuclioN 02-23-2003 10:44 AM

Xenon, when you have the arcade hack installed the line in functions.php is:

function getpostbit($post,$vpa_champs=0) {

In that case would:
function getpostbit($post,$postbitid=0,$vpa_champs=0) {

The right way to place the code?

Xenon 02-23-2003 11:30 AM

hmm, not sure, it depends on how the arcade hack calls the postbits.

normally you are right, but you could get problems....
be sure to check every call of the getpostbitfunction, that the syntax isn't wrong anywhere...

NuclioN 02-23-2003 11:46 AM

In showthread.php is an instance of the same code,

$postbits .= getpostbit($post,$vpa_champs_a);

that (should) be:

$postbits .= getpostbit($post,$postbitid=0,$vpa_champs_a); ?

I've test it and there are no errors, however when i make an adjustment or replacement it does not update it. Also after validation there is no change with the original standard postbit.

NuclioN 02-23-2003 11:59 AM

In functions.php there's also this:

eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo['usergroupid']!=12) {
eval("\$retval = \"".gettemplate("postbit_banned")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
}
return $retval;
}

That's part of "stealth ban" hack so there are 3 instances of:
eval("\$retval = \"".gettemplate("postbit")."\";");

I like this hack Xenon but it looks that it's not for me this time.

Xenon 02-23-2003 06:47 PM

well, yes it's hard to implement it, when you already have hacked the getpostbit in your way..

the first things seemed right, so maybe you can achieve it so it works correctly.

last question: hmm, replace every instance :)

sonic3d 02-23-2003 07:17 PM

Quote:

Originally posted by Xenon
@sonic3d and all others:
gzip compression produces that problem
i've uploaded a new version. there were just changes to admincpb.php so just upload this..

thanx a lot will try later today or tomorrow

l8er
sonic

vdinh 02-24-2003 04:51 AM

Hi Xenon,

I am currently running vBulletin 2.2.9. On some of the old threads, whenever I tried to get to the first page, it gave me an error such as:

---------------------------
Database error in vBulletin 2.2.9:

Invalid SQL: SELECT * FROM custompostbit WHERE postbitid IN (0,0,0,0,0,0,0,0,0,,0,0,0,,,0,,0,,0,,0,0,,0,,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0)
mysql error: You have an error in your SQL syntax near '0,0,0,,,0,,0,,0,,0,0,,0,,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0)' at line 1
mysql error number: 1064

Date: Sunday 23rd of February 2003 04:48:45 PM
Script: http://myvbulletin.com/vb...mp;threadid=903
Referer: http://myvbulletin.com/vbulleti...=&forumid=3
------------------------------

The thing is if I click to to to page 2 of those thread, it worked as normal. So what is the problem and how can I fix it ? Please enlighten me

Thanks a lot.

Xenon 02-24-2003 10:05 AM

huh?

that error never occured to me.

have you made an error while installing?

if not i need more informations, what is different between the first page and the second one?


All times are GMT. The time now is 01:16 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.01178 seconds
  • Memory Usage 1,729KB
  • 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
  • (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
  • (9)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