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

Pages: [1] 2 3 4 5 6
1
Discussion & Troubleshooting / Re: www or not www
« on: March 25, 2007, 10:43:39 AM »
make a redirect if anyone load the page with the www that it loads with out it.

Code: [Select]
RewriteCond %{HTTP_HOST} ^www\.domainname\.pl*
RewriteRule (.*) http://domainname.pl%{REQUEST_URI} [R=301,L]

works :)

2
After instaling this mod my category_dropdown_selfjump won't work :/
Please check it on my gallery <- link
Dropdown is just under search form on he left
Url result is
Quote
http://say10.pl/cat
and it should be for example
Quote
http://say10.pl/cat49.htm

3
Discussion & Troubleshooting / Re: www or not www
« on: January 18, 2007, 03:57:54 PM »
I asked my programmer - it's a cookie problem

Not exactly cookie but with site reload i thing.

When I try login with www in url it creates cookie, but reload pages without www (user must login second time or just remove www from url)
When I try login without www everything is ok

4
Discussion & Troubleshooting / Re: www or not www
« on: January 17, 2007, 03:30:00 PM »
what`s your URL??

is the template (style) the original??

site is say10.pl
template is not original but it was build on original and it works before update to 1.7.4 (with winmerge)


F.e., you user logged in into www.example.com, but click's on http://example.com/member?blabla and must login again?
Normal issue, try it on other sites, is the same.


It's not normal.


I don't have that issue on my sites.

However I think it is a browser setting and nothing to do with 4images

Problem is on firefox and on IE
checked on 3 different machines

5
Discussion & Troubleshooting / www or not www
« on: January 08, 2007, 05:31:42 PM »
After some modifications and update from 1.7.1 to 1.7.4....

When user put url with www. to the browser, and try to login whole gallery is reloaded but without www in url 
User must login second time (without www it works perfect).

Could someone give me a little tip or a solution?   :roll:

6
Quote from: macwise7
I don't have a lot of knowledge with php, but from what I can tell, nothing seems out of line compared with the "allow_emailcomments" section just above this one.  I have tried renaming the variables every which way, and can't get the text to show up, nor the radio buttons to show the selected option.  Please help!

Thanks, and thanks everyone for the great mod!

In db_field_definitions.php
on the end just before ?> add

Code: [Select]
$additional_user_fields['user_allowmailcomments'] = array($lang['user_allowmailcomments'], "radio", 0);
in the member.php
find
Code: [Select]
//--- Show Profileand several lines later
Code: [Select]
$site_template->register_vars(array(on the end of list add
Code: [Select]
"lang_allowmailcomments" => $lang['allowmailcomments']

Now find
Code: [Select]
//--- Edit Profilein this section find (it could be little different than mine) and add this red marked fragment
Quote
    $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_homepage")." = '$user_homepage', user_sex = '$user_gender' ,user_allowmailcomments = '$user_allowmailcomments' , ".get_user_table_field("", "user_icq")." = '$user_icq'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = ".$user_info['user_id'];
    $site_db->query($sql);


find
Code: [Select]
$user_allowemails = $user_info['user_allowemails'];add
Code: [Select]
$user_allowmailcomments = $user_info['user_allowmailcomments'];

find
Code: [Select]
  }
  if ($user_allowemails == 1) {
    $user_allowemails_yes = " checked=\"checked\"";
    $user_allowemails_no = "";
  }
  else {
    $user_allowemails_yes = "";
    $user_allowemails_no = " checked=\"checked\"";
  }

add
Code: [Select]
    if ($user_allowemails == 1) {
      $user_allowmailcomments_yes = " checked=\"checked\"";
      $user_allowmailcomments_no = "";
    }
    else {
      $user_allowmailcomments_yes = "";
      $user_allowmailcomments_no = " checked=\"checked\"";
  }

now it should works

---------------------------------

and little correction for SEO - short link system (works with seom mod instaled wersion where links looks like http://sitename.com/img329)


Find
Code: [Select]
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
change it to

Quote
  //SEO $image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
$image_url = $script_url."/img".$id;

---------------


Where can I setup a subject of email?



7
In php file is
Code: [Select]
echo "<?xml version='1.0' encoding='UTF-8'?>   Should I change it to ISO-8859-2 is whole my gallery works with it ?
Yeah I know i can check it but... I don't want play with google


How can add a links for profiles to a map ?

8
HI
Thank You for a this mod.
It works great with 1.7.4.

Now some questions.

1. How can i change profile links to short?
In my htaccess is
Code: [Select]
RewriteRule ^profile([0-9]+)\.htm$ member.php?action=showprofile&user_id=$1&%{QUERY_STRING}but they are stil
Code: [Select]
http://localhost/4images/member.php?action=showprofile&user_id=70
should i chande something in sessions.php?

2.I found here question about problems with dropdown form but i cant find answer 
Its strange my dropdown works for all cattegories but there is always one url
Code: [Select]
http://localhost/4images/cat.htmHow can I add here cat id?

3. When I use search there is always same url
Wow can I add searching word to URL?
Code: [Select]
http://localhost/4images/search_xxxx.htmxxxx- searching word
and same for user search

----------- edit -----------------------

add1

in sessions.php
before
Code: [Select]
elseif (strstr($url, 'postcards.php?image_id=')) {
add
Code: [Select]
      elseif (strstr($url, 'member.php?action=showprofile&user_id=')) {
                preg_match('#user_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $url   = str_replace('member.php', 'profile'.$matches[1].'.htm', $url);
          }

return $url;
}
Now short urls for profiles works and looks like
Code: [Select]
http://localhost/4images/profile49

And now I planing to make them like
Code: [Select]
http://localhost/4images/nick/profilelater planing
Code: [Select]
http://localhost/4images/search.htm?search_user=nickchange in to
Code: [Select]
http://localhost/4images/nick/gallery
If someone could help...

9
Hi! Great idea!

Tested.
Installation don't modify my DB. Show some errors but it was really fast.

My gallery works with 2 langs (detect lang folders) and it wont works on second lang set as default in acp
Shows

Quote
Warning: main(lang/polish/admin.php): failed to open stream: No such file or directory in .......modules\annotation\ann_settings.php on line 15

Warning: main(): Failed opening 'lang/polish/admin.php' for inclusion (include_path='...........modules\annotation\ann_settings.php on line 15

Warning: main(lang/polish/main.php): failed to open stream: No such file or directory in ...............modules\annotation\ann_settings.php on line 16

Warning: main(): Failed opening 'lang/polish/main.php' for inclusion (include_path='..................modules\annotation\ann_settings.php on line 16
legend ................. - I put it where was my site dir (its long)

10
I wasn't here long time and I miss 2 updates.
Now with winmerge I updated my gallery to 1.7.4 and I vgot little problem with this mod.

Read - I f-up something and after 4h with winmerge I cant find it please help :oops:
When I paste in to my main template tags {lang_user_last_action}, {user_last_action_list} it works
but with {user_last_action_box} it shows nothing.

11

your red line in my code looks like

Code: [Select]
<img src=\"".TEMPLATE_PATH."/images/gender".$row['user_sex'].".gif\" alt=\"\">
remember to add user_sex, to sql querry

it works for me

12
There is a problem with google addresses, they are longer then 255 characters, so they might not work in 4images :(

there is a way  :idea:
movie id is only several characters long

we need only save movie id to DB and later in code add automaticaly whole embed code with constans width and hight

Quote
<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-here_movie_id" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL"  FlashVars="playerMode=embedded"> </embed>

13
Mods & Plugins (Requests & Discussions) / user mode
« on: June 18, 2006, 05:05:24 PM »
:idea:
Its just idea and I dont know is it usefull for someone
button for admin "show in user mode"
and then admin see site like user

14
Templates & Styles (Requests & Discussions) / Re: Loader for Images
« on: June 15, 2006, 12:24:23 PM »
hmmmm i have an idea  :!:

what with stretch {thumbnail} as background  :twisted:

15
:idea:

Good options could be wysiwyg editor like for example aynHTML
http://www.aine.be/aynhtml/
If time allow i try do something with it

I saw post about comments - its good option too ;)


edit Zyga

Quote from: Zyga
If time allow i try do something with it
or maybe not ;(
there is no attachment

Pages: [1] 2 3 4 5 6