TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 134
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 152
  • Total: 152

Project I am working on...

Started by technodragon73, December 24, 2006, 05:54:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

technodragon73


theintensity

Quote from: TechnoDragon on February 04, 2007, 04:25:03 PM
Ok, fix is in...you can get it in this topic at my forum:
http://dragontalk.net/index.php?topic=3155.0

Thanks, looks great for regular members now, and that error in the error log is gone as well.
You have done an outstanding job with this avatar maker.

Blanc


technodragon73


technodragon73

Ok, a new item pack has been uploaded to my downloads section.  Currently we are developing an RPG mod to go with the avatar maker as well AND I am trying to develope some tiny portal blocks as well!

technodragon73

ok, while i know block code snippets go in there own board, since this is specific for the avatar maker I am going to post the first one here and the rest will be posted at my board as I make them....


global $boardurl, $modSettings, $txt;
loadLanguage('Avtr');

$result = db_query("SELECT ID_AVATAR, memberID, TotalCost, Avtr_Name FROM avtr_avatar ORDER BY ID_AVATAR DESC LIMIT 0,1", __FILE__, __LINE__);
$RecentAvatar = mysql_fetch_assoc($result);
echo'
<table width="100%" height="100%">
<tr>
<td align="center" valign="bottom">
<strong>',$txt['avtr_add_name3'],':</strong>   ',$RecentAvatar['Avtr_Name'],'
</td>
</tr>';
if ($modSettings['avtr_set_shop'] == '1'){
echo'
<tr>
<td align="center" valign="bottom">
<strong>',$txt['avtr_cost'],'</strong>   ',$modSettings['shopCurrencyPrefix'],'',$RecentAvatar['TotalCost'],'',$modSettings['shopCurrencySuffix'],'
</td>
</tr>';
}
echo'
<tr>
<td align="center" valign="bottom">
<img src="' . $boardurl . '/avatars/forumAvatars/' . $RecentAvatar['ID_AVATAR'] . '_' . $RecentAvatar['memberID'] . '.gif" />
</td>
</tr>
</table>';


This will show the most recently created avatar from the avatar maker!

Sin69

heh - you must be a mind reader, I was going to ask you how to create a block for most recent avatar - Awesome, Thanks  ;D

technodragon73

ROFL

Ya, had someone ask at my site earlier today...so i figured i'd make one up!

BTW, was looking for you online in messenger earlier!

brianjw

Here is the most recently created avatar for people who do not have or want to use the smf shop with the avatar mod/ or are using it and just don't want the price to be displayed... Use this code. :D


global $boardurl, $modSettings, $txt;
loadLanguage('Avtr');

$result = db_query("SELECT ID_AVATAR, memberID, Avtr_Name FROM avtr_avatar ORDER BY ID_AVATAR DESC LIMIT 0,1", __FILE__, __LINE__);
$RecentAvatar = mysql_fetch_assoc($result);
echo'
<table width="100%" height="100%">
<tr>
<td align="center" valign="bottom">
<strong>',$txt['avtr_add_name3'],':</strong>   ',$RecentAvatar['Avtr_Name'],'
</td>
</tr>';
if ($modSettings['avtr_set_shop'] == '1'){
echo'
<tr>
<td align="center" valign="bottom">
</td>
</tr>';
}
echo'
<tr>
<td align="center" valign="bottom">
<img src="' . $boardurl . '/avatars/forumAvatars/' . $RecentAvatar['ID_AVATAR'] . '_' . $RecentAvatar['memberID'] . '.gif" />
</td>
</tr>
</table>';


TESTED AND WORKS SUCESSFULLY :D

technodragon73

ROFL...that is the same code i posted already! you just removed the text for the shop...there was no need to do that because if you have the shop turned off in the maker settings it won't show...

This website is proudly hosted on Crocweb Cloud Website Hosting.