View Single Post
  #23  
Old 4th August 2019, 22:45
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
you will need to make a function to call on aaaabs



PHP Code:
    if( $edit || $new )
    {
        
$Poll = array( "active" => 1"question" => """options" => array(  ), "votes" => """voters" => """multiple" => 0"closeDaysAfter" => 0"closed" => 0"threadid" => 0"createdinThread" => );
        
$aaaaam "";
        
$pollOptionList "";
        
$totalOptions 5;
        for( 
$i 0$i $totalOptions$i++ ) 
        {
            
$pollOptionList .= (aaaabs);
        }
        if( 
$edit 
        {
            
$Poll $TSUE["TSUE_Database"]->query_result("SELECT active, question, options, votes, voters, multiple, closeDaysAfter, closed, threadid FROM tsue_poll WHERE pid = " $TSUE["TSUE_Database"]->escape($edit));
            if( !
$Poll 
            {
                return 
errormessage(get_phrase("message_content_error"));
            }

            
$aaaaam = array( "edit" => $edit );
            
$pollOptions tsue_explode("~"$Poll["options"]);
            
$_pollOptionList "";
            foreach( 
$pollOptions as $pollOption )
            {
                
$_pollOptionList .= aaaabs($pollOption);
                
$totalOptions++;
            }
            
$pollOptionList $_pollOptionList $pollOptionList;
            
addbreadcrumb(array( get_phrase("button_edit") . ": " $Poll["question"] => TSUE_ADMINCP_URL "?action=" $TSUE["action"] . "&do=" $TSUE["do"] . "&edit=" $edit ));
        }
        else
        {
            
addbreadcrumb(array( get_phrase("poll_create_new") => TSUE_ADMINCP_URL "?action=" $TSUE["action"] . "&do=" $TSUE["do"] . "&new=1" ));
        } 
was wokring when i did test on it ok just edit

ill have a look at it and fix it..not been coding it for some time this is my last update but ill have look at it

Last edited by Napon; 4th August 2019 at 23:29.
Reply With Quote
The Following User Says Thank You to Napon For This Useful Post:
zerawx22 (5th August 2019)