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

Pages: [1] 2 3 4 5 ... 190
1
Chit Chat / Re: thunderstrike has a gallery ?
« on: February 29, 2008, 03:43:40 PM »
@Kai:

No use for delete post - is save now. Everybody knows what you did (same for Nicky).

2
Code: [Select]
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
    "total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : "";

for:

Code: [Select]
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content']),
    "total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : ""

3
Français / Re: Download URL
« on: February 29, 2008, 03:32:07 PM »
@Asx:

This is right. ;)

4
Plugins / Re: [ACP - PLUGIN] - Cat hits all in 1
« on: February 29, 2008, 05:18:02 AM »
For good reply in topic, I create v2.0 . Read update date and do again step 1, 2 and I add step 3. ;)

5
Mods & Plugins (Releases & Support) / Re: [MOD] Universal Paging Class v1.1
« on: February 29, 2008, 05:13:38 AM »
I edit paging class for ACP. ;)

// Step 1

1 - In admin folder - create new folder: includes (no edit CHMOD :!:)
2 - In admin/includes - create new file: admin_paging.php .

Add:

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *


 *             File: paging.php                                           *
 *     File Version: 1.1.2                                                *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *

 *    Scriptversion: 1.7.9                                                *
 *                                                                        *
 *    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.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH'))
{
  die(
"Security violation");
}
if (!
class_exists("Paging"))
{
  class 
Paging
  
{
    var 
$page,$page1,$offset,$perpage,$num_rows_all,$link_args;
    var 
$first,$last,$total_pages,$config,$desc,$next,$back,$extra,$query,$form,$formjs;

//    function Paging($page = 1, $perpage = 0, $num_rows_all = 0, $link_args = "", $text = "", $extra = "", $page_text = "", $style = "", $page1 = 0, $form = false, $formjs = false)
    
function Paging($page 1$perpage 0$num_rows_all 0$link_args ""$text ""$extra ""$page_text ""$style ""$page1 0$form true$formjs true)
    {
      global 
$lang$config;

  
//-------- Config ------------
  //Change $this->alt to 1 if u want display number of pages not more then u set in the settings, no metter on witch page u are.
  //by default if u have 20 pages, for example, and in the settings set to show only 10, it will actualy show u 20 pages when u go to 10th page.
      
$this->alt 1;
      
$this->form $form//(true, false or $form) - show the form where visitor can manualy enter the page they want to enter.
      
$this->formjs $formjs//(true, false or $formjs) - include JS input validation, to ensure that the entered page is valid.
  //------- End Config ---------

      
if (!isset($lang['gotopage'])) $lang['gotopage'] = "Go to page:";
      if (!isset(
$lang['pagebutton'])) $lang['pagebutton'] = "Go";
  
/*
      if (!isset($lang['gotopage'])) $lang['gotopage'] = "";
      if (!isset($lang['pagebutton'])) $lang['pagebutton'] = "Go to page";
  */
      
$this->style = ($style) ? $style "paging";
      
$this->extra = ($extra) ? "#".$extra "";
      
$this->page_text = ($page_text) ? $page_text "page";
      
$this->desc = ($text) ? $text $lang['paging_stats'];

      
$this->page = (int)$page;
      
$this->perpage = (int)$perpage;
      
$this->num_rows_all = (int)$num_rows_all;

      
  if ($this->page <= 0)
      {
        
$this->page 1;
      }
      if (
$this->perpage <= 0)
      {
        
$this->perpage 1;
      }
     
      if (!
$this->num_rows_all)
      {
        
$this->total_pages 0;
      }
      elseif (
$this->num_rows_all <= $this->perpage)
      {
        
$this->total_pages 1;
      }
      elseif (
$this->num_rows_all $this->perpage == 0)
      {
        
$this->total_pages $this->num_rows_all $this->perpage;
      }
      else
      {
        
$this->total_pages ceil($this->num_rows_all $this->perpage);
      }

      if (
$this->page $this->total_pages)
      {
        
$this->page 1;
      }

      if (!
$this->num_rows_all)
      {
        
$this->first 0;
      }
      else
      {
        
$this->first $this->perpage $this->page $this->perpage 1;
      }

      if (!
$this->num_rows_all)
      {
        
$this->last 0;
      }
      elseif (
$this->page == $this->total_pages)
      {
        
$this->last $this->num_rows_all;
      }
      else
      {
        
$this->last $this->perpage $this->page;
      }

      
$this->offset $this->perpage $this->page $this->perpage;

      
$link_args preg_replace("/&".$this->page_text."=[0-9]*/"""$link_args);
      
$link_args preg_replace("/".$this->page_text."=[0-9]*&/"""$link_args);
      
$this->link_args basename($link_args);
      
$query "";
      if (
strpos($this->link_args'?') !== false)
      {
        if (
$this->form)
        {
          
$query substr(strrchr($this->link_args,"?"), 1);
        }
        
$this->link_args .= "&amp;";
      }
      else
      {
        
$this->link_args .= "?";
      }
      if (
$query)
      {
        
$query explode("&"str_replace("&amp;""&"$query));
        foreach (
$query as $key)
        {
          if (
$val substr(strrchr($key,"="), 1))
          {
            
$name substr($key,0,(strlen($key)-strlen(strrchr($key,"="))));
          }
          else
          {
            
$name $key;
          }
          
$this->query .= "<input type=\"hidden\" name=\"".$name."\" value=\"".$val."\">\n";
        }
      }

      
$this->paging_next $lang['paging_next'];
      
$this->paging_back $lang['paging_previous'];
      
$this->paging_lastpage $lang['paging_lastpage'];
      
$this->paging_firstpage $lang['paging_firstpage'];
      
$this->range $config['paging_range'];
    }

    function 
get_paging()
    {
      
$html "";
      if (
$this->total_pages 1)
      {
        
$page_back $this->page 1;
        
$page_next $this->page 1;
        if (
$this->form)
        {
          
$js = ($this->formjs) ? " onSubmit=\"if (!page.value || page.value < 1 || page.value > ".$this->total_pages.") return false;\"" "";
          
$html .= "<form action=\"".substr($this->link_args,0,(strlen($this->link_args)-strlen(strrchr($this->link_args,"?"))))."\" method=\"GET\"$js style=\"margin:0px;\"/>\n".$this->query;
        }
        if (
$this->alt)
        {
          if (
$page_back 0)
          {
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=1".$this->extra."\" class=\"".$this->style."\">".$this->paging_firstpage."</a>&nbsp;&nbsp;";
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_back.$this->extra."\" class=\"".$this->style."\">".$this->paging_back."</a>&nbsp;&nbsp;";
          }
          
$page_num2 ceil($this->range 2);
          
$page_num3 $this->range;
          
$page_left 1;
          if ((
$this->page $page_num2) > 0)
          {
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".(($this->page $this->range $page_num2) ? $page_num2 : (($this->page <= ($this->total_pages $page_num2)) ? $this->page $this->range $this->total_pages $this->range $page_num2 1)).$this->extra."\" class=\"".$this->style."\">...</a>&nbsp;&nbsp;";
          }
          for (
$page_num 1$page_num <= $this->total_pages$page_num++){
            if (
$page_num3)
            {
              if (
$page_left)
              {
                if ((
$page_num >= $this->page - ($this->range $page_num2)) || ($page_num $this->total_pages $this->range && $this->page $this->total_pages $this->range ))
                {
                  if (
$this->page == $page_num)
                  {
                    
$page_left--;
                    
$page_num2--;
                    
$page_num3--;
                    
$html .= "[<b class=\"".$this->style."on\">".$page_num."</b>]&nbsp;&nbsp;";
                  }
                  else
                  {
                    
$page_num2--;
                    
$page_num3--;
                    
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_num.$this->extra."\" class=\"".$this->style."\">".$page_num."</a>&nbsp;&nbsp;";
                  }
                }
              }
              else
              {
              if (
$page_num <= $this->page + ($this->range $page_num2))
              {

                  if (
$this->page == $page_num)
                  {
                    
$html .= "[<b class=\"".$this->style."on\">".$page_num."</b>]&nbsp;&nbsp;";
                  }
                  else
                  {
                    
$page_num2--;
                    
$page_num3--;
                    
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_num.$this->extra."\" class=\"".$this->style."\">".$page_num."</a>&nbsp;&nbsp;";
                  }
                }
              }
            }
          }
          
$page_num2 ceil($this->range 2);
          if ((
$this->page $page_num2) <= $this->total_pages)
{
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".(($this->page $page_num2 <= $this->total_pages $this->range) ? (($this->page $page_num2) ? $this->range $page_num2 $this->page $this->range) : $this->total_pages $page_num2 1).$this->extra."\" class=\"".$this->style."\">...</a>&nbsp;&nbsp;";
          }
          if (
$page_next <= $this->total_pages)
{
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_next.$this->extra."\" class=\"".$this->style."\">".$this->paging_next."</a>&nbsp;&nbsp;";
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$this->total_pages.$this->extra."\" class=\"".$this->style."\">".$this->paging_lastpage."</a>";
          }
        }
        else
        {
          if (
$page_back 0)
          {
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=1".$this->extra."\" class=\"".$this->style."\">".$this->paging_firstpage."</a>&nbsp;&nbsp;";
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_back.$this->extra."\" class=\"".$this->style."\">".$this->paging_back."</a>&nbsp;&nbsp;";
          }
          for (
$page_num 1$page_num <= $this->total_pages$page_num++)
          {
            if (
$page_num >= ($this->page $this->range) && $page_num <= ($this->page $this->range))
            {
              if (
$this->page == $page_num)
              {
                
$html .= "<b class=\"".$this->style."on\">".$page_num."</b>&nbsp;&nbsp;";
              }
              else
              {
                
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_num.$this->extra."\" class=\"".$this->style."\">".$page_num."</a>&nbsp;&nbsp;";
              }
            }
          }
          if (
$page_next <= $this->total_pages)
          {
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$page_next.$this->extra."\" class=\"".$this->style."\">".$this->paging_next."</a>&nbsp;&nbsp;";
            
$html .= "<a href=\"".$this->link_args.$this->page_text."=".$this->total_pages.$this->extra."\" class=\"".$this->style."\">".$this->paging_lastpage."</a>";
          }
        }
        if (
$this->form)
        {
          global 
$lang;
          
$html .= "&nbsp;".$lang['gotopage']."&nbsp;<input type=\"text\" size=\"2\" name=\"page\" value=\"\" class=\"paginginput\" />\n<input type=\"submit\" value=\"".$lang['pagebutton']."\" class=\"pagingbutton\" />\n</form>";
        }
      }
      return 
$html;
    }

    function 
get_offset()
    {
      return 
$this->offset;
    }

    function 
get_paging_stats()
    
{      

      
$search_array = array(
        
"{total_cat_images}",
        
"{total_pages}",
        
"{first_page}",
        
"{last_page}"
      
);
      
$replace_array = array(
        
$this->num_rows_all,
        
$this->total_pages,
        
$this->first,
        
$this->last
      
);
      
$this->desc str_replace($search_array$replace_array$this->desc);
      return 
$this->desc;
    }
  } 
//end of class
}
?>


