16
Plugins / [Plugin] Import images from external webspace (Beta)
« on: June 17, 2003, 02:11:35 AM »
@m-a-b
Ich schau es mir morgen mal an...
good night
Ich schau es mir morgen mal an...
good night
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
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.
function get_category_path($cat_id = 0, $detail_path = 0, $page = 0, $page_details = 0) { // V3 by effemmess
global $site_sess, $config, $cat_cache, $url, $lang;
$parent_id = 1;
while ($parent_id) {
if (!isset($cat_cache[$cat_id]['cat_parent_id'])) {
return false;
}
$parent_id = $cat_cache[$cat_id]['cat_parent_id'];
if (empty($path)) {
if ($detail_path) {
$cat_url = ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id;
/* imo we do not need this, because we do later our own page-handling...
if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
printf($regs[1]."<br />");
if (!empty($regs[1]) && $regs[1] != 1 && !$page_details) {
$cat_url .= "&".URL_PAGE."=".$regs[1];
}
}
*/
$path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>";
}
else {
$path = $cat_cache[$cat_id]['cat_name'];
}
}
else {
$path = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>".$config['category_separator'].$path;
}
$cat_id = $parent_id;
} // end while
$pagereg = "&".URL_PAGE."=".$page;
$page = ($page_details) ? "<a href=\"".$site_sess->url($cat_url.$pagereg)."\" class=\"clickstream\">".$lang['page']." ".$page."</a>" : $lang['page']." ".$page;
$path = $path.$config['category_separator'].$page;
return $path;
}
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].get_category_path($cat_id, 1, $page)."</span>";
$clickstream .= get_category_path($cat_id, 1, $cur_page, 1).$config['category_separator'];
$page= (empty($page)) ? 1 :$page;
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
$clickstream.= "<a href=\"".$site_sess->url(ROOT_PATH."lightbox.php")."\" class=\"clickstream\">".$lang['lightbox']."</a>".$config['category_separator'];
$clickstream.= $lang['page']." ".$page."</span>";
if ($page > 1){
$path = $path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url."&".URL_PAGE."=".$page)."\" class=\"clickstream\">page ".$page."</a>";
}
if ($page > 1){
$path = $path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url."&".URL_PAGE."=".$page)."\" class=\"clickstream\">".$lang['page']." ".$page."</a>";
}
global $site_sess, $config, $cat_cache, $url;
global $site_sess, $config, $cat_cache, $url,$lang;
<?
and before ?>
$lang['page'] = "Seite"; // or whatever you want (e.g. straniza :-) )
if ($page > 1) {
$extension= "&".URL_PAGE."=".$page;
}else{
if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
if (!empty($regs[1]) && $regs[1] != 1) {
$cat_url .= "&".URL_PAGE."=".$regs[1];
}
}
}
if ($page > 1){
$path = $path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url.$extension."=".$page)."\" class=\"clickstream\">".$lang['page']." ".$page."</a>";
}
function get_category_path($cat_id = 0, $detail_path = 0, $page = 0) { //nicht i.O.
global $site_sess, $config, $cat_cache, $url, $lang;
$parent_id = 1;
while ($parent_id) {
if (!isset($cat_cache[$cat_id]['cat_parent_id'])) {
return false;
}
$parent_id = $cat_cache[$cat_id]['cat_parent_id'];
if (empty($path)) {
if ($detail_path) {
$cat_url = ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id;
if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
if (!empty($regs[1]) && $regs[1] != 1) {
$cat_url .= "&".URL_PAGE."=".$regs[1];
}
}
$path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>";
}
else {
$path = $cat_cache[$cat_id]['cat_name'];
}
}
else {
$path = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>".$config['category_separator'].$path;
}
$cat_id = $parent_id;
} // end while
if ($page > 1){
$path = $path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url."&".URL_PAGE."=".$page)."\" class=\"clickstream\">".$lang['page']." ".$page."</a>";
}
return $path;
}
function get_category_path($cat_id = 0, $detail_path = 0, $page = 0) { // i.O.
global $site_sess, $config, $cat_cache, $url, $lang;
$parent_id = 1;
while ($parent_id) {
if (!isset($cat_cache[$cat_id]['cat_parent_id'])) {
return false;
}
$parent_id = $cat_cache[$cat_id]['cat_parent_id'];
if (empty($path)) {
if ($detail_path) {
$cat_url = ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id;
if ($page > 1) {
$cat_url_ext = "&".URL_PAGE."=".$page;
}
else{
if (preg_match("/".URL_PAGE."=([0-9]+)/", $url, $regs)) {
if (!empty($regs[1]) && $regs[1] != 1) {
$cat_url .= "&".URL_PAGE."=".$regs[1];
}
}
}
$path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>";
}
else {
$path = $cat_cache[$cat_id]['cat_name'];
}
}
else {
$path = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>".$config['category_separator'].$path;
}
$cat_id = $parent_id;
} // end while
if ($page > 1){
$path = $path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url.$cat_url_ext)."\" class=\"clickstream\">".$lang['page']." ".$page."</a>";
}
return $path;
}
$cat_url .= "&".URL_PAGE."=".$page;
$pagereg= "&".URL_PAGE."=".$page;
return $path;
if ($page>1){
$path=$path.$config['category_separator']."<a href=\"".$site_sess->url($cat_url.$pagereg)."\" class=\"clickstream\">"."Seite ".$page."</a>";
}
Ich bin schon heiß wie eine Kartoffel. Kannst Du nicht schon mal ne Beta ins Netz stellen???