Part of the EllisLab Network
   
 
Plugin Design Help
Posted: 08 May 2006 10:27 PM   [ Ignore ]  
Summer Student
Total Posts:  18
Joined  03-27-2006

I am making a plugin to create a poll…
This is my “pseudo-code” so far…(It is very basic)
Right now I am passing it currentURL so it will redirect to the page it was on…
The function will then check if the submit button has been “submitted” and act accordingly…
Is it possible to use the input class inside the plugin?

Will this work? Is their any conflict with checking if a form has been submitted in a plugin (The plugin will be autoloaded on every page)?

function displayPoll($currentURL)
    
{
        
// Check for Cookie
            // Check if vote has been cast
                //Displays Vote Form
            
                //Displays Results
    
}
Profile
 
 
Posted: 09 May 2006 12:40 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5968
Joined  11-23-2003

Don’t you wish you could write your entire application in pseudo code?  In a pseudo world, your pseudo code works great!

I would probably create a class and drop it into the scripts folder.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120364 Total Logged-in Users: 28
Total Topics: 126489 Total Anonymous Users: 6
Total Replies: 665192 Total Guests: 312
Total Posts: 791681    
Members ( View Memberlist )