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

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

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

Ar fi prea multa bataie de cap, ar trebui sa ma uit peste tot codul sursa sa vad de unde incepe totul... 

Cine a facut platforma? Nu ofera suport?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×