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.


Messages - Nosferatu

Pages: 1 2 3 [4] 5 6 7 8 ... 16
46
sieht gar nicht schlecht aus,

nur wenn du das ganze zeugs entfernst, wie loggst du dich als admin ein ?

Wenn du eh keine fremden User zu lässt könntest ja auch

Zur Zeit aktive Benutzer: 1
Es sind gerade 0 registrierte(r) Benutzer (0 davon unsichtbar) und 1 Besucher online.   


entfernen oder nicht ?

für NEWS, hast du da einen mod, oder ist das was eigenes ?

47
ich mach es lieber händisch..... denn ich will nicht bei allen kategorien bilder haben, nur immer auf einer bestimmten ebene.

49
ich habs so gemacht
http://www.wallpapers-heaven.com/categories.php?cat_id=20

ich füge einfach in die Beschreibung
Code: [Select]
<a href..><img...></a> ein

Edit: Nooby

ist nicht dass http://www.4homepages.de/forum/index.php?topic=6675.0 sowas was du suchst ?

50
Mods & Plugins (Releases & Support) / Re: Signature image v2.3
« on: June 17, 2012, 09:07:07 AM »
hi,

I had also some problems ;)

import is the place where yous signature.php is and the jpeg.gif and the signature.png

signature.php and jpeg.gif is in my Main directory, the signature.png is in /signature/signature.png

Thats my code:

Code: [Select]
<?php
##################################
#   signature.php version 2.3    #
# - - - - - - - - - - - - - - - -#
# Copyright © V@no 2004-ETERNiTY #
##################################
#                                #
#         TERMS OF USE           #
#                                #
#    NO PORNOGRAPHY OR ANY       #
#    OTHER PICTURES THAT COULD   #
#    BE TREATED AS OFFENSIVE     #
#    MAY BE SHOWED ON 4IMAGES    #
#    FORUM OR ANYWHERE ELSE      #
#    WHERE ITS NOT ACCEPTIBLE.   #
#                                #
#     PLEASE RESPECT OTHERS!     #
#                                #
##################################

// ------- Config -----------
$random_image 1//show random image
$random_fast 0//if your mysql account doesn't have permission to create/delete temporary tables, set this to 0
$debug 0//turning this on, will ignore expiration time, meaning every request will create a new image. change this to 0 before u publish your signature!
$expire 10//seconds before image will be expired and recompilled with new random image and information (lower this will encrease server load!)
$type "png"//image type: png or jpeg
$quality "50"//image quality when used jpeg
define('ROOT_PATH''./'); //path to your 4images root dir with trailing slash! must be ralative ( ./ or ../ or combination of these) and NOT full internet or local (http://example/4images/ or /www/blah/4images/)
$signature_template_dir "./signatures/"//directory with signature template images WITH TRAILING SLASH!!!
$signature_template "signature6.png"//default signature template image filename
$signature_template_random 0//use random template image? (0 = no | 1 = yes)
$path "/tmp/"// WRITEBLE dir (chmod 777), where compilled image will be stored (does not requere access from web)
$tmpfname $path."signature.tmp"// filename for the compilled image (extension does not metter)
$tmptname $path."signature.id"// filename for the file where some extra info will be stored in (image id)
$template "default_full"//name of the template which icons will be used, if thumbnail not found
$sitename "Project-Firepower Gallery"//signature header
$fonts_dir ""//directory with custom fonts WITH TRAILING SLASH! (leave blank if no fonts)
$fonts = array(); // an array with font names the first number is the number that u can use in $fsize variable, it must be sequenced! and first item must have number 6 or larger!
/*
//an example array:
$fonts = array(
               6  => "micross8px.gdf",
               7  => "micross9px.gdf",
               8  => "micross10px.gdf",
               9  => "micross12px.gdf"
);
*/
$fsize 2//font type (1 to 5 for build-in fonts and 6 to XX for your custom fonts (see $font array above)
$offset 7//offset from the left, right and bottom, uses for random image and the text (not used if random image disabled)
$offset2 99//extra offset from the left (place where random image will be embeded if its enabled. Not used if random image disabled)
$spacing 11//height of each line of text
$start 21//offset from top (space where header shows)
$tiny 9//an extra space at the begining of each line (needed for offset from the random image space)
$not_in_cat "0"//list of categories which should not be included for random image, separated by coma (i.e. "1,2,3,7") "0" - means disabled
$auth 0//permission level for auth_viewimage (0 = All, 2 = Members, 3 = Private or 9 = Admin) Refer in /includes/constants.php
$peruser 1//alow per user random image (images uploaded by XX user. Usage: signature.php?user=XX)
$noimage "jpeg.gif"//icon name if no random image was found
$new_cutoff 7//Days when images treated as new
$lang_images "Images: ";
$lang_users "Members: ";
$lang_cat "Categories: ";
$lang_new_user "Newest member: ";
$lang_online "Online: ";
$lang_comments "Comments: ";
// --------- End Config ----------

