Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-20-2001 Last Update: Never Installs: 85
 
No support by the author.

I had tried a version suggested by someone else instead of my own and well, all it did was send the load average up by about 10 times what it was.

This version inserts the last title into the forum database when it is updating the last post name and time. There is no difference in loading time as everything is called normally by vBulletin.

This works on 2.0.x and 2.2.x

Updated at 11:34 GMT on 28th September 2002

Thanks to floren for the latest update.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #162  
Old 04-26-2002, 12:42 PM
kms's Avatar
kms kms is offline
 
Join Date: Mar 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm ignore my advise, deleting that } just stops any of the forums counters from working.

My forums now have all the updated files and template as per the mod instructions except for admin/functions.php which is back to the old version and everything seems to be working ok ???

What are the implications of this ? Or better still how can i stop the

Parse error: parse error

&

Fatal error: Call to undefined function: makelogincode()

as above ???

THanks in advance
Reply With Quote
  #163  
Old 04-26-2002, 12:49 PM
kms's Avatar
kms kms is offline
 
Join Date: Mar 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

p.s. this is my admin/functions.php at present all other files and templates as per hack instructions, why wont the mods work ? TIA

[code removed by PPN]
Reply With Quote
  #164  
Old 04-26-2002, 12:55 PM
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@kms

Do NOT post the functions.php!!!!!

Please edit your Posting and remove the whole code.

Mystics
Reply With Quote
  #165  
Old 04-26-2002, 01:29 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

send the functions.php to scott.macvicar@vbulletin.org and I'll look it over
Reply With Quote
  #166  
Old 04-26-2002, 01:39 PM
kms's Avatar
kms kms is offline
 
Join Date: Mar 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry about that, will mail it now
Reply With Quote
  #167  
Old 04-26-2002, 11:58 PM
zachb's Avatar
zachb zachb is offline
 
Join Date: Nov 2001
Location: Indianapolis
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Email sent, Mystics. Thanks in advance for the help!
Reply With Quote
  #168  
Old 04-29-2002, 10:29 PM
TObject TObject is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am in the middle of installing this hack. I was about to go to moodify templates, I clicked on Templates - Modify in the Admin Pane, and got:

Quote:
Parse error: parse error in /***/admin/functions.php on line 811

Fatal error: Call to undefined function: vbdate() in /***/admin/sessions.php on line 356
Reply With Quote
  #169  
Old 04-29-2002, 10:45 PM
TObject TObject is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the line # 811:
PHP Code:
        $buffer str_replace(""", "\""$buffer); 
And here is the block of code this line is in:
PHP Code:
// ###################### Start phphighlite #######################
function phphighlite($code) {
  //PHP 4 only

  if (floor(phpversion())<4) {
    $buffer=$code;
  } else {
        $code = str_replace("<br>", "", $code);
        $code = str_replace("<br />", "", $code);
        $code = str_replace(">", ">", $code);
        $code = str_replace("<", "<", $code);

        $code = str_replace("&", "&", $code);
        $code = str_replace('$', '\$', $code);
        $code = str_replace('\n', '\\\\n', $code);
        $code = str_replace('\r', '\\\\r', $code);
        $code = str_replace('\t', '\\\\t', $code);

        $code = stripslashes($code);

        if (!strpos($code,"<?") and substr($code,0,2)!="<?") {
            $code="<?\n".trim($code)."\n?>";
            $addedtags=1;
        }
        ob_start();
        $oldlevel=error_reporting(0);
        highlight_string($code);
        error_reporting($oldlevel);
        $buffer = ob_get_contents();
        ob_end_clean();
        if ($addedtags) {
          $openingpos = strpos($buffer,'<?');
          $closingpos = strrpos($buffer, '?');
          $buffer=substr($buffer, 0, $openingpos).substr($buffer, $openingpos+5, $closingpos-($openingpos+5)).substr($buffer, $closingpos+5);
        }
        $buffer = str_replace(""", "\"", $buffer);
  }

  return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>";
}
Does anyone see anything wrong?
Reply With Quote
  #170  
Old 04-29-2002, 11:06 PM
TObject TObject is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I rolled back all the changes to PHP files, and I still get the parse error on line 811 of admin/functions.php
Reply With Quote
  #171  
Old 04-29-2002, 11:19 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just to let you.. i installed this hack without a problem in 225. it works like a charm. it's a great hack for busy boards. however, i made a little hack similary to this. PPN was kind enough to look at the code and his conclusion was that the code is reliable only for medium to small boards. i totally agree with him.

concerning the PPN's hack installation, is simple and precise, all you have to do is follow at letter his instructions.
a little note:
if you installed this hack, make sure you reply or post into a thread, if you dont see any latest title available in forumhome. it will update the database.

for my hack, you could evaluate the comments made by firefly and PPN here:
https://vborg.vbsupport.ru/showthrea...threadid=37952

one more time, if you follow PPN's install guidelines, it will work great. i know i did and got it working in about 5minutes.
good luck and happy hacking.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06504 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete