|
PHP Support Topic
|
|
Topic Started: Apr 5 2005, 05:42 PM (2,071 Views)
|
|
Seth
|
May 12 2005, 10:31 PM
Post #46
|
- Posts:
- 18,984
- Group:
- Members
- Member
- #100
- Joined:
- November 17, 2002
|
- dbzlotrfan
- May 12, 2005 09:27 PM
what is a:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
? I know what the parse error is, I mean the T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING. the line of code that's giving me that is this: $lang['mod_bansel'] = "Miembros inhabilitados";
That's probably a sign that you forgot a quote mark earlier. That line is correct.
|
|
|
| |
|
dbzlotrfan
|
May 13 2005, 11:15 AM
Post #47
|
- Posts:
- 7,447
- Group:
- Members
- Member
- #12,934
- Joined:
- February 16, 2004
|
quote mark? you mean ' or " ? well the file is in Spanish it's a spanish translantion of a shout box.
|
|
|
| |
|
Ali-ZNS
|
May 13 2005, 09:52 PM
Post #48
|
- Posts:
- 4,137
- Group:
- Members
- Member
- #10,091
- Joined:
- December 24, 2003
|
- dbzlotrfan
- May 13, 2005 10:15 AM
quote mark? you mean ' or " ? well the file is in Spanish it's a spanish translantion of a shout box.
' or " will both work correctly in PHP.
Ali
|
|
|
| |
|
dbzlotrfan
|
May 13 2005, 10:01 PM
Post #49
|
- Posts:
- 7,447
- Group:
- Members
- Member
- #12,934
- Joined:
- February 16, 2004
|
if you need me to I can post the 77 lines before that (or just from the $lang['add_ignore'] = "Agregar a lista ignorada";). I didn't code that file, I haven't coded any PHP files. all I can do in PHP is the hello world code, maybe print a number to the screen, I think a simple IF (else) statment and that's it. I may know how to say some words in spanish like hablar, caminar, correr, subir, hablo, el, en, o (or), and other basic thing but I can't can't speak it flunitly. and since I can't can't speak it, and I can't really code PHP I didn't create the file. But what is a T_(insert something here) if anyone can tell me.
|
|
|
| |
|
Jory
|
May 14 2005, 11:18 AM
Post #50
|
- Posts:
- 3,194
- Group:
- Members
- Member
- #41,171
- Joined:
- January 12, 2005
- I'm Browsing With
- Firefox
- My Board URL
- http://zb.jorygeerts.com/
|
I have those a lot. Don't really know what it means  Could you like put the whole file in a .txt and give us a link to that or something? (If you put it all in a post here the scrollbar becomes to long )
|
|
|
| |
|
dbzlotrfan
|
May 15 2005, 01:49 AM
Post #51
|
- Posts:
- 7,447
- Group:
- Members
- Member
- #12,934
- Joined:
- February 16, 2004
|
Here's 80 lines of the shoutbox code (spanish):
- Code:
-
<?php $lang['add_ignore'] = "Agregar a lista ignorada"; $lang['add_saved'] = "Agregar anuncio"; $lang['all_time_top'] = "Lista de anunciadores"; $lang['ament'] = "Anuncio"; $lang['are_you_sure'] = "¿Estás seguro?"; $lang['ays_del_shout'] = "¿Estás seguro que deseas borrar este anuncio?"; $lang['ays_losedata'] = "¿Estás seguro? Perderás datos no guardados."; $lang['back_to'] = "Regresar a"; $lang['back_to_saved'] = "Regresar a anuncios guardados"; $lang['ban_member'] = "Prohibir"; $lang['banned_shoutbox'] = "Tienes prohibido usar el cuadro de anuncios."; $lang['bbc_after'] = "Mostramos"; $lang['bbc_before'] = "Tu tipo"; $lang['bbc_ex1'] = "Este es texto simple"; $lang['bbc_ex2'] = "¡Click aquí!"; $lang['bbc_intro'] = "<strong>¿Qué es BB Code?</strong><br /><br />BB Code es un camino fácil y rápido de agregar efectos o formatos a tus mensajes.<br />es usado en un similar formato que el HTML los cuales te resultan familiares.<br />Debajo tienes una guía rápida de los más comunes usos del BB Code."; $lang['bbc_title'] = "BB Code"; $lang['bbcodes'] = "BBCodes"; $lang['bbcodes_allowed'] = "BBCodes están <i>permitidos</i><br>"; $lang['bbcodes_notallowed'] = "BBCodes <i>no estén permitidos</i><br>"; $lang['board_offline'] = "El panel está actualmente Offline"; $lang['by'] = "Por"; $lang['checkall'] = "Revisar todo"; $lang['clear'] = "Limpiar"; $lang['clear_shout'] = "Limpiar anuncio"; $lang['click_smilie'] = "Emoticonos seleccionados"; $lang['close'] = "Cerrar"; $lang['close_sets'] = "cerrar ajustes"; $lang['close_window'] = "Cerrar ventana"; $lang['current_online'] = "Actuales usuarios en línea"; $lang['date'] = "Fecha"; $lang['del_selected'] = "Eliminar seleccionado"; $lang['del_shout'] = "Eliminar"; $lang['delete'] = "Eliminar"; $lang['dsb_mod_edit_shout'] = "D2-Shoutbox Mod: Editar Shout #"; $lang['dsb_mod_opts'] = "Opciones de D2-Shoutbox Moderator"; $lang['dsb_online_mem'] = "Actuales miembros en línea"; $lang['dsb_search'] = "Buscar el D2-Shoutbox"; $lang['dsb_shout_preview'] = "Ver Shout"; $lang['dsb_stats'] = "Estadísticas de D2-Shoutbox"; $lang['dshoutbox'] = "D2-Shoutbox"; $lang['edit'] = "Editar"; $lang['edit_sb_sets'] = "Editar ajustes de D2-Shoutbox"; $lang['edit_shout'] = "Editar anuncio"; $lang['edited'] = "Editado"; $lang['editing_shout'] = "Editando anuncio"; $lang['email'] = "Dirección de e-mail"; $lang['emo_img'] = "Imagen"; $lang['emo_title'] = "Emoticonos"; $lang['emo_type'] = "Código"; $lang['error'] = "¡Error!"; $lang['expand'] = "Expandir"; $lang['expand_all'] = "Expandir todo"; $lang['export_shouts'] = "anuncios exportados del D2-Shoutbox"; $lang['faster'] = "Rápido"; $lang['float'] = "Flotar"; $lang['flood_control'] = "Control de flote está permitido. Por favor espera antes de agregar un anuncio otra vez."; $lang['guest'] = "Invitado"; $lang['html_allowed'] = "Código HTML está <i>permitido</i><br>"; $lang['html_notallowed'] = "Código HTML <i>no está permitido</i><br>"; $lang['iframe_shout'] = "¡Agregar anuncio ahora!"; $lang['ignore'] = "Ignorar"; $lang['ignore_confirm'] = "¿Estás seguro de querer ignorar este anunciador?"; $lang['latest_gshouts'] = "Ultimos anuncios del SSEvo "; $lang['load'] = "Subir"; $lang['load_shout'] = "Subir anuncios"; $lang['login'] = "Entrar"; $lang['login_to_post'] = "Entrar un anuncio al cuadro de anuncios"; $lang['max_shout_length'] = "Tu anuncio es más largo que el tamaño permitido. Por favor disminúyelo un poco."; $lang['member_doesnt_exist'] = "El anunciador que proporcionaste parece no existir"; $lang['member_group'] = "Grupo de miembros"; $lang['menu'] = "Menu"; $lang['mod_already_banned'] = "Mod Error: ¡Usuario está inhabilitado!"; $lang['mod_already_unbanned'] = "Mod Error: ¡Usuario ya no está inhabilitado!; $lang['mod_bansel'] = "Miembros inhabilitados"; $lang['mod_color'] = "Color"; $lang['mod_delsel'] = "Eliminar seleccionado";
Sorry for a (late)/(long) post.
|
|
|
| |
|
Jeremy
|
May 15 2005, 03:31 AM
Post #52
|
- Posts:
- 2,698
- Group:
- Members
- Member
- #560
- Joined:
- February 10, 2003
|
The problem is on the line before that one: $lang['mod_already_unbanned'] = "Mod Error: ¡Usuario ya no está inhabilitado!;
You left off the double-quote on the end. It should be: $lang['mod_already_unbanned'] = "Mod Error: ¡Usuario ya no está inhabilitado!";
Edit: Your code would've been easier to sift through if put inside the [ code ] BBCode. I even attempted to do that for you, and realized there was no damn edit button for me, anymore. <_<
|
|
|
| |
|
dbzlotrfan
|
May 16 2005, 11:52 PM
Post #53
|
- Posts:
- 7,447
- Group:
- Members
- Member
- #12,934
- Joined:
- February 16, 2004
|
Anyone know i'd fix this: Fatal error: Cannot instantiate non-existent class: skin_tutorials in /home/compjus6/public_html/tsfa/sources/functions.php on line 601
return new $name();
is the line. if you need more code:
- Code:
-
function load_template( $name, $id='' ) { global $ibforums, $DB; $tags = 1; if ( $ibforums->vars['safe_mode_skins'] == 0 AND $ibforums->vars['safe_mode'] == 0 ) { //----------------------------------------- // Simply require and return //----------------------------------------- if ( $name != 'skin_global') { if ( ! in_array( 'skin_global', $ibforums->loaded_templates ) ) { require_once( CACHE_PATH."skin_cache/cacheid_".$ibforums->skin['_skincacheid']."/skin_global.php" ); $ibforums->skin_global = new skin_global(); $ibforums->loaded_templates[] = 'skin_global'; } $ibforums->loaded_templates[] = $name; require_once( CACHE_PATH."skin_cache/cacheid_".$ibforums->skin['_skincacheid']."/".$name.".php" ); return new $name(); } else { if ( $name == 'skin_global' ) { $ibforums->loaded_templates[] = 'skin_global'; require_once( CACHE_PATH."skin_cache/cacheid_".$ibforums->skin['_skincacheid']."/skin_global.php" ); $ibforums->skin_global = new skin_global(); return; } else { $ibforums->loaded_templates[] = $name; require_once( CACHE_PATH."skin_cache/cacheid_".$ibforums->skin['_skincacheid']."/".$name.".php" ); return new $name(); } } } else { //----------------------------------------- // We're using safe mode skins, yippee // Load the data from the DB //----------------------------------------- $skin_global = ""; $other_skin = ""; $ibforums->skin['_type'] = 'Database Skins'; if ( $ibforums->skin_global == "" and $name != 'skin_global') { //----------------------------------------- // Skin global not loaded... //----------------------------------------- $ibforums->loaded_templates[] = $name; $ibforums->loaded_templates[] = 'skin_global'; $DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates_cache', 'where' => "template_set_id=".$ibforums->skin['_skincacheid']." AND template_group_name IN ('skin_global', '$name')" ) ); $DB->simple_exec(); while ( $r = $DB->fetch_row() ) { if ( $r['template_group_name'] == 'skin_global' ) { $skin_global = $r['template_group_content']; } else { $other_skin = $r['template_group_content']; } } eval($skin_global); $ibforums->skin_global = new skin_global(); } else { //----------------------------------------- // Skin global is loaded.. //----------------------------------------- if ( $name == 'skin_global' and in_array( 'skin_global', $ibforums->loaded_templates ) ) { return; } //----------------------------------------- // Load the skin, man //----------------------------------------- $ibforums->loaded_templates[] = $name; $DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates_cache', 'where' => "template_set_id=".$ibforums->skin['_skincacheid']." AND template_group_name='$name'" ) ); $DB->simple_exec(); $r = $DB->fetch_row(); $other_skin = $r['template_group_content']; } eval($other_skin); if ( $name == 'skin_global' ) { $ibforums->skin_global = new skin_global(); } else { return new $name(); } } }
or you could open up source/functions (if you have the file(s) and go to line 471 (or near their).
O and thanks for that last thing. only problem is the shoutbox isn't in spanish now, the rest of the forum is though.
|
|
|
| |
| 1 user reading this topic (1 Guest and 0 Anonymous)
|