Copyright-Ergänzung für bbcode

Breuer76
Titel: Copyright-Ergänzung für bbcode
Version: 1.0
Beschreibung: Beschreibung: Copyright-Ergänzung für bbcode
Version: 1.0
Beschreibung: Was macht diese Änderung:
Es wird beim hinzufügen von einem Bild per bbcode [img] nach dem eingeben der Bild Adresse abgefragt ob man das Copyright bzw die Rechte des Bild hat.
Wenn dies aktzepiert wird erscheint unter dem Bild ein Copyright hinweis, bzw der Benutzername.

Einbauzeit:
ca. 5 min

Getestet mit:
wbb 2.3.6


Distanzierung:
Ich, Breuer76, übernehme keine Haftung für eventuelle Schäden, Fehler oä., die mit der Benutzung dieses Hacks entstehen könnten. Ich weise ausdrücklich daraufhin, daß der Einbau auf eigene Gefahr geschieht.
Es gibt keinen Anspruch auf Support, Gewährleistung und Ersatz.
----


weiter zum Download
beasnoopy
Danke klasse hack
p1zz@k1ng
super....sowas habe ich auch gesucht! probiere es gleich aus! danke dir
jana
meine dateien im anhang, bei mir wird nix abgefragt. die dateien sind schon bearbeitet nach der anleitung.

Zitat:
var bbtags = new Array();

// browser detection
var myAgent = navigator.userAgent.toLowerCase();
var myVersion = parseInt(navigator.appVersion);
var is_ie = ((myAgent.indexOf("msie") != -1) && (myAgent.indexOf("opera") == -1));
var is_win = ((myAgent.indexOf("win")!=-1) || (myAgent.indexOf("16bit")!=-1));

function setmode(modeValue) {
document.cookie = "bbcodemode="+modeValue+"; path=/; expires=Wed, 1 Jan 2020 00:00:00 GMT;";
}

function normalMode(theForm) {
if (theForm.mode[0].checked) {
return true;
}
else {
return false;
}
}

function getArraySize(theArray) {
for (i = 0; i < theArray.length; i++) {
if ((theArray[i] == "undefined") || (theArray[i] == "") || (theArray[i] == null)) return i;
}

return theArray.length;
}

function pushArray(theArray, value) {
theArraySize = getArraySize(theArray);
theArray[theArraySize] = value;
}

function popArray(theArray) {
theArraySize = getArraySize(theArray);
retVal = theArray[theArraySize - 1];
delete theArray[theArraySize - 1];
return retVal;
}


function smilie(theSmilie) {
addText(" " + theSmilie, "", false, document.bbform);
}

function closetag(theForm) {
if (!normalMode(theForm)) {
if (bbtags[0]) addText("[/"+ popArray(bbtags) +"]", "", false, theForm);
}

setFocus(theForm);
}

function closeall(theForm) {
if (!normalMode(theForm)) {
if (bbtags[0]) {
while (bbtags[0]) {
addText("[/"+ popArray(bbtags) +"]", "", false, theForm);
}
}
}

setFocus(theForm);
}


function fontformat(theForm,theValue,theType) {
setFocus(theForm);

if (normalMode(theForm)) {
if (theValue != 0) {

var selectedText = getSelectedText(theForm);
var insertText = prompt(font_formatter_prompt+" "+theType, selectedText);
if ((insertText != null) && (insertText != "")) {
addText("["+theType+"="+theValue+"]"+insertText+"[/"+theType+"]", "", false, theForm);
}
}
}
else {
if(addText("["+theType+"="+theValue+"]", "[/"+theType+"]", true, theForm)) {
pushArray(bbtags, theType);
}
}

theForm.sizeselect.selectedIndex = 0;
theForm.fontselect.selectedIndex = 0;
theForm.colorselect.selectedIndex = 0;

setFocus(theForm);
}


