Jump to content
MakeWebGames

Recommended Posts

Posted

This is my version of a voting mod, you can add,edit and remove them. Easy install, if you need me to do it, i will for free. There are two tables, and two files.

[mysql]CREATE TABLE IF NOT EXISTS `votes2` (

`Userid` int(11) NOT NULL DEFAULT '0',

`Voted` int(11) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--

-- Dumping data for table `votes2`

--

INSERT INTO `votes2` (`Userid`, `Voted`) VALUES

(0, 1261612800);

-- --------------------------------------------------------

--

-- Table structure for table `votelinks`

--

CREATE TABLE IF NOT EXISTS `votelinks` (

`ID` int(11) NOT NULL AUTO_INCREMENT,

`Order` int(11) NOT NULL,

`Pic` varchar(225) NOT NULL,

`Link` varchar(225) NOT NULL,

`Name` varchar(255) NOT NULL,

`Reward_type` int(2) NOT NULL DEFAULT '1',

`Reward_qty` int(3) NOT NULL DEFAULT '0',

PRIMARY KEY (`ID`),

UNIQUE KEY `Order` (`Order`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

--

-- Dumping data for table `votelinks`

--

[/mysql]

Theres your tables done, this next file is voting.php and the one after, is vote.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Thats all, Dont forget to remove the line in the day cron that reads: $db->query("TRUNCATE TABLE votes;");

Posted

Danny nice mod with afew minor flaws

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

why?

it's for even a predefined variable and it's 0 so why add the filter and not use it, You do need to research SprintF() seriously because if you keep looking at what people on here think it is you'll end up with code no one will touch. There is no point in filtering nothing...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and ironically you didn't use it where it would of went perfectly...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

please think about these things, and this is to everyone not just Danny.

  • 5 months later...

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.   Paste as plain text instead

  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...