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 8 ... 19
46
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?

47
Programming / if endif - html Tags
« on: March 25, 2011, 06:18:05 PM »
Hallo zusammen,

in den PHP Dateien kann man ja mit diesen Codeschnipsel abhängig davon was im ACP angegeben wurde einen gewissen Inhalt ein oder ausblenden:
   if($config['test'] == 1)  {
   
$test_code .= "Test\n";
   }


Ist das auch irgendwie möglich das man in den HTML Dateien so etwas verwenden kann?
Code: [Select]
{if if($config['test'] == 1).....

Sowas in der Art?!

48
Chit Chat / http://www.4homepages.de/version/version.php
« on: March 25, 2011, 05:49:04 PM »
Hallo zusammen,

ich würde gerne wissen wie diese Datei aufgebaut ist http://www.4homepages.de/version/version.php :D

49
Hallo zusammen,

wie kann man die Standard BBCode- Funktion im ACP einbauen die man auch bei den Kommentaren verwendet?

50
Programming / bbcode
« on: December 14, 2010, 11:06:13 PM »
Hello this Code dont work for me:
	
$text preg_replace("/\[shadow\][color=#(.*?)\](.*?)\[\/color\][\/shadow\]/si""<span style=\"text-shadow: 2px 2px 5px #\\1;\">\\2</span>"$text);
	
$text preg_replace("/\[color=#(.*?)\][shadow\](.*?)[\/shadow\]\[\/color\]/si""<span style=\"text-shadow: 2px 2px 5px #\\1;\">\\2</span>"$text);

Error:
Quote
Warning: preg_replace() [function.preg-replace]: Compilation failed: missing terminating ] for character class at offset 52 in /www/htdocs/w00b2576/testumgebung/4images/bbcodev3/bbcodev3.php on line 357

Warning: preg_replace() [function.preg-replace]: Compilation failed: missing terminating ] for character class at offset 52 in /www/htdocs/w00b2576/testumgebung/4images/bbcodev3/bbcodev3.php on line 358
I cant´t find the error!

51
Programming / function in tag / function in einem tag
« on: December 14, 2010, 05:17:11 PM »
Hallo,

wie kann man als Beispiel diesen Code in einem tag legen? / how can you put this code in a tag?
          if (@is_dir("./bbcodev3/addons/media")) {
            
$handle = @opendir("./bbcodev3/addons/media/");
            while (
$file = @readdir($handle)) {
              if (
get_file_extension($file) != "php") {
                continue;
              }
              
$plugin_file file("./bbcodev3/addons/media/".$file);
              
$plugin_file[0] = trim($plugin_file[0]);
              if (
preg_match("/CODE:(.+)/"$plugin_file[0], $regs)) {
                echo 
trim($regs[1]);
              }
            }
            @
closedir($handle);
          }

Der Tag sollte dann in den HTML nutzbar sein: / The tag should then be available in the HTML:
Code: [Select]
{code}
Geht das überhaupt? / Is that possible?

52
Chit Chat / Seiten Anmeldung
« on: November 26, 2010, 08:59:58 PM »
Immer wenn ich in diesem Thread gehe:
http://www.4homepages.de/forum/index.php?topic=27551.0

Kommt immer diese Meldung:
Anhang!

53
Mods & Plugins (Requests & Discussions) / [MOD] Password Power v0.1
« on: November 18, 2010, 04:07:35 PM »

/*

 _____                                    _   _____                       
|  __ \                                  | | |  __ \                      
| |__) |_ _ ___ _____      _____  _ __ __| | | |__) |____      _____ _ __ 
|  ___/ _` / __/ __\ \ /\ / / _ \| '__/ _` | |  ___/ _ \ \ /\ / / _ \ '__| v0.1
| |  | (_| \__ \__ \\ V  V / (_) | | | (_| | | |  | (_) \ V  V /  __/ |   
|_|   \__,_|___/___/ \_/\_/ \___/|_|  \__,_| |_|   \___/ \_/\_/ \___|_|   
                                                                             
Copyright                          : Sumale.nin
Kontakt                            : ben88b@googlemail.com
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

*/

