badge plusemu

MasterJiq

Member
Jul 8, 2016
385
23
Hello,

I've working around and trying to givebadge to my account, but I don't get the badge and the badge is valid on folder ALBUM1854, do I have to make with sql on badge_definitions and client_badge_text ? If it was true how do I make it if I have like 5000+ badge ? Do someone have tools to convert this things.

Thanks.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,198
3,914
Hey,

Yup you need to add it to 'badge_definitions'. I didn't realise that it was empty, will be releasing some SQL for it in a couple of hours.
 

yoyok

Member
Apr 24, 2013
197
24
Make a file named badgedef.php , it will add all badges in your badge_definitions:

PHP:
<?php
$target = "c_images/album1584/";
$weeds = array('.', '..');
$directories = array_diff(scandir($target), $weeds);  
foreach($directories as $value)
{
$gifkill=str_replace('.gif', '', $value);
$gif2kill=str_replace('.GIF', '', $gifkill);
$uppercasewords=ucwords($gif2kill);
if(is_file($target.$value))
{
echo "INSERT INTO `DATABASENAME`.`badge_definitions` (`code`, `required_right`) VALUES ('".$uppercasewords."', '');<br />";
}
}
?>
 

yoyok

Member
Apr 24, 2013
197
24
@Sledmore, yeah if I given badge. It was empty (I dont get anything even the black box)
 
@yoyok it's working perfect?
 
@Sentinel if I have no external variables ?

Yes, it works good. I've used it many times.

If you have no external variables you can't even use the client lol

Sent from my SM-G928F using Tapatalk
True that. But it's not required to have for all badges, badge_name_*= to make the badges appear in the client.
 

Users who are viewing this thread

Top