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

Pages: 1 2 [3] 4 5
31
Discussion & Troubleshooting / Re: Remove Terms of Registration?
« on: July 15, 2009, 06:22:44 PM »
And you can not add in register.php?
To be required to accept, but acceptance does not create the account.
Because if JS is disabled and you can register without clicking "Accept Terms"

EDIT:


No click in Termns, say: ¡Rellena el campo !
Click in Terms, say:
An unexpected error occured. Please try again later.
Ha habido un error. Por favor vuelva atrás e inténtelo de nuevo. Si el problema persiste, contacte con el administrador.
Because it gives me error?


<input type="checkbox" name="user_terms" onclick="this.form.submit.disabled = !this.checked" value="Y">

It:
Code: [Select]
 $user_password = (isset($HTTP_POST_VARS['user_password'])) ? trim($HTTP_POST_VARS['user_password']) : "";
replacement by:
Code: [Select]
 $user_password = (isset($HTTP_POST_VARS['user_password'])) ? trim($HTTP_POST_VARS['user_password']) : "";
 $user_terms = (isset($HTTP_POST_VARS['user_terms'])) ? trim($HTTP_POST_VARS['user_terms']) : "";



It:
Code: [Select]
   if ($user_password == "") {
      $msg .= (($msg != "") ? "<br />" : "").$field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['password']), $lang['field_required']);
      $error = 1;
    }

replacement by:
Code: [Select]
if ($user_password == "") {
      $msg .= (($msg != "") ? "<br />" : "").$field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['password']), $lang['field_required']);
      $error = 1;
    }
    if ($user_terms == "") {
      $msg .= (($msg != "") ? "<br />" : "").$field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['terms']), $lang['field_required']);
      $error = 1;
    }



It:
Code: [Select]
           (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").$additional_field_sql.")

replacement by:
Code: [Select]
           (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_terms").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").$additional_field_sql.")

32
xDD Srry Schnack I had confused video...!

One question, you can change the thumbails of:
youtube.gif, yahoovideo.gif, rutube_ru.gif etc.

For a video image, as is done when subis a youtube video. A girl in the video picture. You can replace it. Gif for that?

33
i thank you very much, but there is a problem.
But I shows:
in {new_images} videos and photos
in {new_images2} photos

It appears that you can do so?
only Videos in {new_images2} , Photos Only in {new_images}
or
only Videos in {new_images} , Photos Only in {new_images2}



another query
I point in English this means? because I do not understand
I found it in ACP, but I understand that this can explain me please?
*Kategorie Bilder Anzeigen
*ID Nummern mit , trennen

34
Hi!
...
Gibt es da eine elegante Lösung?

1.) Suche in der admin/settings.php:

show_admin_header
();

und füge davor ein:

//--------------------------------- Start cat select pic ---------------------------------
function show_cat_rand_pic($setting_name$setting_value) {
  global 
$cat_rand_pic;
  foreach (
$cat_rand_pic as $key => $val)
 {echo 
"<input type=\"text\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" checked=\"checked\"";
    }
    echo 
"> ".$val."<br />";
  }
}
//--------------------------------- End cat select pic ---------------------------------

Suche in der admin/settings.php:

show_table_separator
($setting_group[3], 2"setting_group_3");

und füge davor ein:

 
//--------------------------------- Start cat select pic ---------------------------------
	
show_setting_row("cat_rand_pic");
//--------------------------------- End cat select pic ---------------------------------


2.) suche in lang/deutsch/admin.php

$setting_group
[3]="Bild Einstellungen";

und füge davor ein:

//--------------------------------- Start cat select pic ---------------------------------
$setting['cat_rand_pic'] = "Kategorie Bilder Anzeigen:<br /><span class=\"smalltext\">ID Nummern mit , trennen.</span>";
//--------------------------------- End cat select pic ---------------------------------


3.) suche in der index.php

//--- Print Out ---------------------------------------

und füge davor ein:

//--------------------------------- Start cat select pic ---------------------------------
$sql "SELECT  setting_value as cat_rand_pic FROM ".SETTINGS_TABLE." WHERE setting_name = 'cat_rand_pic'";
    
$result $site_db->query($sql); $row mysql_fetch_object($result);
      
$cat_in$row->cat_rand_pic;
//----------------------------------------------------------  Start Total Hits  - Cat Select  -------------------------------------------------------------------------
	
	
	

  
$cat_total str_replace(",","','",$cat_in);

  
$sql "SELECT SUM(image_hits) AS sum
             FROM "
