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.


Topics - ascanio

Pages: 1 2 [3] 4 5
31
Hi everyone I have a big problem with my gallery. In my control panel I see a big blue rectangle and in the gallery most of the thumb nail are gone  :( :( :( :cry: :cry: please i need help.


32
Discussion & Troubleshooting / Reinstall the gallery
« on: May 11, 2005, 04:17:58 AM »
Hi everyone, I would like to reinstall my gallery in other server and i don't want to lose all my exfort that I made on my current gallery so I wonder if there are any easy way to reinstall the gallery in other server with all the MODs and the same database that I have now. What should I do?

Thanks

33
Hola me pregunto si hay alguna manera de agregar nuevos botones como los de download y postcards que puedan ponerse en on/off dependiendo de la categoria es decir activos o desactivados .

Gracias

34
Hi everyone how can I create new buttons and make them active for some specific categories? like the download and postcard buttons? what filies shuold i modifiy?

Thanks in advance

35
Discussion & Troubleshooting / Get the picture's url
« on: May 04, 2005, 12:02:36 AM »
 Hi how can i get the picture's url, for example in detail.html i want to see which url has the picture. www.mydomain.com/4images/data/media/thumbnail/imagename.jpg

Any ideas?

36
Can any body remember what modification i have to do to get the user profile hits?
and i also need [MOD] User's latest Image in Profile (by V@no) thanks

37
Mods & Plugins (Releases & Support) / [MOD] Top 25 uploader
« on: April 29, 2005, 12:47:16 AM »
Hi Every one this MOD was here before the hack attack but then disapear so I'm going to re-post it I not the one who made this MOD so don't ask me for Support.

 :arrow: Files to edit:

includes/page_header.php
templates/<your templates>/home.html

 :arrow: Step 1 If you have The MOD Memberlist you don't need to do this step. Add a new field in the database called user_t_images [Propieties: Type: smallint; Lenght: 6; Null: not null; Default: 0. (from my phpAdmin)]

Or

you can use the table update from the MOD Memberlist.

 :arrow: Step 2

In includes/page_header.php

Find:

Code: [Select]
?>
Add before:
Code: [Select]
$last_action_user_list = "";
$sql = "SELECT user_t_images, user_name, user_id FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_t_images DESC
LIMIT 25";
$result = $site_db->query($sql);

while ($row = $site_db->fetch_array($result)) {
$last_action_user_list .= '<a href ="'.ROOT_PATH.'member.php?action=showprofile&user_id='.$row['user_id'].'"><b>'.$row['user_name'].'</b></a> <span class="smalltext">'.$row['user_t_images'].'</span><br>';
}

$site_template->register_vars(array(
"user_uploaders_list" => $last_action_user_list,
));
unset($user_uploaders_list);

 :arrow: Step 3:

 In templates/<your templates>/home.html:

Add this:

Code: [Select]
<table border="0" cellspacing="1" cellpadding="1" background="{template_url}/images/cat.gif" width="100%">
  <tr>
    <td height="20" background="{template_url}/images/back1.gif">
       <b>Top 25 Usuarios</b></td>
  </tr>
  <tr>
    <td class="row1">{user_uploaders_list}<br></td>
  </tr>
</table>

If u want to change from top 25 uploader to top 10 uploader just change this
Code: [Select]
LIMIT 25"; to this
Code: [Select]
LIMIT 10";



38
Espaņol / Castellano / [MOD] Top 25 Uploader
« on: April 29, 2005, 12:39:35 AM »
Hola este MOD existia antes de el ataque al foro yo solo lo he recupera Yo no lo hize osea que no creo que pueda ayudarles con las preguntas que tengais pero no tiene xq dar problemas ;).

 :arrow: Ficheros a editar:

includes/page_header.php
templates/<your templates>/home.html

 :arrow: Step 1 Si ya tienes instalado el mod de memberlist no hace falta que hagas este paso. Crea un nuevo campo en la  database llamdo user_t_images [Propiedades: Type: smallint; Lenght: 6; Null: not null; Default: 0. (segun mi phpAdmin)]

O

envez de crear un campo nuevo puedes usar el table_update del mod memberlist

 :arrow: Step 2

In includes/page_header.php

Busca:

Code: [Select]
?>
Inserta antes:
Code: [Select]
$sql = "SELECT user_t_images, user_name, user_id FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_t_images DESC
LIMIT 25";
$result = $site_db->query($sql);

while ($row = $site_db->fetch_array($result)) {
$last_action_user_list .= '<a href ="'.ROOT_PATH.'member.php?action=showprofile&user_id='.$row['user_id'].'"><b>'.$row['user_name'].'</b></a> <span class="smalltext">'.$row['user_t_images'].'</span><br>';
}

$site_template->register_vars(array(
"user_uploaders_list" => $last_action_user_list,
));
unset($user_uploaders_list);

 :arrow: Step 3:

En templates/<your templates>/home.html:

Pon esto donde quieras que apareza la lista:

Code: [Select]
<table border="0" cellspacing="1" cellpadding="1" background="{template_url}/images/cat.gif" width="100%">
  <tr>
    <td height="20" background="{template_url}/images/back1.gif">
       <b>Top 25 Usuarios</b></td>
  </tr>
  <tr>
    <td class="row1">{user_uploaders_list}<br></td>
  </tr>
</table>

Si quieres que la lista sea de 10 personas cambia esto:
Code: [Select]
LIMIT 25"; por esto
Code: [Select]
LIMIT 10";


39
Hi every one today I was looking the funtions.php code and I realized that some lines of that code apper in blue an red but the rest in black I just wanna make sure that there is not any problem with the code (use frontpage 2003)

Code: [Select]

    $wh = get_resize($image_info[0], $image_info[1], $dim, $dim);
    $text = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$row['image_id'])."\"><img width = \"".$wh[0]."\" height=\"".$wh[1]."\" src=\"".$file_src."\" alt=\"".str_replace("\"", "&quot;", $row['image_name'])."\" align=\"".$align."\"></a>";
  }
  return $text;
}
function bb_code($text){
  global $lang;
  $text = strip_brackets($text);
  $text = str_replace("  ", "&nbsp; ", $text);
   // now Replace 2 spaces with " &nbsp;" to catch odd #s of spaces.
   $text = str_replace("  ", " &nbsp;", $text);
   // Replace tabs with "&nbsp; &nbsp;" so tabbed code indents sorta right without making huge long lines.
   $text = str_replace("\t", "&nbsp; &nbsp;", $text);

  $text = "<div class=\"codehead\"><b>".$lang['code'].":</b><div class=\"codeblock\">".stripslashes($text)."</div></div>";
  return $text;
}
function format_text($text, $html = 0, $word_wrap = 0, $bbcode = 0, $bbcode_img = 0, $smiles = 0, $brackets = 1) {
  global $lang;
  $text = trim($text);
  $text = str_replace("\\", "\\\\", $text);

  if ($html == 0) {
    $text = str_replace("&lt;", "&amp;lt;", $text);
    $text = str_replace("&gt;", "&amp;gt;", $text);
    $text = str_replace("<", "&lt;", $text);
    $text = str_replace(">", "&gt;", $text);
  }
//   $text = preg_replace("/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/esiU", "phphighlite('\\5')", $text);
  $text = ($smiles) ? smiles($text) : $text;
  if ($bbcode == 1) {
     $text = preg_replace("/\[php\](.*?)\[\/php\]/esi", "phphighlite('\\1')", $text);
      $text = preg_replace("/\[code\](.*?)\[\/code\]/esi", "bb_code('\\1')", $text);
  }
  if ($brackets) {
     $entities_match = array('{', '}');
     $entities_replace = array('{', '}');
    $text = str_replace($entities_match, $entities_replace, $text);
  }

  if ($bbcode == 1) {
      $text = preg_replace("/\[thumb=(.*?)\,(.*?)\,(.*?)\]/esi","thumb('\\1','\\2','\\3')",$text);
      $text = preg_replace("/\[thumb=(.*?)\,(.*?)\]/esi","thumb('\\1','\\2' )",$text);
    $text = preg_replace("/\[thumb=(.*?)\]/esi", "thumb('\\1')", $text);
      $search_array = array(
         "/\[b\](.*?)\[\/b\]/si",
         "/\[i\](.*?)\[\/i\]/si",
         "/\[u\](.*?)\[\/u\]/si",
         "/\[email\](.*?)\[\/email\]/si",
         "/\[email=(.*?)\](.*?)\[\/email\]/si",
         "/\[quote=(.*?)\](.*?)/si",
         "/\[quote\](.*?)/si",
         "/\[\/quote\]/si",
         "/\[url=(.*?)\](.*?)\[\/url\]/si",
         "/\[url\](.*?)\[\/url\]/si",
         "/\[urlb=(.*?)\](.*?)\[\/urlb\]/si",
         "/\[urlb\](.*?)\[\/urlb\]/si",
         "/\[sub\](.*?)\[\/sub\]/si",
         "/\[sup\](.*?)\[\/sup\]/si",
         "/\[color=(.*?)\](.*?)\[\/color\]/si",
         "/\[size=(.*?)\](.*?)\[\/size\]/si",
         "/\[tt\](.*?)\[\/tt\]/si",
         "/\[s\](.*?)\[\/s\]/si",
         "/\[move\](.*?)\[\/move\]/si",
//         "/\[align=(.*?)\](.*?)\[\/align\]/si",
         "/\[align=(.*?)\](.*?)\[\/align\](.<br \/>)?/si",
         "/\[font=(.*?)\](.*?)\[\/font\]/si",
         "/\[shadow=(.*?)\,(.*?)\,(.*?)\](.*?)\[\/shadow\]/si",
         "/\[glow=(.*?)\,(.*?)\,(.*?)\](.*?)\[\/glow\]/si",
         "/\[quote2=(.*?)\,(.*?)(\(.*?\))?\](.*?)/si",
         "/\[\/quote2\]/si",
         "/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
      "/(\[)(list)(])(.*)(\[\/list\])/siU",
      "/(\[\*\])/siU"

      );
      $replace_array = array(
         "<b>\\1</b>",
         "<i>\\1</i>",
         "<u>\\1</u>",
         "<a href=mailto:\\1>\\1</a>",
         "<a href=mailto:\\1>\\2</a>",
      "<div class=\"quotehead\"><b>\\1</b> ".$lang['wrote'].":<div class=\"quoteblock\">\\2",
      "<div class=\"quotehead\"><b>".$lang['quote'].":</b><div class=\"quoteblock\">\\1",
      "</div></div>",
         "<a href=\"\\1\" target=_blank>\\2</a>",
         "<a href=\\1 target=_blank>\\1</a>",
         "<b><a href=\"\\1\" target=_blank>\\2</a></b>",
         "<b><a href=\\1 target=_blank>\\1</a></b>",
         "<sub>\\1</sub>",
         "<sup>\\1</sup>",
         "<font color=\"\\1\">\\2</font>",
         "<font style=\"font-size: \\1px\">\\2</font>",
         "<tt>\\1</tt>",
         "<s>\\1</s>",
         "<marquee>\\1</marquee>",
         "<div align=\"\\1\">\\2</div>",
         "<font face=\"\\1\">\\2</font>",
         "<font style=\"Filter: Shadow(color=\\1, Direction=\\2); Width=\\3px;\">\\4</font>",
         "<font style=\"Filter: Glow(color=\\1, Strength=\\2); Width=\\3px;\">\\4</font>",
         "<div class=\"quotehead\">\\1<b>\\2</b>\\3:<div class=\"quoteblock\">\\4",
         "</div></div>",
      "<ol type=\"\\5\">\\7</ol>",
      "<ul>\\4</ul>",
      "<li>"

      );
     preg_match_all("/(\[quote=(.+?)\])|(\[quote\])/", $text, $regs);
     $quoteopen =  count($regs[0]);
     preg_match_all("/(\[\/quote\])/", $text, $regs);
     $quoteclose =  count($regs[0]);
 
     if($quoteopen > $quoteclose) {
        $toclose = $quoteopen - $quoteclose;
        for($i = 0 ; $i < $toclose ; $i++) {
           $text .= "[/quote]";
        }
     } elseif($quoteclose > $quoteopen) {
        $toopen = $quoteclose - $quoteopen;
        for($i = 0 ; $i < $toopen ; $i++) {
           $text = "[quote]$text";
        }
     }
    $text = preg_replace($search_array, $replace_array, $text);
    if (!$bbcode_img)  {
        $text = preg_replace("/\[img\](.*?)\[\/img\]/si", "<a href=\"\\1\" target=\"_blank\">\\1</a>", $text);
         $text = preg_replace("/\[img=(.*?)\,(.*?)\](.*?)\[\/img\]/si","<a href=\"\\3\" target=\"_blank\">\\3</a>",$text);
         $text = preg_replace("/\[img height=(.*?)\ width=(.*?)\](.*?)\[\/img\]/si","<a href=\"\\3\" target=\"_blank\">\\3</a>",$text);
         $text = preg_replace("/\[img width=(.*?)\ height=(.*?)\](.*?)\[\/img\]/si","<a href=\"\\3\" target=\"_blank\">\\3</a>",$text);
         $text = preg_replace("/\[flash=(.*?)\,(.*?)\](.*?)\[\/flash\]/si","<a href=\"\\3\" target=\"_blank\">\\3</a>",$text);
    }else{
        $text = preg_replace("/\[img\](.*?)\[\/img\]/si", "<img src=\"\\1\" border=\"0\">", $text);
         $text = preg_replace("/\[img=(.*?)\,(.*?)\](.*?)\[\/img\]/si","<img src=\"\\3\" height=\"\\2\" width=\"\\1\">",$text);
         $text = preg_replace("/\[img height=(.*?)\ width=(.*?)\](.*?)\[\/img\]/si","<img src=\"\\3\" height=\"\\1\" width=\"\\2\">",$text);
         $text = preg_replace("/\[img width=(.*?)\ height=(.*?)\](.*?)\[\/img\]/si","<img src=\"\\3\" width=\"\\1\" height=\"\\2\">",$text);
         $text = preg_replace("/\[flash=(.*?)\,(.*?)\](.*?)\[\/flash\]/si","<object classid=\"clsid: D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\\1 height=\\2><param name=movie value=\\3><param name=play value=true><param name=loop value=true><param name=quality value=high><embed src=\\3 width=\\1 height=\\2 play=true loop=true quality=high></embed></object>",$text);
    }
     $text = str_replace("[hr]", "<hr>", $text);
  }
  $text = replace_url($text);
  if ($word_wrap && $text != "") {
    $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
  }
  $text = str_replace("\n", "<br />", $text);
  $text = str_replace("\\'", "'", $text);
  $text = str_replace("\\\"", "&quot;", $text);
  return replace_badwords(stripslashes($text));
}

