If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #65
Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
Yep, ironically on craigslist there are at least a dozen kids trying to get people to work for "shares" of a company. Now even if people ignore the fact that 50% of $0 is still $0, they are unlikely going to stick around very long with student-debt in this market. =P
Although not recommend for production environments, you could try it with:
allow_url_fopen=On allow_url_include=On
Registered Member #2893
Joined: Tue Jun 01 2010, 09:25PM
Location: Cali-forn. i. a.
Posts: 2242
The thing is I need to see it in action to learn how to do it. I'm kinda figuring it out though, and the only thing that is left to do is fix the image upload issue.
However I can't seem to fix this problem; there is some blackspace above everything on the index page and I have no clue what is causing it. There is no space viewitem and postsomething
wat do.
Edit: Turns out it was a simple css issue, my divs were all messed up.
Registered Member #2893
Joined: Tue Jun 01 2010, 09:25PM
Location: Cali-forn. i. a.
Posts: 2242
Alright, so I finally have everything fixed!
....except for the image issue. It needs a new image upload and thumbnail making system, and while I am learning a bit about php I still can't figure out how to implement one. I installed GD library but I'm not sure how to make it work with the database and stuff. Anyone want to take a shot at it? (please)
Registered Member #65
Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
@Grenadier, test your CSS in IE6/IE7 before claiming victory over the bugs... ;-P
<?php /* First create a sub path 'img' with a RGB jpeg file called 'some_full_size.jpg' */
/* Try this block of test code, and note the system file path is not a URL */
//get a cleaned file name from ... $imageName=preg_replace( '/[^A-Za-z0-9]/i','_', 'some_full_size'); //create some file resource paths $fileName=getcwd() . '/img/'.$imageName.'.jpg'; $iconFileName=getcwd() . '/img/'.$imageName. '.icon.jpg'; //width of final image $iconWidth=120;
Registered Member #2893
Joined: Tue Jun 01 2010, 09:25PM
Location: Cali-forn. i. a.
Posts: 2242
Yay it works! I'm beginning to understand how the mysql database works, and all that is left to fix is to make sure that images get deleted when people delete the posts. I put this in action.php:
However it gives me this error; 
Warning: unlink() expects parameter 1 to be string, resource given in /home/teravolt/public_html/junkbox/action.php on line 29
Warning: unlink() expects parameter 1 to be string, resource given in /home/teravolt/public_html/junkbox/action.php on line 31
How would I convert the resource to a string? I can't seem to find any information on the interwebs regarding how to do that.
Registered Member #65
Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
imageurl = mysql_query(" ..foo.. LIMIT 0,1"); //grab only one record
while ($row = mysql_fetch_assoc($result)) { //process each returned result $strTempName = preg_replace( '/[^0-0a-zA-Z\-\+\_]/i','',$row['imgURLThumb'] ); //get image name unlink( getcwd() . '/img/' . $strTempName . '.jpg'); //force clean file path and name }
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.