function bbcode(theForm, theTag, promptText, userName) {

if ( normalMode(theForm) || (theTag=="IMG")) {

var selectedText = getSelectedText(theForm);
if (promptText == '' || selectedText != '') promptText = selectedText;

inserttext = prompt(((theTag == "IMG") ? (img_prompt) : (tag_prompt)) + "\n[" + theTag + "]xxx[/" + theTag + "]", promptText);
if ( (inserttext != null) && (inserttext != "") ) {
if (theTag=="IMG") {
if (!confirm("Ist das Bild wirklich von Dir selbst bzw. besitzt Du die Urheberrechte?")) {
addText("[" + theTag + "]" + inserttext + "[/" + theTag + "]", "", false, theForm);
}
else {
addText("[" + theTag + "]" + inserttext + "[/" + theTag + "]\n©"+userName+"\n", "", false, theForm);
}
}
else {
addText("[" + theTag + "]" + inserttext + "[/" + theTag + "]", "", false, theForm);
}
}
}
else {
var donotinsert = false;
for (i = 0; i < bbtags.length; i++) {
if (bbtags[i] == theTag) donotinsert = true;
}

if (!donotinsert) {
if(addText("[" + theTag + "]", "[/" + theTag + "]", true, theForm)) {
pushArray(bbtags, theTag);
}
}
else {
var lastindex = 0;
for (i = 0 ; i < bbtags.length; i++ ) {
if ( bbtags[i] == theTag ) {
lastindex = i;
}
}

while (bbtags[lastindex]) {
tagRemove = popArray(bbtags);
addText("[/" + tagRemove + "]", "", false, theForm);
}
}
}
}


function namedlink(theForm,theType) {
var selected = getSelectedText(theForm);

var linkText = prompt(link_text_prompt,selected);
var prompttext;

if (theType == "URL") {
prompt_text = link_url_prompt;
prompt_contents = "http://";
}
else {
prompt_text = link_email_prompt;
prompt_contents = "";
}

linkURL = prompt(prompt_text,prompt_contents);


if ((linkURL != null) && (linkURL != "")) {
var theText = '';

if ((linkText != null) && (linkText != "")) {
theText = "["+theType+"="+linkURL+"]"+linkText+"[/"+theType+"]";
}
else {
theText = "["+theType+"]"+linkURL+"[/"+theType+"]";
}

addText(theText, "", false, theForm);
}
}


// *********************BBCode-Hack anfang**********************************

function ed2kserver(theForm, theTag, promptText) {

if(promptText=='') promptText=getSelectedText(theForm);

if (promptText) { var dtext=promptText; } else { var dtext=""; }
linktext = prompt(link_text_prompt,dtext);
var promptText;

if (theTag == "ed2k") {
prompt_text = "Gebe den Link zum eDonkey File ein !";
prompt_contents = "ed2k://";
}
else {
prompt_text = "Gebe den Link zum eDonkey File ein !";
prompt_contents = "ed2k://";
}

linkurl = prompt(prompt_text,prompt_contents);
if ((linkurl != null) && (linkurl != "")) {
if ((linktext != null) && (linktext != "")) {
theText = "["+theTag+"="+linkurl+"]"+linktext+"[/"+theTag+"] ";
addText(theText, "", false, theForm);
}
else{
theText = "["+theTag+"="+linkurl+"]"+linkurl+"[/"+theTag+"] ";
addText(theText, "", false, theForm);
}
}
}

function schild(theForm, theTag, promptText) {

if(promptText=='') promptText=getSelectedText(theForm);

if (theTag == "schild") {
inserttext = prompt("Gebe den Text ein der in einem Schild dargestellt werden soll !", promptText);
}
if (theTag == "denk") {
inserttext = prompt("Gebe den Text ein der in einer Denkblase dargestellt werden soll !", promptText);
}

if ( (inserttext != null) && (inserttext != "") ) {
addText("[" + theTag + "]" + inserttext + "[/" + theTag + "]", "", false, theForm);
}

}

function denkblase(theForm, theTag, promptText) {

if(promptText=='') promptText=getSelectedText(theForm);

if (theTag == "denk") {
inserttext = prompt("Gebe den Text ein der in einer Denkblase dargestellt werden soll !", promptText);
}

if ( (inserttext != null) && (inserttext != "") ) {
addText("[" + theTag + "]" + inserttext + "[/" + theTag + "]", "", false, theForm);
}

}

function ftpserver(theForm, theTag, promptText) {

if(promptText=='') promptText=getSelectedText(theForm);

if (promptText) { var dtext=promptText; } else { var dtext=""; }
linktext = prompt(link_text_prompt,dtext);
var promptText;


if (theTag == "ftp") {
prompt_text = "Gebe den Link zum FTP-SERVER ein !";
prompt_contents = "ftp://";
}
else {
prompt_text = "Gebe den Link zum FTP-SERVER ein !";
prompt_contents = "ftp://";
}

linkurl = prompt(prompt_text,prompt_contents);
if ((linkurl != null) && (linkurl != "")) {
if ((linktext != null) && (linktext != "")) {
theText = "["+theTag+"="+linkurl+"]"+linktext+"[/"+theTag+"] ";
addText(theText, "", false, theForm);
}
else{
theText = "["+theTag+"="+linkurl+"]"+linkurl+"[/"+theTag+"] ";
addText(theText, "", false, theForm);
}
}
}


