Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2005, 09:28 PM
zahn zahn is offline
 
Join Date: Apr 2005
Location: Trollh?ttan, Sweden.
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Smilies replacing text problem...

Hi...
I wan't to know if theres a way to fix my problem with smilies that are replacing text it shouldn't.
the problem:
I don't whan't smilies to replace text unless there's a 'space' before the smiliecode, here's an example:
if i have a timestamp like 12:08:31 posted a smilie will repleace it like 12:0[smilie]31.
my wish i that a smilie will replace only when theres a 'space' between any other text and the smilie code.

I have read this page, but it looks like it will not do what I want.
https://vborg.vbsupport.ru/showthrea...hlight=smilies

sorry I missed the notice about where I'm supposed to ask this. my bad.
Reply With Quote
  #2  
Old 04-26-2005, 10:24 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just change the smileys code to something different. Smiley codes should be either
:smileycode:
or, what is even better,
[-smileycode-]
Reply With Quote
  #3  
Old 04-26-2005, 11:20 PM
zahn zahn is offline
 
Join Date: Apr 2005
Location: Trollh?ttan, Sweden.
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
Just change the smileys code to something different. Smiley codes should be either
:smileycode:
or, what is even better,
[-smileycode-]
well how about no!
why do you think I even posted here? 'couse I don't wan't to change the smileycode.
Reply With Quote
  #4  
Old 04-27-2005, 12:46 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no other solution.
Reply With Quote
  #5  
Old 04-27-2005, 01:54 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zahn
well how about no!
why do you think I even posted here? 'couse I don't wan't to change the smileycode.
Nice attitude, did you want help ?
Reply With Quote
  #6  
Old 04-27-2005, 09:14 AM
zahn zahn is offline
 
Join Date: Apr 2005
Location: Trollh?ttan, Sweden.
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
There is no other solution.
well why do not phpBB have this problem then? We migrated from phpBB to vBulletin and got this little anoying problem.
Quote:
Originally Posted by Paul M
Nice attitude, did you want help ?
Off course I wan't help, I'm just tired of people that don't belive you have though of the obvious before you ask a quiestion.
Reply With Quote
  #7  
Old 04-27-2005, 09:24 AM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you should have posted that you didnt want to change the smilie code. Then others wont waste your time with the obvious fix.
Reply With Quote
  #8  
Old 04-27-2005, 09:50 AM
zahn zahn is offline
 
Join Date: Apr 2005
Location: Trollh?ttan, Sweden.
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mholtum
Maybe you should have posted that you didnt want to change the smilie code. Then others wont waste your time with the obvious fix.
true... and next time I will think of my maners...
Reply With Quote
  #9  
Old 04-30-2005, 05:33 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so in the end do we have a fix?
Reply With Quote
  #10  
Old 04-30-2005, 08:45 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The original poster has dissappeared so I did not post the solution.

Since you want it, here you go.

In ./includes/functions_bbcodeparse.php, find:

PHP Code:
if (!$dohtml)
{
    
$smilie_find[] = htmlspecialchars_uni(trim($smilie['smilietext']));
}
else
{
    
$smilie_find[] = trim($smilie['smilietext']);

Replace with:

PHP Code:
if (!$dohtml)
{
    
$smilie_find[] = " ".htmlspecialchars_uni(trim($smilie['smilietext']))." ";
}
else
{
    
$smilie_find[] = " ".trim($smilie['smilietext'])." ";

P.S. I would suggest that Jelsoft adds this into his next vBulletin release....
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:01 PM.


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.04467 seconds
  • Memory Usage 2,256KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)postbit
  • (10)postbit_onlinestatus
  • (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_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