Revenge Of The Blue Arrow Public Beta 1 Copyright 2001 Charles Capps NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! I do not offer support for this script. Install it at your own peril. It is guaranteed to do nothing other than take up disk space and cause you annoyance. NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! NO SUPPORT! You are expressly prohibited from redistributing this hack, or a modification based on this hack, or any part contained within it, without my expressly written consent. If you lack an understanding of any of the words in the preceding sentence, stop reading this hack now and go play with your tinker toys. Any use of this code constitutes unconditional acceptance of the above statements. Clear? This hack format is a little different than most. If you have problems following it, I can advise a few people to help you with reading skills... The long lines of # marks indicate section seperations. Do not copy & paste these into the file as part of the hack. Lines starting like #---- are seperators for sample code. Do not search for them or copy & paste them as part of the hack. The CODE SNIPPETS mentioned IN the instructions are BELOW the instructions. ############################################################################## ############################################################################## Files required: cgi-bin/ubb_lib_posting.cgi noncgi/Templates/public_topic_page.cgi Version required: Any 6.1.0 Public Beta 1.1 or LATER NOTE: This hack requires noncgi/down.gif, which is included in the UBB 5.47 distribution. If you lack this file, please log into the UBB Members Area and grab the 5.47 zip file. The file should be present if you upgraded to UBB 6.x from 5.x. NOTE FOR STEPS 8 AND 12: The line numbers are APROXIMATE, and are adjusted for the size of the code inserted above. If the numbers are wrong, then look about 30 lines in either direction. If that fails, search for them using your text editor's tools. If THAT fails, give up. :) NOTE ON STYLES: This may look ugly. If you want the link to appear elsewhere, then move CODE SNIPPET 3 somewhere else. NO, I WILL NOT HELP YOU DO THIS. If you lack the capacity to understand how to move something, then you should seriously reconsider performing any code hacks to your board whatsoever. ############################################################################## ############################################################################## Instructions: 1. OPEN ubb_lib_posting.cgi 2. SCROLL to line 430, which should have lines reading: #---------- START sample undef($ThisPage); undef($TopicPageTotal); undef($PostTotal); undef($PageName); #---------- END sample 3. Below the last undef, add CODE SNIPPET 1. 4. Save and close ubb_lib_posting.cgi 5. OPEN public_topic_page.pl 6. SCROLL to line 6, which is the line *AFTER*: #---------- START sample my $html_stuff = qq~ #---------- END sample 7. Below that line, add CODE SNIPPET 2. 8. SCROLL to line ~60: #---------- START sample $topic_closed #---------- END sample 9. AFTER the "$topic_closed", insert CODE SNIPPET 3 10. If you have the ANCHOR HACK installed, go to STEP 14. 11. If you do NOT have the ANCHOR HACK installed, or don't know what it is, continue on. :) 12. SCROLL to line ~190: #---------- START sample
#---------- END sample 13. CHANGE line 190 to CODE SNIPPET 4 14. Save and close public_topic_page.pl 15. Upload the two changed files to your UBB. Set permissions if required by your server platform. 16. Enter your UBB control panel and clear the cache. 17. Celebrate. :) ############################################################################## #START CODE SNIPPET 1 ############################################################################## #blue arrow - START local(%js); my $excounter = 0; foreach (@ordered_topic) { my @post = split(/\|\|/); $js{"julians"} .= q!"! . &ConvertPostTimetoJulian($post[3], $post[4]) . q!", !; $js{"posts"} .= qq!"$post[1]", !; $excounter++; if (($vars_display{HTMLDisplayMax} ne '') && ($vars_display{HTMLDisplayMax} ne 'NONE')) { $js{"pages"} .= q!"! . ((split(/\./, ($excounter / $vars_display{HTMLDisplayMax})))[0] + 1) . q!", !; } else { $js{"pages"} .= qq!"1",!; } } $js{"pages"} =~ s/, $//; $js{"posts"} =~ s/, $//; $js{"julians"} =~ s/, $//; #blue arrow - END ############################################################################## #END CODE SNIPPET 1 ############################################################################## ############################################################################## #START CODE SNIPPET 2 ############################################################################## ############################################################################## #END CODE SNIPPET 2 ############################################################################## ############################################################################## #START CODE SNIPPET 3 ############################################################################## ############################################################################## #END CODE SNIPPET 3 ############################################################################## ############################################################################## #START CODE SNIPPET 4 ##############################################################################
############################################################################## #END CODE SNIPPET 4 ##############################################################################