Bwerk01 Posted July 25, 2009 Share Posted July 25, 2009 Hey guys, I'm sure this is pathetically easy and I feel like a real ass posting the question but I've been trying to get a gang tag to show next to the username in the header for quite awhile and just can't seem to get it. This is what I've tried, maybe someone can help me out with where i'm going wrong here. in header.php I added You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. right after You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then, I went down to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and I added [{$tag}] right in front of $gn{$u}. Is there any chance someone would be willing to help me out with where I'm going wrong here? I would greatly appreciate it! Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted July 25, 2009 Share Posted July 25, 2009 Re: Gang Tag Try.. {$tag->gangPREF} Quote Link to comment Share on other sites More sharing options...
Bwerk01 Posted July 25, 2009 Author Share Posted July 25, 2009 Re: Gang Tag I tried using [{$tag->gangPREF}] and when I did all I was left with was [] also tried it just as {$tag->gangPREF} and nothing showed up. Not really sure what happened. Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted July 26, 2009 Share Posted July 26, 2009 Re: Gang Tag Use this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then print out $tag. Quote Link to comment Share on other sites More sharing options...
BoGFx Posted October 11, 2009 Share Posted October 11, 2009 I know you probably typed it in like 4 seconds, but wouldn't you need a ] after ['gang' You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted October 13, 2009 Share Posted October 13, 2009 try this, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Maniak Posted January 17, 2010 Share Posted January 17, 2010 I have changed my header.php quite a lot, but I was struggling with this as well. What you have to do is: Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then under that add: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then find where your username and ID is, and just add $tag where you want the gang tag to be! Hope this helped. Quote Link to comment Share on other sites More sharing options...
KingKriminel Posted November 24, 2019 Share Posted November 24, 2019 For MCCodes V2 it should be changed to: $tag = $db->query('SELECT `gangPREF` AS `tag` FROM `gangs` WHERE `gangID` = '.$ir['gang'].''); $tag = $db->fetch_row($tag); $tag = $tag['tag']; 1 Quote Link to comment Share on other sites More sharing options...
ags_cs4 Posted November 24, 2019 Share Posted November 24, 2019 Dead topic from 9 years 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.