Jump to content
MakeWebGames

[mccode v2] Youtube Mod


Joel

Recommended Posts

Re: [V2] Youtube Mod [V2]

A cool mod for this mod would be money for each view that is viewed on a certain users movie..make like a Video Credit and they can spend the credits.. or something the same as the sort...

That would be an awesome mod...something possibly worth paying for...

Link to comment
Share on other sites

Re: [V2] Youtube Mod [V2]

Having a small issue with it on my game... I have a mainmenu2.php on the right side and the stats bars are conflicting with the file.

Errors :

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 2

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 3

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 4

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 5

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 6

Those lines:

You're unable to view this code.

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

Link to comment
Share on other sites

  • 1 month later...

Re: [V2] Youtube Mod [V2]

 

Having a small issue with it on my game... I have a mainmenu2.php on the right side and the stats bars are conflicting with the file.

Errors :

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 2

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 3

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 4

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 5

Warning: Division by zero in /home/msanders/public_html/mainmenu2.php on line 6

Those lines:

You're unable to view this code.

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

 

 

That is because he used $ir on his querys....just go into youtube.php

 

You're unable to view this code.

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

 

^^See where the while is $ir....just change it to $r.......MAKE SURE YOU GO THROUGH THE PAGE AND CHANGE ALL THE SPOTS THAT $ir IS USED AND MAKE THEM $r.....

Sorry for caps...just dont want you to forget that. lol..

Also do that for your other page as well.....That should fix the problem..

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 3 months later...
  • 2 weeks later...

Re: [mccode v2] Youtube Mod

its in the part where you add it to global_func.php

 

function video_dropdown($connection,$ddname="videoNAME",$selected=-1)

{

global $db;

$ret="<select name='$ddname' type='dropdown'>";

$q=$db->query("SELECT * FROM youtube ORDER BY videoNAME ASC");

if($selected == -1) { $first=0; } else { $first=1; }

while($r=$db->fetch_row($q))

{

$ret.="\n<option value='{$r['videoID']}'";

if ($selected == $r['videoID'] || $first == 0) { $ret.=" selected='selected'";$first=1; }

$ret.=">{$r['videoNAME']}</option>";

}

$ret.="\n</select>";

return $ret;

}

or another instance is in youtubevideo.php

 

Search "video_dropdown" (1 hits in 1 files)

youtubevideo.php (1 hits)

Line 77: Video: ".video_dropdown($c,'videoNAME')."

 

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 4 weeks later...
  • 1 month 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...