Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sunny C.

Pages: 1 2 [3] 4 5 6 7 ... 19
31
-  Das Tutorial wurde von Ivan geschrieben. Ich möchte das Tutorial einmal etwas erweitern um auch zu erklären, wie es möglich ist weitere Felder zu ordnen.
- This tutorial was written by Ivan. I would like to extend the tutorial once more to explain how it is possible to arrange other fields.


-  Es gibt zwei Verschiedene Arten von Zusätzlichen Feldern
- There are two different types of additional fields

  • Images Fields / Bilder- Felder
  • User Fields / User Felder - Coming soon / kommt noch

-  In diesem Beispiel wird erklärt, wie ich ein zusätzliches Image Field anlegen kann. Das Text Feld ist einzeilig
und kann für verschiedene Eingaben wie z.b Photograph Copyright Hinweis eingesetzt werden.
- This example explains how I can create an additional image Field. The text box is one line
and for various inputs such as Photograph copyright notice may be used.

1) öffne / open includes/db_field_definitions.php
suche / search
?>

oberhalb einfügen / add above
$additional_image_fields['table_info_photo'] = array($lang['table_info_photo'], "tableinfo"0)
$additional_image_fields['image_photograph'] = array($lang['image_photograph'], "text"0)


2) öffne lang/***/main.php
suche / search
Code: [Select]
?>
oberhalb einfügen / add above
//-----------------------------------------------------
//--- Additional Fields -------------------------------
//-----------------------------------------------------
$lang['table_info_photo'] = "Photograph Infos";
$lang['image_photograph'] = "Photograph";

3) öffne / open templates/default/member_uploadform.html
füge in dem gewünschten Bereich dies hinzu / add in the desired range, this

Sprache / Language:
Code: [Select]
{lang_image_photograph}
Feld für die Eingabe: / Field for the input:
Code: [Select]
<input type="text" name="image_photograph" size="30" value="{image_photograph}" class="input" />
3a) öffne / open templates/default/details.html
füge in dem gewünschten Bereich dies hinzu / add in the desired range, this

Sprache / Language:
Code: [Select]
{lang_image_photograph}
Nur Anzeige / Show only
Code: [Select]
{image_photograph}
4) Gestaltung & Optionen / Design & Options
$additional_user_fields['image_photograph'] = array($lang['image_photograph'], "text", 0);

- Der rot markierte Text in diesem Fall "text" kann durch "textarea" oder "radio" oder durch  "tableinfo" ersetzt werden.
- The red highlighted text in this case "text" can be "textarea", or  "radio" or  "tableinfo" should be replaced

- Die grün makierte Zahl in diesem Fall 0 bestimmt ob das Feld ein Pflichtfeld sein soll oder nicht.
1 = Pflichtfeld
0 = Kein Pflichtfeld
- The green highlighted number 0 in this case is to be determined whether the field is a required field or not.
1 = required field
0 = Optional field

"text" Quelle: http://de.selfhtml.org/html/formulare/eingabe.htm#felder
- Einzeilige Eingabefelder dienen zur Aufnahme von einem oder wenigen Wörtern oder einer Zahl.
- One-line text boxes are used to hold one or a few words or a number

"textarea"
Quelle: http://de.selfhtml.org/html/formulare/eingabe.htm#bereiche
- Mehrzeilige Eingabefelder dienen zur Aufnahme von Kommentaren, Nachrichten usw.
- Multi-line text boxes are used to receive comments, messages, etc.

"radio" Quelle: http://de.selfhtml.org/html/formulare/auswahl.htm#radiobuttons
- Radio-Buttons sind eine Gruppe von beschrifteten Knöpfen, von denen der Anwender einen auswählen kann. Es kann immer nur einer der Radio-Buttons ausgewählt sein. Der Wert des ausgewählten Radio-Buttons wird beim Absenden des Formulars mit übertragen.
- Radio buttons are a group of labeled buttons, of which the user can select one. There can be only one of the radio buttons are selected. The value of the selected radio button is transmitted when sending the form with.

"tableinfo" Zusätzliche Felder abgrenzen / Additional fields delimit
- Mit "tableinfo" lassen sich Zusätzliche Felder abgrenzen beziehungsweise Kategorisieren
- With additional "tableinfo" can define additional fields or categorize

5)
- Damit die Funktion "tableinfo" auch funktioniert, muss diese erst dem System beigebracht werden
- Thus the "tableinfo" also works, it must first be taught the system