$peruser = ($peruser && isset($_GET['user']) && intval($_GET['user'])) ? intval($_GET['user']) : "";
$tmpfname .= $peruser;
$tmptname .= $peruser;
if (isset(
$_GET['go']) && $_GET['go'])
{
  if (
$handle = @fopen($tmptname"rb"))
  {
    while (!
feof($handle))
    {
      
$buffer fgets($handle4096);
      
$imgid intval($buffer);
    }
    
fclose($handle);
  }
  
$nozip 1;
  
define('GET_CACHES'1);
  include(
ROOT_PATH.'global.php');
  require(
ROOT_PATH.'includes/sessions.php');
  
$user_access get_permission();
  
$url $site_sess->url(ROOT_PATH."index.php""&");
  if (
$imgid && $random_image)
  {
    
$sql "SELECT cat_id
            FROM "
.IMAGES_TABLE."
            WHERE image_id = 
$imgid";
    if (
$row $site_db->query_firstrow($sql))
    {
      if (
check_permission("auth_viewcat"$row['cat_id']) || check_permission("auth_viewimage"$row['cat_id']))
      {
        
$url = (check_permission("auth_viewimage"$row['cat_id']) && check_permission("auth_viewcat"$row['cat_id'])) ? $site_sess->url(ROOT_PATH."details.php?image_id=".$imgid) : ((check_permission("auth_viewcat"$row['cat_id'])) ? $site_sess->url(ROOT_PATH."categories.php?cat_id=".$row['cat_id']) : $url);
      }
    }
  }
  if (!
function_exists("redirect"))
  {
    function 
redirect($url) {
      global 
$script_url$site_sess;
      if (
strpos($url'://') === false) {
        
$url $script_url.'/'.$url;
      }
      
$location = @preg_match('/Microsoft|WebSTAR|Xitami/'getenv('SERVER_SOFTWARE')) ? 'Refresh: 0; URL=' 'Location: ';
      if (
is_object($site_sess)) {
        
$url $site_sess->url($url"&");
      }
      
header($location.$url);
      exit;
    }
  }
  
redirect($url);
}
$imageid 0;
$time = @filemtime($tmpfname);
if (
$handle = @fopen($tmptname"r"))
{
  if (!
feof($handle))
  {
    
$buffer fgets($handle4096);
    
$imageid intval($buffer);
  }
  
fclose($handle);
}
$current_time time();
if (!
$time || (($current_time $time) > $expire || ($current_time $time) < 0) || $debug)
{
  
$show = array();
  include(
ROOT_PATH.'config.php');
  include(
ROOT_PATH.'includes/constants.php');
  include(
ROOT_PATH.'includes/db_mysql.php');
  
define('MEDIA_PATH'ROOT_PATH.MEDIA_DIR);
  
define('THUMB_PATH'ROOT_PATH.THUMB_DIR);
  
define('MEDIA_TEMP_PATH'ROOT_PATH.MEDIA_TEMP_DIR);
  
define('THUMB_TEMP_PATH'ROOT_PATH.THUMB_TEMP_DIR);
  
define('TEMPLATE_PATH'ROOT_PATH.TEMPLATE_DIR."/".$template);
  
define('ICON_PATH'ROOT_PATH.TEMPLATE_DIR."/".$template."/icons");
  include(
ROOT_PATH.'includes/functions.php');
  
$site_db = new Db($db_host$db_user$db_password$db_name);

// --- Random image -----
  
if ($random_image)
  {
    if (
$random_fast)
    {
      
mt_srand((double)microtime() * intval(session_id()));
      
$temptab "tab_".mt_rand(0,1000000);
      
$sql "CREATE TEMPORARY TABLE ".$temptab." TYPE  =  HEAP
              SELECT i.image_id, i.cat_id
              FROM "
.IMAGES_TABLE." i
              LEFT JOIN "
.CATEGORIES_TABLE." c ON c.cat_id = i.cat_id
              WHERE i.image_active = 1 AND c.auth_viewcat = 
$auth AND i.cat_id NOT IN ($not_in_cat)".(($peruser) ? " AND i.user_id = ".$peruser "").(($imageid) ? " AND i.image_id <> ".$imageid "")."
              ORDER  BY RAND()
              LIMIT 1"
;
      
$result $site_db->query($sql);
      
$sql "SELECT t.image_id, t.cat_id, i.user_id, i.image_name, i.image_media_file, i.image_thumb_file
              FROM "
.$temptab." AS t
              LEFT JOIN "
.IMAGES_TABLE." AS i ON i.image_id=t.image_id";
      
$imagedata $site_db->query_firstrow($sql);
      
$sql "DROP TABLE ".$temptab;
      
$result $site_db->query($sql);
    }
    else
    {
      
$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_media_file, i.image_thumb_file
              FROM "
.IMAGES_TABLE." i
              LEFT JOIN "
.CATEGORIES_TABLE." c ON c.cat_id = i.cat_id
              WHERE i.image_active = 1 AND c.auth_viewcat = 
$auth AND i.cat_id NOT IN ($not_in_cat)".(($peruser) ? " AND i.user_id = ".$peruser "").(($imageid) ? " AND i.image_id <> ".$imageid "")."
              ORDER  BY RAND()
              LIMIT 1"
;
      
$imagedata $site_db->query_firstrow($sql);
    }
    if (empty(
$imagedata))
    {
      
$thumb ICON_PATH."/".$noimage;
    }
    elseif (!
get_file_path($imagedata['image_thumb_file'], "thumb"$imagedata['cat_id'], 00))
    {
      
$thumb ICON_PATH."/".get_file_extension($imagedata['image_media_file']).".gif";
    }
    else
    {
      
$thumb get_file_path($imagedata['image_thumb_file'], "thumb"$imagedata['cat_id'], 01);
    }
  }
  else
  {
    
$offset $offset2 0//no need any offset if random image disabled
  
}
// --- Total users -----
  
$sql "SELECT COUNT(*) AS total_users
          FROM "
.USERS_TABLE."
          WHERE user_level > "
.USER_AWAITING;
  
$row $site_db->query_firstrow($sql);
  
$show['total_users'] = $row['total_users'];

// --- Total not activated users -----
  
$sql "SELECT COUNT(*) AS total_users
          FROM "
.USERS_TABLE."
          WHERE user_level = "
.USER_AWAITING;
  
$row $site_db->query_firstrow($sql);
  
$show['total_users_awaiting'] = $row['total_users'];

// --- Lattest username -----
  
$sql "SELECT user_name
          FROM "
.USERS_TABLE."
          WHERE user_level > "
.USER_AWAITING."
          ORDER BY user_id DESC"
;
  
$row $site_db->query_firstrow($sql);
  
$show['new_user'] = stripslashes($row['user_name']);

// --- Total images -----
  
$sql "SELECT COUNT(*) AS total_images
          FROM "
.IMAGES_TABLE."
          WHERE image_active = 1"
;
  
$row $site_db->query_firstrow($sql);
  
$show['total_images'] = $row['total_images'];

// --- Total new images -----
  
$new_cutoff time() - 60 60 24 $new_cutoff;
  
$sql "SELECT COUNT(*) AS total_new_images
          FROM "
.IMAGES_TABLE."
          WHERE image_active = 1 AND image_date > "
.$new_cutoff;
  
$row $site_db->query_firstrow($sql);
  
$show['total_new_images'] = $row['total_new_images'];

// --- Total categories -----
  
$sql "SELECT COUNT(*) AS total_categories
          FROM "
.CATEGORIES_TABLE;
  
$row $site_db->query_firstrow($sql);
  
$show['total_categories'] = $row['total_categories'];

// --- Total comments -----
  
$sql "SELECT SUM(image_comments) AS sum
          FROM "
.IMAGES_TABLE;
  
$row $site_db->query_firstrow($sql);
  
$show['comments'] = $row['sum'];

// --- Online users -----
  
$time_out time() - 300;
  
$sql "SELECT session_user_id, session_ip
          FROM "
.SESSIONS_TABLE."
          WHERE session_lastaction >= 
$time_out";
  
$result $site_db->query($sql);
  
$show['guests_online'] = $show['reg_online'] = 0;
  while (
$row $site_db->fetch_array($result))
  {
    if (
$row['session_user_id'] != GUEST)
    {
      if (!isset(
$prev_user_ids[$row['session_user_id']]))
      {
        
$show['reg_online']++;
      }
      
$prev_user_ids[$row['session_user_id']] = 1;
    }
    else
    {
      if (!isset(
$prev_session_ips[$row['session_ip']]))
      {
        
$show['guests_online']++;
      }
    }
    
$prev_session_ips[$row['session_ip']] = 1;
  }
//-----------------------

  
if (!empty($fonts_dir) && count($fonts))
  {
    foreach (
$fonts as $key => $val)
    {
      
imageloadfont($fonts_dir.$val);
    }
  }
  
$total_online $show['reg_online'] + $show['guests_online'];
  
$online " (".$show['reg_online']." member".(($show['reg_online'] > || !$show['reg_online'])? "s" "")." and ".$show['guests_online']." guest".(($show['guests_online'] > || !$show['guests_online'])? "s" "").")";
  
$far $offset2+$tiny+(strlen($lang_new_user))*($fsize+4);
  
//array with data:
  //[0] - font type
  //[1] - offset
  //[2] - text
  //[3] - color (i.e. "text_color" will use $text_color variable)
  
$stats = array(
                  array(array(
$fsize$offset2+$tiny$lang_images"text_color"), array($fsize$far$show['total_images']." (".$show['total_new_images']." new)""text_color")),
                  array(array(
$fsize$offset2+$tiny$lang_cat"text_color"), array($fsize$far$show['total_categories'], "text_color")),
                  array(array(
$fsize$offset2+$tiny$lang_comments"text_color"), array($fsize$far$show['comments'], "text_color")),
                  array(array(
$fsize$offset2+$tiny$lang_users"text_color"), array($fsize$far$show['total_users'], "text_color"), array($fsize$far+strlen($show['total_users'])*($fsize+4), " and ".$show['total_users_awaiting']." not activated""text_color")),
                  array(array(
$fsize$offset2+$tiny$lang_online"text_color"), array($fsize$far$total_online"red"), array($fsize$far+strlen($total_online)*($fsize+4), $online"text_color")),
                  array(array(
$fsize$offset2+$tiny$lang_new_user"text_color"), array($fsize$far$show['new_user'], "text_color"))
  );
  if (
$signature_template_random)
  {
    if (
$dir = @opendir($signature_template_dir))
    {
      
$list = array();
      while (
$file = @readdir($dir))
      {
        if (!
is_dir($signature_template_dir.$file) && is_file($signature_template_dir.$file) && strtolower(substr(strrchr($file,"."), 1)) == "png")
        {
          
$list[] = $file;
        }
      }
      @
closedir($dir);
      
$signature_template $list[array_rand($list)];
    }
  }
  
$im ImageCreateFromPNG($signature_template_dir.$signature_template);
  
$width imagesx($im);
  
$height imagesy($im);
  
$text_color ImageColorAllocate ($im255255255);
  
$red ImageColorAllocate ($im25500);
//  ImageString($im, 3, $offset2+(($width-$offset2)/2)-(strlen($sitename)*7/2), 4, $sitename, $text_color);
  
ImageString($im3$offset2+$tiny4$sitename$text_color);
  
$i $start;
  foreach (
$stats as $key)
  {
    if (
$key[0][2] == $lang_online && !$total_online)
    {
      continue;
    }
    foreach (
$key as $val)
    {
      
ImageString($im$val[0], $val[1], $i$val[2], $$val[3]);
    }
    
$i $i $spacing;
  }
  if (
$random_image)
  {
    
$image_info getimagesize($thumb);
    
$types = array(=> "gif"=> "jpeg"=> "png");
    
$th "imagecreatefrom".$types[$image_info[2]];
    
$width_start $image_info[0];
    
$height_start $image_info[1];
    
$dimension $offset2-$offset*2;
    if (
$height $image_info[1] < $offset && $height $offset2 $offset)
    {
      
$dimension $height $offset*2;
    }
    
$width_end $dimension;
    
$height_end $dimension;
    if ((
$width_start $width_end || $height_start $height_end) && $width_start && $height_start && $width_end && $height_end)
    {
       
$ratio $width_start $height_start;
      if (
$ratio 1)
      {
        
$width_end $dimension;
        
$height_end round(($dimension/$width_start) * $height_start);
      }
      else
      {
        
$width_end round(($dimension/$height_start) * $width_start);
        
$height_end $dimension;
       }
    }
    elseif (
$width_start || $height_start)
    {
       
$width_end $width_start;
       
$height_end $height_start;
    }
    
$temp imagecreateTrueColor($width_end$height_end);
    if (
$image $th($thumb))
    {
      
imagecopyresampled($temp$image0000$width_end$height_endImageSX($image), ImageSY($image));
    }
    
$posx round(($offset2-$width_end)/2);
    
$posy round(($height-$height_end)/2);
    
imagecopymerge($im,$temp$posx$posy00$width_end$height_end100);
    
ImageRectangle($im$posx-1$posy-1$posx+$width_end-1$posy+$height_end-1$text_color);
  }
  
$function "Image".$type;
  
$function($im,$tmpfname,(($type == "png") ? $quality)); 
  
ImageDestroy($im);
  
$handle = @fopen($tmptname"wb");
  
$contents = @fwrite($handle, (($random_image) ? $imagedata['image_id'] : 0));
  @
fclose($handle);
//end compilling new image
header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header("Content-disposition: filename=signature".MD5(time()).".".$type);
header("Content-Type: image/".$type);
header("Content-Length: ".filesize($tmpfname));
readfile($tmpfname);
?>


hope it will help you

51
@Loda

ich glaube du hast es da etwas falsch verstanden ;)