Quote
[MOD] Password Power v0.1 ist eine Erweiterung die dem User bei der Registrierung direkt anzeigt ob das gewählte Passwort "Sehr Schwachh" bis "Sehr stark" ist.
Es kommt nicht auf die Länge an, sondern auf die Zeichen die man verwendet. In dem Beispiel kann das eventuell anders schein als sein.

Online Installation, Download and Screenshots:  :arrow:

54
Chit Chat / Beitrags- Editierung
« on: November 16, 2010, 11:14:02 PM »
[OFFTOPIC]
@Rembrandt,

so langsam nervt es mit deiner Beitrags- Editierung von wegen "Volltext- Zitat".
Ein Volltext- Zitat wäre der gesamte Beitrag zu zitieren, aber das tat ich definitiv nicht. Ich habe den Beitrag noch einmal editiert und den Mist von dir raus genommen. (Wenn du dir was erlaubst, dann tue ich das auch)

Wenn ich
Quote
ich habe erneut  x bilder mit den gleichen schlüsselwörtern hochgeladen ich bekomme nirgends Fehlermeldungen..
@x23piracy, leider kann ich all die von dir beschriebenen fehler nicht nachvollziehen.

zitieren möchte, hast du kein Recht mein Beitrag zu zu pfuschen und ein ganz anderes Zitat z.B wie dieses einzufügen....
Quote
also entweder ich stehe auf der leitung oder wir reden aneinander vorbei.

und dreist in rot darunter zu schreiben das es ein Volltext- Zitat sei.

Was ist los? Soll das witzig sein oder ernst gemeint?

Du verbietest mir schlicht weg diverse Texte zu zitieren.
Und dann noch die Frechheit zu besitzen!
Dass was du in dem Quote gelassen hast, war absolut nicht was ich zitieren wollte und demnach passte meine Antwort bzw. Frage absolut nicht dazu.

Das solltest du unterlassen, dass habe ich noch nie erlebt!

Ps.: Screen habe ich mal gemacht bevor du wieder hier alles zitierst und mit deinem Wunschtext füllst!

55
Discussion & Troubleshooting / get_browser_info()
« on: November 07, 2010, 01:52:37 AM »
Wie kann ich auf der Startseite
get_browser_info() ausgeben lassen?

das steht in der functions.php
function get_browser_info() {
  global 
$global_info$HTTP_USER_AGENT$HTTP_SERVER_VARS;
  if (!empty(
$global_info['browser_agent'])) {
    return 
$global_info['browser_agent'];
  }
  if (!empty(
$HTTP_SERVER_VARS['HTTP_USER_AGENT'])) {
    
$HTTP_USER_AGENT $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
  }
  elseif (
getenv("HTTP_USER_AGENT")) {
    
$HTTP_USER_AGENT getenv("HTTP_USER_AGENT");
  }
  elseif (empty(
$HTTP_USER_AGENT)) {
    
$HTTP_USER_AGENT "";
  }
  if (
preg_match("#MSIE ([0-9].[0-9]{1,2})#i"$HTTP_USER_AGENT$regs)) {
    
$global_info['browser_agent'] = "MSIE";
    
$global_info['browser_version'] = $regs[1];
  }
  elseif (
preg_match("#Mozilla/([0-9].[0-9]{1,2})#i"$HTTP_USER_AGENT$regs)) {
    
$global_info['browser_agent'] = "MOZILLA";
    
$global_info['browser_version'] = $regs[1];
  }
  elseif (
preg_match("#Opera(/| )([0-9].[0-9]{1,2})#i"$HTTP_USER_AGENT$regs)) {
    
$global_info['browser_agent'] = "OPERA";
    
$global_info['browser_version'] = $regs[2];
  }
  else {
    
$global_info['browser_agent'] = "OTHER";
    
$global_info['browser_version'] = 0;
  }
  return 
$global_info['browser_agent'];
}

56
Chit Chat / php bbcode
« on: October 29, 2010, 12:30:26 PM »
Warum baut ihr eigentlich kein Button für den php-bbcode ein? Das wäre gerade für die Mod- Ersteller bequemer!

57
Coming Back!

58
Hi,

I would like to know how the url from youtube-videos into the correct spelling can rewrite for the embed codes?

From: http://www.youtube.com/watch?v=HchX2bQnz3k
To: http://www.youtube.com/v/HchX2bQnz3k?fs=1&amp;hl=de_DE&amp;rel=0

I have created some other BBcodes, but here I need an example.

includes.php
    $search_array = array(
      
"/(\[)(youtube)(=)(['\"]?)(www\.youtube)([^\"']*)(\\4])(.*)(\[\/youtube\])/siU",
      
"/(\[)(youtube)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/youtube\])/siU",
      
"/(\[)(youtube)(])(www\.)([^\"]*)(\[\/youtube\])/siU",
      
"/(\[)(youtube)(])([^\"]*)(\[\/youtube\])/siU"
    
);
    
$replace_array = array(
      
"<a href=\"http://www.\\6\" target=\"_blank\" rel=\"nofollow\">\\8</a>",
      
"<a href=\"\\5\" target=\"_blank\" rel=\"nofollow\">\\7</a>",
      
"<a href=\"http://www.\\5\" target=\"_blank\" rel=\"nofollow\">www.\\5</a>",
      
"<object width=\"150\" height=\"150\"><param name=\"movie\" value=\"\\4\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"\\4\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"150\" height=\"150\"></embed></object>"
    
);


---

Hallo,

ich würde gerne wissen wie ich die url von youtube-videos in die richtige schreibweise für die embed-codes umschreiben kann?

Von: http://www.youtube.com/watch?v=HchX2bQnz3k
Zu: http://www.youtube.com/v/HchX2bQnz3k?fs=1&amp;hl=de_DE&amp;rel=0

Ich habe mir einige andere BBcodes erstellt, aber hier brauche ich ein Beispiel.

includes.php
    $search_array = array(
      
"/(\[)(youtube)(=)(['\"]?)(www\.youtube)([^\"']*)(\\4])(.*)(\[\/youtube\])/siU",
      
"/(\[)(youtube)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/youtube\])/siU",
      
"/(\[)(youtube)(])(www\.)([^\"]*)(\[\/youtube\])/siU",
      
"/(\[)(youtube)(])([^\"]*)(\[\/youtube\])/siU"
    
);
    
$replace_array = array(
      
"<a href=\"http://www.\\6\" target=\"_blank\" rel=\"nofollow\">\\8</a>",
      
"<a href=\"\\5\" target=\"_blank\" rel=\"nofollow\">\\7</a>",
      
"<a href=\"http://www.\\5\" target=\"_blank\" rel=\"nofollow\">www.\\5</a>",
      
"<object width=\"150\" height=\"150\"><param name=\"movie\" value=\"\\4\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"\\4\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"150\" height=\"150\"></embed></object>"
    
);

59
Discussion & Troubleshooting / total images on index
« on: October 06, 2010, 08:00:47 PM »
How can I output the number of current images in the gallery on the index?
{total_images} or {num_images} dont work.

60
Discussion & Troubleshooting / REPLACE_EMPTY;
« on: October 01, 2010, 01:46:32 PM »
Hallo wie kann ich Text oder Code in dieser Zeile einfügen:
$teaser_pfad = (!empty($image_row['image_teaser_pfad'])) ? format_text($image_row['image_teaser_pfad'], 101) : REPLACE_EMPTY;
Wenn das Feld nicht ausgefüllt ist soll auch der Code nicht angezeigt werden.

Der Code
Code: [Select]
<span id="teaser_pfad>Ausgabe</span>

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