Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 5
Seite [1]
Deadmouse


Beginner




Beiträge: 11
# Thema - 28.01.2013 um 10:22 Uhr
I'm having a shoutbox on my site but people can change their name in the shoutbox.
I had on an other site same problem and I put a read only behind the code but I dont know where to find that in clansphere.
Someone can help me?
this is the website
Inaktiv
ev0lution


Geekboy





Beiträge: 1103
# Antwort: 1 - 28.01.2013 um 10:52 Uhr
just use the type="hidden" in your themes shoutbox/create.tpl


------------------


Inaktiv
|
Deaktiviert

Supporter
Supporter



Beiträge: 1287
# Antwort: 2 - 28.01.2013 um 13:41 Uhr
Indeed. Either hidden or read only. But read only still allows to modify the name, same for the hidden. To remove this input you had to modify the /mod/shoutbox/create.php that it reads the name over the accountid.


Inaktiv
|
Deadmouse
Thread-Ersteller


Beginner




Beiträge: 11
# Antwort: 3 - 28.01.2013 um 18:20 Uhr
ok so this is my create.tpl ( I dont have create.php?)
behind what line I need to put it?
<table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width}">
<tr>
<td class="headb">{lang:mod_name} - {lang:submit}</td>
</tr>
<tr>
<td class="leftc">{lang:body}</td>
</tr>
</table>
<br />
<form method="post" id="shoutbox_add" action="{form:url}">
<table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width}">
<tr>
<td class="leftc">{icon:personal} {lang:nick} *</td>
<td class="leftb"><input type="text" name="sh_nick" value="{form:name}" />
</td>
</tr>
<tr>
<td class="leftc">{icon:kate} {lang:message} *</td>
<td class="leftb"><textarea class="rte_abcode" name="sh_text2" cols="10" rows="5" id="sh_text2">{form:message}</textarea>
</td>
</tr>
{form:show}
<tr>
<td class="leftc">{icon:ksysguard} {lang:options}</td>
<td class="leftb"><input type="hidden" name="uri" value="{form:url}" />
<input type="submit" name="submit" value="{lang:submit}" />
</td>
</tr>
</table>
</form>


Inaktiv
|
ev0lution


Geekboy





Beiträge: 1103
# Antwort: 4 - 28.01.2013 um 18:38 Uhr
sry ment the navlist.tpl in same folder

 
1.
1. / 2. / ... 
  <input type="hidden" name="sh_nick" value="{form:nick}" onfocus="if(this.value=='Nick') this.value=''" onblur="if(this.value=='')this.value='Nick'" maxlength="40" size="15" />


in "form loop"


------------------


Inaktiv
|
Deadmouse
Thread-Ersteller


Beginner




Beiträge: 11
# Antwort: 5 - 29.01.2013 um 15:47 Uhr
ok its fixed now
Thanks for the quick reactions all!


Inaktiv
|
Antworten: 5
Seite [1]


Sie müssen sich registrieren, um zu antworten.