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 - Bob

Pages: [1] 2 3 4 5
1
Mods & Plugins (Requests & Discussions) / Google-Attribut "canonical"
« on: February 25, 2009, 06:23:56 PM »
Das Problem mit dem erreichen einer 4images seite mit unterschiedlichen links!

Beispiel:
http://www.example.com‎/img-02-3632.htm (bevorzugte URL)
http://www.example.com‎/img-02-3632.htm?l=english‎
http://www.example.com‎‎/img-02-3632.htm?action=removefromlightbox&id=3632
usw.

Problem hierbei ist
a. Duplicate meta descriptions
b. Duplicate title tags

Mögliche Lösung:
Ein neues Google-Attribut möchte eine bessere Kontrolle darüber geben, wie die URL in Suchergebnissen ausgewiesen wird.

<link rel="canonical" href="http://www.example.com‎/img-02-3632.htm" />

Das Format eignet sich für Webentwickler, deren Webseiten identischen oder ähnlichen Inhalt enthalten, aber über unterschiedliche URLs aufzurufen sind. Dies gibt eine bessere Kontrolle darüber, wie die URL in Suchergebnissen erscheint.

Nun meine Plugin anfrage:
Wie kann ich das einbauen, möglichst Automatisiert?

3
Mods & Plugins (Requests & Discussions) / Re: Dynamic theme/template
« on: August 15, 2008, 01:04:54 PM »
 :thumbup: nice  :thumbup:

4
in der glaube ich keine... aber villeicht kannst du mit der folgendem was anfangen:

Code: [Select]
  $sql = "SELECT COUNT(*) as users
          FROM ".USERS_TABLE."
          WHERE ".get_user_table_field("", "user_id")." <> ".GUEST;
  $row = $site_db->query_firstrow($sql);

  echo "<b>Registrierte Benutzer:  ".$row['users']."</b> \n";

Must mal bisschen Probieren...

5
...man sieht zwar wenn man über das tab mit der maus fährt, aber es bleibt wenn man drückt nicht stehen, so das man sehen kann das man im Tab2 ist.

Also mit dem link den Kurt schon gepostet hat sollte es eigentlich gut gehen z.B. mit Demo #2 von: http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

Mein Favorit  :lol:

6
Chit Chat / Re: Domain Entscheidungshilfe
« on: July 15, 2008, 03:33:41 PM »
Hi,
"Flirt & Vote Community" (davon gibt es massenweise)

gegenfrage:

Soll das eine .de Domain werden?

7
Mods & Plugins (Releases & Support) / Re: [Mod] Toplist altered
« on: July 15, 2008, 02:49:54 PM »
Test it:


Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: top.php                                              *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 'top';

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');

$cache_id create_cache_id(
  
'page.top',
  array(
    
$user_info[$user_table_fields['user_id']],
    
$cat_id,
    
$config['template_dir'],
    
$config['language_dir']
  )
);

if (!
$cache_page_top || !$content get_cache_file($cache_id)) {
if (
$cache_page_top) {
  
// Always append session id if cache is enabled
  
$old_session_mode $site_sess->mode;
  
$site_sess->mode 'get';
}

ob_start();

$cat_match_sql = ($cat_id && check_permission("auth_viewcat"$cat_id)) ? "AND i.cat_id = '$cat_id' " "";
$register_array = array();

$cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN");

// Rating
$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name".get_user_table_field(", u.""user_name").", i.image_thumb_file
        FROM ("
.IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id NOT IN (
$cat_id_sql) AND i.cat_id = c.cat_id
        
$cat_match_sql
        ORDER BY i.image_rating DESC, i.image_name ASC
        LIMIT 10"
;
$result $site_db->query($sql);
$top_list = array();
$i 1;
while (
$row $site_db->fetch_array($result)) {
  
$top_list[$i] = $row;
  
$i++;
}
$site_db->free_result();

for (
$i 1$i <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_rating_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" target=\"blank\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_rating_thumb_'.$i] = (isset($top_list[$i]['image_id']) && !empty($top_list[$i]['image_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" target=\"blank\"><img src=\"data/thumbnails/".$top_list[$i]['cat_id']."/".$top_list[$i]['image_thumb_file']."\" width=\"200\" height=\"150\" border=\"0\" alt=\"\" /></a>" format_text(trim($top_list[$i]['image_name']), 2);

    
$register_array['image_rating_openwindow_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    if (isset(
$top_list[$i][$user_table_fields['user_name']]) && $top_list[$i]['user_id'] != GUEST) {
      
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/"$top_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$top_list[$i]['user_id'];
      
$register_array['image_rating_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\" target=\"blank\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_rating_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_rating_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\" target=\"blank\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_rating_number_'.$i] = "<b>".$top_list[$i]['image_rating']."</b> (".$top_list[$i]['image_votes']." ".$lang['votes'].")";
  }
  else {
    
$register_array['image_rating_'.$i] = "--";
    
$register_array['image_rating_user_'.$i] = "--";
    
$register_array['image_rating_cat_'.$i] = "--";
    
$register_array['image_rating_number_'.$i] = "--";
    
$register_array['image_rating_thumb_'.$i] = "--";
  }
}
// Votes
$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name".get_user_table_field(", u.""user_name")."
        FROM ("
.IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id NOT IN (
$cat_id_sql) AND i.cat_id = c.cat_id
        
$cat_match_sql
        ORDER BY i.image_votes DESC, i.image_name ASC
        LIMIT 10"
;
$result $site_db->query($sql);
$top_list = array();
$i 1;
while (
$row $site_db->fetch_array($result)) {
  
$top_list[$i] = $row;
  
$i++;
}
$site_db->free_result();

for (
$i 1$i <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_votes_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" target=\"blank\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_votes_openwindow_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    if (isset(
$top_list[$i][$user_table_fields['user_name']]) && $top_list[$i]['user_id'] != GUEST) {
      
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/"$top_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$top_list[$i]['user_id'];
      
$register_array['image_votes_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\" target=\"blank\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_votes_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_votes_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\" target=\"blank\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_votes_number_'.$i] = "<b>".$top_list[$i]['image_rating']."</b> (".$top_list[$i]['image_votes']." ".$lang['votes'].")";
  }
  else {
    
$register_array['image_votes_'.$i] = "--";
    
$register_array['image_votes_user_'.$i] = "--";
    
$register_array['image_votes_cat_'.$i] = "--";
    
$register_array['image_votes_number_'.$i] = "--";
  }
}

// Hits
$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_hits, c.cat_name".get_user_table_field(", u.""user_name")."
        FROM ("
.IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id NOT IN (
$cat_id_sql) AND i.cat_id = c.cat_id
        
$cat_match_sql
        ORDER BY i.image_hits DESC, i.image_name ASC
        LIMIT 10"
;
$result $site_db->query($sql);
$top_list = array();
$i 1;
while (
$row $site_db->fetch_array($result)) {
  
$top_list[$i] = $row;
  
$i++;
}
$site_db->free_result();

for (
$i 1$i <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_hits_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" target=\"blank\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_hits_openwindow_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    if (isset(
$top_list[$i][$user_table_fields['user_name']]) && $top_list[$i]['user_id'] != GUEST) {
      
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/"$top_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$top_list[$i]['user_id'];
      
$register_array['image_hits_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\" target=\"blank\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_hits_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_hits_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\" target=\"blank\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_hits_number_'.$i] = "<b>".$top_list[$i]['image_hits']."</b>";
  }
  else {
    
$register_array['image_hits_'.$i] = "--";
    
$register_array['image_hits_user_'.$i] = "--";
    
$register_array['image_hits_cat_'.$i] = "--";
    
$register_array['image_hits_number_'.$i] = "--";
  }
}

// Downloads
$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_downloads, c.cat_name".get_user_table_field(", u.""user_name")."
        FROM ("
.IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id NOT IN (
$cat_id_sql) AND i.cat_id = c.cat_id
        
$cat_match_sql
        ORDER BY i.image_downloads DESC, i.image_name ASC
        LIMIT 10"
;
$result $site_db->query($sql);
$top_list = array();
$i 1;
while (
$row $site_db->fetch_array($result)) {
  
$top_list[$i] = $row;
  
$i++;
}
$site_db->free_result();

for (
$i 1$i <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_downloads_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" target=\"blank\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_downloads_openwindow_'.$i] = (check_permission("auth_viewimage"$top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    if (isset(
$top_list[$i][$user_table_fields['user_name']]) && $top_list[$i]['user_id'] != GUEST) {
      
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/"$top_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$top_list[$i]['user_id'];
      
$register_array['image_downloads_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\" target=\"blank\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_downloads_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_downloads_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\" target=\"blank\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_downloads_number_'.$i] = "<b>".$top_list[$i]['image_downloads']."</b>";
  }
  else {
    
$register_array['image_downloads_'.$i] = "--";
    
$register_array['image_downloads_user_'.$i] = "--";
    
$register_array['image_downloads_cat_'.$i] = "--";
    
$register_array['image_downloads_number_'.$i] = "--";
  }
}

