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

Pages: [1] 2
1
It was several pages, but I seem to have fixed it by declaring the varibales blank if not used, for example:
$user_info['user_level'] = isset($user_info['user_level']) ? $user_info['user_level'] : '';
$user_info['user_name'] = isset($user_info['user_name']) ? $user_info['user_name'] : '';
etc.

Everything seems to work fine except I'm not able to login. If I try to login from the admin panel I get this:
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' '', '')' at line 4 in C:\xampp\htdocs\4images\includes\db_mysqli.php:76 Stack trace: #0 C:\xampp\htdocs\4images\includes\db_mysqli.php(76): mysqli_query(Object(mysqli), 'REPLACE INTO 4i...') #1 C:\xampp\htdocs\4images\includes\sessions.php(138): Db->query('REPLACE INTO 4i...') #2 C:\xampp\htdocs\4images\includes\sessions.php(179): Session->start_session('1', 1) #3 C:\xampp\htdocs\4images\admin\admin_global.php(105): Session->login('Frankie', '4rtttyggh5757DD', 0, 0) #4 C:\xampp\htdocs\4images\admin\index.php(6): require('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\4images\includes\db_mysqli.php on line 76


2
Hi,

Thanks for taking the time to share this!

It seems to work for the most part except i keep getting warnings:
Warning: Undefined array key "user_level"
Warning: Undefined array key "user_name"
etc.

Any thoughts on how to fix this?
Thanks

3
Feedback & Suggestions / Re: 4images 1.9 - Feedback
« on: November 07, 2021, 02:36:45 AM »
Hello,
I've been using 4images for many years now and I currently run 4images version 1.7.13 with a lot of heavy modifications. I've been able to get it running on PHP 7.4.25, but I run into problems with PHP 8.

Because of all the modifications throughout the years I'm unable to update to version 1.9. I was wondering if there was possibly a changelog with a list of specific changes in code on specific php files that make it php 8 compatible that I could sort through to try to get my version PHP 8 compatible? I hope that makes sense.

Glad to see an update to 4images, I honestly thought it had seen it's end.

Thanks, Have a great day.
Kitty

4
Discussion & Troubleshooting / Anything Happening with 4images?
« on: May 13, 2020, 09:08:33 PM »
Hi,

I was just wondering if anyone knew anything about 4images getting an update, it seems like the project has been abandoned.

5
In case anyone is interested I think I figured it out!


In global.php find this:

$self_url .= "show_result=1";

And change it to this:

$self_url .= "show_result=1&search_fields=".$search_fields."&search_keywords=".$search_keywords;


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

In search.php find this:

$link_arg = $site_sess->url(ROOT_PATH."search.php?show_result=1");

And change it to this:

$link_arg = $site_sess->url(ROOT_PATH."search.php?show_result=1&search_fields=".$search_fields."&search_keywords=".$search_keywords);


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

Now you can place {search_keywords} as a title on your search page and it will work even when you go to the next page or if you use the sort mod to sort the images.

I'm using 4images 1.7 and so far it seems to work without a hitch

6
I put {search_keywords} in my search.html page and it works fine. When someone searches for something it displays the keyword.

My problem is this: when someone clicks the next page in search the {search_keyword} must get reset because it shows nothing. It only shows the keyword on that initial first search page.

Anyone have any ideas how to fix this?


7
Thanks anyway,
 I have a lot of MODS and have changed so much in the script it's really hard to tell, I just don't know what could possibly cause it. I'll keep fiddling and if I find out I'll post it.

8
Thanks for the quick response nobby,

I have that plugin and have reindexed but it still won't search numeric spelled words (one,two,three). All the other words are indexed fine. The numeral words even show up on the details page as keywords but when clicked on they're not found. My mind is boggled.

9
I recently discovered if i search for an image with a spelled number (for example three, two, one, etc.) it says no matching records. I have images with the word three, one, etc in them but it doesn't recognize the 'number' words. Anyone else have this problem?

I'm using 4images 1.7.13
I have quite a bit of mods but nothing I know that would cause this.

Any help is greatly appreciated.

10
Chit Chat / Am I missing something?
« on: March 25, 2017, 06:39:54 PM »
I've been using 4images for a few years now with various sites and I have been posting questions in the forum for years.

No one ever responds to any of my posts, I even bought a bundle license thinking that might help me get more attention, but still nothing.

Am I missing something or doing something wrong to not get any feedback for help I need?

Thanks to anyone listening out there

11
First of all thank you for the tutorial.

Everything works fine but I was wondering how I could clean up the output?
For example: I have an additional field added to the upload form but when it's sent it adds <br /> after each line break. Ive noticed it does no do that with the 'image_description' variable so I'm just wondering where and how I would go about making my variable clean up like that.

Thank you very much for your time, I love the 4images script and have been working with it for a while, I even bought the bundle license

12
Looking for a way to combine the image search and username search together so that username is one of the radio checkbox choices

I've attached a image to better explain.

13
Mods & Plugins (Requests & Discussions) / Lightbox Search and/or Sort
« on: December 01, 2016, 05:51:44 AM »
Looking for a way to add a search function for users to search their lightbox and/or sort their lightbox by category.

Any ideas?

14
Installation, Update & Configuration / Re: Limited keyword list?
« on: July 15, 2016, 06:26:14 PM »
open your member_uploadform.html in your template

add this to the top of the page:
<script type="text/javascript">
            function add_sub(el)
            {
                if (el.checked)
                {
                    var total = el;
                    total.form.elements['image_keywords'].value+=el.value;
                }
                else
                {
                    var re=new RegExp('(.*)'+el.value+'(.*)$');
                    el.form.elements['image_keywords'].value=el.form.elements['type'].value.replace(re,'$1$2');
                }
            }


</script>



then find:
<tr>
            <td class="row1" valign="top"><b>{lang_keywords}</b></td>

insert above:

<tr>
            <td class="row1" style="vertical-align:top;"></td>
            <td class="row1">
              <table style="width: 100%">
   <tr>
      <td style="text-align:left;vertical-align:top">
            <input type="checkbox" value="Option1," onclick="add_sub(this);"><label>Option1</label><br>
            <input type="checkbox" value="Option2," onclick="add_sub(this);"><label>Option2</label><br>
            <input type="checkbox" value="Option3," onclick="add_sub(this);"><label>Option3</label><br>
            <input type="checkbox" value="Option4," onclick="add_sub(this);"><label>Option4</label><br>
          </td>
               

   </tr>
</table>

            </td>
          </tr>

This will print what you check in the boxes onto the image keywords textarea

If you don't want them to be able to edit the image keyword textarea or add keywords, do this:

change: <textarea cols="30" class="textarea" rows=1" name="image_keywords">
to: <textarea cols="30" style="display:none;" class="textarea" rows=1" name="image_keywords">

15
Hello,

 I was wondering if someone could help me with a thumbs up and thumbs down type voting script that would keep track of the number of votes for each.

 I apologize if this has already been discussed but I've been searching the forum and haven't found anything.

I appreciate your time, Thank You
Kitty

Pages: [1] 2