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

Pages: [1] 2
1
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Advice taken -- New topic started -->

Hello,

I am wondering about how to make the option to add items to the lightbox from the category thumbnails page? Basically, I would like to be able to include a checkbox by each thumbnail and add items  to the lightbox that way (much faster) than having to open each detail page, one at a time. I couldn't find anyone who's done that yet.

Thanks.

2
Discussion & Troubleshooting / Re: Help closing db connection
« on: December 13, 2005, 03:40:27 PM »
I see what you mean. I'm going to look at some other ways.

In the mean time, I lost the ability to display the random thumbnail  8O. Everything else works fine, except the image. I put all the code back to what I was using too... Did I maybe stop some mysql process where I'd need to restart or something?

3
Discussion & Troubleshooting / Re: Help closing db connection
« on: December 13, 2005, 03:22:24 AM »
Thanks for the reply.

Sorry if I didn't explain it well enough. I have one random.php include that is called towards the begining of the page. Then I have several other non-gallery related includes that are called later in the page (calendar, nav menu, etc).

The problem is that the Includes that are called later on, give me database errors as they are trying to call data from their own respective tables, but within the wrong database. This is why I need to find out how to close the gallery connection with a line in the random.php file so that the other includes will open their own databases. I think that is what's going on...

Thanks


4
Discussion & Troubleshooting / Help closing db connection
« on: December 12, 2005, 03:33:16 PM »
I need to know how to close the 4images db connection after it executes in my page. The random.php Include that I'm using conflicts with my other includes that occur after it. Therefore, I would like to know how to close it to allow the remaining Includes to function properly.

I've tried putting:

mysql_close($mm_gallery);

at the end of my random.php include file, but it doesn't seem to do anything to close the connection. (mm_gallery is the name of the database I'm trying to close). I've also tried mysql_close($site_db); as well.  Is there some other syntax that 4images uses to refer to the open database?

Any help would be much apprecitated!

Thanks

Dave

5
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 09, 2005, 04:25:48 PM »
Hello,

Great plugin!

My issue is that the database call needs to be closed in Random.php so that the remaining php includes in my WordPress page work properly.

Currently, I include this code which works great:

<?php include ("random.php"); ?>

Unfortunately, any WordPress includes that come after the above include, try to look up their tables in the gallery database, causing db errors.

The WordPress includes look like this:
<?php wp_list_pages('title_li='); ?>

Error message on the page for this Include is this:

WordPress database error: [Table 'mm_gallery.wp_posts' doesn't exist]
SELECT * FROM wp_posts WHERE post_status = 'static' ORDER BY post_title ASC


I'm too new at this, but what I think needs to be done is to somehow terminate the db connection iin Random.php so that the remaining includes on the page will work.

In Random.php, I've tried adding mysql_close($foobar);  after the three echo lines (66, 67, 68) but nothing happens.
Then, if I remove $foobar from between the parenthesis, the errors go away, but so to any WordPress includes. But the random picture works though!

Next, I tried adding $db->db_close&; in the same location in Random.php, however, that killed the entire remaining page contents after the random.php include!


Not sure what I'm looking for here. Apparently WordPress uses it's own include mechanism which is what's creating some of these issues. I've posted over there about this problem as well, but no on seems to know.

Thanks!


6
Mods & Plugins (Requests & Discussions) / New Download URL question
« on: April 02, 2003, 03:55:00 PM »
Addendum:

The Snap Server that we have is an http server. That's why I can use //snapserver/myfile.jpg with no issues.

The second server that I'm trying to hook into is not an http server. That's why I need to use either file://newserver/myfile.jpg, or \\newserver\myfile.jpg. Neither of which works in 4images...

Any word on how to remove the URL validation from the Download URL field?

Thanks!

Dave

7
Mods & Plugins (Requests & Discussions) / New Download URL question
« on: April 01, 2003, 06:22:00 PM »
Let me ellaborate:

//Jmst-cad1/Renderings/Bush%20Furniture/CR3500-3999/CR3500.jpg in the Download_URL field does not give me an error in 4images when I use it in the Download_URL field. However, when I click on the download button for that image, it downloads CR3500.jpg as expected, but ends up being an invalid image when I try to view it. (it's only 4KB, whereas the actual image that I'm linking to on the network is 200k. Also, I can copy the URL above and paste it into my browser and get an error (which explains the wacky file size issue).

file://Jmst-cad1/Renderings/Bush%20Furniture/CR3500-3999/CR3500.jpg appears to be the proper syntax that I'm after, at least for that network server. When I copy/paste it into my browser, it immediately displays the jpg image. However, when I go back and add 'file:' to the string in the Download_URL field, 4images immediately balks and says for me to 'check the path'.

So there must be a way to MOD this field to make it accept 'file:', right?

What's weird about this whole thing is that we have another network server (snap server) that I'm linking to using the //snapserver/etc... and do not need to use 'file:' in front of it. I don't understand what's up with that.

Thanks in advance as always!

Dave Anderson

8
Mods & Plugins (Requests & Discussions) / New Download URL question
« on: April 01, 2003, 05:04:45 AM »
Quote from: V@no
try use
//Jmst-cad1/Renderings/Bush%20Furniture/CR3500-3999/CR3500.jpg


Actually, I had tried that as well which is what prompted my post, cause I'm stumped  :(

Thanks

Dave

9
Mods & Plugins (Requests & Discussions) / New Download URL question
« on: March 31, 2003, 09:36:29 PM »
I'm trying to link a "Download URL" field to a network server that is not web enabled (no web server). When I enter this into the Download URL field, it doesn't like it.

file://Jmst-cad1/Renderings/Bush%20Furniture/CR3500-3999/CR3500.jpg

I've tried modifying the member.php page to remove some of the format_URL statements, but to no avail.

I was able to successfuly do this with a snap network server using: //snapeserver/myimage.jpg only becuase the snapserver has a built in web server.

Any idears?

Thanks in advance.

Dave ANderson

10
Quote from: V@no
Quote from: Streetwise

just use a relative path! That's right... a relative path.

Doh!
lol :lol:



hehehe!  :D

--Dave

11
Quote from: Streetwise

     It *has* to be as simple as figuring out how to strip out the URL formating stuff for the "Download URL" field...



Ahem. Official way to link "Download URL" to a network server location:

Drumroll......

just use a relative path! That's right... a relative path.

What I discovered is that since (in my case), "snapserver_1" is on our network as part of the domain, I do not need to have the URL be "http://snapserver_1/myimage.eps" even though that's a valid URL from within the network.

All I need to do is to use "//snapserver_1/myimage.eps" which 4Images doesn't seem to balk at. No muss, No fuss... No edit to members.php needed...

 :mrgreen:

Thanks V@no/Jan for your help and suggestions!

Dave Anderson

12
Quote from: V@no

when u add the extension, try do one or more changes u already tryed before ;)
also, try upload an image trough ACP