function flashfile(theForm, theTag, promptText) {
if (promptText) { var dtext=promptText; } else { var dtext=""; }
var linktext = 'flash'+Math.floor(Math.random()*1000000);
var promptText;
if (theTag == "flash") {
prompt_text = "Gebe die URL zum Flash ein !";
prompt_contents = "http://";
}
else {
prompt_text = "Gebe die URL zum Flash ein !";
prompt_contents = "http://";
}
linkurl = prompt(prompt_text,prompt_contents);
if ((linkurl != null) && (linkurl != "")) {
if ((linktext != null) && (linktext != "")) {
theText = "["+theTag+"="+linkurl+"]"+linktext+"[/"+theTag+"] ";
addText(theText, "", false, theForm);
}
else{
theText = "["+theTag+"="+linkurl+"]"+linkurl+"[/"+theTag+"] ";
addText(theText, "", false, theForm);
}
}
}

function flash(theForm, theTag, promptText) {

if(promptText=='') promptText=getSelectedText(theForm);

if (theTag == "block") {
inserttext = prompt("Gebe den Text für den BLOCKTEXT ein !", promptText);
}
if (theTag == "left") {
inserttext = prompt("Gebe den Text ein der LINKSBÜNDIG eingefügt wird !", promptText);
}
if (theTag == "nimg") {
inserttext = prompt("Gebe die URL zum Bild ein (Bild wird NEGATIVE dargestellt)", promptText);
}
if (theTag == "right") {
inserttext = prompt("Gebe den Text ein der RECHTSBÜNDIG eingefügt wird !", promptText);
}
if (theTag == "wave") {
inserttext = prompt("Gebe den Text ein der WELLENFÖRMIG dargestellt wird !", promptText);
}
if (theTag == "d") {
inserttext = prompt("Gebe den Text ein der DURCHGESTRICHEN dargestellt werden soll !", promptText);
}

if (theTag == "blink") {
inserttext = prompt("Gebe den Text ein der BLINKEN soll !", promptText);
}
if (theTag == "marquee") {
inserttext = prompt("Gebe den Text ein der als LAUFSCHRIFT dargestellt werden soll !", promptText);
}
if (theTag == "tt") {
inserttext = prompt("Gebe den Text ein der in Schreibmaschinenform dargestellt werden soll !", promptText);
}
if (theTag == "bt") {
inserttext = prompt("Gebe den Text ein der in BLUR dargestellt werden soll !", promptText);
}
if (theTag == "sub") {
inserttext = prompt("Gebe den Text ein der TIEFGESTELLT dargestellt werden soll !", promptText);
}
if (theTag == "s") {
inserttext = prompt("Gebe den Text ein der in Schattenform dargestellt werden soll !", promptText);
}
if (theTag == "sup") {
inserttext = prompt("Gebe den Text ein der Hochgestellt dargestellt werden soll !", promptText);
}
if (theTag == "CENTER") {
inserttext = prompt("Gebe den Text ein Zentriert dargestellt werden soll !", promptText);
}
if (theTag == "denk") {
inserttext = prompt("Gebe den Text ein der in einer Denkblase dargestellt werden soll !", promptText);
}
if (theTag == "ftp") {
inserttext = prompt("Gebe den Link zum FTP-SERVER ein !", promptText);
}
if (theTag == "nfo") {
inserttext = prompt("Gebe den NFO-Text ein !", promptText);
}

if ( (inserttext != null) && (inserttext != "") ) {
addText("[" + theTag + "]" + inserttext + "[/" + theTag + "]", "", false, theForm);
}
}

