AlabamaHit Posted December 12, 2008 Posted December 12, 2008 Ok....It honestly never crossed my mind that something so simple would be asked....But, this has been asked....So I guess, I will add it here to make is where others can use it.................???? All this does is changes in the Explore to the City Name of the sure.in the Main Menu (The menu on the left) lol........ OPEN: mainmenu.php FIND: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ADD AFTER: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOW FIND: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. CHANGE TO: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Well....if ya like it...+1 me....even though I feel silly as hell posting something this simple, lol. Oh yeah......YES this works on Lite, Version 1, AND Version 2 Quote
skinny Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu :cry: i seem so stupid now Quote
zbirc3 Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu +1 for you mate. I've always wanted this! :D Quote
AlabamaHit Posted December 12, 2008 Author Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu :cry: i seem so stupid now Don't man.....The smallest things in the world are the ones that are overlooked...... :wink: Quote
castle Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu It hard to believe the simplest things make such a big difference. This rocks. Quote
Djkanna Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu i tend to do it a different way same result like but yeah: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then explore goes like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this can work anywhere correct like i put mine in explore page and can have the city name show up there like ie London Gangs lol nice work :wink: i have one for pics aswell which i think are posted on here lol Quote
Karlos Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu I personally would use Djkanna's ways it's much cleaner :-D +1 to both (if i can be asked to click the button) Quote
Haunted Dawg Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
AlabamaHit Posted December 12, 2008 Author Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu You can use it how eer you want, lol.....But djkanna way is slower....and i would say yall like it better cause yall are use to seeing it...lol....BUT...the speeds wouldnt be noticable cause its such a small table.... No disrespect and not trying to start a fight on this....So please don't take it that way. Quote
Djkanna Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu You can use it how eer you want, lol.....But djkanna way is slower....and i would say yall like it better cause yall are use to seeing it...lol....BUT...the speeds wouldnt be noticable cause its such a small table.... No disrespect and not trying to start a fight on this....So please don't take it that way. i use my way lol but i agree with you on the slower bit lol Quote
AlabamaHit Posted December 12, 2008 Author Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu With the size of table, i dont think anyone can tell the differnece......It might make a difference if they have 10K people, lol... Quote
Djkanna Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu With the size of table, i dont think anyone can tell the differnece......It might make a difference if they have 10K people, lol... well yeah lol +1 i forgot last time lol Quote
adivirus Posted December 12, 2008 Posted December 12, 2008 Re: [mccode] Cityname in Mainmenu nice, +1 ;) Quote
Zero-Affect Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu i would personally use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Kyles would work but i just love sprintf lol it's more safe Great job Alabama + 1 Quote
Eternal Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu LAWL i done this weeks ago :P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Raptor_Jesus Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu AlabamaHit +1 no reason just cause i know ya :mrgreen: Quote
POG1 Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu i would personally use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Kyles would work but i just love sprintf lol it's more safe Great job Alabama + 1 looks good to me. You missed a ' in the where clause :) Also you could do mysql_query(sprintf()); imstead of setting $query twice, it probably would make it a millesecond faster lol Quote
Zero-Affect Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu i would personally use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Kyles would work but i just love sprintf lol it's more safe Great job Alabama + 1 looks good to me. You missed a ' in the where clause :) Also you could do mysql_query(sprintf()); imstead of setting $query twice, it probably would make it a millesecond faster lol m sorry i may be wrong but i see no missing ' lol and i prefer it this way makes it look pretty lol Quote
AlabamaHit Posted December 13, 2008 Author Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu By the %u is where he is talking about, lol....Simple typo..... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Zero-Affect Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu actually no You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. sprintf('SELECT `cityname` FROM `cities` WHERE `cityid` = %u', $ir['location']); i see not typo involved there Quote
AlabamaHit Posted December 13, 2008 Author Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu Your right now i look at it... You used a ' instead of a " tahts why it ends in a '....Sorry my mistake... :-D Quote
Zero-Affect Posted December 13, 2008 Posted December 13, 2008 Re: [mccode] Cityname in Mainmenu No problem + 1 for the observational skills guys (pog1 & Alabama) Quote
POG1 Posted December 18, 2008 Posted December 18, 2008 Re: [mccode] Cityname in Mainmenu its all good using sprintf though, but its pointless if there is no message in the case of an errror. Quote
Zero-Affect Posted December 20, 2008 Posted December 20, 2008 Re: [mccode] Cityname in Mainmenu its all good using sprintf though, but its pointless if there is no message in the case of an errror. not many people used it till i started... :roll: thanks Noelle and Nyna (females own coding lol) take it like a domestic... you'll never win Quote
POG1 Posted December 20, 2008 Posted December 20, 2008 Re: [mccode] Cityname in Mainmenu not many people used it till i started... :roll: whatever mate! Quote
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.