5a)
öffne / open admin/admin_functions.php
suche / search
function show_table_separator($title$colspan 2$anchor "") {
  global 
$bgcounter;
  echo 
"<tr class=\"tableseparator\">\n<td colspan=\"$colspan\"><a name=\"".$anchor."\"><b><span class=\"tableseparator\">".$title."</span></b></a></td>\n</tr>\n";
  
$bgcounter 0;
}

füge darunter / add after
function show_table_info_row($title$name$value 1) {
  global 
$HTTP_POST_VARS$lang;
  if (isset(
$HTTP_POST_VARS[$name])) {
    
$value $HTTP_POST_VARS[$name];
  }
  echo 
'
<tr class="tableseparator">
<td colspan="2"><a name=""><b><span class="tableseparator">'
.$title.'</span></b></a></td>

</tr>
'
;
}

suche / search
      case "radio":
        
show_radio_row($val[0], $field_name, ($value == "") ? $value);
        break;

füge darunter / add after
      case "tableinfo":
        
show_table_info_row($val[0], $field_name, ($value == "") ? $value);
        break;



6)
Datenbank Einträge
Code: [Select]
ALTER TABLE `4images_images` ADD `image_photograph` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `4images_images` ADD `table_info_photo` VARCHAR( 255 ) NOT NULL;
Code: [Select]
ALTER TABLE `4images_images_temp` ADD `table_info_photo` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `4images_images_temp` ADD `image_photograph` VARCHAR( 255 ) NOT NULL;

32
Programming / Private Nachrichten / private messages
« on: October 16, 2011, 04:47:24 PM »
Hallo zusammen,

ich habe in der logininfo einen Link zu den Privaten Nachrichten im Woltlab Burning Board. (forum/index.php?page=PMList)
Ich möchte aber bei erhalt einer Nachricht, hinter dem Link auch eine 1 oder andere Zahl steht.
Dazu muss man die Datenbank passend auslesen. Ich muss auf wcf1_user zugreifen und pmOutstandingNotifications auslesen. Das was dort steht ist die Anzahl der noch ungelesenen Nachrichten.
Mein Link sieht so aus:
Code: [Select]
<a href="forum/index.php?page=PMList">Private Nachrichten</a>Wenn jetzt nun neue Nachrichten vorhanden sind, soll der Link demnach so aussehen:
Code: [Select]
<a href="forum/index.php?page=PMList"><strong>Private Nachrichten (3)</strong></a>Hat dafür jemand eine Idee?

--

Hi all,

I have the login info in a link to the private messaging in WoltLab Burning Board. (forum/index.php?page=PMList)
But I want to sustaining a message behind the link is also a 1 or a different number.
This requires you to read the database appropriately. I need to access and wcf1_user pmOutstandingNotifications read. That what it says is the number of unread messages.
My link looks like this:
Code: [Select]
<a href="forum/index.php?page=PMList">Private Messages</ a>Now, if now there are new messages, the link should therefore look like this:
Code: [Select]
<a href="forum/index.php?page=PMList"><strong>Private Messages (3)</ strong></ a>Does anyone have an idea for it?

