Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Big Picture messing up your design? Install this Details »»
Big Picture messing up your design? Install this
Version: 1.00, by qualif qualif is offline
Developer Last Online: Nov 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-02-2004 Last Update: Never Installs: 2
 
No support by the author.

hello

how two install this hack ?

Waht this file in the zip

sorry for my english is french

thk

Show Your Support

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

Comments
  #12  
Old 04-05-2004, 02:11 PM
MeTaL_oRgY MeTaL_oRgY is offline
 
Join Date: Jul 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can?t get it to work... here it is:
http://zelda.wi3k.net/foro/showthread.php?threadid=72

here?s the error:
PHP Code:
Fatal errorCall to undefined function: handle_bbcode_url() in /usr/home/wi3knet/public_html/zelda/foro/admin/functions.php(1200) : regexp code on line 1 
this is line 1200:
PHP Code:
    $bbcode preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_url('\\1', '', 'url')"$bbcode); 
any ideas? :s.... I want this hack sooo bad!!.. My best shot is that I?m missing the js file.. but there?s no js file on the zip.... @@

EDIT
lol, downloaded the js file from ur site and uploaded to the forum root and nothing... :S
Reply With Quote
  #13  
Old 04-05-2004, 02:31 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would slow down loading of the page with the linked images due to the getimagesize() for each of the linked images right ?
Reply With Quote
  #14  
Old 04-05-2004, 02:55 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MeTaL_oRgY
can?t get it to work... here it is:
http://zelda.wi3k.net/foro/showthread.php?threadid=72

here?s the error:
PHP Code:
Fatal errorCall to undefined function: handle_bbcode_url() in /usr/home/wi3knet/public_html/zelda/foro/admin/functions.php(1200) : regexp code on line 1 
this is line 1200:
PHP Code:
    $bbcode preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_url('\\1', '', 'url')"$bbcode); 
any ideas? :s.... I want this hack sooo bad!!.. My best shot is that I?m missing the js file.. but there?s no js file on the zip.... @@

EDIT
lol, downloaded the js file from ur site and uploaded to the forum root and nothing... :S
Whoops, my bad. Lack of final test on my part
The line grabbed from Vb3 and that function isnt IN Vb2.

Find this line:
Code:
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_url('\\1', '', 'url')", $bbcode);
Replace with:
Code:
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\\1", $bbcode);
I will update the code in the hack when I get home
Dimitry
Reply With Quote
  #15  
Old 04-05-2004, 02:59 PM
MeTaL_oRgY MeTaL_oRgY is offline
 
Join Date: Jul 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got this:
PHP Code:
Parse errorparse error in /usr/home/wi3knet/public_html/zelda/foro/admin/functions.php(1200) : regexp code on line 1

Fatal error
Failed evaluating code: [url]http://www.iespana.es/IngosRanch/ir_v19.jpg[/url] in /usr/home/wi3knet/public_html/zelda/foro/admin/functions.php on line 1200 
EDIT

problem above solved (you put a */* instead of a *\* on [/img\], but now the image isn?t rezising.. not even appearing....

it just shows the code:
PHP Code:
[IMG]http://www.iespana.es/IngosRanch/ir_v19.jpg[/IMG] 
... look: http://zelda.wi3k.net/foro/showthread.php?threadid=72
Reply With Quote
  #16  
Old 04-05-2004, 04:52 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok not sure if anyone is facing this problem cos of this hack but try this :

Try linking the URL of an attached image in another post.
The whole post goes blank afterwards.

Does this happen for you ?
Reply With Quote
  #17  
Old 04-05-2004, 05:16 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cinq That's exactly what I get. No button, no image. Text typed into the post will show but with this hack installed the vb img tag is dead.
Reply With Quote
  #18  
Old 04-05-2004, 07:44 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed.
Please redownload/reinstall the hack.

For those who have this installed already, its just a matter of replacing the old stuff with the new stuff.

Good luck
Dimitry
Reply With Quote
  #19  
Old 04-09-2004, 02:45 AM
MeTaL_oRgY MeTaL_oRgY is offline
 
Join Date: Jul 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, now it´s working.. i installed another hack that replaced the big imgs with plain text so it doesn´t work on a post, but I have some signatures that are quite big, and there the script works!.. Thnx a lot for this dimitrix!! Excelent job!!
Reply With Quote
  #20  
Old 04-20-2004, 07:05 PM
Ghosty Ghosty is offline
 
Join Date: Mar 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

found a bug... if someone does an image tag to a picture that no longer works, it gives the error code

Warning: getimagesize(http://zeetec.net/host/originalnabisco/rennekogif.gif): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/hinalove/public_html/forums/admin/functions.php on line 927

Warning: getimagesize(http://www.zeetec.net/host/originalnabisco/rensig.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/hinalove/public_html/forums/admin/functions.php on line 927


which dont exist anymore...
Reply With Quote
  #21  
Old 04-20-2004, 07:10 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep Ive fixed this a week ago on my own board but havent found time to update the hack.
Replace the handle_bbcode_img_match function with this one:
PHP Code:
function handle_bbcode_img_match($link)
{
    
// IMPORTANT - REPLACE THE FOLLOWING 2 VARIABLES WITH YOUR INFORMATION
    
$img_replacement "images/dww/button_imagebig.gif"// <-- This is the button/image that will be displayed instead of the big image.
    
$img_max_width 520// <-- This is the maximum width that an image is allowed to be viewed safely.
    
    
$link str_replace('\\"''"'$link);
    
    
// remove double spaces -- fixes issues with wordwrap
    
$link str_replace('  '''$link);

    
usleep(1500);
    if (@
fclose(@fopen("$link""r"))) {
        
$img_width getimagesize("$link");
        if (
$img_width[0] > $img_max_width) {
            
srand((double)microtime()*1000000);
            
$number rand(10,100);

            
$inp_string "<a href=\"javascript:toggle_imgview('bigimg".$number."')\"><img src=\"".$img_replacement."\" alt=\"VB: Image Not Found\" border=\"0\" /></a><br />\n";
            
$inp_string .= "<div style=\"position:absolute;display:none;z-index:1;width:".$img_width[0]."px;height:".$img_width[1]."px;\" id=\"bigimg".$number."\"><img src=\"".$link."\" border=\"0\" alt=\"\" /></div>\n";
    
            return 
$inp_string;
            
        } else return 
'<img src="' .  $link '" border="0" alt="" />';
    } else return 
'<strong>VB Error: Image Not Found</strong>';

Reply With Quote
Reply

Thread Tools

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 12:32 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.05561 seconds
  • Memory Usage 2,332KB
  • Queries Executed 27 (?)
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_code
  • (7)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
  • (1)pagenav_pagelink
  • (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_postinfo_query
  • fetch_postinfo
  • 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