forum.easy-joomla.org
14. 03. 2010 23:26 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
Neueste Beiträge
Easybook vorerst nicht mehr im Angebot von cybergurk 11. 03. 2010 07:41
Re: "Unable to report" in SpamLog; Array Bug von EasyFriend 09. 03. 2010 10:36
Re: EB2: Hack für weitere Benachrichtigungsadresse möglich ? von MicroSmurf 08. 03. 2010 17:02
News:
Tutorials/Anleitungen rund um Joomla! oder
Filmchen herunterladen
 

 
 
    Übersicht   Hilfe Suche Spenden/Sponsors Impressum/Imprint Downloads Hauptseite Projects Tutorials Einloggen Registrieren  
Subject Statistics
Thema: Disable input form name Replies: 1 posts
Gelesen 1329 mal 0 Mitglieder und 1 Gast betrachten dieses Thema.
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: Disable input form name  (Gelesen 1329 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
RequestNL
Newbie
*
OfflineOffline

Registriert seit: 16.04.09
Beiträge: 2


Profil anzeigen
« am: 16. 04. 2009 16:25 »

Hello guys,

I'm having a weird problem.. I'm trying to disable the input form from the name. Why? Because Easy Book automaticly puts the Username from Community Builder into the form and I want to use Easy Book as somekind of shoutbox. And I don't want people to change there name, because then people will post things under other names. So I already found out in wich script the post form is: components/com_easybook/views/entry/tmpl/form.php

When i open that, i found this line:

<tr>
      <td width='130'><?php echo JTEXT::_('IP address'); ?><span class='small'>*</span></td>
      <td><input type='text' name='gbiip' style='width:245px;' class='inputbox' value='<?php echo $this->entry->ip; ?>' disabled='disabled' /></td>
   </tr>
   <?php } ?>
   
   <tr>
      <td width='130'><?php echo JTEXT::_('Name'); ?><span class='small'>*</span></td>
      <td><input type='text' name='gbname' style='width:245px;' class='inputbox' value='<?php echo $this->entry->gbname; ?>' /></td>
   </tr>

As you can see, the script disables the IP form by typing: disabled='disabled', when i type this behind gbname, it seems to work.. I'd watched online, and i saw just as i hoped my username at the name field disabled.. I could not change it, perfect! But when i submit a post, the component asked my to fill in my name.. But it already was there? Strange! Can someone please help me, thx in advance!

Gr,
RequestNL

Gespeichert
RequestNL
Newbie
*
OfflineOffline

Registriert seit: 16.04.09
Beiträge: 2


Profil anzeigen
« Antworten #1 am: 16. 04. 2009 16:48 »

I've been searching for a week for the solution.. And after posting this topic i found m..

Solution:

Change it to:

<td><input onselect="return false" onmousedown="return false" type='text' name='gbname' style='width:245px;' class='inputbox' value='<?php echo $this->entry->gbname; ?>' /></td>

So just add: onselect="return false" onmousedown="return false"

l8r
Gespeichert
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  


Audiovisuelle Filmanleitungen hosted by all-inkl.com joomladirectory.net joomla.org jahoart.eu joomla-in-berlin.de Joomla Toplist Spende/Donate
easy-joomla.org joomla.de webjobber.de snipersister-de xing.de
joomlacode.org joomlaos.de joomla24.com nik-it.de

Powered by MySQLPowered by PHP Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC Prüfe XHTML 1.0Prüfe CSS
Seite erstellt in 0.242 Sekunden mit 23 Zugriffen.