$site_template->register_vars($register_array);

//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
if (
$cat_id && isset($cat_cache[$cat_id])) {
  
$clickstream .= get_category_path($cat_id1).$config['category_separator'];
}
$clickstream .= $lang['top_images']."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"lang_top_image_hits" => $lang['top_image_hits'],
  
"lang_top_image_downloads" => $lang['top_image_downloads'],
  
"lang_top_image_rating" => $lang['top_image_rating'],
  
"lang_top_image_votes" => $lang['top_image_votes']
));
$site_template->print_template($site_template->parse_template($main_template));

$content ob_get_contents();
ob_end_clean();

if (
$cache_page_top) {
  
// Reset session mode
  
$site_sess->mode $old_session_mode;

  
save_cache_file($cache_id$content);
}

// end if get_cache_file()

echo $content;

include(
ROOT_PATH.'includes/page_footer.php');
?>


Please Post your Url

8
Mods & Plugins (Releases & Support) / Re: [Mod] Toplist altered
« on: July 15, 2008, 02:24:00 PM »

Hi, OtusDesign

open top.php

you need a target in the <a href=.....> tags.

<a href=\".....\" target=\"blank\">




9
Mods & Plugins (Requests & Discussions) / Re: Thumbnails in RSS
« on: July 06, 2008, 05:56:53 PM »
THX!

nice Work mate  :thumbup:

10
Mods & Plugins (Requests & Discussions) / Re: Thumbnails in RSS
« on: June 24, 2008, 01:02:54 AM »
... danke, dass euch mein Feed so gut gefällt ...
... wenn ich nächste Woche wieder am heimischen PC sitze, dann geht es für euch in der Download-Area weiter ...
... bis dahin bitte etwas Geduld ...


Möchte ja nicht drängeln...

aber hat sich leider nichts getan bis jetzt, ich möchte gerne sehen wie du das gemacht hast (neugierig bin) .


11
Feedback & Suggestions / Re: Wunschthread für kommende Versionen
« on: June 20, 2008, 03:24:46 AM »

Intelligentes Newletter System :)

Der gedanke:
User können wählen ob sie Newsletter Täglich, Wöchentlich, Monatlich oder garnicht haben wollen.

Im ACP:
Newsletter verschicken an user die gewählt haben Täglich, Wöchentlich oder Monatlich.

Tägliche News in den Wöchentlichen News zusammen fassen und an die senden die Wöchentlich gewählt haben.
Wöchentliche News in den Monatlichen News zusammenfassen und an die senden die Monatlich gewählt haben.

Ist bestimmt sehr aufwendig aber halt mal ne idee ;)

12
Discussion & Troubleshooting / Re: Hackerangriff !!!
« on: June 19, 2008, 10:24:01 PM »
Hallo,

...Revido
...Aber, wenn Ihr auf meine Seite schaut seht Ihr was los ist.

Wer hilft?

1. Also erstmal zu Revido siehe: http://forum.webhostlist.de/forum/webhosting-allgemein/60741-hat-jemand-erfahrungen-mit-revido-de-8.html
und die AGB würde ich auch sehr aufmerksam lesen!!!! (Insbesondere wenn du usern erlaubst bilder etc. hochzuladen)

2. Auf seite schauen?? wo ist die URL?


13
Discussion & Troubleshooting / Re: Character Encoding einstellen?
« on: June 18, 2008, 07:03:51 PM »
Danke aber muss ich dann für deutsch nun utf-8 neghmen oder iso-8859-1?

14
Discussion & Troubleshooting / Re: Character Encoding einstellen?
« on: June 18, 2008, 06:53:27 PM »
Mal nachgefragt:

Englisch =  iso-8859-1
Deutsch = utf-8

aber wie ist das mit den sprachen:

portuguese = iso-8859-1
french = iso-8859-1
spanish = iso-8859-1
italian = iso-8859-1
danish = iso-8859-1
turkish = iso-8859-1

da kommt doch bestimmt was anderes hin als iso-8859-1 oder?


15
Mir scheint das ganze Templ. ist irgendwie zerrissen oder soll das in der anordnung so sein?


Pages: [1] 2 3 4 5