Jump to content

how do i do this? a humble request..


feenix89

Recommended Posts

Hi there, if u'd be kind enaf 2 help a newbie out..

i have this simple news script called microNews, its exactly what i need but it lacks the Delete feature to delete an old or unwanted entry... i tried to contact the owner but the web seems abandoned!

 

i would've given u the link for the script but i've already made some small changes to it so i attached it instead

 

your help is greatly appreciated

 

[attachment deleted by admin]

Link to comment
Share on other sites

The system is pretty primitive.  From looking at the admin.php script it simply makes files in the ../news/ subdirectory with the name of the file being "title.txt". 

 

PHP offers the unlink() function to let you delete files, so you could pretty easily either alter the admin.php or create a delete.php script that lets you input the title of a news file for deletion.

 

Alternatively you could code things to move the file to a different subdirectory, in essence hiding it.  You'd use the rename() function for that.

Link to comment
Share on other sites

This isn't a script writing service, it's a php programming help community.  I gave you all the information needed on the specifics.  I mean, unlink() -- it's a simple function.

 

If all you want is someone to code changes for you, you should consider posting in the freelance forum, and paying someone a fee. 

Link to comment
Share on other sites

just so you know i'm not a stingy cheapo, i had a 3 year membership at experts exchange...

the reason i posted it here is because, like you said it's really easy for experts like yourself, i'm not that familiar with php variables and syntax...

 

thanks anyways.

Link to comment
Share on other sites

I'm sorry if you took my comment in that way.  I have no opinion on your degree of frugality -- only the ground rules of the community. 

 

Usually when I make a reply like my original one, it starts a dialogue because the person either starts to dig into the matter themselves, or doesn't understand the advice.  I assumed since you indicated in your post that you had modified the original package, that you had done some degree of customization of it.

 

Certainly there are people here who are altruistically motivated, but this is still a forum for developers.  If we didn't say no, we would be innundated with people who simply wanted free programming services.  As it is, there are many experienced php developers who frequent here, and we provide the freelancing forum to allow for people to advertise to them.  I don't have any real statistics since we maintain a handsoff approach to that venue, but I would guess that literally hundreds of people have secured programming services via that forum, at no cost to them in terms of advertising fees or commissions. 

 

I will say, that depending on the degree of bells and whistles, your request could be knocked off by someone who knew what they were doing in an hour or 2, and you could probably get that work done for a very reasonable amount.  Best of luck.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.