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
  #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
  #172  
Old 04-29-2002, 11:46 PM
TObject TObject is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I figured out what my problem was. I used the editor from within the cpanel, and the god dammed thing replaced &-strings inside the PHP file (such as &nbsp) with gibberish.

I will catch my breath, and try loading this hack again.
Reply With Quote
  #173  
Old 04-30-2002, 12:42 AM
TObject TObject is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edited the files again (this time using the PHP Coder Pro), and it looks like it's working! Thank you!

http://www.jeepbbs.net/forums/index.php

The only problem is that Updating Forums info (threough the "Update Counters") did not make the titles to appear. The titles only start appearing as users post new messages.
Reply With Quote
  #174  
Old 04-30-2002, 01:24 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

congrats
did you read my post above? it shows when someone posts because it updates the field only when someone posts...
Reply With Quote
  #175  
Old 04-30-2002, 07:52 PM
Dark Odin Dark Odin is offline
 
Join Date: Jan 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How many queries does this add?
Reply With Quote
  #176  
Old 04-30-2002, 10:22 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

none.
Reply With Quote
  #177  
Old 04-30-2002, 10:56 PM
yasunari yasunari is offline
 
Join Date: Mar 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by yasunari
After i do forum update counter..



.I need to wait new members post/reply topic to get that field back.. anyway I can fix it?
Anyone have my problems after update forum counter or move/delete post?

I am using 2.2.5
Reply With Quote
  #178  
Old 05-01-2002, 02:09 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have checked this code and it works fine with my 2.2.5 board, the conclusion is that you have applied the hack inccorectly to the /admin/functions.php file.

Try re-applying or checking that code again.
Reply With Quote
  #179  
Old 05-02-2002, 12:39 AM
yasunari yasunari is offline
 
Join Date: Mar 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I will check the code to see any problems
Reply With Quote
  #180  
Old 05-06-2002, 07:29 AM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed on 2.2.5 word for word and Im getting a lot of errors on the main page that look like

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/whynot-d/public_html/udfxp/index.php(332) : eval()'d code on line 2
Reply With Quote
  #181  
Old 05-06-2002, 07:32 AM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I sorted it you said to add

$form['lasttitle']

to the template when it should be

$form[lasttitle]

brilliant hack Btw!
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 06:31 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.05268 seconds
  • Memory Usage 2,352KB
  • Queries Executed 30 (?)
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
  • (2)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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