PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Oracle
New Member
New Member


Joined: Oct 19, 2003
Posts: 5

PostPosted: Sun Oct 19, 2003 1:26 pm Reply with quote Back to top

The guestbook works great! Just wondering if it's possible to align the list of smiley properly, ideally in tables. So the smiley won't be all mangle together.

Thanks!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun Oct 19, 2003 2:58 pm Reply with quote Back to top

"mangle together"? I hadn't noticed that, but you have complete control over that. Just modify the showsmileys.php file.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Oracle
New Member
New Member


Joined: Oct 19, 2003
Posts: 5

PostPosted: Sun Oct 19, 2003 7:54 pm Reply with quote Back to top

Oh.. I have a screenshot, notice they smiley are not properly aligned and they are pretty messy. I am not expert in coding php. Is there any way I can put them into their own cell of a table?

Thanks Raven!

Image
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Oct 20, 2003 6:42 am Reply with quote Back to top

Because animated smileys can have varying widths, any table you make could grow large. For instance, the wave smileys is probably the widest in the ones I offer.

Anyway, I will give you the code to do what you are asking. You may have to tweak it to get your final desire results. Find this code in showsmileys.php on or around line 31
Code:
echo "<body><form><table cellspacing=\"0\" cellpadding=\"0\"><tr><td id=\"tdadd\" colspan=\"2\" align=\"center\"><b>$label_smiley_message</b></td></tr><tr><td id=\"tdadd\">";
while ($file_name = readdir($dir)) {
   if ($file_name == '.' || $file_name == '..') continue;
   $cnt++;
   echo "<a  href='javascript:void(0);' onClick='msa++;if (msa<=$max_smileys_allowed){opener.document.$form_name.comments.value=opener.document.$form_name.comments.value+\"<img src=smilies/$file_name>&nbsp;\";if (this.blur) this.blur();return false;} else {alert(\"$label_smiley_message\");return false;}' /><img border=\"0\" src=$path_to_images/smilies/$file_name alt=\"Smiley\" title=\"Smiley\" /></a>&nbsp;";
   if ($cnt > 6) {
      $cnt = 0;
      echo "</td></tr><tr><td id=\"tdadd\">";
   }
}
and modify it to
Code:
echo "<body><form><table cellspacing=\"0\" cellpadding=\"0\"><tr><td id=\"tdadd\" colspan=\"2\" align=\"center\"><b>$label_smiley_message</b></td></tr><tr>";
while ($file_name = readdir($dir)) {
   if ($file_name == '.' || $file_name == '..') continue;
   $cnt++;
   echo "<td id=\"tdadd\"><a  href='javascript:void(0);' onClick='msa++;if (msa<=$max_smileys_allowed){opener.document.$form_name.comments.value=opener.document.$form_name.comments.value+\"<img src=smilies/$file_name>&nbsp;\";if (this.blur) this.blur();return false;} else {alert(\"$label_smiley_message\");return false;}' /><img border=\"0\" src=$path_to_images/smilies/$file_name alt=\"Smiley\" title=\"Smiley\" /></a>&nbsp;</td>";
   if ($cnt > 6) {
      $cnt = 0;
      echo "</tr><tr>";
   }
}
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Oracle
New Member
New Member


Joined: Oct 19, 2003
Posts: 5

PostPosted: Mon Oct 20, 2003 7:07 am Reply with quote Back to top

Thanks Raven!! It looks much better now. Smile I have moved the title in front of the <form> so it can be centered on its own.

Image

Thanks again! Very Happy
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum