MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
hi marquee problem
AuthorText
onurelveda
Senior Member

Posts: 345
Contributes: 217

Gender: _NEUTRAL_
Online: No

Version: mixer
Country: Turkiye
Languages: Turkish,Romanian,English
Date: 23/11/2010 20:18
hi marquee problem
#post24551
Site url: http://www.aybilgi.net
MemHT version: 4.0
Hosting OS: Linux,

i have a marquee i want to use in my block i tryed a lot time it ist't working. but it is working simplu like that " <marquee>text here </marquee> " but if i use like that...

if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_tags.php")) {
die("<table style='padding: 2px; border: 1px solid #999; background-color: #EEE; font-family: Verdana; font-size: 10px;' align='center'><tr><td><b>Error:</b> This file cannot be opened directly!</td></tr></table>");
}

global $dblink;

echo "<div align='justify'>";
$result = $dblink->get_list("SELECT tag,COUNT(tag) AS tot FROM memht_tags GROUP BY tag ORDER BY RAND() LIMIT 200");
foreach ($result as $row) {
$tag = outCode($row['tag']);
$num = intval($row['tot']);

if ($num<=1) { $dim = "xs"; }
else if ($num<=5) { $dim = "s"; }
else if ($num<=20) { $dim = "m"; }
else if ($num<=50) { $dim = "l"; }
else { $dim = "xl"; }

echo " <marquee align="middle" scrollamount="1" height="90" width="20%" direction="down"scrolldelay="1"> <span style='padding: 0 2px;' class='$dim'><a href='index.php?page=tags&op=list&tag=".urlencode($tag)."' title='$tag'>$tag </a></span> </marquee> n";
}
echo "</div>";

it isn't working?

this is code

<marquee align="middle" scrollamount="1" height="30" width="100%" direction="down"scrolldelay="1">text</marquee>

is someone help me?
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 23/11/2010 22:26
Re: hi marquee problem
#post24552
This is happening because you are not writing the code correctly.

Notice that the rules of PHP, you can not use multiple quotes within Echo.

If the code begins as ECHO php echo "";
Automatically you ever become unable to use more quotation marks within it, since the quotes are responsible for the printing of which is within the ECHO command.
Instead, you should isar SIMPLE quotes in your code, like this:
code
echo "<marquee align='middle' scrollamount='1' height='90' width='20%' direction='down' scrolldelay='11'><span style='padding: 0 2px;' class='$dim'><a href='http://www.memht.com/index.php?page=tags&op=list&tag=".urlencode($tag)."' title='$tag'>$tag </a></span></marquee>\n";


Do not know if the application you are attempting to modify this will work, because I do not know how far you've modified. But this is the correct way to use the ECHO command.
Hope this helps!
Smile
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
onurelveda
Senior Member

Posts: 345
Contributes: 217

Gender: _NEUTRAL_
Online: No

Version: mixer
Country: Turkiye
Languages: Turkish,Romanian,English
Date: 24/11/2010 14:29
Re: hi marquee problem
#post24557
ok thank you i will try... actualy i want to make tags list with this code because if i chosee 150 tags it is covering a lot of area
Delete Edit Quote
 
Reply
Twitter updates...
MemHT Wiki
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.230

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo