Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 56 users online :: 0 Registered, 0 Hidden and 56 Guests :: 1 Bot
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Complex form of New Topic Function
Page 2 of 3 • Share
Page 2 of 3 • 1, 2, 3
First topic message reminder :
Hello,
So on my forum i have installed a javascript where by adding an image link to the description it makes it an image and views it to the topics preview list. Now some members don't know that and doesn't matter how many times i tell them how to do that they seem not to understand at all.
So basically what i want is a simple form that will be activated once you press the New Topic button in the News Forum.
That form will include a Title field (that will be filled i guess automatically afterwards) and the title prefixes next to that so they can select the correct prefix, an Image field where members will add the link of the image for the topic and then the image will be placed in the description field of the topic and added to the topic also and the News Text where members will add the text of the news they found.
I will give you an example so you guys understand better what i want.
Here we are:
These are the main 4 fields i want to be shown. So you add a title for your topic, it adds it there. You select a Prefix it adds it (based on my codes i already have there), then you add an image just once, and it adds the image as a link to the description field and then as an image
to the editor and a last field that would be a text zone for the news text.
Once they edit that the Send button will glow and then they can post the topic.
Will that be easy to create?
The forum is:
http://www.informationforumgr.com
version is phpBB3.
Thanks for any help.
Hello,
So on my forum i have installed a javascript where by adding an image link to the description it makes it an image and views it to the topics preview list. Now some members don't know that and doesn't matter how many times i tell them how to do that they seem not to understand at all.
So basically what i want is a simple form that will be activated once you press the New Topic button in the News Forum.
That form will include a Title field (that will be filled i guess automatically afterwards) and the title prefixes next to that so they can select the correct prefix, an Image field where members will add the link of the image for the topic and then the image will be placed in the description field of the topic and added to the topic also and the News Text where members will add the text of the news they found.
I will give you an example so you guys understand better what i want.
Here we are:
These are the main 4 fields i want to be shown. So you add a title for your topic, it adds it there. You select a Prefix it adds it (based on my codes i already have there), then you add an image just once, and it adds the image as a link to the description field and then as an image
|
Once they edit that the Send button will glow and then they can post the topic.
Will that be easy to create?
The forum is:
http://www.informationforumgr.com
version is phpBB3.
Thanks for any help.
@Ange Tuteur This works like a charm. These past days i posted like 40 topics so easy it just makes my life easier. My only concern is that i'll have to change the textzone part to an editor that will contain only bold italic and underline just to make some parts of the news better..
If we could do that i wouldn't say no!
Here's what i use at the moment:
If we could do that i wouldn't say no!
Here's what i use at the moment:
- Spoiler:
- HTML
- Code:
<style>
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="71">Ειδήσεις Ελλάδος</option>
<option value="44">Ειδήσεις ανά το Παγκόσμιο</option>
<option value="7">Αθλητικές Ειδήσεις</option>
<option value="39">Περίεργα</option>
<option value="25">Τεχνολογικές Ειδήσεις</option>
<option value="43">Κινητά - Smartphones</option>
<option value="38">Laptop - Tablets</option>
<option value="55">Πολυμηχανήματα</option>
<option value="56">Κονσόλες & Παιχνίδια για Κονσόλες</option>
</select><br /><Br /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="ΕΛΛΑΔΑ ">ΕΛΛΑΔΑ</option>
<option value="ΚΟΣΜΟΣ ">ΚΟΣΜΟΣ</option>
<option value="ΑΘΛΗΤΙΚΑ ">ΑΘΛΗΤΙΚΑ</option>
<option value="ΠΕΡΙΕΡΓΑ ">ΠΕΡΙΕΡΓΑ</option>
<option value="ΤΕΧΝΟΛΟΓΙΑ ">ΤΕΧΝΟΛΟΓΙΑ</option>
<option value="SMARTPHONES ">SMARTPHONES</option>
</select> <br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="textmsg" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος πηγής ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Ονομασία πηγής ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
msg = document.getElementById('textmsg'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
err = '';
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!msg.value) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο πηγής';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία πηγής';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[I-F-GR]' + msg.value + '\n\n\n\n[b][color=#006600]* Πηγή:[/color][/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/I-F-GR]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
JS:- Code:
$(function(){
$('a[href^="/post?f=71&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=44&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=7&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=39&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=25&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=43&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=38&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=55&mode=newtopic"]').attr("href","/h1-page");
});
$(function(){
$('a[href^="/post?f=56&mode=newtopic"]').attr("href","/h1-page");
});
Try replacing your HTML page code with this :
You can change the buttons by editing the toolbar variable :
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="71">Ειδήσεις Ελλάδος</option>
<option value="44">Ειδήσεις ανά το Παγκόσμιο</option>
<option value="7">Αθλητικές Ειδήσεις</option>
<option value="39">Περίεργα</option>
<option value="25">Τεχνολογικές Ειδήσεις</option>
<option value="43">Κινητά - Smartphones</option>
<option value="38">Laptop - Tablets</option>
<option value="55">Πολυμηχανήματα</option>
<option value="56">Κονσόλες & Παιχνίδια για Κονσόλες</option>
</select><br /><Br /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="ΕΛΛΑΔΑ ">ΕΛΛΑΔΑ</option>
<option value="ΚΟΣΜΟΣ ">ΚΟΣΜΟΣ</option>
<option value="ΑΘΛΗΤΙΚΑ ">ΑΘΛΗΤΙΚΑ</option>
<option value="ΠΕΡΙΕΡΓΑ ">ΠΕΡΙΕΡΓΑ</option>
<option value="ΤΕΧΝΟΛΟΓΙΑ ">ΤΕΧΝΟΛΟΓΙΑ</option>
<option value="SMARTPHONES ">SMARTPHONES</option>
</select> <br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος πηγής ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Ονομασία πηγής ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
err = '';
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!msg.value) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο πηγής';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία πηγής';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[I-F-GR]' + msg.value + '\n\n\n\n[b][color=#006600]* Πηγή:[/color][/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/I-F-GR]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Gras",
"Italic" : "Italique",
"Underline" : "Souligne",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Centre",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Inserer une image",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Inserer",
"URL:" : "URL",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Largeur (optionnelle)",
"Height (optional):" : "Hauteur (optionnelle)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline,strike|left,center,right,justify|quote,code,faspoiler,fahide|image,link|removeformat,emoticon';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {":wouhou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/4274788354.gif",":bwi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/45347.png",":D": "http://2img.net/i/fa//i/smiles/icon_biggrin.png",":)": "http://2img.net/i/fa//i/smiles/icon_smile.gif",":(": "http://2img.net/i/fa//i/smiles/icon_sad.gif",":hello:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/hello.gif",":shock:": "http://2img.net/i/fa//i/smiles/icon_eek.gif",":?": "http://2img.net/i/fa//i/smiles/icon_confused.png","8)": "http://2img.net/i/fa//i/smiles/icon_cool.gif",":lol:": "http://2img.net/i/fa//i/smiles/icon_lol.gif",":x": "http://2img.net/i/fa//i/smiles/icon_mad.gif",":P": "http://2img.net/i/fa//i/smiles/icon_razz.gif",":oops:": "http://2img.net/i/fa//i/smiles/icon_redface.gif",":cry:": "http://2img.net/i/fa//i/smiles/icon_cry.gif",":evil:": "http://2img.net/i/fa//i/smiles/icon_evil.gif",":twisted:": "http://2img.net/i/fa//i/smiles/icon_twisted.gif",":mlc:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/dawa_.gif",";)": "http://2img.net/i/fa//i/smiles/icon_wink.gif",":redface:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/redface.gif",":!:": "http://2img.net/i/fa//i/smiles/icon_exclaim.gif",":?:": "http://2img.net/i/fa//i/smiles/icon_question.gif",":idea:": "http://2img.net/i/fa//i/smiles/icon_idea.png",":arrow:": "http://2img.net/i/fa//i/smiles/icon_arrow.gif",":neutral:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ascaso.png",":mrgreen:": "http://2img.net/i/fa//i/smiles/icon_mrgreen.png",":laule:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ddr555.gif",":face:": "http://2img.net/i/fa//i/smiles/fresse.png",":dawa:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/icon10.gif",":omg:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/const.gif",":mw�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/disgust.gif",":suspect:": "http://2img.net/i/fa//i/smiles/suspect.gif",":heart:": "http://2img.net/i/fa//i/smiles/herz.png",":/": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ohwell.gif",":no": "http://2img.net/i/fa//i/smiles/kopfschuettel.gif",":love:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/love.gif",":whistle:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/whistle.gif",":grat:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/columbo2.gif",":cyclops:": "http://2img.net/i/fa//i/smiles/icon_cyclops.gif",":clown:": "http://2img.net/i/fa//i/smiles/icon_clown.png",":pirat:": "http://2img.net/i/fa//i/smiles/icon_pirat.png",":tongue:": "http://2img.net/i/fa//i/smiles/icon_tongue.png",":silent:": "http://2img.net/i/fa//i/smiles/icon_silent.png",":pr:": "http://2img.net/i/fa//i/smiles/icon_profileright.png",":pl:": "http://2img.net/i/fa//i/smiles/icon_profileleft.png",":pale:": "http://2img.net/i/fa//i/smiles/icon_pale.gif",":cool-blue:": "http://2img.net/i/fa//i/smiles/cool_blue.png",":alien:": "http://2img.net/i/fa//i/smiles/alien.png",":verygood:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/great.gif",":cat:": "http://2img.net/i/fa//i/smiles/icon_cat.png",":ashamed:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/oops.gif",":petrus:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/petrus75.gif",":bounce:": "http://2img.net/i/fa//i/smiles/icon_bounce.gif",":shaking:": "http://2img.net/i/fa//i/smiles/icon_shaking.gif",":roll:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/sarcasti.gif",":shaking2:": "http://2img.net/i/fa//i/smiles/icon_shaking2.gif",":gneu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/guish2.gif",":naughty:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/naughty.gif",":batman:": "http://2img.net/i/fa//i/smiles/icon_batman.png",":dwarf:": "http://2img.net/i/fa//i/smiles/icon_dwarf.png",":rambo:": "http://2img.net/i/fa//i/smiles/icon_rambo.png",":spamafote:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/mouais.gif",":hockey:": "http://2img.net/i/fa//i/smiles/icon_hockey.png",":confused:": "http://2img.net/i/fa//i/smiles/confused.png",":affraid:": "http://2img.net/i/fa//i/smiles/affraid.gif",":bball:": "http://2img.net/i/fa//i/smiles/icon_basketball.gif",":cheers:": "http://2img.net/i/fa//i/smiles/icon_cheers.png",":bom:": "http://2img.net/i/fa//i/smiles/bom.png",":drunken:": "http://2img.net/i/fa//i/smiles/drunken_smilie.png",":sleep:": "http://2img.net/i/fa//i/smiles/sleep.gif",":sunny:": "http://2img.net/i/fa//i/smiles/icon_sunny.png",":albino:": "http://2img.net/i/fa//i/smiles/icon_albino.png",":pff:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/brigade_.gif",":santa:": "http://2img.net/i/fa//i/smiles/icon_santa.png",":rendeer:": "http://2img.net/i/fa//i/smiles/icon_rendeer.png",":farao:": "http://2img.net/i/fa//i/smiles/icon_farao.png",":king:": "http://2img.net/i/fa//i/smiles/icon_king.png",":queen:": "http://2img.net/i/fa//i/smiles/icon_queen.png",":joker:": "http://2img.net/i/fa//i/smiles/icon_joker.png",":jocolor:": "http://2img.net/i/fa//i/smiles/icon_jokercolor.png",":geek:": "http://2img.net/i/fa//i/smiles/icon_geek.png",":scratch:": "http://2img.net/i/fa//i/smiles/icon_scratch.png",":salut:": "http://2img.net/i/fa//i/smiles/icon_salut.gif",":study:": "http://2img.net/i/fa//i/smiles/icon_study.png",":elephant:": "http://2img.net/i/fa//i/smiles/icon_elephant.png",":thumleft:": "http://2img.net/i/fa//i/smiles/icon_thumleft.png",":thumright:": "http://2img.net/i/fa//i/smiles/icon_thumright.png",":thumbdown:": "http://2img.net/i/fa//i/smiles/icon_thumbdown.png",":smurfin:": "http://2img.net/i/fa//i/smiles/icon_smurfin.png",":smurf:": "http://2img.net/i/fa//i/smiles/icon_smurf.png",":brilsmurf:": "http://2img.net/i/fa//i/smiles/icon_brilsmurf.png",":bigsmurf:": "http://2img.net/i/fa//i/smiles/icon_bigsmurf.png",":flower:": "http://2img.net/i/fa//i/smiles/icon_flower.png",":afro:": "http://2img.net/i/fa//i/smiles/icon_rr.png",":lol!:": "http://2img.net/i/fa//i/smiles/lol.gif",":rock:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/170788.gif",":luv:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/105796.gif",":kiss:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/690335.gif",":guitar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/174352.gif",":bye:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/460159.gif",":banana:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/281663.gif",":groar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/8938.gif",":fufufu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/103182.gif",":loul:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/570385.gif",":beu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/349163.png",":h�h�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/66991.gif",":)):": "http://r29.imgfast.net/users/2912/19/22/63/smiles/910268.png",":loove:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/506755.png",":ouou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/398698.png",":mwii:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/78754.png",":huhohi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/943482.png",":TT:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/465297.png",":��:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/35815.png",":...:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/306531.png",":add:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/644535217.png",":edit:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1005357294.png",":sync:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1995700125.gif",":perms:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2292716413.png",":delete:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2343271778.png",":rose:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2084913611.gif",":0:-D:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1852325475.gif",":~1~:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/3934203586.gif",":grrr!!!!!:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/969538151.gif",":zzzz:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1695301895.gif"};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
You can change the buttons by editing the toolbar variable :
- Code:
var toolbar = 'bold,italic,underline,strike|left,center,right,justify|quote,code,faspoiler,fahide|image,link|removeformat,emoticon';
Okay so i used this now:
But by using this i tried to send a new topic and it says that i haven't entered the news text of the form.. :/ Even though i entered a text there it says that there's nothing entered there..
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(2), .sceditor-group:nth-child(3), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8) {
display: none;
}
.sceditor-group:nth-child(1) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="71">Ειδήσεις Ελλάδος</option>
<option value="44">Ειδήσεις ανά το Παγκόσμιο</option>
<option value="7">Αθλητικές Ειδήσεις</option>
<option value="39">Περίεργα</option>
<option value="25">Τεχνολογικές Ειδήσεις</option>
<option value="43">Κινητά - Smartphones</option>
<option value="38">Laptop - Tablets</option>
<option value="55">Πολυμηχανήματα</option>
<option value="56">Κονσόλες & Παιχνίδια για Κονσόλες</option>
</select><br /><Br /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="ΕΛΛΑΔΑ ">ΕΛΛΑΔΑ</option>
<option value="ΚΟΣΜΟΣ ">ΚΟΣΜΟΣ</option>
<option value="ΑΘΛΗΤΙΚΑ ">ΑΘΛΗΤΙΚΑ</option>
<option value="ΠΕΡΙΕΡΓΑ ">ΠΕΡΙΕΡΓΑ</option>
<option value="ΤΕΧΝΟΛΟΓΙΑ ">ΤΕΧΝΟΛΟΓΙΑ</option>
<option value="SMARTPHONES ">SMARTPHONES</option>
</select> <br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος πηγής ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Ονομασία πηγής ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
err = '';
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!msg.value) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο πηγής';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία πηγής';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[I-F-GR]' + msg.value + '\n\n\n\n[b][color=#006600]* Πηγή:[/color][/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/I-F-GR]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Centre",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Inserer une image",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Inserer",
"URL:" : "URL",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Largeur (optionnelle)",
"Height (optional):" : "Hauteur (optionnelle)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {":wouhou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/4274788354.gif",":bwi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/45347.png",":D": "http://2img.net/i/fa//i/smiles/icon_biggrin.png",":)": "http://2img.net/i/fa//i/smiles/icon_smile.gif",":(": "http://2img.net/i/fa//i/smiles/icon_sad.gif",":hello:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/hello.gif",":shock:": "http://2img.net/i/fa//i/smiles/icon_eek.gif",":?": "http://2img.net/i/fa//i/smiles/icon_confused.png","8)": "http://2img.net/i/fa//i/smiles/icon_cool.gif",":lol:": "http://2img.net/i/fa//i/smiles/icon_lol.gif",":x": "http://2img.net/i/fa//i/smiles/icon_mad.gif",":P": "http://2img.net/i/fa//i/smiles/icon_razz.gif",":oops:": "http://2img.net/i/fa//i/smiles/icon_redface.gif",":cry:": "http://2img.net/i/fa//i/smiles/icon_cry.gif",":evil:": "http://2img.net/i/fa//i/smiles/icon_evil.gif",":twisted:": "http://2img.net/i/fa//i/smiles/icon_twisted.gif",":mlc:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/dawa_.gif",";)": "http://2img.net/i/fa//i/smiles/icon_wink.gif",":redface:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/redface.gif",":!:": "http://2img.net/i/fa//i/smiles/icon_exclaim.gif",":?:": "http://2img.net/i/fa//i/smiles/icon_question.gif",":idea:": "http://2img.net/i/fa//i/smiles/icon_idea.png",":arrow:": "http://2img.net/i/fa//i/smiles/icon_arrow.gif",":neutral:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ascaso.png",":mrgreen:": "http://2img.net/i/fa//i/smiles/icon_mrgreen.png",":laule:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ddr555.gif",":face:": "http://2img.net/i/fa//i/smiles/fresse.png",":dawa:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/icon10.gif",":omg:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/const.gif",":mw�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/disgust.gif",":suspect:": "http://2img.net/i/fa//i/smiles/suspect.gif",":heart:": "http://2img.net/i/fa//i/smiles/herz.png",":/": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ohwell.gif",":no": "http://2img.net/i/fa//i/smiles/kopfschuettel.gif",":love:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/love.gif",":whistle:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/whistle.gif",":grat:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/columbo2.gif",":cyclops:": "http://2img.net/i/fa//i/smiles/icon_cyclops.gif",":clown:": "http://2img.net/i/fa//i/smiles/icon_clown.png",":pirat:": "http://2img.net/i/fa//i/smiles/icon_pirat.png",":tongue:": "http://2img.net/i/fa//i/smiles/icon_tongue.png",":silent:": "http://2img.net/i/fa//i/smiles/icon_silent.png",":pr:": "http://2img.net/i/fa//i/smiles/icon_profileright.png",":pl:": "http://2img.net/i/fa//i/smiles/icon_profileleft.png",":pale:": "http://2img.net/i/fa//i/smiles/icon_pale.gif",":cool-blue:": "http://2img.net/i/fa//i/smiles/cool_blue.png",":alien:": "http://2img.net/i/fa//i/smiles/alien.png",":verygood:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/great.gif",":cat:": "http://2img.net/i/fa//i/smiles/icon_cat.png",":ashamed:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/oops.gif",":petrus:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/petrus75.gif",":bounce:": "http://2img.net/i/fa//i/smiles/icon_bounce.gif",":shaking:": "http://2img.net/i/fa//i/smiles/icon_shaking.gif",":roll:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/sarcasti.gif",":shaking2:": "http://2img.net/i/fa//i/smiles/icon_shaking2.gif",":gneu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/guish2.gif",":naughty:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/naughty.gif",":batman:": "http://2img.net/i/fa//i/smiles/icon_batman.png",":dwarf:": "http://2img.net/i/fa//i/smiles/icon_dwarf.png",":rambo:": "http://2img.net/i/fa//i/smiles/icon_rambo.png",":spamafote:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/mouais.gif",":hockey:": "http://2img.net/i/fa//i/smiles/icon_hockey.png",":confused:": "http://2img.net/i/fa//i/smiles/confused.png",":affraid:": "http://2img.net/i/fa//i/smiles/affraid.gif",":bball:": "http://2img.net/i/fa//i/smiles/icon_basketball.gif",":cheers:": "http://2img.net/i/fa//i/smiles/icon_cheers.png",":bom:": "http://2img.net/i/fa//i/smiles/bom.png",":drunken:": "http://2img.net/i/fa//i/smiles/drunken_smilie.png",":sleep:": "http://2img.net/i/fa//i/smiles/sleep.gif",":sunny:": "http://2img.net/i/fa//i/smiles/icon_sunny.png",":albino:": "http://2img.net/i/fa//i/smiles/icon_albino.png",":pff:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/brigade_.gif",":santa:": "http://2img.net/i/fa//i/smiles/icon_santa.png",":rendeer:": "http://2img.net/i/fa//i/smiles/icon_rendeer.png",":farao:": "http://2img.net/i/fa//i/smiles/icon_farao.png",":king:": "http://2img.net/i/fa//i/smiles/icon_king.png",":queen:": "http://2img.net/i/fa//i/smiles/icon_queen.png",":joker:": "http://2img.net/i/fa//i/smiles/icon_joker.png",":jocolor:": "http://2img.net/i/fa//i/smiles/icon_jokercolor.png",":geek:": "http://2img.net/i/fa//i/smiles/icon_geek.png",":scratch:": "http://2img.net/i/fa//i/smiles/icon_scratch.png",":salut:": "http://2img.net/i/fa//i/smiles/icon_salut.gif",":study:": "http://2img.net/i/fa//i/smiles/icon_study.png",":elephant:": "http://2img.net/i/fa//i/smiles/icon_elephant.png",":thumleft:": "http://2img.net/i/fa//i/smiles/icon_thumleft.png",":thumright:": "http://2img.net/i/fa//i/smiles/icon_thumright.png",":thumbdown:": "http://2img.net/i/fa//i/smiles/icon_thumbdown.png",":smurfin:": "http://2img.net/i/fa//i/smiles/icon_smurfin.png",":smurf:": "http://2img.net/i/fa//i/smiles/icon_smurf.png",":brilsmurf:": "http://2img.net/i/fa//i/smiles/icon_brilsmurf.png",":bigsmurf:": "http://2img.net/i/fa//i/smiles/icon_bigsmurf.png",":flower:": "http://2img.net/i/fa//i/smiles/icon_flower.png",":afro:": "http://2img.net/i/fa//i/smiles/icon_rr.png",":lol!:": "http://2img.net/i/fa//i/smiles/lol.gif",":rock:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/170788.gif",":luv:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/105796.gif",":kiss:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/690335.gif",":guitar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/174352.gif",":bye:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/460159.gif",":banana:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/281663.gif",":groar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/8938.gif",":fufufu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/103182.gif",":loul:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/570385.gif",":beu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/349163.png",":h�h�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/66991.gif",":)):": "http://r29.imgfast.net/users/2912/19/22/63/smiles/910268.png",":loove:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/506755.png",":ouou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/398698.png",":mwii:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/78754.png",":huhohi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/943482.png",":TT:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/465297.png",":��:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/35815.png",":...:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/306531.png",":add:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/644535217.png",":edit:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1005357294.png",":sync:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1995700125.gif",":perms:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2292716413.png",":delete:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2343271778.png",":rose:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2084913611.gif",":0:-D:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1852325475.gif",":~1~:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/3934203586.gif",":grrr!!!!!:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/969538151.gif",":zzzz:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1695301895.gif"};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
But by using this i tried to send a new topic and it says that i haven't entered the news text of the form.. :/ Even though i entered a text there it says that there's nothing entered there..
Oh right ! I forgot to update the msg portion to work with the sceditor. Replace the page with this :
If there are any problems let me know.
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(2), .sceditor-group:nth-child(3), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8) {
display: none;
}
.sceditor-group:nth-child(1) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="71">Ειδήσεις Ελλάδος</option>
<option value="44">Ειδήσεις ανά το Παγκόσμιο</option>
<option value="7">Αθλητικές Ειδήσεις</option>
<option value="39">Περίεργα</option>
<option value="25">Τεχνολογικές Ειδήσεις</option>
<option value="43">Κινητά - Smartphones</option>
<option value="38">Laptop - Tablets</option>
<option value="55">Πολυμηχανήματα</option>
<option value="56">Κονσόλες & Παιχνίδια για Κονσόλες</option>
</select><br /><Br /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="ΕΛΛΑΔΑ ">ΕΛΛΑΔΑ</option>
<option value="ΚΟΣΜΟΣ ">ΚΟΣΜΟΣ</option>
<option value="ΑΘΛΗΤΙΚΑ ">ΑΘΛΗΤΙΚΑ</option>
<option value="ΠΕΡΙΕΡΓΑ ">ΠΕΡΙΕΡΓΑ</option>
<option value="ΤΕΧΝΟΛΟΓΙΑ ">ΤΕΧΝΟΛΟΓΙΑ</option>
<option value="SMARTPHONES ">SMARTPHONES</option>
</select> <br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος πηγής ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Ονομασία πηγής ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
err = '',
val = $.sceditor ? msg.value : $(msg).sceditor('instance').val();
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!val) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο πηγής';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία πηγής';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[I-F-GR]' + val + '\n\n\n\n[b][color=#006600]* Πηγή:[/color][/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/I-F-GR]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Centre",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Inserer une image",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Inserer",
"URL:" : "URL",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Largeur (optionnelle)",
"Height (optional):" : "Hauteur (optionnelle)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {":wouhou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/4274788354.gif",":bwi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/45347.png",":D": "http://2img.net/i/fa//i/smiles/icon_biggrin.png",":)": "http://2img.net/i/fa//i/smiles/icon_smile.gif",":(": "http://2img.net/i/fa//i/smiles/icon_sad.gif",":hello:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/hello.gif",":shock:": "http://2img.net/i/fa//i/smiles/icon_eek.gif",":?": "http://2img.net/i/fa//i/smiles/icon_confused.png","8)": "http://2img.net/i/fa//i/smiles/icon_cool.gif",":lol:": "http://2img.net/i/fa//i/smiles/icon_lol.gif",":x": "http://2img.net/i/fa//i/smiles/icon_mad.gif",":P": "http://2img.net/i/fa//i/smiles/icon_razz.gif",":oops:": "http://2img.net/i/fa//i/smiles/icon_redface.gif",":cry:": "http://2img.net/i/fa//i/smiles/icon_cry.gif",":evil:": "http://2img.net/i/fa//i/smiles/icon_evil.gif",":twisted:": "http://2img.net/i/fa//i/smiles/icon_twisted.gif",":mlc:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/dawa_.gif",";)": "http://2img.net/i/fa//i/smiles/icon_wink.gif",":redface:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/redface.gif",":!:": "http://2img.net/i/fa//i/smiles/icon_exclaim.gif",":?:": "http://2img.net/i/fa//i/smiles/icon_question.gif",":idea:": "http://2img.net/i/fa//i/smiles/icon_idea.png",":arrow:": "http://2img.net/i/fa//i/smiles/icon_arrow.gif",":neutral:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ascaso.png",":mrgreen:": "http://2img.net/i/fa//i/smiles/icon_mrgreen.png",":laule:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ddr555.gif",":face:": "http://2img.net/i/fa//i/smiles/fresse.png",":dawa:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/icon10.gif",":omg:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/const.gif",":mw�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/disgust.gif",":suspect:": "http://2img.net/i/fa//i/smiles/suspect.gif",":heart:": "http://2img.net/i/fa//i/smiles/herz.png",":/": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ohwell.gif",":no": "http://2img.net/i/fa//i/smiles/kopfschuettel.gif",":love:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/love.gif",":whistle:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/whistle.gif",":grat:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/columbo2.gif",":cyclops:": "http://2img.net/i/fa//i/smiles/icon_cyclops.gif",":clown:": "http://2img.net/i/fa//i/smiles/icon_clown.png",":pirat:": "http://2img.net/i/fa//i/smiles/icon_pirat.png",":tongue:": "http://2img.net/i/fa//i/smiles/icon_tongue.png",":silent:": "http://2img.net/i/fa//i/smiles/icon_silent.png",":pr:": "http://2img.net/i/fa//i/smiles/icon_profileright.png",":pl:": "http://2img.net/i/fa//i/smiles/icon_profileleft.png",":pale:": "http://2img.net/i/fa//i/smiles/icon_pale.gif",":cool-blue:": "http://2img.net/i/fa//i/smiles/cool_blue.png",":alien:": "http://2img.net/i/fa//i/smiles/alien.png",":verygood:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/great.gif",":cat:": "http://2img.net/i/fa//i/smiles/icon_cat.png",":ashamed:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/oops.gif",":petrus:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/petrus75.gif",":bounce:": "http://2img.net/i/fa//i/smiles/icon_bounce.gif",":shaking:": "http://2img.net/i/fa//i/smiles/icon_shaking.gif",":roll:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/sarcasti.gif",":shaking2:": "http://2img.net/i/fa//i/smiles/icon_shaking2.gif",":gneu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/guish2.gif",":naughty:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/naughty.gif",":batman:": "http://2img.net/i/fa//i/smiles/icon_batman.png",":dwarf:": "http://2img.net/i/fa//i/smiles/icon_dwarf.png",":rambo:": "http://2img.net/i/fa//i/smiles/icon_rambo.png",":spamafote:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/mouais.gif",":hockey:": "http://2img.net/i/fa//i/smiles/icon_hockey.png",":confused:": "http://2img.net/i/fa//i/smiles/confused.png",":affraid:": "http://2img.net/i/fa//i/smiles/affraid.gif",":bball:": "http://2img.net/i/fa//i/smiles/icon_basketball.gif",":cheers:": "http://2img.net/i/fa//i/smiles/icon_cheers.png",":bom:": "http://2img.net/i/fa//i/smiles/bom.png",":drunken:": "http://2img.net/i/fa//i/smiles/drunken_smilie.png",":sleep:": "http://2img.net/i/fa//i/smiles/sleep.gif",":sunny:": "http://2img.net/i/fa//i/smiles/icon_sunny.png",":albino:": "http://2img.net/i/fa//i/smiles/icon_albino.png",":pff:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/brigade_.gif",":santa:": "http://2img.net/i/fa//i/smiles/icon_santa.png",":rendeer:": "http://2img.net/i/fa//i/smiles/icon_rendeer.png",":farao:": "http://2img.net/i/fa//i/smiles/icon_farao.png",":king:": "http://2img.net/i/fa//i/smiles/icon_king.png",":queen:": "http://2img.net/i/fa//i/smiles/icon_queen.png",":joker:": "http://2img.net/i/fa//i/smiles/icon_joker.png",":jocolor:": "http://2img.net/i/fa//i/smiles/icon_jokercolor.png",":geek:": "http://2img.net/i/fa//i/smiles/icon_geek.png",":scratch:": "http://2img.net/i/fa//i/smiles/icon_scratch.png",":salut:": "http://2img.net/i/fa//i/smiles/icon_salut.gif",":study:": "http://2img.net/i/fa//i/smiles/icon_study.png",":elephant:": "http://2img.net/i/fa//i/smiles/icon_elephant.png",":thumleft:": "http://2img.net/i/fa//i/smiles/icon_thumleft.png",":thumright:": "http://2img.net/i/fa//i/smiles/icon_thumright.png",":thumbdown:": "http://2img.net/i/fa//i/smiles/icon_thumbdown.png",":smurfin:": "http://2img.net/i/fa//i/smiles/icon_smurfin.png",":smurf:": "http://2img.net/i/fa//i/smiles/icon_smurf.png",":brilsmurf:": "http://2img.net/i/fa//i/smiles/icon_brilsmurf.png",":bigsmurf:": "http://2img.net/i/fa//i/smiles/icon_bigsmurf.png",":flower:": "http://2img.net/i/fa//i/smiles/icon_flower.png",":afro:": "http://2img.net/i/fa//i/smiles/icon_rr.png",":lol!:": "http://2img.net/i/fa//i/smiles/lol.gif",":rock:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/170788.gif",":luv:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/105796.gif",":kiss:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/690335.gif",":guitar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/174352.gif",":bye:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/460159.gif",":banana:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/281663.gif",":groar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/8938.gif",":fufufu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/103182.gif",":loul:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/570385.gif",":beu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/349163.png",":h�h�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/66991.gif",":)):": "http://r29.imgfast.net/users/2912/19/22/63/smiles/910268.png",":loove:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/506755.png",":ouou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/398698.png",":mwii:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/78754.png",":huhohi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/943482.png",":TT:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/465297.png",":��:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/35815.png",":...:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/306531.png",":add:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/644535217.png",":edit:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1005357294.png",":sync:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1995700125.gif",":perms:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2292716413.png",":delete:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2343271778.png",":rose:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2084913611.gif",":0:-D:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1852325475.gif",":~1~:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/3934203586.gif",":grrr!!!!!:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/969538151.gif",":zzzz:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1695301895.gif"};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
If there are any problems let me know.
I don't think i did something wrong but still i get the same error:
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8), .sceditor-group:nth-child(9), .sceditor-group:nth-child(10) {
display: none;
}
.sceditor-group:nth-child(1), .sceditor-group:nth-child(2), .sceditor-group:nth-child(3) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="71">Ειδήσεις Ελλάδος</option>
<option value="44">Ειδήσεις ανά το Παγκόσμιο</option>
<option value="7">Αθλητικές Ειδήσεις</option>
<option value="39">Περίεργα</option>
<option value="25">Τεχνολογικές Ειδήσεις</option>
<option value="43">Κινητά - Smartphones</option>
<option value="38">Laptop - Tablets</option>
<option value="55">Πολυμηχανήματα</option>
<option value="56">Κονσόλες & Παιχνίδια για Κονσόλες</option>
</select><br /><Br /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="ΕΛΛΑΔΑ ">ΕΛΛΑΔΑ</option>
<option value="ΚΟΣΜΟΣ ">ΚΟΣΜΟΣ</option>
<option value="ΑΘΛΗΤΙΚΑ ">ΑΘΛΗΤΙΚΑ</option>
<option value="ΠΕΡΙΕΡΓΑ ">ΠΕΡΙΕΡΓΑ</option>
<option value="ΤΕΧΝΟΛΟΓΙΑ ">ΤΕΧΝΟΛΟΓΙΑ</option>
<option value="SMARTPHONES ">SMARTPHONES</option>
</select> <br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος πηγής ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Ονομασία πηγής ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
err = '',
val = $.sceditor ? msg.value : $(msg).sceditor('instance').val();
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!val) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο πηγής';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία πηγής';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[I-F-GR]' + val + '\n\n\n\n[b][color=#006600]* Πηγή:[/color][/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/I-F-GR]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Κεντρική Στοίχιση",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Εισάγετε μία εικόνα",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Υποβολή",
"URL:" : "Σύνδεσμος εικόνας",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Πλάτος (προαιρετικό)",
"Height (optional):" : "Ύψος (προαιρετικό)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline|center|image';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {":wouhou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/4274788354.gif",":bwi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/45347.png",":D": "http://2img.net/i/fa//i/smiles/icon_biggrin.png",":)": "http://2img.net/i/fa//i/smiles/icon_smile.gif",":(": "http://2img.net/i/fa//i/smiles/icon_sad.gif",":hello:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/hello.gif",":shock:": "http://2img.net/i/fa//i/smiles/icon_eek.gif",":?": "http://2img.net/i/fa//i/smiles/icon_confused.png","8)": "http://2img.net/i/fa//i/smiles/icon_cool.gif",":lol:": "http://2img.net/i/fa//i/smiles/icon_lol.gif",":x": "http://2img.net/i/fa//i/smiles/icon_mad.gif",":P": "http://2img.net/i/fa//i/smiles/icon_razz.gif",":oops:": "http://2img.net/i/fa//i/smiles/icon_redface.gif",":cry:": "http://2img.net/i/fa//i/smiles/icon_cry.gif",":evil:": "http://2img.net/i/fa//i/smiles/icon_evil.gif",":twisted:": "http://2img.net/i/fa//i/smiles/icon_twisted.gif",":mlc:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/dawa_.gif",";)": "http://2img.net/i/fa//i/smiles/icon_wink.gif",":redface:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/redface.gif",":!:": "http://2img.net/i/fa//i/smiles/icon_exclaim.gif",":?:": "http://2img.net/i/fa//i/smiles/icon_question.gif",":idea:": "http://2img.net/i/fa//i/smiles/icon_idea.png",":arrow:": "http://2img.net/i/fa//i/smiles/icon_arrow.gif",":neutral:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ascaso.png",":mrgreen:": "http://2img.net/i/fa//i/smiles/icon_mrgreen.png",":laule:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ddr555.gif",":face:": "http://2img.net/i/fa//i/smiles/fresse.png",":dawa:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/icon10.gif",":omg:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/const.gif",":mw�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/disgust.gif",":suspect:": "http://2img.net/i/fa//i/smiles/suspect.gif",":heart:": "http://2img.net/i/fa//i/smiles/herz.png",":/": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ohwell.gif",":no": "http://2img.net/i/fa//i/smiles/kopfschuettel.gif",":love:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/love.gif",":whistle:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/whistle.gif",":grat:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/columbo2.gif",":cyclops:": "http://2img.net/i/fa//i/smiles/icon_cyclops.gif",":clown:": "http://2img.net/i/fa//i/smiles/icon_clown.png",":pirat:": "http://2img.net/i/fa//i/smiles/icon_pirat.png",":tongue:": "http://2img.net/i/fa//i/smiles/icon_tongue.png",":silent:": "http://2img.net/i/fa//i/smiles/icon_silent.png",":pr:": "http://2img.net/i/fa//i/smiles/icon_profileright.png",":pl:": "http://2img.net/i/fa//i/smiles/icon_profileleft.png",":pale:": "http://2img.net/i/fa//i/smiles/icon_pale.gif",":cool-blue:": "http://2img.net/i/fa//i/smiles/cool_blue.png",":alien:": "http://2img.net/i/fa//i/smiles/alien.png",":verygood:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/great.gif",":cat:": "http://2img.net/i/fa//i/smiles/icon_cat.png",":ashamed:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/oops.gif",":petrus:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/petrus75.gif",":bounce:": "http://2img.net/i/fa//i/smiles/icon_bounce.gif",":shaking:": "http://2img.net/i/fa//i/smiles/icon_shaking.gif",":roll:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/sarcasti.gif",":shaking2:": "http://2img.net/i/fa//i/smiles/icon_shaking2.gif",":gneu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/guish2.gif",":naughty:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/naughty.gif",":batman:": "http://2img.net/i/fa//i/smiles/icon_batman.png",":dwarf:": "http://2img.net/i/fa//i/smiles/icon_dwarf.png",":rambo:": "http://2img.net/i/fa//i/smiles/icon_rambo.png",":spamafote:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/mouais.gif",":hockey:": "http://2img.net/i/fa//i/smiles/icon_hockey.png",":confused:": "http://2img.net/i/fa//i/smiles/confused.png",":affraid:": "http://2img.net/i/fa//i/smiles/affraid.gif",":bball:": "http://2img.net/i/fa//i/smiles/icon_basketball.gif",":cheers:": "http://2img.net/i/fa//i/smiles/icon_cheers.png",":bom:": "http://2img.net/i/fa//i/smiles/bom.png",":drunken:": "http://2img.net/i/fa//i/smiles/drunken_smilie.png",":sleep:": "http://2img.net/i/fa//i/smiles/sleep.gif",":sunny:": "http://2img.net/i/fa//i/smiles/icon_sunny.png",":albino:": "http://2img.net/i/fa//i/smiles/icon_albino.png",":pff:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/brigade_.gif",":santa:": "http://2img.net/i/fa//i/smiles/icon_santa.png",":rendeer:": "http://2img.net/i/fa//i/smiles/icon_rendeer.png",":farao:": "http://2img.net/i/fa//i/smiles/icon_farao.png",":king:": "http://2img.net/i/fa//i/smiles/icon_king.png",":queen:": "http://2img.net/i/fa//i/smiles/icon_queen.png",":joker:": "http://2img.net/i/fa//i/smiles/icon_joker.png",":jocolor:": "http://2img.net/i/fa//i/smiles/icon_jokercolor.png",":geek:": "http://2img.net/i/fa//i/smiles/icon_geek.png",":scratch:": "http://2img.net/i/fa//i/smiles/icon_scratch.png",":salut:": "http://2img.net/i/fa//i/smiles/icon_salut.gif",":study:": "http://2img.net/i/fa//i/smiles/icon_study.png",":elephant:": "http://2img.net/i/fa//i/smiles/icon_elephant.png",":thumleft:": "http://2img.net/i/fa//i/smiles/icon_thumleft.png",":thumright:": "http://2img.net/i/fa//i/smiles/icon_thumright.png",":thumbdown:": "http://2img.net/i/fa//i/smiles/icon_thumbdown.png",":smurfin:": "http://2img.net/i/fa//i/smiles/icon_smurfin.png",":smurf:": "http://2img.net/i/fa//i/smiles/icon_smurf.png",":brilsmurf:": "http://2img.net/i/fa//i/smiles/icon_brilsmurf.png",":bigsmurf:": "http://2img.net/i/fa//i/smiles/icon_bigsmurf.png",":flower:": "http://2img.net/i/fa//i/smiles/icon_flower.png",":afro:": "http://2img.net/i/fa//i/smiles/icon_rr.png",":lol!:": "http://2img.net/i/fa//i/smiles/lol.gif",":rock:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/170788.gif",":luv:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/105796.gif",":kiss:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/690335.gif",":guitar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/174352.gif",":bye:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/460159.gif",":banana:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/281663.gif",":groar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/8938.gif",":fufufu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/103182.gif",":loul:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/570385.gif",":beu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/349163.png",":h�h�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/66991.gif",":)):": "http://r29.imgfast.net/users/2912/19/22/63/smiles/910268.png",":loove:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/506755.png",":ouou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/398698.png",":mwii:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/78754.png",":huhohi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/943482.png",":TT:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/465297.png",":��:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/35815.png",":...:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/306531.png",":add:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/644535217.png",":edit:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1005357294.png",":sync:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1995700125.gif",":perms:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2292716413.png",":delete:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2343271778.png",":rose:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2084913611.gif",":0:-D:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1852325475.gif",":~1~:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/3934203586.gif",":grrr!!!!!:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/969538151.gif",":zzzz:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1695301895.gif"};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
Looks like I made a mistake in the logic, try now :
Sorry 'bout that.
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(2), .sceditor-group:nth-child(3), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8) {
display: none;
}
.sceditor-group:nth-child(1) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="71">Ειδήσεις Ελλάδος</option>
<option value="44">Ειδήσεις ανά το Παγκόσμιο</option>
<option value="7">Αθλητικές Ειδήσεις</option>
<option value="39">Περίεργα</option>
<option value="25">Τεχνολογικές Ειδήσεις</option>
<option value="43">Κινητά - Smartphones</option>
<option value="38">Laptop - Tablets</option>
<option value="55">Πολυμηχανήματα</option>
<option value="56">Κονσόλες & Παιχνίδια για Κονσόλες</option>
</select><br /><Br /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="ΕΛΛΑΔΑ ">ΕΛΛΑΔΑ</option>
<option value="ΚΟΣΜΟΣ ">ΚΟΣΜΟΣ</option>
<option value="ΑΘΛΗΤΙΚΑ ">ΑΘΛΗΤΙΚΑ</option>
<option value="ΠΕΡΙΕΡΓΑ ">ΠΕΡΙΕΡΓΑ</option>
<option value="ΤΕΧΝΟΛΟΓΙΑ ">ΤΕΧΝΟΛΟΓΙΑ</option>
<option value="SMARTPHONES ">SMARTPHONES</option>
</select> <br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος πηγής ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Ονομασία πηγής ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;"><em>* Όλα τα πεδία είναι υποχρεωτικά!</em></div><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
err = '',
val = $.sceditor ? $(msg).sceditor('instance').val() : msg.value;
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!val) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο πηγής';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία πηγής';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[I-F-GR]' + val + '\n\n\n\n[b][color=#006600]* Πηγή:[/color][/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/I-F-GR]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Centre",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Inserer une image",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Inserer",
"URL:" : "URL",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Largeur (optionnelle)",
"Height (optional):" : "Hauteur (optionnelle)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {":wouhou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/4274788354.gif",":bwi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/45347.png",":D": "http://2img.net/i/fa//i/smiles/icon_biggrin.png",":)": "http://2img.net/i/fa//i/smiles/icon_smile.gif",":(": "http://2img.net/i/fa//i/smiles/icon_sad.gif",":hello:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/hello.gif",":shock:": "http://2img.net/i/fa//i/smiles/icon_eek.gif",":?": "http://2img.net/i/fa//i/smiles/icon_confused.png","8)": "http://2img.net/i/fa//i/smiles/icon_cool.gif",":lol:": "http://2img.net/i/fa//i/smiles/icon_lol.gif",":x": "http://2img.net/i/fa//i/smiles/icon_mad.gif",":P": "http://2img.net/i/fa//i/smiles/icon_razz.gif",":oops:": "http://2img.net/i/fa//i/smiles/icon_redface.gif",":cry:": "http://2img.net/i/fa//i/smiles/icon_cry.gif",":evil:": "http://2img.net/i/fa//i/smiles/icon_evil.gif",":twisted:": "http://2img.net/i/fa//i/smiles/icon_twisted.gif",":mlc:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/dawa_.gif",";)": "http://2img.net/i/fa//i/smiles/icon_wink.gif",":redface:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/redface.gif",":!:": "http://2img.net/i/fa//i/smiles/icon_exclaim.gif",":?:": "http://2img.net/i/fa//i/smiles/icon_question.gif",":idea:": "http://2img.net/i/fa//i/smiles/icon_idea.png",":arrow:": "http://2img.net/i/fa//i/smiles/icon_arrow.gif",":neutral:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ascaso.png",":mrgreen:": "http://2img.net/i/fa//i/smiles/icon_mrgreen.png",":laule:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ddr555.gif",":face:": "http://2img.net/i/fa//i/smiles/fresse.png",":dawa:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/icon10.gif",":omg:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/const.gif",":mw�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/disgust.gif",":suspect:": "http://2img.net/i/fa//i/smiles/suspect.gif",":heart:": "http://2img.net/i/fa//i/smiles/herz.png",":/": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ohwell.gif",":no": "http://2img.net/i/fa//i/smiles/kopfschuettel.gif",":love:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/love.gif",":whistle:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/whistle.gif",":grat:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/columbo2.gif",":cyclops:": "http://2img.net/i/fa//i/smiles/icon_cyclops.gif",":clown:": "http://2img.net/i/fa//i/smiles/icon_clown.png",":pirat:": "http://2img.net/i/fa//i/smiles/icon_pirat.png",":tongue:": "http://2img.net/i/fa//i/smiles/icon_tongue.png",":silent:": "http://2img.net/i/fa//i/smiles/icon_silent.png",":pr:": "http://2img.net/i/fa//i/smiles/icon_profileright.png",":pl:": "http://2img.net/i/fa//i/smiles/icon_profileleft.png",":pale:": "http://2img.net/i/fa//i/smiles/icon_pale.gif",":cool-blue:": "http://2img.net/i/fa//i/smiles/cool_blue.png",":alien:": "http://2img.net/i/fa//i/smiles/alien.png",":verygood:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/great.gif",":cat:": "http://2img.net/i/fa//i/smiles/icon_cat.png",":ashamed:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/oops.gif",":petrus:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/petrus75.gif",":bounce:": "http://2img.net/i/fa//i/smiles/icon_bounce.gif",":shaking:": "http://2img.net/i/fa//i/smiles/icon_shaking.gif",":roll:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/sarcasti.gif",":shaking2:": "http://2img.net/i/fa//i/smiles/icon_shaking2.gif",":gneu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/guish2.gif",":naughty:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/naughty.gif",":batman:": "http://2img.net/i/fa//i/smiles/icon_batman.png",":dwarf:": "http://2img.net/i/fa//i/smiles/icon_dwarf.png",":rambo:": "http://2img.net/i/fa//i/smiles/icon_rambo.png",":spamafote:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/mouais.gif",":hockey:": "http://2img.net/i/fa//i/smiles/icon_hockey.png",":confused:": "http://2img.net/i/fa//i/smiles/confused.png",":affraid:": "http://2img.net/i/fa//i/smiles/affraid.gif",":bball:": "http://2img.net/i/fa//i/smiles/icon_basketball.gif",":cheers:": "http://2img.net/i/fa//i/smiles/icon_cheers.png",":bom:": "http://2img.net/i/fa//i/smiles/bom.png",":drunken:": "http://2img.net/i/fa//i/smiles/drunken_smilie.png",":sleep:": "http://2img.net/i/fa//i/smiles/sleep.gif",":sunny:": "http://2img.net/i/fa//i/smiles/icon_sunny.png",":albino:": "http://2img.net/i/fa//i/smiles/icon_albino.png",":pff:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/brigade_.gif",":santa:": "http://2img.net/i/fa//i/smiles/icon_santa.png",":rendeer:": "http://2img.net/i/fa//i/smiles/icon_rendeer.png",":farao:": "http://2img.net/i/fa//i/smiles/icon_farao.png",":king:": "http://2img.net/i/fa//i/smiles/icon_king.png",":queen:": "http://2img.net/i/fa//i/smiles/icon_queen.png",":joker:": "http://2img.net/i/fa//i/smiles/icon_joker.png",":jocolor:": "http://2img.net/i/fa//i/smiles/icon_jokercolor.png",":geek:": "http://2img.net/i/fa//i/smiles/icon_geek.png",":scratch:": "http://2img.net/i/fa//i/smiles/icon_scratch.png",":salut:": "http://2img.net/i/fa//i/smiles/icon_salut.gif",":study:": "http://2img.net/i/fa//i/smiles/icon_study.png",":elephant:": "http://2img.net/i/fa//i/smiles/icon_elephant.png",":thumleft:": "http://2img.net/i/fa//i/smiles/icon_thumleft.png",":thumright:": "http://2img.net/i/fa//i/smiles/icon_thumright.png",":thumbdown:": "http://2img.net/i/fa//i/smiles/icon_thumbdown.png",":smurfin:": "http://2img.net/i/fa//i/smiles/icon_smurfin.png",":smurf:": "http://2img.net/i/fa//i/smiles/icon_smurf.png",":brilsmurf:": "http://2img.net/i/fa//i/smiles/icon_brilsmurf.png",":bigsmurf:": "http://2img.net/i/fa//i/smiles/icon_bigsmurf.png",":flower:": "http://2img.net/i/fa//i/smiles/icon_flower.png",":afro:": "http://2img.net/i/fa//i/smiles/icon_rr.png",":lol!:": "http://2img.net/i/fa//i/smiles/lol.gif",":rock:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/170788.gif",":luv:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/105796.gif",":kiss:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/690335.gif",":guitar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/174352.gif",":bye:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/460159.gif",":banana:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/281663.gif",":groar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/8938.gif",":fufufu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/103182.gif",":loul:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/570385.gif",":beu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/349163.png",":h�h�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/66991.gif",":)):": "http://r29.imgfast.net/users/2912/19/22/63/smiles/910268.png",":loove:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/506755.png",":ouou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/398698.png",":mwii:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/78754.png",":huhohi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/943482.png",":TT:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/465297.png",":��:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/35815.png",":...:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/306531.png",":add:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/644535217.png",":edit:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1005357294.png",":sync:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1995700125.gif",":perms:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2292716413.png",":delete:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2343271778.png",":rose:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2084913611.gif",":0:-D:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1852325475.gif",":~1~:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/3934203586.gif",":grrr!!!!!:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/969538151.gif",":zzzz:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1695301895.gif"};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
Sorry 'bout that.
Ηey @Ange Tuteur,
Using the form i noticed something really strange it started these days (i think)..
So i am using this script you gave me some time ago for adding my personal bbcodes for whoever i wanted to:
So if i activate that i get this result to the posts images:
http://prntscr.com/brpdi8
and if i deactivate it it's back to normal:
http://prntscr.com/brpdqf
What's wrong with this code and it conflicts the posts?
I think it may be the fact that the script is written for PunBB and now the forum is PhpBB3 or that it's too old!?.
Using the form i noticed something really strange it started these days (i think)..
So i am using this script you gave me some time ago for adding my personal bbcodes for whoever i wanted to:
- Spoiler:
- Code:
$(function(){$(function(){
if (!document.getElementById('text_editor_textarea')) return;
$('.sceditor-group:last').after('<div id="st-boutons" class="sceditor-group"></div>');
userTag(2,'sls', 'https://cdn0.iconfinder.com/data/icons/user-pictures/100/unknown_1-2-16.png', '<div class="sls">', '</div>');
userTag(1,'I-F-GR', 'https://cdn0.iconfinder.com/data/icons/user-pictures/100/unknown_1-2-16.png', '<div class="I-F-GR">', '</div>');
userTag(4,'atozak', 'https://cdn0.iconfinder.com/data/icons/user-pictures/100/unknown_1-2-16.png', '<div class="atozak">', '</div>');
function userTag(id, tagname, image, htmlStart, htmlEnd) {
var breg = new RegExp('\\['+tagname+'\\](.+?)\\[\\/'+tagname+'\\]','gi');
if (_userdata.user_id === id) {
$("#st-boutons").append("<a id='"+tagname+"-b' class='sceditor-button'><div style='background-image:url("+image+")'></div></a>");
$('#'+tagname+'-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('['+tagname+']','[/'+tagname+']')});
}
$('div.postbody div').each(function () {if ($(this).text().indexOf('['+tagname+']') != -1) $(this).html($(this).html().replace(breg, htmlStart + '$1' + htmlEnd))});
$('div.postbody div div div').each(function () {if ($(this).text().indexOf('['+tagname+']') != -1) $(this).html($(this).html().replace(breg, htmlStart + '$1' + htmlEnd))});
}
})});
So if i activate that i get this result to the posts images:
http://prntscr.com/brpdi8
and if i deactivate it it's back to normal:
http://prntscr.com/brpdqf
What's wrong with this code and it conflicts the posts?
I think it may be the fact that the script is written for PunBB and now the forum is PhpBB3 or that it's too old!?.
The script overwrites the innerHTML content of the posts, which renders the image resizer useless. You can try using this alternative which is more flexible than the default image resizer :
https://fmdesign.forumotion.com/t544-image-resizer#8305
If that doesn't work let me know.
https://fmdesign.forumotion.com/t544-image-resizer#8305
If that doesn't work let me know.
Yeah it fixed it!! Thanks a lot!
This is a new form i made for some special categories within the VIP section and i want some different elements there. Once i press the topic to be created it just wont do anything. Why does it do that? And the editor doesn't show up at all (the sceditor)
This is a new form i made for some special categories within the VIP section and i want some different elements there. Once i press the topic to be created it just wont do anything. Why does it do that? And the editor doesn't show up at all (the sceditor)
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(9), .sceditor-group:nth-child(10), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(<img src="http://2img.net/i/fa/i/smiles/icon_cool.gif" alt="Cool" longdesc="6" /> {
display: none;
}
.sceditor-group:nth-child(1), .sceditor-group:nth-child(2), .sceditor-group:nth-child(3) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;">
<em>* Όλα τα πεδία είναι υποχρεωτικά!</em>
</div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="27">Antivirus</option>
<option value="28">Προγράμματα Internet</option>
<option value="29">Προγράμματα Υπολογιστών</option>
</select><br /><Br /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="DOWNLOAD ">DOWNLOAD</option>
</select> <br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Απαιτήσεις Συστήματος::</div>
<input type="text" id="needs" name="needs" placeholder="π.χ. Windows: All" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Hashtags::</div>
<input type="text" id="hashtags" name="hashtags" placeholder="π.χ. #Παράδειγμα #Παράδειγμα" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος σελίδας download ::</div>
<input type="text" id="srclink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Ονομασία σελιδας download ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;">
<em>* Όλα τα πεδία είναι υποχρεωτικά!</em>
</div><br />
<br /><BR /><BR />
<center>
<input type="submit" id="submitForm2" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" />
</center>
<script type="text/javascript">
document.getElementById('submitForm2').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
needs = document.getElementById('needs'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srclink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
hashtags = document.getElementById('hashtags'),
err = '',
val = $.sceditor ? $(msg).sceditor('instance').val() : msg.value;
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!val) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!needs.value) err += '\nΔεν συμπληρώσατε τις απαιτήσεις συστήματος';
if (!hashtags.value) err += '\nΔεν προσθέσατε Hashtags';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο σελίδας του download';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία σελίδας του download';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[justify][size=16][font=Trebuchet MS]' + val + '\n\n[center][img]http://i68.servimg.com/u/f68/18/45/97/69/eo10.png[/img]\n' + needs.value + '\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/free10.png[/img][img]http://i68.servimg.com/u/f68/18/45/97/69/ioo10.png[/img]\n[size=14][font=Trebuchet MS][i][color=#FF0000]Για να δείτε το Κρυφό Περιεχόμενο, απαντήστε στο θέμα γράφοντας "Ευχαριστώ!"[/color][/i][/font][/size]\n[hide][b]Download Link:[/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/hide]\n\n[b][color=#FF0000]* Ετικέτες θέματος:[/color][/b] ' + hashtags.value + '[/font][/size][/justify]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Κεντρική Στοίχιση",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Εισάγετε μία εικόνα",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Υποβολή",
"URL:" : "Σύνδεσμος εικόνας",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Πλάτος (προαιρετικό)",
"Height (optional):" : "Ύψος (προαιρετικό)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline|center|image';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {":wouhou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/4274788354.gif",":bwi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/45347.png","<img src="http://2img.net/i/fa/i/smiles/icon_biggrin.png" alt="Very Happy" longdesc="1" />": "http://2img.net/i/fa//i/smiles/icon_biggrin.png","<img src="http://2img.net/i/fa/i/smiles/icon_smile.gif" alt="Smile" longdesc="2" />": "http://2img.net/i/fa//i/smiles/icon_smile.gif","<img src="http://2img.net/i/fa/i/smiles/icon_sad.gif" alt="Sad" longdesc="3" />": "http://2img.net/i/fa//i/smiles/icon_sad.gif","<img src="/users/2916/49/39/96/smiles/3647200086.gif" alt=":hello:" longdesc="64" />": "http://r29.imgfast.net/users/2912/19/22/63/smiles/hello.gif","<img src="http://2img.net/i/fa/i/smiles/icon_eek.gif" alt="Shocked" longdesc="5" />": "http://2img.net/i/fa//i/smiles/icon_eek.gif",":?": "http://2img.net/i/fa//i/smiles/icon_confused.png","<img src="http://2img.net/i/fa/i/smiles/icon_cool.gif" alt="Cool" longdesc="6" />": "http://2img.net/i/fa//i/smiles/icon_cool.gif","<img src="http://2img.net/i/fa/i/smiles/icon_lol.gif" alt="Laughing" longdesc="7" />": "http://2img.net/i/fa//i/smiles/icon_lol.gif","<img src="http://2img.net/i/fa/i/smiles/icon_mad.gif" alt="Mad" longdesc="8" />": "http://2img.net/i/fa//i/smiles/icon_mad.gif","<img src="http://2img.net/i/fa/i/smiles/icon_razz.gif" alt="Razz" longdesc="9" />": "http://2img.net/i/fa//i/smiles/icon_razz.gif","<img src="http://2img.net/i/fa/i/smiles/icon_redface.gif" alt="Embarassed" longdesc="10" />": "http://2img.net/i/fa//i/smiles/icon_redface.gif","<img src="http://2img.net/i/fa/i/smiles/icon_cry.gif" alt="Crying or Very sad" longdesc="11" />": "http://2img.net/i/fa//i/smiles/icon_cry.gif","<img src="http://2img.net/i/fa/i/smiles/icon_evil.gif" alt="Evil or Very Mad" longdesc="12" />": "http://2img.net/i/fa//i/smiles/icon_evil.gif","<img src="http://2img.net/i/fa/i/smiles/icon_twisted.gif" alt="Twisted Evil" longdesc="13" />": "http://2img.net/i/fa//i/smiles/icon_twisted.gif",":mlc:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/dawa_.gif","<img src="http://2img.net/i/fa/i/smiles/icon_wink.gif" alt="Wink" longdesc="15" />": "http://2img.net/i/fa//i/smiles/icon_wink.gif",":redface:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/redface.gif","<img src="http://2img.net/i/fa/i/smiles/icon_exclaim.gif" alt="Exclamation" longdesc="16" />": "http://2img.net/i/fa//i/smiles/icon_exclaim.gif","<img src="http://2img.net/i/fa/i/smiles/icon_question.gif" alt="Question" longdesc="17" />": "http://2img.net/i/fa//i/smiles/icon_question.gif","<img src="http://2img.net/i/fa/i/smiles/icon_idea.png" alt="Idea" longdesc="18" />": "http://2img.net/i/fa//i/smiles/icon_idea.png","<img src="http://2img.net/i/fa/i/smiles/icon_arrow.gif" alt="Arrow" longdesc="19" />": "http://2img.net/i/fa//i/smiles/icon_arrow.gif",":neutral:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ascaso.png",":mrgreen:": "http://2img.net/i/fa//i/smiles/icon_mrgreen.png",":laule:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ddr555.gif","<img src="http://2img.net/i/fa/i/smiles/fresse.png" alt="What a Face" longdesc="21" />": "http://2img.net/i/fa//i/smiles/fresse.png",":dawa:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/icon10.gif",":omg:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/const.gif",":mw�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/disgust.gif","<img src="http://2img.net/i/fa/i/smiles/suspect.gif" alt="Suspect" longdesc="23" />": "http://2img.net/i/fa//i/smiles/suspect.gif","<img src="http://2img.net/i/fa/i/smiles/herz.png" alt="I love you" longdesc="24" />": "http://2img.net/i/fa//i/smiles/herz.png",":/": "http://r29.imgfast.net/users/2912/19/22/63/smiles/ohwell.gif",":no": "http://2img.net/i/fa//i/smiles/kopfschuettel.gif",":love:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/love.gif",":whistle:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/whistle.gif",":grat:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/columbo2.gif","<img src="http://2img.net/i/fa/i/smiles/icon_cyclops.gif" alt="cyclops" longdesc="27" />": "http://2img.net/i/fa//i/smiles/icon_cyclops.gif","<img src="http://2img.net/i/fa/i/smiles/icon_clown.png" alt="clown" longdesc="28" />": "http://2img.net/i/fa//i/smiles/icon_clown.png","<img src="http://2img.net/i/fa/i/smiles/icon_pirat.png" alt="pirat" longdesc="29" />": "http://2img.net/i/fa//i/smiles/icon_pirat.png","<img src="http://2img.net/i/fa/i/smiles/icon_tongue.png" alt="tongue" longdesc="30" />": "http://2img.net/i/fa//i/smiles/icon_tongue.png","<img src="http://2img.net/i/fa/i/smiles/icon_silent.png" alt="silent" longdesc="31" />": "http://2img.net/i/fa//i/smiles/icon_silent.png",":pr:": "http://2img.net/i/fa//i/smiles/icon_profileright.png",":pl:": "http://2img.net/i/fa//i/smiles/icon_profileleft.png","<img src="http://2img.net/i/fa/i/smiles/icon_pale.gif" alt="pale" longdesc="32" />": "http://2img.net/i/fa//i/smiles/icon_pale.gif",":cool-blue:": "http://2img.net/i/fa//i/smiles/cool_blue.png","<img src="http://2img.net/i/fa/i/smiles/alien.png" alt="alien" longdesc="33" />": "http://2img.net/i/fa//i/smiles/alien.png",":verygood:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/great.gif","<img src="http://2img.net/i/fa/i/smiles/icon_cat.png" alt="cat" longdesc="34" />": "http://2img.net/i/fa//i/smiles/icon_cat.png",":ashamed:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/oops.gif",":petrus:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/petrus75.gif","<img src="http://2img.net/i/fa/i/smiles/icon_bounce.gif" alt="bounce" longdesc="38" />": "http://2img.net/i/fa//i/smiles/icon_bounce.gif",":shaking:": "http://2img.net/i/fa//i/smiles/icon_shaking.gif","<img src="http://2img.net/i/fa/i/smiles/icon_rolleyes.gif" alt="Rolling Eyes" longdesc="14" />": "http://r29.imgfast.net/users/2912/19/22/63/smiles/sarcasti.gif",":shaking2:": "http://2img.net/i/fa//i/smiles/icon_shaking2.gif",":gneu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/guish2.gif",":naughty:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/naughty.gif",":batman:": "http://2img.net/i/fa//i/smiles/icon_batman.png",":dwarf:": "http://2img.net/i/fa//i/smiles/icon_dwarf.png",":rambo:": "http://2img.net/i/fa//i/smiles/icon_rambo.png",":spamafote:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/mouais.gif",":hockey:": "http://2img.net/i/fa//i/smiles/icon_hockey.png","<img src="http://2img.net/i/fa/i/smiles/confused.png" alt="confused" longdesc="39" />": "http://2img.net/i/fa//i/smiles/confused.png","<img src="http://2img.net/i/fa/i/smiles/affraid.gif" alt="affraid" longdesc="40" />": "http://2img.net/i/fa//i/smiles/affraid.gif","<img src="http://2img.net/i/fa/i/smiles/icon_basketball.gif" alt="Basketball" longdesc="41" />": "http://2img.net/i/fa//i/smiles/icon_basketball.gif","<img src="http://2img.net/i/fa/i/smiles/icon_cheers.png" alt="cheers" longdesc="42" />": "http://2img.net/i/fa//i/smiles/icon_cheers.png","<img src="http://2img.net/i/fa/i/smiles/bom.png" alt="bom" longdesc="43" />": "http://2img.net/i/fa//i/smiles/bom.png","<img src="http://2img.net/i/fa/i/smiles/drunken_smilie.png" alt="drunken" longdesc="44" />": "http://2img.net/i/fa//i/smiles/drunken_smilie.png","<img src="http://2img.net/i/fa/i/smiles/sleep.gif" alt="Sleep" longdesc="45" />": "http://2img.net/i/fa//i/smiles/sleep.gif","<img src="http://2img.net/i/fa/i/smiles/icon_sunny.png" alt="sunny" longdesc="46" />": "http://2img.net/i/fa//i/smiles/icon_sunny.png","<img src="http://2img.net/i/fa/i/smiles/icon_albino.png" alt="albino" longdesc="47" />": "http://2img.net/i/fa//i/smiles/icon_albino.png",":pff:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/brigade_.gif","<img src="http://2img.net/i/fa/i/smiles/icon_santa.png" alt="santa" longdesc="49" />": "http://2img.net/i/fa//i/smiles/icon_santa.png","<img src="http://2img.net/i/fa/i/smiles/icon_rendeer.png" alt="rendeer" longdesc="50" />": "http://2img.net/i/fa//i/smiles/icon_rendeer.png","<img src="http://2img.net/i/fa/i/smiles/icon_farao.png" alt="farao" longdesc="51" />": "http://2img.net/i/fa//i/smiles/icon_farao.png","<img src="http://2img.net/i/fa/i/smiles/icon_king.png" alt="king" longdesc="52" />": "http://2img.net/i/fa//i/smiles/icon_king.png","<img src="http://2img.net/i/fa/i/smiles/icon_queen.png" alt="queen" longdesc="53" />": "http://2img.net/i/fa//i/smiles/icon_queen.png","<img src="http://2img.net/i/fa/i/smiles/icon_jokercolor.png" alt="jocolor" longdesc="54" />": "http://2img.net/i/fa//i/smiles/icon_joker.png",":jocolor:": "http://2img.net/i/fa//i/smiles/icon_jokercolor.png","<img src="http://2img.net/i/fa/i/smiles/icon_geek.png" alt="geek" longdesc="55" />": "http://2img.net/i/fa//i/smiles/icon_geek.png","<img src="http://2img.net/i/fa/i/smiles/icon_scratch.png" alt="scratch" longdesc="56" />": "http://2img.net/i/fa//i/smiles/icon_scratch.png",":salut:": "http://2img.net/i/fa//i/smiles/icon_salut.gif","<img src="http://2img.net/i/fa/i/smiles/icon_study.png" alt="study" longdesc="57" />": "http://2img.net/i/fa//i/smiles/icon_study.png","<img src="http://2img.net/i/fa/i/smiles/icon_elephant.png" alt="elephant" longdesc="58" />": "http://2img.net/i/fa//i/smiles/icon_elephant.png",":thumleft:": "http://2img.net/i/fa//i/smiles/icon_thumleft.png",":thumright:": "http://2img.net/i/fa//i/smiles/icon_thumright.png",":thumbdown:": "http://2img.net/i/fa//i/smiles/icon_thumbdown.png",":smurfin:": "http://2img.net/i/fa//i/smiles/icon_smurfin.png",":smurf:": "http://2img.net/i/fa//i/smiles/icon_smurf.png",":brilsmurf:": "http://2img.net/i/fa//i/smiles/icon_brilsmurf.png",":bigsmurf:": "http://2img.net/i/fa//i/smiles/icon_bigsmurf.png","<img src="http://2img.net/i/fa/i/smiles/icon_flower.png" alt="flower" longdesc="59" />": "http://2img.net/i/fa//i/smiles/icon_flower.png","<img src="http://2img.net/i/fa/i/smiles/icon_rr.png" alt="afro" longdesc="60" />": "http://2img.net/i/fa//i/smiles/icon_rr.png","<img src="http://2img.net/i/fa/i/smiles/lol.gif" alt="lol!" longdesc="61" />": "http://2img.net/i/fa//i/smiles/lol.gif",":rock:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/170788.gif",":luv:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/105796.gif",":kiss:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/690335.gif",":guitar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/174352.gif",":bye:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/460159.gif",":banana:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/281663.gif",":groar:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/8938.gif",":fufufu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/103182.gif",":loul:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/570385.gif",":beu:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/349163.png",":h�h�:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/66991.gif","<img src="http://2img.net/i/fa/i/smiles/icon_smile.gif" alt="Smile" longdesc="2" />):": "http://r29.imgfast.net/users/2912/19/22/63/smiles/910268.png",":loove:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/506755.png",":ouou:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/398698.png",":mwii:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/78754.png",":huhohi:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/943482.png",":TT:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/465297.png",":��:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/35815.png",":...:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/306531.png",":add:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/644535217.png",":edit:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1005357294.png",":sync:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1995700125.gif",":perms:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2292716413.png",":delete:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2343271778.png",":rose:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/2084913611.gif",":0:-D:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1852325475.gif",":~1~:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/3934203586.gif",":grrr!!!!!:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/969538151.gif",":zzzz:": "http://r29.imgfast.net/users/2912/19/22/63/smiles/1695301895.gif"};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
See if this worked :
I deleted the content of the smiley cache object.
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(9), .sceditor-group:nth-child(10), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(<img src="http://2img.net/i/fa/i/smiles/icon_cool.gif" alt="Cool" longdesc="6" /> {
display: none;
}
.sceditor-group:nth-child(1), .sceditor-group:nth-child(2), .sceditor-group:nth-child(3) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;">
<em>* Όλα τα πεδία είναι υποχρεωτικά!</em>
</div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="27">Antivirus</option>
<option value="28">Προγράμματα Internet</option>
<option value="29">Προγράμματα Υπολογιστών</option>
</select><br /><Br /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="DOWNLOAD ">DOWNLOAD</option>
</select> <br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Απαιτήσεις Συστήματος::</div>
<input type="text" id="needs" name="needs" placeholder="π.χ. Windows: All" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Hashtags::</div>
<input type="text" id="hashtags" name="hashtags" placeholder="π.χ. #Παράδειγμα #Παράδειγμα" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος σελίδας download ::</div>
<input type="text" id="srclink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Ονομασία σελιδας download ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;">
<em>* Όλα τα πεδία είναι υποχρεωτικά!</em>
</div><br />
<br /><BR /><BR />
<center>
<input type="submit" id="submitForm2" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" />
</center>
<script type="text/javascript">
document.getElementById('submitForm2').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
needs = document.getElementById('needs'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srclink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
hashtags = document.getElementById('hashtags'),
err = '',
val = $.sceditor ? $(msg).sceditor('instance').val() : msg.value;
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!val) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!needs.value) err += '\nΔεν συμπληρώσατε τις απαιτήσεις συστήματος';
if (!hashtags.value) err += '\nΔεν προσθέσατε Hashtags';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο σελίδας του download';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία σελίδας του download';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[justify][size=16][font=Trebuchet MS]' + val + '\n\n[center][img]http://i68.servimg.com/u/f68/18/45/97/69/eo10.png[/img]\n' + needs.value + '\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/free10.png[/img][img]http://i68.servimg.com/u/f68/18/45/97/69/ioo10.png[/img]\n[size=14][font=Trebuchet MS][i][color=#FF0000]Για να δείτε το Κρυφό Περιεχόμενο, απαντήστε στο θέμα γράφοντας "Ευχαριστώ!"[/color][/i][/font][/size]\n[hide][b]Download Link:[/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/hide]\n\n[b][color=#FF0000]* Ετικέτες θέματος:[/color][/b] ' + hashtags.value + '[/font][/size][/justify]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Κεντρική Στοίχιση",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Εισάγετε μία εικόνα",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Υποβολή",
"URL:" : "Σύνδεσμος εικόνας",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Πλάτος (προαιρετικό)",
"Height (optional):" : "Ύψος (προαιρετικό)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline|center|image';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
I deleted the content of the smiley cache object.
@Ange Tuteur that seems to have changed the preview of the content to the one we had before but it won't allow me to modify the editor to the one i have on the other form.. ;/
what gives now: http://prntscr.com/bskk8b
what should be: http://prntscr.com/bskkf1
what gives now: http://prntscr.com/bskk8b
what should be: http://prntscr.com/bskkf1
Bump.Luffy wrote:@Ange Tuteur that seems to have changed the preview of the content to the one we had before but it won't allow me to modify the editor to the one i have on the other form.. ;/
what gives now: http://prntscr.com/bskk8b
what should be: http://prntscr.com/bskkf1
Looks like the problem in the style comes from a modification to the CSS you made, and the error which made the editor disappear was an addition to the smiley variable. You should use this tool to see differences :
https://www.diffchecker.com/x9fefal1 ( expires in 1 month )
It can be very helpful for things like this, so you can revert the changes you made in case of problems.
Anyway, I reverted some things to the original code on the left in the difference above. ( CSS + smiley variable ) Give it a try now :
https://www.diffchecker.com/x9fefal1 ( expires in 1 month )
It can be very helpful for things like this, so you can revert the changes you made in case of problems.
Anyway, I reverted some things to the original code on the left in the difference above. ( CSS + smiley variable ) Give it a try now :
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(2), .sceditor-group:nth-child(3), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8) {
display: none;
}
.sceditor-group:nth-child(1) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #ffffff!important;
border-color: #ffffff!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: white !important }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div class="message message--success">
<p>Προτού δημοσιεύσετε οτιδήποτε, φροντίστε να έχετε διαβάσει καλά τους <a href="http://www.informationforumgr.com/t92-topic#198">Κανόνες Σωστής Λειτουργίας</a> για αποφυγή προβλημάτων ή πιθανών προειδοποιήσεων για παραβίαση κανόνων.</p>
</div>
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;">
<em>* Όλα τα πεδία είναι υποχρεωτικά!</em>
</div><br />
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Επιλέξτε μία κατηγορία ::</div>
<select id="forumSelect"><option value="">Κατηγορίες</option>
<option value="27">Antivirus</option>
<option value="28">Προγράμματα Internet</option>
<option value="29">Προγράμματα Υπολογιστών</option>
</select><br /><Br /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Τίτλος Θέματος ::</div>
<input type="text" name="title" id="Title" placeholder="π.χ. Αυτό θα είναι το νέο θέμα μου" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<select id="prefixes" name="tags4" onchange="tagprefixo()"><option value="">Χωρίς θέμα</option>
<option value="DOWNLOAD ">DOWNLOAD</option>
</select> <br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Εικόνα Θέματος ::</div>
<input type="text" id="imgdesc" name="imgdesc" placeholder="π.χ. http://i63.tinypic.com/2crww40.png" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Κείμενο θέματος ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="π.χ. Αυτή θα είναι η νέα φόρμα μας και έτσι είναι πιο εύκολο για εμάς να φτιάχνουμε νέα θέματα" style="font-size:14px;width:600px;"></textarea><br /><Br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Απαιτήσεις Συστήματος::</div>
<input type="text" id="needs" name="needs" placeholder="π.χ. Windows: All" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Hashtags::</div>
<input type="text" id="hashtags" name="hashtags" placeholder="π.χ. #Παράδειγμα #Παράδειγμα" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;text-align:right;display:inline-block;">Σύνδεσμος σελίδας download ::</div>
<input type="text" id="srclink" name="srclink" placeholder="π.χ. http://informationforumgr.com" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:250px;font-size:14px;display:inline-block;text-align:right">Ονομασία σελιδας download ::</div>
<input type="text" id="srcname" name="srcname" placeholder="π.χ. Information Forum GR" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="color:red;font-weight;bold;font-family:Trebuchet MS;font-size:14px;">
<em>* Όλα τα πεδία είναι υποχρεωτικά!</em>
</div><br />
<br /><BR /><BR />
<center>
<input type="submit" id="submitForm2" value="Υποβολή Θέματος" style="padding:8px 30px!important;font-size:14px" class="button2" />
</center>
<script type="text/javascript">
document.getElementById('submitForm2').onclick = function() {
var message = '',
title = document.getElementById('Title'),
prefix = document.getElementById('prefixes'),
desc = document.getElementById('imgdesc'),
needs = document.getElementById('needs'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srclink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
hashtags = document.getElementById('hashtags'),
err = '',
val = $.sceditor ? $(msg).sceditor('instance').val() : msg.value;
if (!forum.value) err += 'Δεν επιλέξατε κατηγορία';
if (!title.value) err += '\nΔεν συμπληρώσατε τον τίτλο';
if (!prefix.value) err += '\nΔεν επιλέξατε θέμα';
if (!desc.value) err += '\nΔεν συμπληρώσατε την εικόνα';
if (!val) err += '\nΔεν συμπληρώσατε το κείμενο';
if (!needs.value) err += '\nΔεν συμπληρώσατε τις απαιτήσεις συστήματος';
if (!hashtags.value) err += '\nΔεν προσθέσατε Hashtags';
if (!srclink.value) err += '\nΔεν συμπληρώσατε τον σύνδεσμο σελίδας του download';
if (!srcname.value) err += '\nΔεν συμπληρώσατε την ονομασία σελίδας του download';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + prefix.value + '' + title.value,
description : desc.value,
message : '[center][img]' + desc.value + '[/img]\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/ei310.png[/img][/center]\n[justify][size=16][font=Trebuchet MS]' + val + '\n\n[center][img]http://i68.servimg.com/u/f68/18/45/97/69/eo10.png[/img]\n' + needs.value + '\n\n[img]http://i68.servimg.com/u/f68/18/45/97/69/free10.png[/img][img]http://i68.servimg.com/u/f68/18/45/97/69/ioo10.png[/img]\n[size=14][font=Trebuchet MS][i][color=#FF0000]Για να δείτε το Κρυφό Περιεχόμενο, απαντήστε στο θέμα γράφοντας "Ευχαριστώ!"[/color][/i][/font][/size]\n[hide][b]Download Link:[/b] [url=' + srclink.value + ']' + srcname.value + '[/url][/hide]\n\n[b][color=#FF0000]* Ετικέτες θέματος:[/color][/b] ' + hashtags.value + '[/font][/size][/justify]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('Το θέμα σας δημοσιεύτηκε!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Έντονη Γραφή",
"Italic" : "Πλάγια Γραφή",
"Underline" : "Υπογράμμιση",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Κεντρική Στοίχιση",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Εισάγετε μία εικόνα",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Υποβολή",
"URL:" : "Σύνδεσμος εικόνας",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Πλάτος (προαιρετικό)",
"Height (optional):" : "Ύψος (προαιρετικό)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline|center|image';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
I really don't get it with this code. Every time i want to change something it doesn't work.. lol
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(2), .sceditor-group:nth-child(3), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8) {
display: none;
}
.sceditor-group:nth-child(1) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #0a0607!important;
border-color: #ffffff!important;
border-bottom: none!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: #0a0607 !important; }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Category ::</div>
<select id="forumSelect"><option value="">Select the Category</option><option value="3">Presentations</option>
</select><br /><Br /><br /><br /><div style="width:200px;font-size:14px;display:inline-block;text-align:right">Movie Title (YEAR)::</div>
<input type="text" name="title" id="Title" placeholder="Insert the movie title here and the year in parethesis: ex. Movie Title (2016)" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<br /><br /><div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Poster Image ::</div>
<input type="text" id="poster" name="poster" placeholder="ex. http://2img.net/i/fa/empty.gif" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br /><div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Movie Summary ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="ex. Here we will have our movie summary" style="font-size:14px;width:600px;"></textarea><br /><Br /><div style="width:200px;font-size:14px;display:inline-block;text-align:right">Rate::</div>
<input type="text" id="rate" name="rate" placeholder="Insert the movie rate here" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Youtube ID ::</div>
<input type="text" id="ytbid" name="ytbid" placeholder="ex. xTBXPGocPt0 (https://www.youtube.com/watch?v=xTBXPGocPt0)" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br /><div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Source Link ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="ex. http://smashing.forumotion.org" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br /><div style="width:200px;font-size:14px;display:inline-block;text-align:right">Source Name ::</div>
<input type="text" id="srcname" name="srcname" placeholder="ex. Smashing Forum" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm1" value="Create Topic" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm1').onclick = function() {
var message = '',
title = document.getElementById('Title'),
poster = document.getElementById('poster'),
rate = document.getElementById('rate'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
ytbid = document.getElementById('ytbid'),
err = '',
val = $.sceditor ? $(msg).sceditor('instance').val() : msg.value;
if (!forum.value) err += 'The category is not valid';
if (!title.value) err += '\nYou did not enter a Movie Title';
if (!poster.value) err += '\nYou did not enter a Poster Image';
if (!rate.value) err += '\nYou did not enter a Rate value';
if (!val) err += '\nYou did not enter a Movie Summary';
if (!ytbid.value) err += '\nYou did not enter a Youtube ID';
if (!srclink.value) err += '\nYou did not enter a Source Link';
if (!srcname.value) err += '\nYou did not enter a Source Name';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + title.value,
message : '[table class="sTemplate"][tr][td class="sInformation"]\n[img]' + poster.value + '[/img] ' + val + '[/td]\n[td class="sRate"][img(50px,50px)]http://i86.servimg.com/u/f86/19/47/32/56/keditb10.png[/img] [b]' + rate.value + '[/b]/10[/td]\n[/tr]\n[tr][td][center][youtube]' + ytbid.value + '[/youtube][/center]\n\nSource: [url=' + srclink.value + ']' + scrname.value + '[/url][/td]\n[/tr]\n[/table]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('The topic was created succesfully!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Bold",
"Italic" : "Italic",
"Underline" : "Underline",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Κεντρική Στοίχιση",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Εισάγετε μία εικόνα",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Υποβολή",
"URL:" : "Σύνδεσμος εικόνας",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Πλάτος (προαιρετικό)",
"Height (optional):" : "Ύψος (προαιρετικό)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline|center|image';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
Bump!Luffy wrote:I really don't get it with this code. Every time i want to change something it doesn't work.. lol
- Code:
<style>@import url(http://illiweb.com/rs3/71/frm/SCEditor/src/themes/fa.default.min.css);
select#forumSelect:hover, textarea.textmsg:hover, select#forumSelect:focus, textarea.textmsg:focus { border-color: #ccc }
select#forumSelect, textarea.textmsg { cursor: pointer }
select#forumSelect:focus, textarea.textmsg:focus {
outline-offset: -2px;
outline: -webkit-focus-ring-color auto 5px;
}
.sceditor-group:nth-child(2), .sceditor-group:nth-child(3), .sceditor-group:nth-child(4), .sceditor-group:nth-child(5), .sceditor-group:nth-child(6), .sceditor-group:nth-child(7), .sceditor-group:nth-child(8) {
display: none;
}
.sceditor-group:nth-child(1) {
display: inline-flex;
}
.sceditor-container {
width: 600px!important;
display: inline-block;border-color: #cccccc!important;
}
div.sceditor-toolbar {
background-color: #0a0607!important;
border-color: #ffffff!important;
border-bottom: none!important;
}
.message {
background-color: #e4e3e3;
width: calc(100% - 3em);
max-width: 67em;
color: #555;
padding: 1em 1em 1em 1.5em;
border-radius: 1px 5px 5px 1px;
margin-top: 45px;
box-shadow: 3px 3px 6px #9a9a9a;
line-height: 1.5;
display: inline-block;
font-size: 14px;
margin-bottom: 15px;
font-family: Trebuchet MS;
}
.message--success {
border-left: 5px solid #983333;
}
.message--success2 {
display: none;
}
.message--success:before {
border-left: 6px solid #983333;
border-right: 6px solid #983333;
content: 'Προσοχή:';
font-family: Trebuchet MS;
font-weight: bold;
background: #983333;
border-radius: 0px 3px 3px 0px;
padding: 4px 1px;
float: left;
text-decoration: underline;
color: #f2f2f2;
margin-top: -5px;
margin-left: -22px;
margin-right: 4px;
}
.sceditor-button-flash div { background-position: 0 -628px }
.sceditor-button-servimg div { background-position: 0 -644px }
.sceditor-button-dailymotion div{ background-position: 0 -660px }
.sceditor-button-faspoiler div { background-position: 0 -676px }
.sceditor-button-fahide div { background-position: 0 -692px }
.sceditor-button-fascroll div { background-position: 0 -708px }
.sceditor-button-faupdown div { background-position: 0 -724px }
.sceditor-button-farand div { background-position: 0 -756px }
.sceditor-button-faroll div { background-position: 0 -772px }
.sceditor-button-more div { background-position: 0 -788px }
.sceditor-button-emoticon div { background-position: 0 -804px }
.sceditor-button-headers div { background-position: 0 -820px }
.sceditor-container textarea, .sceditor-container iframe { background: #0a0607 !important; }
.sceditor-container textarea { width: 100% !important }
.sceditor-container iframe, .sceditor-container textarea { max-height:200px !important; width:99% !important; }
.sceditor-container iframe { display:none !important }
.sceditor-container textarea { display:block !important }</style>
<div style="width:200px;font-size:14px;display:inline-block;text-align:right">Category ::</div>
<select id="forumSelect"><option value="">Select the Category</option><option value="3">Presentations</option>
</select><br /><Br /><br /><br /><div style="width:200px;font-size:14px;display:inline-block;text-align:right">Movie Title (YEAR)::</div>
<input type="text" name="title" id="Title" placeholder="Insert the movie title here and the year in parethesis: ex. Movie Title (2016)" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" />
<br /><br /><div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Poster Image ::</div>
<input type="text" id="poster" name="poster" placeholder="ex. http://2img.net/i/fa/empty.gif" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br /><div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Movie Summary ::</div>
<textarea name="textmsg" rows="10" cols="40" id="text_editor_textarea" placeholder="ex. Here we will have our movie summary" style="font-size:14px;width:600px;"></textarea><br /><Br /><div style="width:200px;font-size:14px;display:inline-block;text-align:right">Rate::</div>
<input type="text" id="rate" name="rate" placeholder="Insert the movie rate here" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Youtube ID ::</div>
<input type="text" id="ytbid" name="ytbid" placeholder="ex. xTBXPGocPt0 (https://www.youtube.com/watch?v=xTBXPGocPt0)" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br /><div style="width:200px;font-size:14px;text-align:right;display:inline-block;">Source Link ::</div>
<input type="text" id="srxlink" name="srclink" placeholder="ex. http://smashing.forumotion.org" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br /><div style="width:200px;font-size:14px;display:inline-block;text-align:right">Source Name ::</div>
<input type="text" id="srcname" name="srcname" placeholder="ex. Smashing Forum" style="width: 600px;height: 25px;border-radius: 3px;font-size: 13px!important;border: 1px solid #ccc;" /><br /><br />
<br /><BR /><BR />
<center><input type="submit" id="submitForm1" value="Create Topic" style="padding:8px 30px!important;font-size:14px" class="button2" /></center>
<script type="text/javascript">
document.getElementById('submitForm1').onclick = function() {
var message = '',
title = document.getElementById('Title'),
poster = document.getElementById('poster'),
rate = document.getElementById('rate'),
msg = document.getElementById('text_editor_textarea'),
srclink = document.getElementById('srxlink'),
srcname = document.getElementById('srcname'),
forum = document.getElementById('forumSelect'),
ytbid = document.getElementById('ytbid'),
err = '',
val = $.sceditor ? $(msg).sceditor('instance').val() : msg.value;
if (!forum.value) err += 'The category is not valid';
if (!title.value) err += '\nYou did not enter a Movie Title';
if (!poster.value) err += '\nYou did not enter a Poster Image';
if (!rate.value) err += '\nYou did not enter a Rate value';
if (!val) err += '\nYou did not enter a Movie Summary';
if (!ytbid.value) err += '\nYou did not enter a Youtube ID';
if (!srclink.value) err += '\nYou did not enter a Source Link';
if (!srcname.value) err += '\nYou did not enter a Source Name';
if (err) {
alert(err);
return;
} else {
$.post('/post', {
subject : '' + title.value,
message : '[table class="sTemplate"][tr][td class="sInformation"]\n[img]' + poster.value + '[/img] ' + val + '[/td]\n[td class="sRate"][img(50px,50px)]http://i86.servimg.com/u/f86/19/47/32/56/keditb10.png[/img] [b]' + rate.value + '[/b]/10[/td]\n[/tr]\n[tr][td][center][youtube]' + ytbid.value + '[/youtube][/center]\n\nSource: [url=' + srclink.value + ']' + scrname.value + '[/url][/td]\n[/tr]\n[/table]',
mode : 'newtopic',
f : forum.value, // forum id
post : 1
}, function(d) {
alert('The topic was created succesfully!');
window.location.href = $('a[href^="/viewtopic?t="]', d).attr('href');
});
}
};
</script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/jquery.sceditor.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/plugins/bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-commands-bbcode.js"></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/sceditor-custom-bbcode.js"></script>
<script type="text/javascript" charset="UTF-8">//<![CDATA[
(function ($) {
'use strict';
$.sceditor.locale["en"] = {
"Bold" : "Bold",
"Italic" : "Italic",
"Underline" : "Underline",
"Strikethrough" : "Barre",
"Align left" : "Aligne a gauche",
"Center" : "Κεντρική Στοίχιση",
"Align right" : "Aligne a droite",
"Justify" : "Justifie",
"Insert a Quote" : "'Citer'",
"Code" : "Code",
"Spoiler" : "Spoiler",
"Hidden" : "Cache",
"Insert an image" : "Εισάγετε μία εικόνα",
"Insert a link" : "Inserer un lien",
"Unlink" : "Supprimer un lien",
"Remove Formatting" : "Supprimer le formatage du texte",
"Insert an emoticon" : "Smileys",
"Switch Editor Mode" : "Basculer le mode d'edition",
"More" : "Plus/Moins de boutons",
"Insert" : "Υποβολή",
"URL:" : "Σύνδεσμος εικόνας",
"Author (optional)" : "Auteur (Optionnel)",
"Title (optional)" : "Titre (Optionnel)",
"Width (optional):" : "Πλάτος (προαιρετικό)",
"Height (optional):" : "Ύψος (προαιρετικό)",
"Description (optional):" : "Description (Optionnelle)",
};
})(jQuery);
//]]></script>
<script type="text/javascript">//<![CDATA[
var plugins = '';
var palette = 1;
var illiweb = 'http://illiweb.com/';
var locale = 'en';
var height = '200';
var width = '500';
var plugin = 'bbcode';
var toolbar = 'bold,italic,underline|center|image';
var cssFile = 'http://illiweb.com/rs3/71/frm/SCEditor/minified/jquery.sceditor.default.min.css';
var isRtl = 0;
var dice = new Array();
var bSourceMode = true;
var emoticonsEnabled = 1;
var smileys = {};
var iframeSrc = '/smilies.forum?f=43&mode=smilies_frame&t=1421474705';
var illiwebDomain = 'http://illiweb.com/';
var servimgDomain = 'www.servimg.com';
var INTRANET = 0;
//]]></script>
<script type="text/javascript" src="http://illiweb.com/rs3/71/frm/SCEditor/src/instance-sceditor.js"></script>
@Luffy I'll try to get to this tomorrow if that's okay with you. I had a terrible night of rest, so I wasn't in great condition today.
Sorry again
Sorry again
@Luffy tomorrow is today now !
I think the problem is you misspelt one of the variable names. Find scrname.value and replace it with srcname.value. ( so it's src instead of scr )
I think the problem is you misspelt one of the variable names. Find scrname.value and replace it with srcname.value. ( so it's src instead of scr )
Ehm, have you figured this with your eye? Or did you use any program to find that because if you saw that then i give up..
Thank you..
Now the problem is that it won't post to category 3. By the way is there a way to change this particular script to make it automatically to forum id 3. Because this form we will be using it only for forum id 3 and we don't need the selection on the top.
Thanks once more!
Thank you..
Now the problem is that it won't post to category 3. By the way is there a way to change this particular script to make it automatically to forum id 3. Because this form we will be using it only for forum id 3 and we don't need the selection on the top.
Thanks once more!
- Sponsored content
Page 2 of 3 • 1, 2, 3
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 2 of 3
Permissions in this forum:
You cannot reply to topics in this forum