6
Discussion & Troubleshooting / Re: Button Link
« on: February 29, 2008, 04:46:59 AM »
Ok ... this is good reply for compare topic ... ;)

Quote
{user_images_link}

What is source tag say in PHP file for this ? Please post code.

7
Discussion & Troubleshooting / Re: Button Link
« on: February 29, 2008, 03:23:39 AM »
Quote
It didn't talk about button links. If I find it I will post my question there but I think it will be off topic in that thread.

Very good. Post topic for see if right topic headline. ;)

8
Discussion & Troubleshooting / Re: Button Link
« on: February 29, 2008, 02:04:11 AM »
Quote
I found this nifty little mod and  code in the forum to display all images for a member

If so, please post in right topic.

9
Discussion & Troubleshooting / Re: 4images went blank!
« on: February 29, 2008, 01:38:19 AM »
Very good.

10
I update first post. MOD is no get different filename for each. Only same file name for media and thumb file for each upload window. Read update instruction for info.

11
Discussion & Troubleshooting / Re: 4images went blank!
« on: February 29, 2008, 01:01:51 AM »
I edit post for topic name ... I post wrong topic first time.

12
Discussion & Troubleshooting / Re: 4images went blank!
« on: February 29, 2008, 12:22:31 AM »
Hum ... is good idea for add WMV post in this post: http://www.4homepages.de/forum/index.php?topic=20597.0

14
Discussion & Troubleshooting / Re: upload file
« on: February 28, 2008, 11:51:02 PM »
Is possible server you use is limit to 4-8 MB for max upload. Use this topic for good solution:

http://www.4homepages.de/forum/index.php?topic=3080.0

Pages: [1] 2 3 4 5 ... 190
Post your comments here