331
talunceford
Re: How can I make the News float to the top

What I had to do was edit the template to make the l/c/r blocks appear below the content. Edit the template in your favorite html editor.



332
talunceford
Re: Need some help with an untar class.....

NM, I got the delete figured out......



333
talunceford
Re: Need some help with an untar class.....

Yes it does. I haven't looked a whole lot at that class yet, and need to explore the functions of that class some. I want to be able to incorp alot of the core functions into this module. This module is still in the experimentation stage. Im still getting the overall structure the way that I want it. Basically, the untarring function I think I can use, but the un-zipping function is one that I had to find.



334
talunceford
Suggestion for deleting a directory that is not empty via php.

I am still working on this module. One of the features is that I would like to be able to delete a module via the admin interface. I have been looking around on the net and haven't really found anything that suits what I want it to do. Does anyone have any suggestions on what to do with this?

Basically, I am submitting the op= variable, the module=variable, and the xdir= variable. The xdir will have XOOPS_ROOT_PATH."/modules/.$module." value.

Here is a current pic of the module....
Resized Image


Thanks for the help



335
talunceford
Re: Starting to fall apart before I go live....

NM



336
talunceford
Need some help with an untar class.....

While attending the school of hard knocks....

I found the need to be able to untar archives for this module. Go figure.... Anyway, I found a class for untarring tar'd files. Being limited in the knowledge object oriented programming experience is hurting my progress though. Could someone look at this code and tell me what I've done wrong?

I can get it to run through the code fine, but as far as extracting the archive, it doesn't. The script doesn't bomb, just doesn't extract. I know its something simple, but what that simple thing is, I am blind too.

####################################################### UNTAR FUNCTION #############################################################

/*
function untar() {
global $HTTP_POST_VARS;
global $dir, $unzip, $action;
$dir = $HTTP_POST_VARS['dir'];
$unzip = $HTTP_POST_VARS['unzip'];
$action = $HTTP_POST_VARS['action'];

// Include the Tarlib class
include XOOPS_ROOT_PATH.'/modules/xadmintools/class/class.tar.php';
$showcontents = "$dir/$unzip";
$untar = new gzfile($unzip);
$untar->extract('$unzip');
echo $showcontents;
@unlink($dir."/$unzip");

echo "<font color=FF0000 size=3><br>>>> $unzip Deleted! </font>";

redirect_header("unzip.php",10,"$unzip successfully extracted, and was deleted from server!");
}
######################################################### END UNTAR FUNCTION ###############################################################
*/


Or better yet, what variables would I need to get the tar class to work that comes with the XOOPS core?

Some sort of direction is greatly needed on this, and I'll take any advice given!


Any and all help on this is greatly appreciated!

Thanks!



337
talunceford
Re: Need an RSS Feed from the downloads.....

Cool thanks.....



338
talunceford
Re: Help with some upload code.....

Quote:

MithyT2 wrote:
Quote:
what am I doing wrong
well, for starters, you use <code> instead of with square brackets

Could you post, what you did, which worked?


Yeah yeah, wise guy LOL!

Basically, I found another script that seems to work for what I needed. Check out the post I made for the module to upload / install modules. You can see what I was using the code for.

I think I am going to rewrite the upload function to be less bulky. Pretty confusing the way the author wrote it. Anyway.... check it out and see what you think.



339
talunceford
Re: module to install modules




340
talunceford
Need an RSS Feed from the downloads.....

Would anyone be interested in creating such a beast?

From a post that I have been replying on, it was mentioned that there probably will need to be a central repository for contributors to the RSS feed.

I guess basically it would be an RSS feed that pulls from a modified version of the downloads section.

Any takers?




TopTop
« 1 ... 31 32 33 (34) 35 36 »



Login

Who's Online

219 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits