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
31
Mods & Plugins (Requests & Discussions) / Latest comments at the top
« on: December 24, 2002, 11:38:50 PM »
Hi Dustbunny,

this is possible but requires a little tweak of the details.php file.

If you open Details.php with a text editor or other code editor then search for this:

Code: [Select]
//-----------------------------------------------------
//--- Show Comments -----------------------------------
//-----------------------------------------------------


Right below that is a sql query which looks like this:

Code: [Select]
if ($image_allow_comments == 1) {
  $sql = "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date".get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_email").get_user_table_field(", u.", "user_showemail").get_user_table_field(", u.", "user_invisible").get_user_table_field(", u.", "user_joindate").get_user_table_field(", u.", "user_lastaction").get_user_table_field(", u.", "user_comments").get_user_table_field(", u.", "user_homepage").get_user_table_field(", u.", "user_icq")."
          FROM ".COMMENTS_TABLE." c
          LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = c.user_id)
          WHERE c.image_id = $image_id
          ORDER BY c.comment_date ASC";
  $result = $site_db->query($sql);


now in this piece of code you have to replace the following:

Code: [Select]
ORDER BY c.comment_date ASC";

by:

Code: [Select]
ORDER BY c.comment_date DESC";

That would do the job and as soon as the details.php file is saved and uploaded it will show the comments sorted by newest on top.

Cheers and have a pleasant Christmas,
Vraxor

32
Mods & Plugins (Requests & Discussions) / hum... here's a good one...
« on: December 18, 2002, 01:32:50 PM »
Well, this is something that many people would like to do, but it simply not been done before.

Maybe in the next version of 4images this will be made possible.

Cheers,
Vraxor

BTW. If you have any php knowledge you might create a simple script yourself to pull the data out of the database as it is just posted in there (sorry can't remember the exact table anymore, but just have a look around)

33
Ok Thanks Jan,

I will try this.

34
Hi all,

I have a question about the "new images" at the main page of 4images.

As I currently have a digital art site and one of the categories is Ecards.
Now would i like to upload many Ecards there, but I would not like to see them apear in the new images list. Is this possible?

Also am I thinking about creating a downloads category where users can upload there own files to share, but I don't want that to appear at the new images too, so is it possible to exclude some categories from the new images and if so could someone point me in the right direction.

I don't know if it has already been done by someone, but if someone could give me some help getting started, I know where to search and then I hope to be able to figure the rest out myself.

Cheers,
Vraxor

35
Mods & Plugins (Requests & Discussions) / This is possible ????
« on: December 16, 2002, 09:51:00 AM »
If you would like to reove the subcategories from the tree and only show them after you enter the main cat, you should edit the templates.

Remove: {if sub_cats}{sub_cats}{endif sub_cats} from the category_bit.html and you will no longer see the sub-cats.

Cheers
Vraxor

36
Installation, Update & Configuration / Help Needed Please
« on: December 13, 2002, 12:30:38 AM »
Hi Bush,

It's good to see you want to change the look of the script as that would be a great start in learning. In fact I think you should do it yourself and I can of course give you some help, but I won't be able to reply very often.

In order to change the colors of you site, just edit the style.css file in the default template folder. In that style.css file all colors are defined, just play around with different colors and you will get a basic understanding of what each color does.

To change your logo, just replace the header_logo.gif file in the images folder in the default template folder by your own logo.

Make sure you back-up every file you edit, this way you won't loose the old default settings.

Cheers,
Vraxor

37
Installation, Update & Configuration / Help Needed Please
« on: December 12, 2002, 01:02:32 PM »
Hi Bush,

could you please give some more detailed info on what it is you need help with. Also read the documents that come with 4images, they will give you lots of info about how to install the script.

Feel free to ask any questions about installing here.

Cheers,
Vraxor

38
Templates & Styles (Requests & Discussions) / Member options won't stay set
« on: December 11, 2002, 11:32:00 AM »
Please look here:

http://www.4homepages.de/forum/viewtopic.php?t=2296

I don't think it is your template. If you set those option in the admin menu and then save and come back later and settings are set back to the default, this is not a template problem but a bug, look at the link I gave to see how you can fix this.

Cheers,
Vraxor

39
Hmm, might be that I'm wrong, but to do it totally correct, you will need to add it to the search.php and the lightbox.php files too.

I'm at work at the moment and so I cannot give you the location where to post it in the files, but maybe V@no knows.

Cheers,
Vraxor

40
Hi Mantra,

I think this gives some complications.

First: People can comment without registing, this means they don't have an e-mail address.

Second: Not everybody wishes to let their e-mail address been seen by everybody so they would not like their address to be included with their comment.

Besides these problems I think it is possible, but I would give some more thought about the issues I just mentioned.

Cheers,
Vraxor

41
HI Biggy,

I know it's not perfect right now and this results in a notify also beeing send when you post a comment on your own image. I could fix this by making an owner check in the comment system, but right now I just don't feel like coding too much and it's still too difficult for me to say it will be done in 10 minutes, in fact I don't know if I could do it at all.

About putting the comment into the mail, this might be possible. Only prob is that my PHP knowledge is too limited at the moment to say how. And right now I'm working on totally different things so I don't have time to figure it out. Maybe somebody else would like to improve the mod.

Cheers,
Vraxor

42
Discussion & Troubleshooting / [ need help bad ]
« on: November 19, 2002, 10:38:15 AM »
Look at this url:
http://sourceforge.net/projects/netpbm/
and download the correct NetPBM version.

Then unzip the downloaded file and ftp it to a folder on your server, for instance create a map on your server like: "ROOT"/Netpbm/

when you uploaded the entire content of the zip file to that folder make sure that all files have ChMOD settings to 777. I don't know if this is really needed, but it works, if you want to be sure for security reasons then you have to read the documentation of NetPBM.

Now point 4images to the folder in which you just uploaded NetPBM and it should work fine.

Good Luck,
Vraxor

43
Please look here,

I made a tutorial about it.
http://www.4homepages.de/forum/viewtopic.php?t=2705

Hope this is what you mean cause my german is not that good ;-)

Cheers,
Vraxor

44
Hi EQ,

You can do this by removing the {upload_button} tag out of the template.
If I'm not mistaken it is only on the Category.html file, but it's very early for me so please give it a second check ;-)

Good luck,
Vraxor

45
ok, it works great, but I had to add the following in functions.php too.

After you add:
Code: [Select]
"url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_name)),

I added this:
Code: [Select]
"owner_name" => $image_row['user_name'],

Now you can call in your template:
Code: [Select]
<a href="{url_show_user_images}">Display all images by {owner_name}</a>

This was just a small addition.

Cheers,
Vraxor

Pages: 1 2 [3] 4 5 6