vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Issue with Commas (https://vborg.vbsupport.ru/showthread.php?t=59054)

Super Shadow 12-09-2003 01:09 AM

Issue with Commas
 
I'm having a bit of a problem with separating users on the "Who's Online", "Who was online today" and "Users Browsing This Forum" list amongst others. It seems, anywhere the forum (as in, not made by a poster) PHP is supposed to insert a comma as 'Word, words.', it inserts it as Word , words.'

Is there any way I can fix this to have only one space AFTER the comma?

If you think you can help, but aren't exactly clear as to what I'm saying, look on www.FFEntity.com/forums and find "Who was online today" at the bottom of Forum. You should see the problem in the list of users.

Dean C 12-09-2003 10:49 AM

I believe they call the comma in the eval function - you may have to edit the source a little bit :)

Super Shadow 12-09-2003 06:26 PM

*PHP zero*

Would you be so kind as to pinpoint me? Files, maybe? SQL queries? Thanks ^_^

g-force2k2 12-15-2003 03:17 PM

There shouldn't be a space before unless I am mistaken, but if you're looking for the general area the commas are placed when eval'ing the templates. For the whos online on the index it would be located in the index.php file and here's the general line that you would be looking for.

PHP Code:

      eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";"); 

If you look at the $activeusers variable to the right you see the comman then space before the gettemplate function is preformed that is where you comma and space are added.

Regards,
g-force2k2


All times are GMT. The time now is 10: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.01034 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete