[DEV] Advanced Attach Watermark

Mod Support

Moderators: BNa, Sekuro, 4seven

Re: [DEV] Advanced Attach Watermark

Postby TeaMike » 30 Aug 2013, 03:50

zum 1. das ist sehr schade, hoffe da noch was zu basteln. Das site logo ist auch auf beigem Hintergrund....
2. Punkt, der error kommt im PopUp sobald einer der 4 Buttons geklickt wird in der ACP um die Orphans zu behandeln; den code für die admin Verifizierung habe ich in den entsprechenden files im folder includes/watermark/orphans gefunden.

Siehe auch meine email, hoffe wir kommen da irgendwie zusammen!
TeaMike

Tiptop

Tiptop
 
Posts: 7
Joined: 26 Aug 2013, 16:36
 
Resolution: 1680x1050


Re: [DEV] Advanced Attach Watermark

Postby 4seven » 30 Aug 2013, 12:31

Da stimmt etwas mit den FTP Rechten für den Orphans Ordnerbereich nicht. Oder wieder .htaccess Restriktionen. Und, das das im ACP nur Admin only sein darf, ist klar. Hatte bis auf einige Problemserver und eingeschränkte Rechte auf Domains (für was der Mod nichts kann) keine Probleme.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] Advanced Attach Watermark

Postby TeaMike » 31 Aug 2013, 05:08

Der server ist bei godaddy; sollte eigentlich alles ganz normal laufen (so wie der Rest auch). Ist meine email nicht angekommen?
TeaMike

Tiptop

Tiptop
 
Posts: 7
Joined: 26 Aug 2013, 16:36
 
Resolution: 1680x1050


Re: [DEV] Advanced Attach Watermark

Postby 4seven » 31 Aug 2013, 21:00

Ja, die Antwort folgt asap..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] Advanced Attach Watermark

Postby Tim » 06 Sep 2013, 21:51

Hallo 4seven,

ich hole das Thema Watermark auch nochmal raus.
Ich installiere gerade ein neues Forum und habe dort die MOD eingebaut.
Beim Usermodus (Globale AAW Username Modus) sieht das Watermark sehr schön aus, wenn ich aber einen eigenen
Text eingebe, sieht es leider nicht aus, wie beim Usermodus.
Deswegen dachte ich mir, ich verändere in deinem Code einfach
Code: Select all
'© ' $user->data['username'] . ', submitted ' date($config['default_dateformat'], 

in
Code: Select all
'© www.beispiel.de'
.
Das hat leider nicht hingehauen, habe dann beim Hochladen eines Bildes nur eine weiße Seite und deswegen die Änderungen
rückgängig gemacht.
Ich hoffe, du hast einen Tip für mich. :)

LG Tim
Tim

Tiptop

Tiptop
 
Posts: 68
Joined: 13 Nov 2009, 23:08
 
Resolution: 1280x1024


Re: [DEV] Advanced Attach Watermark

Postby 4seven » 06 Sep 2013, 21:54

Wie sieht denn der Bereich drumrum aus? Zeig das mal etwas ausführlicher, bzw. weiträumiger.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] Advanced Attach Watermark

Postby Tim » 06 Sep 2013, 22:08

Ok, also ich habe folgendes geändert:

root/includes/watermark/watermark_convert_text.php
Von
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'], 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    

zu
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© www.beispiel.de', 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    


und von
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'], 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    

zu
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© www.beispiel.de', 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    


root/includes/watermark/watermark_convert_text_user.php

von
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'], 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    

zu
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© www.beispiel.de', 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    


und
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'], 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    

zu
Code: Select all
                    // ACP USER MODE
                    create_watermark_from_string( 
                    $uploaded_file_path
, $processed_file_path,
                    '© www.beispiel.de', 
                    $filedata
['filetime']),  
                    $config
['watermark_text_font'],   
                    round
($source_w / $config['watermark_text_ratio']), 
                    $config
['watermark_text_color'], 
                    $config
['watermark_text_transparency'],  
                    $config
['watermark_text_degree'], 
                    $config
['watermark_position'] ); 
                    


root/includes/watermark/watermark_message_text_acp.php

von
Code: Select all
  // ACP USER MODE
  create_watermark_from_string(
  $uploaded_file_path, $processed_file_path,
  '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'],
  $filedata['filetime']),
  $config['watermark_text_font'],
  round($source_w / $config['watermark_text_ratio']),
  $config['watermark_text_color'],
  $config['watermark_text_transparency'],
  $config['watermark_text_degree'],
  $config['watermark_position'] );
  


zu
Code: Select all
  // ACP USER MODE
  create_watermark_from_string(
  $uploaded_file_path, $processed_file_path,
  '© www.beispiel.de',
  $filedata['filetime']),
  $config['watermark_text_font'],
  round($source_w / $config['watermark_text_ratio']),
  $config['watermark_text_color'],
  $config['watermark_text_transparency'],
  $config['watermark_text_degree'],
  $config['watermark_position'] );
  


und von
Code: Select all
  // ACP USER MODE
  create_watermark_from_string(
  $uploaded_file_path_th, $processed_file_path_th,
  '© ' . $user->data['username'] . ', submitted ' .  date($config['default_dateformat'], $filedata['filetime']),
  $config['watermark_text_font'],
  round($source_w_th / $config['watermark_text_ratio']),
  $config['watermark_text_color'],
  $config['watermark_text_transparency'],
  $config['watermark_text_degree'],
  $config['watermark_position'] );
  


zu
Code: Select all
  // ACP USER MODE
  create_watermark_from_string(
  $uploaded_file_path_th, $processed_file_path_th,
  '© www.beispiel.de',
  $config['watermark_text_font'],
  round($source_w_th / $config['watermark_text_ratio']),
  $config['watermark_text_color'],
  $config['watermark_text_transparency'],
  $config['watermark_text_degree'],
  $config['watermark_position'] );
  



root/includes/watermark/watermark_message_text_user.php
von
Code: Select all
  // USER MODE
  else if ((request_var('watermarkyes', '', true) == 'user')
  && (($wm_pos_u !== 'CL') or ($wm_pos_u !== 'C') or ($wm_pos_u !== 'CR'))){
  create_watermark_from_string(
  $uploaded_file_path, $processed_file_path,
  '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'],
  $filedata['filetime']),
  $wm_font_u,
  round($source_w / $wm_size_u),
  $wm_color_u,
  $config['watermark_text_transparency'],
  0,
  $wm_pos_u );} 


zu
Code: Select all
  // USER MODE
  else if ((request_var('watermarkyes', '', true) == 'user')
  && (($wm_pos_u !== 'CL') or ($wm_pos_u !== 'C') or ($wm_pos_u !== 'CR'))){
  create_watermark_from_string(
  $uploaded_file_path, $processed_file_path,
  '© www.beispiel.de',
  $filedata['filetime']),
  $wm_font_u,
  round($source_w / $wm_size_u),
  $wm_color_u,
  $config['watermark_text_transparency'],
  0,
  $wm_pos_u );} 


und von
Code: Select all
  // USER MODE
  else if ((request_var('watermarkyes', '', true) == 'user')
  && (($wm_pos_u !== 'CL') or ($wm_pos_u !== 'C') or ($wm_pos_u !== 'CR'))){
  create_watermark_from_string(
  $uploaded_file_path_th, $processed_file_path_th,
  '© ' . $user->data['username'] . ', submitted ' . date($config['default_dateformat'],
  $filedata['filetime']),
  $wm_font_u,
  round($source_w_th / $wm_size_u),
  $wm_color_u,
  $config['watermark_text_transparency'],
  0,
  $wm_pos_u );}

    }
  }
 


zu
Code: Select all
  // USER MODE
  else if ((request_var('watermarkyes', '', true) == 'user')
  && (($wm_pos_u !== 'CL') or ($wm_pos_u !== 'C') or ($wm_pos_u !== 'CR'))){
  create_watermark_from_string(
  $uploaded_file_path_th, $processed_file_path_th,
  '© www.beispiel.de',
  $filedata['filetime']),
  $wm_font_u,
  round($source_w_th / $wm_size_u),
  $wm_color_u,
  $config['watermark_text_transparency'],
  0,
  $wm_pos_u );}

    }
  }
 


(Sorry für den vielen Code :oops: )
Tim

Tiptop

Tiptop
 
Posts: 68
Joined: 13 Nov 2009, 23:08
 
Resolution: 1280x1024

Re: [DEV] Advanced Attach Watermark

Postby TeaMike » 07 Sep 2013, 08:13

Hallo Tim

siehe meine vorgehende post viewtopic.php?f=2&t=199#p1109; wenn Du nur die erste Zeile ersetzt ist der Code unvollständig denn die filetime auf der nächsten Zeile gehört auch zum date
TeaMike

Tiptop

Tiptop
 
Posts: 7
Joined: 26 Aug 2013, 16:36
 
Resolution: 1680x1050

Re: [DEV] Advanced Attach Watermark

Postby Tim » 07 Sep 2013, 08:58

Hallo Mike,

danke für deine Antwort.
Aber wenn ich es so mache:
Code: Select all
'www.mysite.com © ' $user->data['username'], 
,
dann steht doch hinter der Beispiel.de noch der Username, das möchte ich ja nicht.
Tim

Tiptop

Tiptop
 
Posts: 68
Joined: 13 Nov 2009, 23:08
 
Resolution: 1280x1024


Re: [DEV] Advanced Attach Watermark

Postby 4seven » 07 Sep 2013, 11:40

Hallo Tim,

ersetze in jeder Deiner Ersetzungen

Code: Select all
                    '© www.beispiel.de',
                    $filedata['filetime']),

mit

Code: Select all
                    '© www.beispiel.de',

Demnach hat TeaMike recht. Notepad++ hätte bei einem Klick auf die schliessende Klammer "gezeigt", das keine Öffnende da ist ;)
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


PreviousNext

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 26 guests

cron