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

Pages: [1] 2 3 4 5 6
1
Hey Flash7,

I have no idea how Vbulletin names these table fields, but you should look for those fields in the database and edit them in php accordingly.

So if Vbulletin has a table field like username instead of user_name, you should change $image_row['user_name'] to $image_row['username']

Same for user_email.

Hope this helps.

Cheers,
Vraxor

2
Chit Chat / Re: Job-offer.... need help with 4images
« on: March 12, 2005, 06:51:13 PM »
Hi oswald,

could you give a little more information about what it is you would like to get done. I am a php developer and might be interested in taking on a little modification task, but some more detailed info on what excactly it is you want to be modified and what the payment is you have in mind are needed.

Since I work as a PHP developer for a company specialiced in devoping software applications I might not be the cheapest option, especially since this board has many people who might want to take on a little task like this. Just let me know if you have some more details for me.

Cheers,
Vraxor

3
wow, thanks a lot for the fast responce and I will soon try it out.

Cheers,
Vraxor

4
Hi V@no,

This mod sounds great, but I have a question.
When I look at your site images often have a size of 800x600 and then you allow me (and the other visitors) to click on the image for a full size view. Is this what this mod does or is that an extra addition.
Right now my site looks best if images have a size of 640x480, but I would like many wallpapers to be uploaded and so I need something that shows an image at 640 but still allows people to few full size in a new window.

Cheers,
Vraxor

5
Hi Sorestar,

I have intergrated my site with PHPBB and it works fine.

Cheers,
Vraxor

6
ok, forget my last post as the original just worked  :?
I really need to get some sleep as I forgot that I already uploaded 3 images with my test user and so it was just a good thing that I got the error  :D

Sorry, for bothering anyone, and Thanks a lot for this great mod Tommy!

Cheers,
Vraxor

7
Hi Jan and Tommy,

I have done the integration with PHPBB and that is giving me some problems I think. So I changed the code a little, but keep on getting a MySQL error.

This is my code now:

Code: [Select]
$user_id = $user_info['user_id'];
$date_check = mktime(0,0,0,date("m"),date("d"),date("Y"));

function check_picture_limit($date_check, $user_id) {
$sql = "SELECT i.image_id, u.user_id
FROM TerraCon_images i,  Terraconforum_users u
WHERE i.image_date >= $date_check AND u.user_id = $user_id";
$result = mysql_query($sql);
$today_images_user = mysql_num_rows($result);

if($today_images_user >= 3) {
return false;
} else {
return true;

}
}

if ($action == "uploadform") {
  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id) || !check_picture_limit($date_check, $user_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }


The Problem line is:
Code: [Select]
$today_images_user = mysql_num_rows($result);

It sais this:

Quote
Warning: Supplied argument is not a valid MySQL result resource in /usr/local/www/Terrarevolution/galleries/member.php on line 714


Can any of you help me with this?

Cheers,
Vraxor

8
Mods & Plugins (Releases & Support) / [Mod] User upload limits
« on: January 18, 2003, 08:01:41 PM »
hmm, ok, this is interesting, but what does this mod do.

Is this a limit for ever, or just a dailly limit. I need a dailly limit as people might upload as much as they want but no more the 3 per day, is there a way to do that with this mod?

Cheers,
Vraxor

9
Mods & Plugins (Releases & Support) / Integration 4images 1.7 / phpBB
« on: January 13, 2003, 12:43:47 AM »
Check line 108, I found it, so it should be there somewhere.

Cheers,
Vraxor

10
Hi Wrestlingthingy,

I would like to answer your question, but it is still not clear to me as normally you would not have all the html files to choose from.

There is no php knowledge needed at all.

Did you put all the template files (that are all the html files) into a new directory? Like the default template folder you should also make a folder called {whatever you like}  and then all the html file and folders should be put into that new folder. I really don't know if you already did so, but it sounds to me like that is the problem, so please check if there are no html files in the ROOT/templates/ folder