Er will ja nicht in jeder kategorie alle anzeigen die er da eingibt.


Er will in der kategorie nur die bilder von der kategorie anzeigen.

Also wenn du Kategorie Autos hast.
Dann sollen wenn man auf Kategorie Autos klickt nur die Autos angezeigt werden.

Wenn man auf die Kategorie Katzen klickt, sollen nur die Katzen angezeigt werden.

darum habe ich ja mit $cat_id rum probiert..... nur ka warum er das nicht übernimmt ...

52
Discussion & Troubleshooting / Re: anderer header / domain
« on: June 14, 2012, 05:35:19 PM »
Danke werde es am weekend probierend ;)

naja pj-firepower.com ist die main domain

dann hatte ich mit picgallery angefangen diese wurde dann durch wallpapers. abgelöst

und www.wallpapers-heaven.com hat nun das andere abgelöst, und will eigentlich nur noch damit arbeiten ;) da ich es nun etwas selbst ständig damit arbeiten will :)

Wie es aber aussieht, werde ich wohl mehr oder weniger ohne ads arbeiten müssen... die meisten erlauben 0 erotik oder sonst was ähnliches, und nen US affili wo ich dann erotic werbung habe..... will ich auch nicht...

finds nur kake, dass google gleich die komplette domain von adsense nimmt ... und nicht zu frieden ist... wenn ich sage, ich zeige es nur noch auf MAIN Page an ..

