You are missing our premiere tool bar navigation system! Register and use it for FREE!


Author: revspaldingLocation: Badlands of NW ColoradoPostPosted: Sat Mar 06, 2004 6:20 am    Post subject: Re: Which way should review category content be indicated?

You are awesome Chatserv!

Once again NukeCops excells...



Nuke Cops -> Tips And Tricks

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: aabbccPostPosted: Sun Feb 22, 2004 9:23 pm    Post subject: Re: In the Reviews module

It's still not available in the newest version, but you could always write a code for this...

Author: chatservLocation: Puerto RicoPostPosted: Sun Feb 22, 2004 9:56 pm    Post subject: Re: In the Reviews module

Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 192 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Which way should review category content be indicated? Which way should review category content be indicated?

Nuke Cops -> Tips And Tricks
Poll :: Which way should review category content be indicated?

Different Color
0%
 0%  [ 0 ]
Underline
0%
 0%  [ 0 ]
Bold
0%
 0%  [ 0 ]
Different font
0%
 0%  [ 0 ]
Flashing neon, audio and popup on mouseover
0%
 0%  [ 0 ]
Total Votes : 0



Author: revspaldingLocation: Badlands of NW Colorado PostPosted: Thu Nov 20, 2003 7:24 am    Post subject: Which way should review category content be indicated?

On the index page of the Reviews module, the way you look up a review for something is by selecting the letter or number that the name of the item begins with. Sometimes, if there are no items listed under the letter you select, you just have to go back to the index.

It would be nice to have the letters of the alphabet and the numbers show up in different colors, or underlined, or slightly larger, bold, or something, to show whether or not that section of the reviews has any content. This would save the user a couple of clicks and time.
Code:
function alpha() {
    global $module_name, $db, $prefix;
    $alphabet = array ("A","B","C","D","E","F","G","H","I","J","K","L","M",
                       "N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","0");
    $num = count($alphabet) - 1;
    echo "<center>[ ";
    $counter = 0;
    while (list(, $ltr) = each($alphabet)) {
   $ltr_num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_reviews WHERE UPPER(title) LIKE '$ltr%'"));
   if ($ltr_num == 0) {
        $altr = "$ltr";
        } else {
        $altr = "<a href=\"modules.php?name=$module_name&rop=$ltr\"><b><font class=title>$ltr</font></b></a>";
        }
        echo "$altr";
        if ( $counter == round($num/2) ) {
            echo " ]\n<br>\n[ ";
        } elseif ( $counter != $num ) {
            echo "&nbsp;|&nbsp;\n";
        }
        $counter++;
    }
    echo " ]</center><br><br>\n\n\n";
    echo "<center>[ <a href=\"modules.php?name=$module_name&rop=write_review\">"._WRITEREVIEW."</a> ]</center><br><br>\n\n";
}
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.102 Seconds - 427 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::