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 - Sun Zaza

Pages: [1] 2 3 4 5 ... 7
1
Hi,

In the file db_field_definitions.php I want to change this for example: $additional_image_fields['image_banner'] = array($lang['banner'], [u][b]"text"[/b][/u], 0); to $additional_image_fields['image_banner'] = array($lang['banner'], [u][b]"radio"[/b][/u], 0); (text to radio).
I want to use a form. Not updating the file with Dreamweaver.


I just want to know how I can reach the file field_definitions.php. The form and the rest of the code I can do it myself.

Thank you in advance,
Sun Zaza

2
Discussion & Troubleshooting / Confirm before a form submit
« on: October 31, 2020, 09:03:34 AM »
Hi,

How can I get a confirmation before a form submit (ACP)?

I believe I have te edit this function:

function show_form_header($phpscript$action ""$name "formular"$uploadform 0) {
  global 
$site_sess;

  if (
$uploadform) {
    
$upload " ENCTYPE=\"multipart/form-data\"";
  }
  else {
    
$upload "";
  }
  echo 
"<form action=\"".$site_sess->url(safe_htmlspecialchars(strip_tags($phpscript)))."\"".$upload." name=\"".$name."\" method=\"post\">\n";
  if (
$action != "") {
    echo 
"<input type=\"hidden\" name=\"action\" value=\"".$action."\">\n";
  }
}


Thank you in advance,
Sun Zaza

3
Hi,

I have a small problem:

I am using this peace of code in db_field_definitions.php to get some info from the database (TRUCS).

Code: [Select]
$sql = "SELECT truc_name, truc_niveau
FROM ".TRUCS_TABLE."
WHERE truc_actief = 1
ORDER BY truc_name ASC";
$result = mysql_query($sql);
$truc_name = array("---");
while ($truc_row = $site_db->fetch_array($result)) {
$truc_name[] = current($truc_row);

$additional_combo_fields['combo_truc2'] = array($lang['combo_truc2'], "dropdown", 0, $truc_name, 0, 0, 0, 0);
}

The results in de dropbox is somthing like:
aaa
bbb
ccc
ddd

Now I want something like:

aaa (10)
bbb (40)
ccc (30)
ddd (200)

The numbers are from (truc_niveau).

I tried everything, but no luck.

Thank you in advance.
Cruxy

4
Hi,

When you want to edit users, you have to choose first in the dropbox the user level. I want that the dorpbox automatically select the Registered users instead of empty field. Something like SELECTED, but I could not find it.

Thank you in advance,
Cruxy

5
Hi,

How can I add a new user lever to my gallery. Now we have Administrators, Registered users, Registered users (Non active). I want to have also: Friends.

Thank you in advance for any help.

Cruxy

6
Hello,

How can I us tableinfo in db_field_definitions.php?

Thank you in advance,
Cruxy

7
Hi,

I have many plugins in the ACP plugins and I need to sort them (A-Z).

I know that we need to use something like $files = array() and sort($files)
Can someone help me to do that?


if (@is_dir("plugins")) {
            
show_nav_header("PlugIns");
            
$handle = @opendir("plugins/");
            while (
$file = @readdir($handle)) {
              if (
get_file_extension($file) != "php") {
                continue;
              }
              
$plugin_file file("./plugins/".$file);
	
	
	
  
              
$plugin_file[0] = trim($plugin_file[0]);
              if (
preg_match("/PLUGIN_TITLE:(.+)/"$plugin_file[0], $regs)) {
                
show_nav_option(trim($regs[1]), "./plugins/".$file);
              }
              else {
                
show_nav_option($file"./plugins/".$file);
              }
            }
            @
closedir($handle);
          }



Thank you in advance,

8
Hi,

I have a problem with the additional field "textarea".

To go to a new line I have to use <br />. I don't have to do that in the image_description texterea.

How can I solve that? Maybe I changed something, but I cannot remember.

Thanks in advance for your help.
Cruxy

9
Hi,

I want to use on my gallery the following tag:
Code: [Select]
{if page_cities}something{endif page_cities}. Like
Code: [Select]
{if page_details}something{endif page_details}
page_cities means cities.php. It is an additional page.
That means if I am on the page cities.php, it will show something, otherwise nothing.

I added this on the page_header, but without success:
Code: [Select]
"page_cities"   => false,
"cities"   => false,

Any help will be appreciated.

Thanks in advance,

10
Hi,

I am looking for someone to intergrate the login of my 4images and a test script (php).

I want that the members of my 4images gallery don't need to login into the test script to use it.

Thank you in advance,
Cruxy

11
Hello,

Before I update my gallery to 1.7.10 (From 1.7.7), I used variables in the language file. For example:
$lang['image_city'] = "The city is " . $image_place . " "
It was always working, but not anymore.
(Not only for one variable, but for all the variables I use in the language file.

Does the new version works different?

Ik hope I get some help, because my gallery looks like a mess.

Thanks in advance,
Cruxy

12
Hello,

For the first time I got this error: CSRF check failed.

What is CSRF? Is it something new at 4images?
Why the file csrf_utils.php?

Thank you in advance,
Cruxy

13
Hello,

I have a problem. I just realise today dat I cannot update the database from the page member_editproflie.html.
When I click on OK is see the change on this page (I think session), but nothing happend on the database.

Does anyone know how to fix this issue.

Thanks in advance,

14
Hello,

I have a question:

When I add for example two additonal fields using (db_field_definitions.php), it shown on the ACP under each other.
I want them on one line (Near each other)

More explanation:
db_field_definitions.php
$additional_image_fields['image_city'] = array($lang['image_city'], "text", 0);
$additional_image_fields['image_country'] = array($lang['country'], "text", 0);

ACP
Image city

Image country

I don't want them like this. I prefer the two input boxes near each other. Otherwize I will get e very long page.
Is that possible? (Everything is possible with PHP!!!)

Thank you in advance for any help






15
Discussion & Troubleshooting / I cannot log in (SOLVED)
« on: January 29, 2011, 04:15:53 PM »
Hello,

I have an annoying problem. I can log in to my gallery from Admin, but NOT from the front. I really doesn't know what I have to do.
The users connot also log in. Everytime I go back to the same page.

I am using 4images version 1.7.7.

PS: I do not have any problem with my other 4images gallery (On the same server).

Any help will be very appreciated.

Cruxy

Pages: [1] 2 3 4 5 ... 7