Jump to content

Recommended Posts

Posted

Detin un panel pentru server de san andreas multiplayer, respectiv RPG si intampin o problema

Cand am clan tag-ul la nume in orice parte, la ultimele actiuni arata numele, dar daca vrei sa dai click sa intrii pe profil zice ca nu exista, dar cand nu ai tag-ul merge sa intrii

Exemplu: AASD.thumb.png.0123e1f42f480f57e51d6a7ae6b9e2e1.png
Script: 

				<i class="icon-rss orange"></i> Ultimele actiuni
			</h5>
		</div>
<div class="widget-body">
<div class="widget-main no-padding">
<div class="dialogs">
	<?php
		$q = Config::$g_con->prepare('SELECT * FROM `faction_logs` ORDER BY `id` DESC Limit 10');
		$q->execute();
		while($row = $q->fetch(PDO::FETCH_OBJ)) {

		$value = $row->Text;
		$tokens = explode(" ", $value);	
		//echo str_replace($tokens[0],"<a href='".Config::$_PAGE_URL."profile/".Config::getID('users','name',$tokens[0])."'>".$tokens[0]."</a>",$row->Text);

			$qr = Config::$g_con->prepare('SELECT `Model` FROM `users` WHERE `name` = ?');
			$qr->execute(array($tokens[0]));
	?>
<div class="itemdiv dialogdiv">
<div class="user">
<img src="<?php echo Config::$_PAGE_URL; ?>assets/images/avatars/<?php echo Config::getID("users","Model",$tokens[0]); ?>.png"/>
</div>
<div class="body">
<div class="time">
<i class="icon-time"></i>
<span class="green">
<?php echo $row->time; ?>
</span>
</div>
<div class="text"><p>
<?php 
echo str_replace($tokens[0],"<a href='".Config::$_PAGE_URL."profile/".Config::getID('users','name',$tokens[0])."'>".$tokens[0]."</a>",$row->Text);
?>
</div>
</div>
</div>
	<?php } ?>
</div>
</div> 
</div> 
</div>
</div>


Daca se poate, sa ma ajute cineva sa fac ca aici:

check.png.f3a2bfd1532a758550be309965866d17.png si sa poti da click pe profil indiferent ca are clan tag-ul
Va rog.

 

Posted
6 hours ago, Portocala said:

Presupun ca avatarele si link-ul catre profil sunt create dupa nume fara tag iar script-ul tau le genereaza cu tag.

Poti sa imi dai o solutiee cum as putea sa repar acest lucru ? te rog 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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.