Jump to content
Sign in to follow this  
Penelope.

Problema ultimele actiuni

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...