1
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: March 14, 2009, 11:34:48 AM »Bug fixes -> [1.7 - 1.7.6] Additional user fields not being used for guestsSorry
I missed it. I should have looked there.
It works perfect now
4images code on GitHub Click here to visit GitHub.
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.
Bug fixes -> [1.7 - 1.7.6] Additional user fields not being used for guestsSorry
Did steps 4 and 12?Yes. I am pretty sure I followed your instructions completely. Infect, I double checked everything just now.
@V@noQuote from: drhtmis it possible to add the avatar in the box 'Registered Users' after a member login right after their name and above the link to 'lightbox'?hmmm...I like the idea add avatar under the name
And if a user hasn't chosen an avatar is it possible to put a default image or text in that space to remind the user to choose an avatar?
thanks
just did it on my site:open /includes/page_header.php
Find:Code: [Select]"url_upload" => (!empty($url_upload)) ? $site_sess->url($url_upload) : $site_sess->url(ROOT_PATH."member.php?action=uploadform"),
Add after:Code: [Select]"user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_info['user_avatar'] == "") ? "blank.gif" : $user_info['user_avatar'])."\" border=\"0\" alt=\"\">" : "",
Then, open user_logininfo.html template. Add this:Code: [Select]{user_avatar_current}
About default image - just change blank.gif with image u want.
"user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_info['user_avatar'] == "") ? "blank.gif" : $user_info['user_avatar'])."\" border=\"0\" alt=\"\">" : "",
When I view Search page as Admin, I don't get this error.if anyone interesting use different folders for different size images, then here is modifyed mod:
change original mod code to this:Code: [Select]$additional_download_sizes = array(72, 120, 300);
I dont know if size= also uses somewhere else, so I just add one more, size2=
$register_array = array();
foreach ($additional_download_sizes as $size) {
ereg("(.+)\.(.+)", basename($image_row['image_media_file']), $regs);
$file = ((is_local_file($image_row['image_media_file'])) ? dirname($image_row['image_media_file'])."/" : MEDIA_PATH."/".$image_row['cat_id']."/").$size."/".$regs[1].".".$regs[2];
if (!$allow_download || !get_file_path($file, "media", $image_row['cat_id'], 0, 0)) {
$register_array['download_button_'.$size] = "<img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" />";
$register_array['download_zip_button_'.$size] = (function_exists("gzcompress") && function_exists("crc32")) ? "<img src=\"".get_gallery_image("download_zip_off.gif")."\" border=\"0\" alt=\"\" />" : "";
}
else {
$register_array['download_button_'.$size] = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id']."&size2=".$size."&size=".$size)."\"".$target."><img src=\"".get_gallery_image("download.gif")."\" border=\"0\" alt=\"\" /></a>";
$register_array['download_zip_button_'.$size] = (function_exists("gzcompress") && function_exists("crc32")) ? "<a href=\"".$site_sess->url(ROOT_PATH."download.php?action=zip&".URL_IMAGE_ID."=".$image_row['image_id']."&size2=".$size."&size=".$size)."\"><img src=\"".get_gallery_image("download_zip.gif")."\" border=\"0\" alt=\"\" /></a>" : "";
}
}
$site_template->register_vars($register_array);
so, then open download.php file.
findCode: [Select]if (isset($HTTP_GET_VARS['size']) || isset($HTTP_POST_VARS['size'])) {
add after:
$size = (isset($HTTP_GET_VARS['size'])) ? intval($HTTP_GET_VARS['size']) : intval($HTTP_POST_VARS['size']);
}
else {
$size = 0;
}Code: [Select]if (isset($HTTP_GET_VARS['size2']) || isset($HTTP_POST_VARS['size2'])) {
then find:
$size2 = (isset($HTTP_GET_VARS['size2'])) ? intval($HTTP_GET_VARS['size2']) : intval($HTTP_POST_VARS['size2']);
}
else {
$size2 = 0;
}Code: [Select]$file['file_path'] = dirname($image_row['image_media_file'])."/".$file['file_name'];
change to this:Code: [Select]$file['file_path'] = dirname($image_row['image_media_file'])."/".(($size2) ? $size2."/" : "").$file['file_name'];
few lines down find:Code: [Select]$file['file_path'] = (is_local_file($image_row['image_media_file'])) ? dirname($image_row['image_media_file'])."/".$file['file_name'] : MEDIA_PATH."/".$image_row['cat_id']."/".$file['file_name'];
change to this:Code: [Select]$file['file_path'] = (is_local_file($image_row['image_media_file'])) ? dirname($image_row['image_media_file'])."/".(($size2) ? $size2."/" : "").$file['file_name'] : MEDIA_PATH."/".$image_row['cat_id']."/".(($size2) ? $size2."/" : "").$file['file_name'];
To punish the guy who did this injustice to me... I will release the template of hotdt.com for public use to 4image users!!! (I am working on it nowLolzzz .. I think that would be an interesting idea
p.s @Fastian the top menu is superb!!! Is the menu generated dynamically from the 4images database or it’s a static menu?Thanks Max ... Its a Static menu, I tried to use 4images table but wasn’t able to ..
Your software is enabling this theft.What does 4images have to do with this??
First of all, thanks for the Mod and the efforts you spend on development and support!
Anyway, i really tried a lot (probably too much), but i don't get it runing, as it should:
Main Problem is, after voting, you are not forwarded to the next picture. The same picture is displayed again; the vote got counted correctly.
I use rev. 1.7.3., the star rating mod (which works fine).
As mentioned above, conditional tag modification should not be necessary since 1.7.2. However, i had a couple of problems without modifiying the original template.php (parse error), so i swapped the whole "compile condition tags" to those over here: http://www.4homepages.de/forum/index.php?topic=7493.0
Now that conditional tags should be working, i tried version 'a' of the form tag, however this one caused a "file not found" (bad url, starting with method=post...)
This one (version 'b' without "&"):
"<FORM action={if next_image_url}{next_image_url}{endif next_image_url}{self} method=post target=_top>"
now works, however, as mentioned above, without moving to the next picture.
Going to the next picture works by clicking on the picture!
I tried so much and i'm so glad the voting itself is working now; please excuse that i can't report all detailed errors i had!
***
Another unimportant thing: Where/How can i disable the reload / revote function?
***
Thanks in advance for your help!
Maybe anybody can provide a working rate_form and templates.php for 1.7.3?
Cheers,
Hardy
It depends on the owner of the site. If its a company, they must have a licence, no matter whats the usage of the site.
If the owner of the site is a private person, theres no licence required. Having some banners on your site doenst makes you being a company. So, no licence is required.
Selling something as a private person makes you (in most cases) being seen as a company and a licence is required.
There are a lot of cases wheres its not very clear what you are. In this case, just write an email to us and we'll check the individual situation.
Jan
4Images is available free and I respect it. But can you (me) charge others to provide your services like installing 4images, maintaining it & customizing template?
if you make money from the script i guess you must pay for it , read more here http://www.4homepages.de/4images/license.php#english