.IMAGES_TABLE."
             WHERE cat_id IN ('
$cat_total')";
  
$row $site_db->query_firstrow($sql);
	
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_hits_cat_select "".$lang['total_hits_cat_select']."<B> ".$row['sum']."</B>\n";
  
$site_template->register_vars("total_hits_cat_select"$total_hits_cat_select);
//------------------------------------------------------------  End Total Hits  - Cat Select  --------------------------------------------------
   
$num_new_images $config['image_cells'];

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", 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 c.cat_id = i.cat_id AND i.cat_id NOT IN ("
.get_auth_cat_sql("auth_viewcat""NOTIN").")AND i.cat_id IN (".$cat_in.")
        ORDER BY i.image_date DESC
        LIMIT 
$num_new_images";
$result $site_db->query($sql);
$num_rows2 $site_db->get_numrows($result);

if (!
$num_rows2)  {
  
$new_images2 "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  
$new_images2 .= $lang['no_new_images'];
  
$new_images2 .= "</td></tr></table>";
}
else  {
  
$new_images2 "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){
    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$new_images2 .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$new_images2 .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    
show_image($image_row);
    
$new_images2 .= $site_template->parse_template("thumbnail_bit");
    
$new_images2 .= "\n</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$new_images2 .= "</tr>\n";
      
$count 0;
    }
  } 
// end while

  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$new_images2 .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$new_images2 .= "</tr>\n";
    }
  }
  
$new_images2 .= "</table>\n";
// end else

$site_template->register_vars("new_images2"$new_images2);
unset(
$new_images2);
//--------------------------------- End cat select pic ---------------------------------


4.) trage das in die DB ein:

INSERT INTO 
`4images_settings` ( `setting_name` , `setting_value` ) VALUES
 
'cat_rand_pic''1' );


5.)
in der home.html mittels {new_images2} die Bilder anzeigen.

jetzt kannst du im ACP unter "Kategorie einstellung" die cat_id nummern eintragen,
 von denen die neuesten bilder angezeigt werden sollen.

6.)wollt ihr aber die cat_id nummern eintragen die nicht angezeigt werden sollen, ändert in der SQL abfrage von:

AND i.cat_id IN (".$cat_in.")

auf

AND i.cat_id NOT IN (".$cat_in.")


7.) in lang/deutsch/main.php

$lang
['total_hits_cat_select'] = "Gesamt Hits in der Kategorie: ";


elegant genug?  :mrgreen:
 
 mfg Andi


DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM (images i, categories c) LEFT JOIN users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0)AND i.cat_id IN () ORDER BY i.image_date DESC LIMIT 3
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY i.image_date DESC LIMIT 3' at line 4

You can put a translation in English or Spanish?

There are some things that the google translator, I fail to understand, dsde Step 4,5,6
Plis, thanks...!

35
Discussion & Troubleshooting / Re: Remove Terms of Registration?
« on: July 15, 2009, 03:21:11 AM »
Very good is what I wanted!
But I have a query, I can make the terms appears in the 2nd Register?

Everything that appears in it, complete the form, then click to get a "radio button" I accept the terms, and finally gives Register.

Can be done?


Ex.
User:
Pass:
Email:
Code Verif.:
I accept the terms. (Button Radio left)
Send

36
Very good mod, I worked great!
But I have a query, I can make on the home page (home.html) appears New Videos?
Ie to separate "New Image" and "New Videos"
Could be done? would be very nice if you could, thanks.

37
Chit Chat / Re: KurtW MODs and Templates
« on: July 09, 2009, 12:37:54 AM »
 :( :( :( :( :(

38
Chit Chat / Re: KurtW MODs and Templates
« on: July 08, 2009, 03:16:00 AM »
... die überarbeitete PM-Version 3.0 von KurtW für 4images 1.7.6 ist doch noch hier im Forum zu finden ...
... und so viel wie ich gesehen habe, ist das Zip-Paket incl. der pm_install_v3.php auch noch vorhanden ...
... diese Version sollte genauso auch unter 4images 1.7.7 laufen ...

An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.
 8O 8O 8O 8O 8O

39

I put the 2 files before modifying files, but for walking ..
But still the same error.


Help?

40
not found me... :S

http://www.fullposteo.com.ar/pm_install.php
Sorry, can not continue, you missed some steps of the installation..

Why..???

Quote
needed file attached to the first post.
What file? pm.php?
I put the 2 files before modifying files, but for walking ..
But still the same error.

41
Mods & Plugins (Requests & Discussions) / MOD PMv2
« on: June 26, 2009, 04:39:05 PM »
not found me... :S

http://www.fullposteo.com.ar/pm_install.php
Sorry, can not continue, you missed some steps of the installation..

Why..???

42
not found me... :S

http://www.fullposteo.com.ar/pm_install.php
Sorry, can not continue, you missed some steps of the installation..

Why..???

43
Mods & Plugins (Requests & Discussions) / Re: Help!!!!!!!!
« on: June 17, 2009, 04:30:38 PM »
...?  8O

44
Mods & Plugins (Requests & Discussions) / Re: MOD IMAGES? HELP XD
« on: June 17, 2009, 04:30:11 PM »
...?  8O

45
Mods & Plugins (Releases & Support) / Re: [Mod] bbcode Smileys
« on: June 10, 2009, 03:56:05 AM »
Like I say, but I do not work and use another.

Pages: 1 2 [3] 4 5