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

Pages: 1 [2] 3
16
*BETA*
Addon for http://www.4homepages.de/forum/index.php?topic=7062.0 ([MOD] Information if Guest follows direct link to an image/category)

Hey.
If a user view a picture they do not have access to and they tries to login, they get send back to /index.php
But this redirects them back to the image (at least I think it does)

Open login.php
Find:
Code: [Select]
  $user_name = trim($HTTP_POST_VARS['user_name']);
  $user_password = trim($HTTP_POST_VARS['user_password']);
  $auto_login = (isset($HTTP_POST_VARS['auto_login']) && $HTTP_POST_VARS['auto_login'] == 1) ? 1 : 0;

  if ($site_sess->login($user_name, $user_password, $auto_login)) {
    if (!ereg("index.php", $url) && !ereg("login.php", $url) && !ereg("register.php", $url) && !ereg("member.php", $url)) {
      header("Location: ".$site_sess->url($url, "&"));
    }
    else {
      header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
    }
  }
  else {
    $error = $lang['invalid_login'];
Replace with:
Code: [Select]
  $user_name = trim($HTTP_POST_VARS['user_name']);
  $user_password = trim($HTTP_POST_VARS['user_password']);
  $auto_login = (isset($HTTP_POST_VARS['auto_login']) && $HTTP_POST_VARS['auto_login'] == 1) ? 1 : 0;

  if ($site_sess->login($user_name, $user_password, $auto_login)) {
    if (!ereg("index.php", $url) && !ereg("login.php", $url) && !ereg("register.php", $url) && !ereg("member.php", $url)) {
      header("Location: ".$site_sess->url($url, "&"));
    }
    else {
      header("Location: ".$site_sess->url($url, "&"));
    }
  }
  else {
    $error = $lang['invalid_login'];
but I have one problem with it. As soon I use this: http://www.4homepages.de/forum/index.php?topic=6729.msg57268#msg57268 ([Mod] Search Engine Friendly URLs aka Short URLs)
And View a picture I don't have access to and tries to login from that page It redirects me to a blank /login.php page. (with no code at all) I'm going to put up a temp install, so you guys can see for your self.

17
Mods & Plugins (Requests & Discussions) / miniBB and 4images help
« on: February 08, 2006, 06:10:21 PM »
Hey.
I'm trying to mod miniBB so it can use 4images as the user backend file. But i'm having some problems.
miniBB is using the 4images usersDB file. But I can't figure out how I should get the cookies and sessionID.

How does 4image set the cookies and?

Hope someone would be so nice and help out :) So we could have this great mod ;)

 - Lars N.

18
Discussion & Troubleshooting / DCR files problem
« on: January 21, 2006, 06:44:03 PM »
Am I the only who has problem with adding files with dcr extention.

I added this
Code: [Select]
$mime_type_match['dcr'] = array("application/x-director");To upload_definitions.php
But it still wont work.
And "Check new images" can't find the files with the DCR extention either

 - lars

19
Hello.
I just saw that V@NO added a blur effect to the thumbnails users do not have access to :)
How can this be done :mrgreen:

  - lars

20
Hello.
Could someone tell me or post a link to a "how to"

It's when a user has clicked on a image that they don't have permission to.
The only thing I can find is the java popup :/

21
Hello.
Is there a way to only show some text if the image is jpg. The problem is that I use a MMS script. But it wont work with gifs or movie clips.
Something like [if_gif]hide mms link[/if_gif]

I would prefer if this could be added to details instead of the media/*.html files

Lars

22
Discussion & Troubleshooting / full link to thumbail?
« on: October 30, 2005, 11:40:41 AM »
Hello.

I need an extra feature where I can have a full link to the thumbnail
Would be best if I still could keep the thumbnails as it is now, and add this like a new feature

I.e.
http://domain/data/thumbnails/3/image.jpg

23
hello.
Is there a way to make something, so users can sellect if they want to view the Category's with adult content (something with user groups)

 - lars

24
Chit Chat / where did the all the english talking people go?
« on: October 02, 2005, 07:27:51 PM »
Why does so many of you talk deutsch instead of english?

 - lars

25
Discussion & Troubleshooting / define width and high for thumbails?
« on: September 26, 2005, 10:36:48 PM »
I changed the top.php and top.html file so it shows small images.
I don't want to use a fixed px. Because many of my images haven't got the same aspect ratio.

How can I get 4images to use the right aspect (how does it do it with the thumbnail_bit.html)

Hope someone can explain
(they get the normal ratio when I refresh the page)

26
Discussion & Troubleshooting / IP adress not showing up as numbers
« on: September 09, 2005, 07:18:04 PM »
hello.
When I look at the IP adress from the users who has commented.
They look like this: IP: 503e1197

Anyone knows what is wrong?

 - lars

27
Discussion & Troubleshooting / show randome image on error.html
« on: August 31, 2005, 12:56:42 PM »
hey.
How come the random imange doesn't work on error.html file. It wont show up at all.

 - lars

28
these tags are showing after I reinstalled 4images (1.7.1)

{if categories}
{if iptc_info}
{endif comment_user_ip}
They didn't show up like that before.
Did 1.7.1 change some of that code since I see them now (I used 1.7.1 before also, but that was an updated version of 1.7)

 - lars

29
Templates & Styles (Requests & Discussions) / Problem with new images
« on: August 10, 2005, 07:48:47 PM »
How can I get my design to look like this:


At the moment it looks like this :cry::


I now I have to edit the index.php file. But don't know what I exactly should do :/
Hope someone can help me out a little

30
Discussion & Troubleshooting / use tags in css?
« on: August 02, 2005, 10:46:40 PM »
hey.
Can't we use tags {template_url} in the style file?
I'm having some problems with a design i'm doing for my site

 - lars

Pages: 1 [2] 3