53
nabend,

hm komisch habs jetzt bei mir zum testen eingebaut und auch noch andere varianten versucht wir cat_id IN (". $cat_id.")

sorry, aber irgendwie scheint nix zu funken  keine Ahnung denn dass ausschließen geht.... aber keine ahnung warum....

du könntest eventuell eine abfrage einbauen wenn du nicht viele einbauen und die CAT's ausschließen ich hab leider zu viele um das zu testen....

Zumindest dass ausschließen geht, hat mir damals Rembrandt geholfen.

Code: [Select]
<?php
if ($cat_id == 1){

$cat_in "2,3,4..."//alle IDs eintragen außer 1


if (
$cat_id == 2) [

$cat_in "1,3,4..."//alle IDs eintragen außer 2

}
....

$sql "SELECT DISTINCT *
        FROM " 
IMAGES_TABLE "
        WHERE image_active = 1 
AND cat_id NOT IN ("
.$cat_in.")


Dies könntest du eventuell noch testen ob es geht  sonst fällt mir dazu nichts mehr ein

edit: habe gesehen, dass er in der duckmenuexml.php die $cat_id nicht ausgeben tut ... das sprengt mein script immer hatte noch nen weg gefunden.... wo ich händisch die die IDs fix angebe ....

edit: also wenn du eine bestimmte anzeigen lassen willst geht nur

AND cat_id IN (DEINE ID)


keine Ahnung warum er $cat_id da nicht nicht übernimmt ...

54
hi,

sorry hatte vergessen die datei dazu zu schreiben ;) hatte gedacht du wüsstest welche datei ich-

Den Code den ich gepostet habe musst du in der docmenuxml.php

ändern.

lg
jeff

55
Hallo,

habs jetzt nicht probiert, und weiß leider jetzt auch nicht wie der original code aussieht glaube es sah so aus:

suche:
Code: [Select]
$sql = "SELECT DISTINCT *
        FROM " . IMAGES_TABLE . "
        WHERE image_active = 1 AND cat_id NOT IN (" . get_auth_cat_sql("auth_viewcat", "NOTIN") . ")
        ORDER BY RAND()

ersetze
Code: [Select]
$sql = "SELECT DISTINCT *
        FROM " . IMAGES_TABLE . "
        WHERE image_active = 1 AND cat_id = ".$cat_id."
        ORDER BY RAND()

alternativ

Code: [Select]
$sql = "SELECT DISTINCT *
        FROM " . IMAGES_TABLE . "
        WHERE image_active = 1 AND cat_id = $cat_id
        ORDER BY RAND()

lg
jeff

56
Discussion & Troubleshooting / anderer header / domain
« on: June 12, 2012, 06:49:26 PM »
Hallo,

ist es möglich, dass ich je nach domain etwas anderes im header bereich anzeigen lassen kann?

Ich verwende einen JS Code von nem affili programm.... der wird aber immer je nach domain angezeigt ... was total kake ist...

verwende:
http://wallpapers.pj-firepower.com
http://picgallery.pj-firepower.com
http://www.wallpapers-heaven.com
http://www.pj-firepower.com/picgallery/

und wenn ich jetzt von allen 4 den affili JS Code einfüge ... wird der Header riesen groß....

lg
jeff

57
Chit Chat / Affiliate
« on: June 12, 2012, 05:48:29 PM »
Hallo,

welche Affiliate würdet ihr vorschlagen, bzw. welche Programme darinnen.

Google Adsense hat mich entgültig gekillt.... weil ihnen hinten und vorne was nicht passt... dabei habe ich jetzt alles so dolle angepasst.... das bei gewissen kategorien keine google werbung erscheint ....
Nichtmal auf meiner Main Page lassen Sie mich mal mehr werbung anzeigen.... weil das bei denen immer die gesamte Domain betrifft ....

Daher suche ich gute alternativen ...

Jemand ne idee ?

58
scheint irgendwie nicht gehen mit der

also ich hab es jetzt mit
Code: [Select]
$search_array = explode(",",$config['cat_pic']);
$site_template->register_vars(array(
 "no_adds" => in_array($cat_id,$search_array)? "":1,

und der kurzen variante probiert

Code: [Select]

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
//$site_template->register_vars(array(
//  "msg" => $msg,

$site_template->register_vars("no_adds", in_array($cat_id,explode(",",$config['cat_pic']))? "":1);

$site_template->register_vars(array(
//"no_adds" => ($cat_id == 395)|| ($cat_id == 499) || ($cat_id == 544) ? "":1,

  "msg" => $msg,
  "clickstream" => $clickstream,


beides geht aber nicht

Edit: habs den fehler :)
das
Code: [Select]
$config['cat_pic']ersetzen mit
Code: [Select]
$config['cat_rand_pic']
dann gehts ;)

Danke dir!!!

lg
jeff

59
hi,

ok danke :)

wie sieht es denn damit aus, du hast mir ja mal geholfen, das die google werbung nicht bei jedem bild angezeigt wird
http://www.4homepages.de/forum/index.php?topic=29636.0

ich habe aber dass dann nicht mehr umgebaut weil es damit dann eh ok war ;)
nur wenn ich es jetzt schon am ändern bin, möchte ich gerne gleich alles richtig machen

zur Zeit habe ich dies ja so:
in der details.php

Code: [Select]

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
//$site_template->register_vars(array(
//  "msg" => $msg,
$site_template->register_vars(array(
"no_adds" => ($cat_id == 395)|| ($cat_id == 499) || ($cat_id == 544) ||  ? "":1,


und am kopf oben:

Code: [Select]
{if no_adds}
... dein google code ....
{endif no_adds}



reicht es wenn ich

Code: [Select]

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
//$site_template->register_vars(array(
//  "msg" => $msg,
$site_template->register_vars(array(
"no_adds" => ($cat_id == 395)|| ($cat_id == 499) || ($cat_id == 544) ||  ? "":1,

ersetze mit:
Code: [Select]
$search_array = explode(",",$config['cat_pic']);
$site_template->register_vars(array(
 "no_adds" => in_array($cat_id,$search_array)? "":1,

kann momentan nicht selber testen, da google mich wegen der auszahlung prüft und mich mal wieder wegen 1 bild gesperrt hat weil ichs in der falschen kategorie hatte .....

Danke schonmal für deine Hilfe :)

lg
jeff

60
kann ich das auch bei anderen sachen verwenden zb.: verwende ich den random flash mod und das habe ich es derzeit so gelöst:


Code: [Select]
$cat_in = "ID1,ID2,ID3...";
Code: [Select]
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
AND a.cat_id NOT IN (".$cat_in.")
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        ORDER BY RAND()
        LIMIT $num_images";

kann ich jetzt $cat_in = 1,2,3,4... weglassen ?

???

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