Cheers,
Vraxor

11
Hmm, ok, so I did not mess up my admin account  :? 8O  :D

Well I did not know that it was surposed to change the password, in that case it works correct. I just did not expected that so when I was unable to login with my admin account anymore I immidiatly started changing the database by hand. So I did not really try to login with the new password that was send to me.

Well, this means good news, and no bug  :lol:

Cheers,
Vraxor

12
Ok, something went wrong with the script and I have no idea what.

I'm such a beginner yet and while I thought I was able to write this little mod I begin to doubt about it now.
Somehow this script changes the password of the user you test it with, so the password becomes a strange random number, in no way this could be meant to happen, but the result was that my admin profile no longer reacted at my password.

I really hope someone could explain to me what went wrong, maybe Jan would like to take a look as I think that the code should be nearly good, just a small error somewhere is causing it to change the password, so anybody wanna help here?

Cheers,
Vraxor

13
hmm, I'm sorry, but I just discovered that this contains a little big bug.

When you use this code the user password will no longer be correct in the mail so it won't really be a lost password mail anymore. I currently ain't have time to figure this out, but maybe this is the start you needed, or maybe there are others out there in the wild world who would like to take a close look at the code and see why it no longer send the password but a strange random code instead.

Cheers,
Vraxor

14
HI V@no,

I think I have figured out how to do this, right now I think I must have been crazy I started at this as I really don't need it, but still I thought I was able to do so, so here is what I did:

Open member.php

Find:
Code: [Select]
if ($user_email != "") {
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password")."


Add:
Code: [Select]
get_user_table_field(", ", "user_activationkey").

So it looks like:
Code: [Select]
if ($user_email != "") {
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_activationkey")."





Find:
Code: [Select]
// Start Emailer
      include(ROOT_PATH.'includes/email.php');
      $site_email = new Email();
      $site_email->set_to($user_email);
      $site_email->set_subject($lang['send_password_emailsubject']);


After that you will find an array that looks like this:
Code: [Select]
$site_email->register_vars(array(
        "user_name" => $checkuser[$user_table_fields['user_name']],
        "user_password" => stripslashes($user_password),
        "site_name" => $config['site_name']
      ));


Now add:
Code: [Select]
"activation_url" => $script_url."/register.php?action=activate&activationkey=".$checkuser[$user_table_fields['user_activationkey']],

So the end result looks like this:
Code: [Select]
// Start Emailer
      include(ROOT_PATH.'includes/email.php');
      $site_email = new Email();
      $site_email->set_to($user_email);
      $site_email->set_subject($lang['send_password_emailsubject']);
      $site_email->register_vars(array(
      "activation_url" => $script_url."/register.php?action=activate&activationkey=".$checkuser[$user_table_fields['user_activationkey']],
        "user_name" => $checkuser[$user_table_fields['user_name']],
        "user_password" => stripslashes($user_password),
        "site_name" => $config['site_name']
      ));
      $site_email->set_body("lost_password", $config['language_dir']);
      $site_email->send_email();


Now you can use the tag: {activation_url} in your email templates.
Edit the Lost_password template in the Lang/{language}/email folder and add the {activation_url} tag somewhere.

Now upload all and I hope it works, I did tested it myself and for me it worked, but like I said before, I did not need it as my member don't have to activate.

Cheers,
Vraxor

15
Templates & Styles (Requests & Discussions) / [ tag for templates ]
« on: January 08, 2003, 02:03:18 PM »
why is documentation needed???

I once thought the same, but I discovered that it will not have any use as you can find all the tags at the default templates. Also do many MODS add some more tags. As it is not possible to use all tags at all templates, it will be lots of work to make a document in which you discribe what tags are useful for which templates, but by just looking at the default templates you will be able to find all tags you need.

Cheers,
Vraxor

Pages: [1] 2 3 4 5 6