function phphighlite($code) {
  //PHP 4 only

  if (floor(phpversion())<4) {
    $buffer=$code;
  } else {
//      $code = str_replace("<br>", "", $code);
//      $code = str_replace("<br />", "", $code);
      $code = str_replace("&gt;", ">", $code);
      $code = str_replace("&lt;", "<", $code);

      $code = str_replace("&amp;", "&", $code);
      $code = str_replace('$', '\$', $code);
      $code = str_replace('\n', '\\\\n', $code);
      $code = str_replace('\r', '\\\\r', $code);
      $code = str_replace('\t', '\\\\t', $code);

      $code = stripslashes($code);

      if (!strpos($code,"<?") and substr($code,0,2)!="<?") {
         $code="<?\n".trim($code)."\n?>";
         $addedtags=1;
      }
      ob_start();
      $oldlevel=error_reporting(0);
      highlight_string($code);
      error_reporting($oldlevel);
      $buffer = ob_get_contents();
      ob_end_clean();
      if ($addedtags) {
        $openingpos = strpos($buffer,'&lt;?');
        $closingpos = strrpos($buffer, '?');
        $buffer=substr($buffer, 0, $openingpos).substr($buffer, $openingpos+5, $closingpos-($openingpos+5)).substr($buffer, $closingpos+5);
      }
//      $buffer = str_replace("&quot;", "\"", $buffer);
  }
  return "<div class=\"codehead\"><b>PHP:</b><div class=\"codeblock\">".preg_replace("/<code><font color=\"#000000\">\n<font color=\"(.*)\">\n/si", "<code><font color=\"#000000\"><font color=\"\\1\">", str_replace("\n</font>\n</code>", "</font></code>", $buffer))."</div></div>";
}
//--------------------------
//--------Smiles------------
//--------------------------
function smiles($text,$enablesmilies = 1) {
  global $smileyfromcache, $smileytocache;
  $imagesdir = TEMPLATE_PATH."/smiles";
  if(gettype($smileyfromcache) != "array") {
   $smilesfrom = get_smiles();
   foreach ($smilesfrom as $key => $val) {
           $smileyfromcache[] ='/(((>[^<]*)|(^[^<]*))([\s\n\r]|^|<br( \/)?[>]))('.str_replace('|','\|', quotemeta(str_replace("<", "&lt;", str_replace(">", "&gt;", str_replace("\/", "\\\/", $key))))).')/s';
           $smileytocache[] = "\\1<img src=\"$imagesdir/$val.gif\" alt=\"\" border=\"0\">";

[/quote][/quote]

40
Sometimes I get like 60 user online at the same time so my whosonline table get really big so i get this idea and look nicer i hope u like it.

It will look like this:

8 user(s) y 1 guest(s) online. admin, shadowdeejay, traxtorm, fiesta_xr2, ashura, Cr0n0s, franfran, Morro, pepe, Beli Rubita, n3n4_m4l4, Gost, 12dienow, yeeahman, pocholo

Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td class="head1">
      <table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td valign="top" class="row2">
    <p><marquee>{lang_user_online_detail}{user_online_list} </marquee></p>
  </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

you can change the lang/<your language>/main.php a little bit to get this mesage shorter 8 user(s) y 1 guest(s) online. shorter

41
Discussion & Troubleshooting / Email image id
« on: April 25, 2005, 12:27:12 AM »
Hi I am trying to to email the image id like: The image id email by the user was: image_id=3221. I have try this with any results,,,

Code: [Select]
{header}
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
  <tr>
    <td background="{template_url}/images/back3.gif">
      &nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td valign="middle" class="tablebgcolor">
<table border="1" width="100%" id="table1">
<tr>
<td background="{template_url}/images/back1.gif"><b>
Envia la imagen</b></td>
</tr>
<tr>
<td class="row1" width="97%"><p align="center">
Cual esla imagen que desea eliminar?</p>
<p align="center">Intruduce la clave: </p>
<form method="post" action="{image_url}">
<p align="center">
<input type="hidden" name="action" value="emailuser" />
  <input type="hidden" name="user_id" value="1" />
  <input type="hidden" name="image_id" value="{image_id}" />
  <p align="center">
    <input type="submit" value="enviar" class="button" /> </p>
</form>
<p align="center"><font color="#FF0000"><b>Fuera de
Servicio Temporalmente</b></font></p>
<p>&nbsp;</td>
</tr>
</table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
    </td>
  </tr>
</table>


but not succes at all any ideas?

42
Mods & Plugins (Requests & Discussions) / Sort user by upload in CPA
« on: April 24, 2005, 09:23:17 PM »
Hi, is there any way in the control panel in the option edit users to sort the user in order of how many pictures have they upload?

43
Hi I was thinking in install the MOD member personal category but I read that it is not recomendable to install because
Quote
THIS MOD NOT IS SUPPORTED BY THE AUTHOR ANYMORE, BECAUSE THE WAY ITS DONE, IT HAS NO POTENTIAL FUTURE TO EXPAND.
IF U HAVEN'T INSTALL THIS MOD, PLEASE DON'T. IF VERSION 2 EVER COMES OUT, AND U INSTALLED THIS VERSION, U'LL HAVE TO REMOVE THIS VERSION PRIOR INSTALLING NEXT VERSION.
SAVE YOURSELF FROM TROUBLE AND WAIT TILL NEXT VERSION.
SORRY.

So I think that would be very cool for the second version or for a new mod to have a  Member personal Album. It would be like the light box ... when a user register would see Album and if he click on there it would say you don't have pictures on your album so the user can upload pictures to his or her album and then in his profile there would be a link to his Personal Album so it is not really a category just a member personal space.

If some one has any idea or if this can be done easyly please post it :):):)

44
Hi, I have some categories where the users upload pictures and they have to wait for my validtion and sometimes I found like 500 pics waiting to be validate and I have to click 500 times to acept or delete. I there any way to put the checkboxes like in the edit images or check new images where you can check all in just one click.

Validate:                      Edit:
     

Any ideas?

45
Mods & Plugins (Requests & Discussions) / MOD New options on postcards
« on: April 16, 2005, 09:55:35 PM »
Hi I just want you to know that there is an awesome MOD made by Excitec2 that complete change the postcards "templates"

You can find the MOD here but in spanish if you are a brave guy u can try and translate it it is not that hard:

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

Some of the features:

Visualization background color at the same moment of the election.
Visualization of the color of the border at same time of the election.
Visualization of the type of letter at the same moment of the election.
New format and more options in the type of letter.
Special effects in the postcard.
Users can selet more than one stamps.
Gif Backgrounds for the postcards.
Add and visualization of poems in the postcards.
Add music and listening of the election.
Design of the format of the postcard.
Format of mailing, in text, html, html and text.


here I post some screenshots so you can see what it looks like:



Options:



Pages: 1 2 [3] 4 5