I added .eps to the list of allowable extensions. I then edited member.php to reflect each of the three suggested modification's, both individually, and all together. Still no luck...

http://snapserver_1/myimage.eps is apparently not a valid URL. But as soon as I add a 'www' and '.com', then it works fine...

  :?   It *has* to be as simple as figuring out how to strip out the URL formating stuff for the "Download URL" field...

As always, V@no, thanks for the suggestions. Keep 'em coming!

Dave

13
Quote from: V@no
but, here is another question:
did u add .eps extention to allowed, in the settings?


 :oops:  Um. No. Where would I add that? Settings in the control panel?

So you're saying that the download URL has more to do with:

Quote
if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "")) {  


Any ideas as to how to remove the www and .com requirements? Or better yet, be able to hard code http://snapserver_1/ into it?

Thanks

Dave Anderson

14
Discussion & Troubleshooting / Auto Thumbnail Stopped Working Suddenly
« on: March 25, 2003, 10:11:12 PM »
PHP.ini is in the root Windows directory (on windows  :) ). There are some Windows Extensions that are rem'd out by default. Do a search on gd.dll and gd2.dll and un-comment those two extensions. This is for version 4.3.1

Hope that helps...

Dave Anderson

15
I am reposting a question here from the troubleshooting forum as this is apparently more of a mod than a troubleshooting issue:

I need to have the Download URL support a link to a local network such as: http://snapserver_1/images/AV3311.eps

Apparently there has to be a presence of both "www" and ".com" (or .something) in the URL for a sucessful upload of an image with a download path.

I'm looking for a way to be able to use a path that always starts out with "http://snapserver_1/" to be able to download from a network share.

V@no was kind enough to have me try a few things to the member.php file, but with no luck.

I've tried replacing:

Code:
 
Quote
$remote_media_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file'])));
  $remote_thumb_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_thumb_file'])));


in member.php
with Code:
 
Quote
$remote_media_file = un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file']));
  $remote_thumb_file = un_htmlspecialchars(trim($HTTP_POST_VARS['remote_thumb_file']));

 

I've also tried replacing:

Code:
 
Quote
if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {


replace with:
Code:
 
Quote
if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "")) {


Neither seems to work. I still get an error when I try to upload. (The page displays with red words in the Download URL area indicating that there's a problem.


Looking at the members.php file, it looks to me like it has to be something with modifying:

Quote
$image_download_url = (isset($HTTP_POST_VARS['image_download_url'])) ? format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['image_download_url']))) : "";


to remove the "www" and ".com" checking.

Any ideas in this MOD forum?

Thanks for your help!

Dave Anderson

Pages: [1] 2