Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-12-2000 Last Update: Never Installs: 0
 
No support by the author.

Has anyone created some type of hack that will search the post table for all signs of "smile.gif" "biggrin.gif" etc and replace it with the necessary keyboard stroke? I converted from ubb and my images arent in the same directory and I just need an easy way to replace all the [ img ]http://www.extremeforums.com/smile.gif[ /img ] tags with ": )"

Anyone done such a thing?

~Chris

[Edited by TechTalk on 08-11-2000 at 10:21 PM]

Show Your Support

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

Comments
  #2  
Old 08-12-2000, 02:23 AM
Guest
 
Posts: n/a
Default

Umm... I'm staring at the import code now, and that's part is fine. As a matter of fact, I know it worked for me...

example line:
Code:
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/smile.gif\">",":)",$htmlcode);
You must've inputted the the NonCGI URL incorrectly...
Reply With Quote
  #3  
Old 08-12-2000, 02:59 AM
Guest
 
Posts: n/a
Default

Umm i can assure you that I inputed the NonCGIURL correctly or vbulletin would have never found all my threads...

Either way I guess im still going to need a fix for this Do you have any ideas? I have already narrowed it down and found out how many posts have the incorrect link in there by creating a little page that selects from the database where pagetext contains "smile.gif" ..etc.

Here is is:
http://www.extremeforums.com/include/killsmiles.php

The number is a little off and this is the long way of doing it...thats why I was wondering if anyone has / could create this ?

Thanks
~Chris
Reply With Quote
  #4  
Old 08-12-2000, 03:07 AM
Guest
 
Posts: n/a
Default

Oh and in refrence to your comment above.....

I too am staring at the import code. Check out this line:
Code:
  // do code tags
  $htmlcode=str_replace("<BLOCKQUOTE><font size=\"1\" face=\"arial,helvetica\">code:</font><HR><pre>","[ code ]",$htmlcode);
  $htmlcode=str_replace("</pre><HR></BLOCKQUOTE>","[ / code ]",$htmlcode);
In order for that to work on my site it would have had to read:

Code:
  // do code tags
  $htmlcode=str_replace("<BLOCKQUOTE><font size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">code:</font><HR><pre>","[ code ]",$htmlcode);
  $htmlcode=str_replace("</pre><HR></BLOCKQUOTE>","[ /code ]",$htmlcode);


Is there any way to get a fix for this too? Now all my pots with code look like this:
http://www.extremeforums.com/forums/...p?threadid=220

~Chris

[Edited by TechTalk on 08-12-2000 at 12:09 AM]
Reply With Quote
  #5  
Old 08-12-2000, 05:46 AM
Guest
 
Posts: n/a
Default

OK i fixed a little something up but I think i goofed it. Could someone please have a look? Its does the find/replace just fine but it fills every row with the same info! Not good.....

Here it is:
http://www.extremeforums.com/include/killsmilie.phps

Ed do you think you could have a look?

Thanks
~Chris
Reply With Quote
  #6  
Old 08-16-2000, 05:57 PM
Guest
 
Posts: n/a
Default

Could someone please let me know if they see anything wrong with the above code? I would hate to destroy my site!

Thanks
~Chris
Reply With Quote
  #7  
Old 08-16-2000, 06:23 PM
Guest
 
Posts: n/a
Default

I just added a redirect code in my .htaccess for the old smilies directory to the new one - works like a charm!
Reply With Quote
  #8  
Old 08-16-2000, 07:04 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Me2Be
I just added a redirect code in my .htaccess for the old smilies directory to the new one - works like a charm!
Ouch! That's got to be killing your server though Each hit for an image is making multiple requests to your web server processes...

-Chris
Reply With Quote
  #9  
Old 08-16-2000, 07:38 PM
Guest
 
Posts: n/a
Default

Hasn't affected it that much (so you've seen). I actually started doing it about a week ago, and I haven't seen any change in performance whatsoever. Since these are only for old posts, it isn't that often.
Reply With Quote
  #10  
Old 08-16-2000, 08:11 PM
Guest
 
Posts: n/a
Default

Oh ok, I guess that's true, it is only the old posts, so that redirect will be less and less as time goes by.

-Chris
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 01:00 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.07823 seconds
  • Memory Usage 2,266KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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
  • 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