function bbcode_smilie(){
window.open("misc.php?action=text2schild","text2schild", "toolbar=no,scrollbars=yes,resizable=yes,statusbar=yes,width=400,height=300
");
}

// **********************BBCode-Hack Ende*********************************

function dolist(theForm) {
listType = prompt(list_type_prompt, "");
if ((listType == "a") || (listType == "1")) {
theList = "
    \n";
    listEend = "
";
}
else {
theList = "
    \n";
    listEend = "
";
}

listEntry = "initial";
while ((listEntry != "") && (listEntry != null)) {
listEntry = prompt(list_item_prompt, "");
if ((listEntry != "") && (listEntry != null)) theList = theList+"[*]"+listEntry+"\n";
}

addText(theList + listEend, "", false, theForm);
}


function addText(theTag, theClsTag, isSingle, theForm)
{
var isClose = false;
var message = theForm.message;
var set=false;
var old=false;
var selected="";

if(navigator.appName=="Netscape" && message.textLength>=0 ) { // mozilla, firebird, netscape
if(theClsTag!="" && message.selectionStart!=message.selectionEnd) {
selected=message.value.substring(message.selectionStart,message.selectio
nEnd);
str=theTag + selected+ theClsTag;
old=true;
isClose = true;
}
else {
str=theTag;
}

message.focus();
start=message.selectionStart;
end=message.textLength;
endtext=message.value.substring(message.selectionEnd,end);
starttext=message.value.substring(0,start);
message.value=starttext + str + endtext;
message.selectionStart=start;
message.selectionEnd=start;

message.selectionStart = message.selectionStart + str.length;

if(old) { return false; }

set=true;

if(isSingle) {
isClose = false;
}
}
if ( (myVersion >= 4) && is_ie && is_win) { // Internet Explorer
if(message.isTextEdit) {
message.focus();
var sel = document.selection;
var rng = sel.createRange();
rng.colapse;
if((sel.type == "Text" || sel.type == "None") && rng != null){
if(theClsTag != "" && rng.text.length > 0)
theTag += rng.text + theClsTag;
else if(isSingle)
isClose = true;

rng.text = theTag;
}
}
else{
if(isSingle) isClose = true;

if(!set) {
message.value += theTag;
}
}
}
else
{
if(isSingle) isClose = true;

if(!set) {
message.value += theTag;
}
}

message.focus();

return isClose;
}


function getSelectedText(theForm) {
var message = theForm.message;
var selected = '';

if(navigator.appName=="Netscape" && message.textLength>=0 && message.selectionStart!=message.selectionEnd )
selected=message.value.substring(message.selectionStart,message.selection
End);

else if( (myVersion >= 4) && is_ie && is_win ) {
if(message.isTextEdit){
message.focus();
var sel = document.selection;
var rng = sel.createRange();
rng.colapse;

if((sel.type == "Text" || sel.type == "None") && rng != null){
if(rng.text.length > 0) selected = rng.text;
}
}
}

return selected;
}

function setFocus(theForm) {
theForm.message.focus();
}


lg jana
Hamsterinfos
Der Hack ist Super

geht auch alles nur wenn ich bestätige das ich die Urheberrechte habe steht da
©undefined


Laut Anleitung soll da der Username stehen.

Wie kann ich das ändern??
Gipskopf
der Hack läuft nicht.
Agi
Zitat:
Original von Gipskopf
der Hack läuft nicht.


Was genau läuft nicht? Ein paar Infos mehr würden nicht schaden. Augenzwinkern
djpatrick
erledigt Augenzwinkern
Setchan
habe exakt nach anleitung eingebaut bekomme jedoch keine abfrage wenn ich ein bild einstellen will.

bitte um hilfe
marcus-gizmo
Der Hack läuft bei mir auch nicht habe die 3 schritte genausestens gemacht

es wird nicht abgefragt copyright

es gibt auch keinen copyright verweis


wbb version 2.3.6

wäre über Hilfe dankbar

wenn irgendwelche dateien benötigt werden bescheid sagen

gruss

edit ist der Support eingestellt?
bmwclubdresden
hat jemand diesen Hack noch in Nutzung ??
minette
also weiss ich nicht wo das probleme ist

bei mir auf ein neutral leer forum
lauf es einwandfrei
bmwclubdresden
es zeigt aber nur den benutzernamen an, oder?
ich würde gerne ein logo mit einsetzen wollen.
kann mir da einer weiterhelfen?

dannke
minette
ja richtig
wenn du der benutzername sehen kann
dann ist gut

kannst du es sehen?
bmwclubdresden
ich wollte nicht den benutzername sondern ein foto oder namen unseres clubes auf den allen hochgeladenen fotos.