includes/page_header.php
Above / Über:
$site_template->register_vars(array(
  
"home_url"  => ROOT_PATH,
  
"media_url" => MEDIA_PATH,

This / Das ?
$sql "SELECT w.pmOutstandingNotifications
        FROM ("
.USERS_TABLE." u)
	
	
LEFT JOIN wcf1_user w ON (w.userID = "
.get_user_table_field("u.""user_id").")
        WHERE u.user_id = 
$user_id";
$wbb_row $site_db->query_firstrow($sql);

Die User haben in beide Systeme die gleiche ID / The users have the same ID in both systems

33
Mods & Plugins (Requests & Discussions) / Bilder aufrufe / Image Views
« on: October 13, 2011, 11:01:25 PM »
Hallo zusammen,

wenn man in der Detailansicht die Aufrufe der Bilder ansieht, steht dort nur die Nummer.

Ist es möglich, das man das ausrechnen kann wie viele Aufrufe pro Tag stattgefunden haben?

Beispiel:
Original: Das Bild wurde 1 mal aufgerufen
Idee: Dieses Bild wurde bereits 1 mal (0,5 Aufrufe pro Tag) angesehen.

--

Hi all,

if you are in the detail view looks at the views of the pictures, there is only the number.

Is it possible that we can calculate the number of visits per day take place?

example:
Original: The image was viewed 1 times
Idea: This image has been viewed 1 times (0.5 views per day).

34
Hallo zusammen,

in der Detailansicht gibt es ja die Standardfunktion das man das vorherige Bild und das nächste Bild ansehen bzw. klicken kann.
Ist es denn möglich, wenn man ein Bild anklickt das man anstatt der Bilder die in dieser Kategorie liegen, die Bilder des Users für nächstes und vorheriges Bild anzeigen lassen kann?

--

Hi all,

in the detail view there are the standard functions that you can then view the previous picture and the next image or.
Is it possible if you click on an image instead of the pictures in this category are capable of showing images of the user to leave the next and previous picture?

35
Hallo zusammen,

gibt es irgendeine Möglichkeit Kategorienamen mehrsprachig anzuwenden? So etwas suche ich ganz dringend

---

Hi,

there is any possibility to use category names multilingual? This is something I very much look

36
Mods & Plugins (Requests & Discussions) / Kategorien komplett anzeigen
« on: September 11, 2011, 02:29:36 PM »
Hallo zusammen,

in der thumbnail_bit.html wird ja die Kategorie ausgegeben, allerdings nur die, in der sich das Bild befindet.


Beispiel:
Blumen -> Kleeblatt
Glücksbringer -> Kleeblatt

In der thumbnail würde als Kategorie nur "Kleeblatt" angezeigt werden, aber man weis nicht, in welche der Beiden das sein soll:
Blumen -> Kleeblatt
Glücksbringer -> Kleeblatt

Kann man das irgendwie zusammen ausgeben lassen?

Oder Quasi {clickstream} anstelle von {cat_name} ausgeben

37
Hallo zusammen,

bei mir kann ich nicht mehr als 3 in der Reihe anzeigen. Ab "4" werden diese untereinander angezeigt.

Ich habe den Code so in der index.php stehen:
$num_new_images 4;
Das sieht aber dann so aus:

Wenn es 3 sind sieht es so aus:

Das verstehe ich nicht.
Im ACP sieht es so aus:

thimbnail_bit
Code: [Select]
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
<b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new}<br />
{thumbnail}
<br/>
<a href="{image_url}">Details</a> <br/>
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lightbox_button}
index.php
$num_new_images 4;
Kann mir da jemand helfen?

38
Programming / lostpassword -> member.php?action=lostpassword
« on: August 08, 2011, 08:26:34 PM »
Hallo zusammen,

wenn ein User sein Passwort vergessen hat, kann er sich über "member.php?action=lostpassword" ein neues Passwort zusenden lassen.
Da ich mehrere Systeme in einer Datenbank installiert habe, möchte ich auch das die Passwörter in den anderen Systemen geändert wird.

if a user has forgotten his password, he can be sent via "member.php?action=lostpassword" a new password.
Since I have installed several systems in a database, I would like also changes the passwords in the other systems.

In der member.php ist da folgender Punkt zu finden:
In the following there member.php point is found:
      $sql "UPDATE ".USERS_TABLE."
              SET "
.get_user_table_field("""user_password")." = '".$user_password_hashed."'
              WHERE "
.get_user_table_field("""user_id")." = ".$checkuser[$user_table_fields['user_id']];
      
$site_db->query($sql);

Für das andere System müsste das ganze noch dazu so aussehen:
For the other system would have all still look to this:
      $sql "UPDATE pk__user
              SET user_pw = '"
.md5($user_password)."';
              WHERE "
.get_user_table_field("""user_id")." = ".$checkuser[$user_table_fields['user_id']];
      
$site_db->query($sql);

Das funktioniert leider nicht. Auch das funktioniert nicht
This does not work unfortunately. Even that does not work
      $sql "UPDATE pk__user
              SET user_pw = '"
.md5($user_password)."';
              WHERE user_id = "
.$checkuser[$user_table_fields['user_id']];
      
$site_db->query($sql);

Auch das direkte eintragen der User ID bringt nichts!?
Also enter the user ID does not direct?
      $sql "UPDATE pk__user
              SET user_pw = '"
.md5($user_password)."';
              WHERE user_id = '5'"
;
      
$site_db->query($sql);

Was ist denn hier schon wieder falsch? Ich danke für Hilfe im Voraus
What's going on here wrong again? I am grateful for the help in advance

Edit://
Kann mir da niemand helfen?
Warum funktioniert das nicht?

39
Programming / - delete -
« on: August 02, 2011, 11:15:15 PM »
- delete -

40
Programming / additional image field
« on: May 20, 2011, 04:20:19 PM »
Hallo zusammen,
ich habe ein zusätzliches Bildfeld hinzugefügt. Bei Bilder hinzufügen, möchte ich ein Feld abfangen und an einer von mir vorgegeben Stelle ausgeben. Aber das gelingt mal wieder nicht.

// Forenpost erstellen
        
$sql "INSERT INTO wbb1_1_post
                 (threadID, enableHtml, enableBBCodes, username, subject, userID, message)
                 VALUES
                ("
.$threadID.", '0', '1', '".$user_info['user_name']."', 'Coloration: ".$image_name."',  '".$user_id."', '[table=\'Detail,Info,Detail,Info\'][*][b]Programm[/b] [*]".$image_row['coloration_prog']." [*][b]Dauer[/b] [*]2 TAge [*][b]Manga[/b] [*]980 [*][b]Ansehen[/b] [*][url=http://\'".DOMAIN_PFAD_IMAGE."details.php?".URL_IMAGE_ID."=".$image_id."\']Link[/url] [/table]
[align=center] 

[img]http://"
.DOMAIN_PFAD_WBB."system/img/logos/mangacoleration.png[/img] 

[infobox]"
.$image_description."[/infobox] 

[/align]')"
;
        
$result =  $site_db->query($sql);


Das geht alles nicht:
".$image_row['coloration_prog']."
".$additional_field_array['coloration_prog']."
".$additional_image_fields['coloration_prog']."
".$additional_value_sql['coloration_prog']."
".$image_info['coloration_prog']."
".$image_row['coloration_prog']."
".$table_fields['coloration_prog']."

Ich war mir eigentlich sicher, dass dies funktioniert
".$image_row['coloration_prog']."
Aber das tut es ebenfalls nicht

41
Programming / ACP direct Category
« on: May 18, 2011, 06:14:18 PM »
Hallo zusammen,

ich würde gerne im Admin Control Panel direkte links für die Bilderbearbeitung anlegen. Ein direkter Aufruf des Bildes ist möglich, aber ich möchte die Kategorie mit den dazugehörigen Bilder ausgeben.

----
Hi,

I would like to create in the Admin Control Panel Direct links for editing images. A direct call of the image is possible, but Iwould like to to spend the category with the corresponding pictures.

admin/coleration_images.php?action=editimage&cat_id=8 (Dont work for Show Kategorie)
admin/coleration_images.php?action=editimage&image_id=9 (Works for Direkt-Image-Edit)
admin/coleration_images.php?action=findimages&cat_id=8 (Dont work - Show the Same images on all Cat-ID´s (cat_id=NUMBER))

42
Programming / Aktivation Key
« on: May 05, 2011, 09:11:02 PM »
Ich versuche den Aktivierungscode bei der Registrierung auch in das WBB zu übergeben
$sql "INSERT INTO wcf1_user
(userID, username, password, salt, email, registrationDate, activationCode)
VALUES
('"
.$user_id."', '".$user_name."', '".$user_password_wbb."', '".$salt."', '".$user_email."', '".time()."', '".$activationkey."')";
$result $site_db->query($sql);


Aber der Code wird entweder nicht geschrieben oder nur sowas wie "7846". Wie bekomme ich das hin, dass der Aktivierungscode der gleiche ist, der auch in 4images übergeben wird!?

43
Programming / WBB User Post´s in 4images User Profile
« on: April 25, 2011, 07:56:19 PM »
Hi,
I would like to spend the written contributions from the Forum in the 4images user profile.
The users in the Forum and 4images always the same ID

--
Hallo,
ich würde gerne die geschrieben Beiträge aus dem Forum in dem 4images-User-Profil ausgeben.
Die User haben in 4images als auch im Forum immer die gleiche ID

member.php
//-----------------------------------------------------
//--- Show Profile ------------------------------------
//-----------------------------------------------------

// WBB Datenbank auslesen
  
$sql "SELECT a.userID, a.posts
          FROM "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = c.user_id)
          LEFT JOIN wbb1_1_user a ON (a.userID = "
.get_user_table_field("u.""user_id").")
          WHERE c.user_id = 
$user_id
          ORDER BY c.user_name ASC"
;
  
$result $site_db->query($sql);


and
      "lang_icq" => $lang['icq'],
	
  
"wbb_post" => $result['posts'],


in member_profile.html
{wbb_post}

But that does not work. Did I miss something?
Aber das funktioniert nicht. Habe ich etwas übersehen?

Code: [Select]
DB Error: Bad SQL Query: SELECT a.userID, a.posts FROM 4images_users u ON (u.user_id = c.user_id) LEFT JOIN wbb1_1_user a ON (a.userID = u.user_id) WHERE c.user_id = ORDER BY c.user_name ASC
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON (u.user_id = c.user_id) LEFT JOIN wbb1_1_user a ON (a.userID = u.us' at line 2

This Works:
  $sql "SELECT posts
          FROM (wbb1_1_user w, "
.USERS_TABLE." u)
          WHERE w.userID = u.user_id"
;
  
$wbb_row $site_db->query_firstrow($sql);

But is this Correct?

Edit 2:
All dont work, and this dont work too
  $sql "SELECT w.posts, u.user_id
          FROM "
.USERS_TABLE." u
	
	
  LEFT JOIN wbb1_1_user w ON (w.userID = "
.get_user_table_field("u.""user_id").")
          WHERE u.user_id = 
$user_id";
  
$wbb_row $site_db->query_firstrow($sql);

With this code, I spent every user the same ...
  $sql "SELECT posts
          FROM (wbb1_1_user w, "
.USERS_TABLE." u)
          WHERE w.userID = u.user_id"
;
  
$wbb_row $site_db->query_firstrow($sql);

As I said, that is USER ID in the Forum and 4images the same.

Dont work:
$sql "SELECT posts
        FROM wbb1_1_user
	
	
WHERE userID = '"
.get_user_info($user_id)."'";
$wbb_row $site_db->query_firstrow($sql);


Dont work
$sql "SELECT posts
        FROM wbb1_1_user
	
	
WHERE userID = '
$user_id'";
$wbb_row $site_db->query_firstrow($sql);


Dont work
  $sql "SELECT posts
          FROM (wbb1_1_user w, "
.USERS_TABLE." u)
          WHERE "
.$user_table_fields['user_id']." = w.userID";
  
$wbb_row $site_db->query_firstrow($sql);


  $sql "SELECT posts
          FROM (wbb1_1_user w, "
.USERS_TABLE." u)
          WHERE w.userID = "
.$user_table_fields['user_id']."";
  
$wbb_row $site_db->query_firstrow($sql);


  $sql "SELECT posts
          FROM (wbb1_1_user w, "
.USERS_TABLE." u)
          WHERE w.userID = "
.$user_row['user_id']."";
  
$wbb_row $site_db->query_firstrow($sql);


  $sql = "SELECT posts
          FROM (wbb1_1_user w, ".USERS_TABLE." u)
          WHERE w.userID = '$user_id'";
  $wbb_row = $site_db->query_firstrow($sql);

.... i dont no ...

44
Hallo zusammen,

ich habe ein komisches Problem.

4images als Testinstallation installiert
Habe die ganze Zeit Kategorien angelegt, zuletzt "Scripte" danach konnte ich keine weiteren anlegen. Bekomme nur die Meldung "Fehler beim Hinzufügen der Kategorie"

Das einzigste was ich geändert habe, war das ich ein weiteres Feld für die Kategorien angelegt habe in dem ich ein Icon zuweisen kann.

admin/categories.php
cat_icon

Ich denke da liegt auch nicht das Problem. Ich konnte die anderen Kategorien auch anlegen. Nach der letzten "Scripte" eben nicht mehr

Den cache von 4images habe ich auch gelöscht.

Edit:

Jetzt habe ich die letzten beiden gelöscht "Scripte" und "Eins-Unter-Unter"
Und nun kann ich trotzdem keine neuen erstellen.... was mag das sein?

45
Hallo zusammen,

ich habe ein neues Feld in der "Kategorie hinzufügen" ansicht hinzugefügt. Dort kann ich Icons für die benötigte Kategorie angeben. Wie kann ich aber dort ein Dropdown einbauen, dass ich die Icons direkt aus einem vorgegebenen Verzeichnis auswählen kann?

---

Hi,

I have a new field in the "Add Category" view added. There I can specify icons for the required category. How can I install a dropdown there, but that I can select the icons directly from a given directory?

Pages: 1 2 [3] 4 5 6 7 ... 19