PDA

View Full Version : Returning data to the portal?


Artayick
11-22-2004, 04:28 PM
Ok I have found out that starting small when you frist start to hack can be a good thing.. cause what I got myself into now is a small part of my stupidly big ladder hack I got working.

Anyway I have a center block that is displaying different data depending on the user group and on one of the groups I have a submit form that allows them to load game replays and other files into a folder on the server( checks file size and type right now as well) I have all this working well though im having troubles coming up with a method to post the results back to a block on the forum that allows people to view and download the new file( also based on user group)

So I figured I would come here first and see if any of the fine folks here have any ideas a good way to display the data after the submit..

Brian
11-22-2004, 06:41 PM
In your forum/includes/vba_cmps_include_bottom.php look for this code:
function print_portal_output(&$cmpsoutput, $nonindex = false)

Right below that you'll see the list of globalized variables. Your best bet would probably be to add $_POST to that set, and then use $_POST[variablename] in your template for any variables you are passing.

Our Sponsors
 

Artayick
11-23-2004, 09:28 AM
Hmmm I think this might work for me.. I could do this in a sort of "current downloads mod" since I would think everytime a submit was done it would overwrite the older variable that was passed to the template. Then do like an archive feature for people to do searches or view all the other downloads.( could be wrong but hey im new to php) Thanks we shall see how it turns out..