Jump to content

Recommended Posts

Posted

hi. I have a website, and i want to restyle my language change. Now its picked up  by tbov, from list. I want that it would be showed only buttons with language name. 
Original ( that i tried to convert):
 

$languageList = explode(',', e_LANLIST);
sort($languageList);
$action = (e_QUERY && ! $_GET['elan']) ? e_SELF.'?'.e_QUERY : e_SELF;
	$text = '
	<form method="post" action="'.$action.'">
		<div class="center">
			<select name="sitelanguage" class="tbox form-control">';
	foreach($languageList as $languageFolder)
	{
		$selected = ($languageFolder == e_LANGUAGE) ? ' selected="selected"' : '';
		$text .= '
				<option value="'.$languageFolder.'"'.$selected.'>'.$languageFolder.'</option>'.$selected.'
				'.$languageFolder.'';
	}

	$text .= '
			</select>
			<br />
			<br />
			<button class="btn btn-default button" type="submit" name="setlanguage" value="no-value"><span>'.UTHEME_MENU_L1.'</span></button>';
	$text .= '
		</div>
	</form>';

And here is mine. Buttons are showed with correct names, but when i press it nothing hapens.

 

$action = (e_QUERY && ! $_GET['elan']) ? e_SELF.'?'.e_QUERY : e_SELF;
	$text = '
	<form method="post" action="'.$action.'">
		<div class="center">';
	foreach($languageList as $languageFolder)
	{
		$text .= '
			<button class="btn btn-default button" type="submit" name="setlanguage" value="'.$languageFolder.'">'.$languageFolder.'</button>
			';
		
	}
	$text .= '
			</div>
	</form>';

I will aprieciate any help! Thanks :)

Posted

Changed to sitelanguage, still no action when pressing button ;/ 

<button class="btn btn-default button" type="submit" name="sitelanguage" value="'.$languageFolder.'">'.$languageFolder.'</button>
Posted

What you mean by "no action"? Doesn't submit the form or doesn't change the language?

It doesn't change website languaage. I am using e107 web system. With the tbox language select, as i posted in first comment it works great, but i want to make that my languages salection would be shown as buttons, not as a list. I need to figure it out, how i can change code that it will work with button type :D

Posted

I've never used e107... maybe this 'name="setlanguage"' which originally has "no-value" plays a role ther but I don't know. :lol:

Posted

I've never used e107... maybe this 'name="setlanguage"' which originally has "no-value" plays a role ther but I don't know. :lol:

I didin't know too :D Tried many different variants ;/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello, you can check www.l2jmaster.org we have a test server. regards.
    • 🎣 Enhanced Fishing Bot — Midnight 12.0.7 Now fully hands-off: it re-applies your lures AND uses your consumables automatically. 🔥   ▶️ Watch it in action:   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The only WoW fishing bot that keeps your pole lured and your buffs up the entire session — no babysitting, no lost catch rate. And it doesn't read your screen or touch the game — it listens for the splash like a real player. ❝ Other bots fish with a bare pole and waste half your session. This one keeps it lured and buffed the whole time — so you catch more, every cast. ❞ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ WHAT'S NEW • Automatic lure application — your fishing pole stays lured all session, so your catch rate never drops • Automatic consumables — food, buffs & fishing items get used for you, on time, automatically • Fully unattended — set it and genuinely walk away   ⚙️ HOW IT WORKS Pure audio detection — no pixels, no memory reading, no injection. It hears the splash, loots, recasts. Works at any resolution, UI scale, or graphics setting.   🛡️ BUILT TO STAY UNDER THE RADAR Every action is randomized to look human: • Randomized reaction times & key-hold durations • Occasional "missed" catches & distracted pauses • Idle breaks, anti-AFK jumps, periodic bag checks • Subtle mouse & position jitter • Built-in 3-hour session cap — never looks like a 24/7 robot • Fatigue system — reactions slow over long sessions, like a tired player   🪝 EVERYTHING INCLUDED • Comes with the bot + the BobberAssist addon (handles lures & consumables in-game) • One-time setup — remembers your settings • Optional VB-CABLE support to isolate WoW audio • Sit-and-fish mode for less mob aggro   🔒 LICENSING • One license = one PC, locked on first launch • Instant key delivery in our Discord • Changed PCs? Open a ticket and we'll reset it   ♻️ Free updates for life — buy once, every future version is free. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬 All the details, pricing & download are in our Discord: 👉 JOIN THE DISCORD 👈 Like any automation, use at your own discretion — ToS applies.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..