Fork me on GitHub

Theme Design: Adding the Printer Icon  Bottom

Go to page 1 - 2 [+1]:

  • I am learning PHP and Postnuke at the same time, so please bear with me...

    I am converting a theme, since there are no good theme tutorials out there. I have done a decent enough job so far, but I am having problems...

    The theme I am using as the master is: SabadellClients
    In it, there is a section of the code that looks like:

    Code

    $imprimir= $preformat[prin];  
    echo "\n"
           ."<div>\n"
           ."<br />\n"  
           ."".$preformat[send]
           ."&nbsp;&nbsp;".$preformat[prin2]."\n"  
           ."<br />\n"  
           ."</div>\n"

    Can anyone tell what they were attempting to do with the $imprimir?

    The entire page has been edited for formatting with a few table.cells and table.rows removed for clarity (and to help me in my design attempts) as well as PHP'd, they originally had the theme including HTML files with small snippets of PHP code inside them... I am making it a PHP Theme with all XHTML echo'ed through the PHP. I thought I would include the rest of the file for clarity...

    Code

    <?php
    // $Id: theme.php,v 1.3 2002/03/10 01:19:27 niceguyeddie Exp $ Exp $Name:  $
    // ----------------------------------------------------------------------
    // POST-NUKE Content Management System
    // Copyright (C) 2002 by the PostNuke Development Team.
    // http://www.postnuke.com/
    // ----------------------------------------------------------------------
    // Based on:
    // Thatware - http://thatware.org/
    // PHP-NUKE Web Portal System - http://phpnuke.org/
    // ----------------------------------------------------------------------
    // LICENSE
    //
    // This program is free software; you can redistribute it and/or
    // modify it under the terms of the GNU General Public License (GPL)
    // as published by the Free Software Foundation; either version 2
    // of the License, or (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU General Public License for more details.
    //
    // To read the license please visit http://www.gnu.org/copyleft/gpl.html
    // ----------------------------------------------------------------------
    // Original Author of file: Brumie - http://vipixel.com
    // Purpose of file: Custom Postnuke Theme
    // Graphics designed by Farel Dalrymple - farelkahn - http://fareldalrymple.com
    // Theme reworked bto Postnuke and XHTML Standards by:
    // Brian Scott O'keefe - randomblink - http://ninjasquirrels.com
    // ----------------------------------------------------------------------
    // This theme was completely pulled apart to a bare skeleton... This theme
    // was reduced to basic html tags without attributes and then pieced back
    // together to better conform to XHTML Standards.
    // ----------------------------------------------------------------------


    /* ********************************************************
    Article Box:

    This file is used as layout for the Article Boxes on a
    Postnuke site.
    ******************************************************** */


    echo "\n"

    // =================>>>
    // Table One <START>
        ."<table class=\"nsStoryBox\">\n"

    // Table One - TBODY <START>
            ."<tbody>\n"

    // Table One - Tbody - Row One <START>
                ."<tr>\n"

    // Table One - Tbody - Row One - Cell One <START>
                    ."<td>\n"

    // ==========================>>>
    //      Table One.One <START>
                        ."<table class=\"nsInnerStoryHolder\">\n"

    //      Table One.One - Tbody <START>
                            ."<tbody>\n"

    //      Table One.One - Tbody - Row One <START>
                                ."<tr>\n"

    //      Table One.One - Tbody - Row One - Cell One <START>
                                    ."<td colspan=5>\n"

    //      Table One.One - Tbody - Row One - Cell One <END>
                                    ."</td>\n"

    //      Table One.One - Tbody - Row One <END>
                                ."</tr>\n"

    //      Table One.One - Tbody - Row Two <START>
                                ."<tr>\n"

    //      Table One.One - Tbody - Row Two - Cell One <START>
                                    ."<td rowspan=3>\n"

    //      Table One.One - Tbody - Row Two - Cell One <END>
                                    ."</td>\n"

    //      Table One.One - Tbody - Row Two - Cell Two <START>
                                    ."<td>\n"
                                        ."&nbsp;\n"

    //      Table One.One - Tbody - Row Two - Cell Two <END>
                                    ."</td>\n"

    //      Table One.One - Tbody - Row Two - Cell Three <START>
                                    ."<td>\n"
    // ==================================>>>
    //          Table One.One.One <START>
                                        ."<table class=\"nsStoryHeader\">\n"

    //          Table One.One.One - Tbody <START>
                                            ."<tbody>\n"

    //          Table One.One.One - Tbody - Row One <START>
                                                ."<tr>\n"

    //          Table One.One.One - Tbody - Row One - Cell One <START>
                                                    ."<td class=\"nsSubHeader nsLeft\">\n"
                                                        ."<img src=\"themes/$GLOBALS[thename]/images/Squirrel_Silhouette.gif\">\n"

    //          Table One.One.One - Tbody - Row One - Cell One <END>
                                                    ."</td>\n"

    //          Table One.One.One - Tbody - Row One - Cell Two <START>
                                                    ."<td class=\"nsSubHeader nsCenter\">\n"
                                                        ."<span class=\"storytitle\">$preformat[catandtitle]</span>\n<br />";
                                                        if (authorised(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT))
                                                            {
                                                            echo "<span class=\"pn-sub\"> [ <a href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a>";
                                                            if (authorised(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE))
                                                                {
                                                                echo "| <a href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">"._DELETE."</a> ]</span>";
                                                                }
                                                                echo "<br />\n";
                                                            }  

        echo "\n"

    //          Table One.One.One - Tbody - Row One - Cell Two <END>
                                                    ."</td>\n"

    //          Table One.One.One - Tbody - Row One - Cell Three <START>
                                                    ."<td class=\"nsSubHeader nsRight\">\n"
                                                        ."<div>\n"
                                                            ."<span>\n"
                                                                ." $info[counter] "._READS."\n"
                                                            ."</span>\n"
                                                        ."</div>\n"  

    //          Table One.One.One - Tbody - Row One - Cell Three <END>
                                                    ."</td>\n"  

    //          Table One.One.One - Tbody - Row One <END>
                                                ."</tr>\n"  

    //          Table One.One.One - Tbody <END>
                                            ."</tbody>\n"  

    //          Table One.One.One <END>
    // ================================>>>
                                        ."</table>\n"  
                                        ."<span>\n"  
                                        ."</span>\n"  

    //      Table One.One - Tbody - Row Two - Cell Three <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Two - Cell Four <START>
                                    ."<td>\n"  
                                        ."&nbsp;\n"  

    //      Table One.One - Tbody - Row Two - Cell Four <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Two - Cell Five <START>
                                    ."<td rowspan=\"3\">\n"  

    //      Table One.One - Tbody - Row Two - Cell Five <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Two <END>
                                ."</tr>\n"  

    //      Table One.One - Tbody - Row Three <START>
                                ."<tr>\n"  

    //      Table One.One - Tbody - Row Three - Cell One <START>
                                    ."<td>\n"  
                                        ."&nbsp;\n"  

    //      Table One.One - Tbody - Row Three - Cell One <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Three - Cell Two <START>
                                    ."<td>\n"  

    // ==================================>>>
    //          Table One.One.Two <START>
                                        ."<table class=\"nsStory\">\n"  

    //          Table One.One.Two - Tbody <START>
                                            ."<tbody>\n"  

    //          Table One.One.Two - Tbody - Row One <START>
                                                ."<tr>\n"  

    //          Table One.One.Two - Tbody - Row One - Cell One <START>
                                                    ."<td class=\"nsStoryBody\">\n"
                                                        ."<span class=\"nsStoryTopic\">\n"
                                                            ."$preformat[searchtopic]\n"
                                                        ."</span>\n"
                                                        ."$info[hometext]\n"
                                                        ."$info[bodytext]\n"
                                                        ."<br />\n"
                                                        ."<span class=\"nsStoryNotes\">\n"
                                                            ."$preformat[notes] \n"
                                                        ."</span>\n"

    //          Table One.One.Two - Tbody - Row One - Cell One <END>
                                                    ."</td>\n"

    //          Table One.One.Two - Tbody - Row One <END>
                                                ."</tr>\n"  

    //          Table One.One.Two - Tbody - Row Two <START>
                                                ."<tr>\n"  

    //          Table One.One.Two - Tbody - Row Two - Cell One <START>
                                                    ."<td colspan=\"2\">\n";  
                                                        $imprimir= $preformat[prin];  
    echo "\n"
                                                        ."<div>\n"  
                                                            ."<br />\n"  
                                                            ."".$preformat[send]
                                                            ."&nbsp;&nbsp;".$preformat[prin2]."\n"  
                                                            ."<br />\n"  
                                                        ."</div>\n"  

    //          Table One.One.Two - Tbody - Row Two - Cell One <END>
                                                    ."</td>\n"  

    //          Table One.One.Two - Tbody - Row Two <END>
                                                ."</tr>\n"  

    //          Table One.One.Two - Tbody <END>
                                            ."</tbody>\n"  

    //          Table One.One.Two <END>
    // ================================>>>
                                        ."</table>\n"  

    //      Table One.One - Tbody - Row Three - Cell Two <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Three - Cell Three <START>
                                    ."<td>\n"  
                                        ."&nbsp;\n"  

    //      Table One.One - Tbody - Row Three - Cell Three <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Three <END>
                                ."</tr>\n"  

    //      Table One.One - Tbody - Row Four <START>
                                ."<tr>\n"  

    //      Table One.One - Tbody - Row Four - Cell One <START>
                                    ."<td>\n"  
                                        ."&nbsp;\n"  

    //      Table One.One - Tbody - Row Four - Cell One <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Four - Cell Two <START>
                                    ."<td>\n"  

    // ====================================>>>
    //          Table One.One.Three <START>
                                        ."<table class=\"nsAuthor\">\n"  

    //          Table One.One.Three - Tbody <START>
                                            ."<tbody>\n"  

    //          Table One.One.Three - Tbody - Row One <START>
                                                ."<tr>\n"  

    //          Table One.One.Three - Tbody - Row One - Cell One <START>
                                                    ."<td>\n"  
                                                        .""._POSTEDBY.": $info[informant] "._ON." $info[longdatetime] \n"  

    //          Table One.One.Three - Tbody - Row One - Cell One <END>
                                                    ."</td>\n"  

    //          Table One.One.Three - Tbody - Row One - Cell Two <START>
                                                    ."<td>\n"  
                                                        ."&nbsp; \n"  

    //          Table One.One.Three - Tbody - Row One - Cell Two <END>
                                                    ."</td>\n"  

    //          Table One.One.Three - Tbody - Row One <END>
                                                ."</tr>\n"  

    //          Table One.One.Three - Tbody <END>
                                            ."</tbody>\n"  

    //          Table One.One.Three <END>
    // ==================================>>>
                                        ."</table>\n"  

    //      Table One.One - Tbody - Row Four - Cell Two <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Four - Cell Three <START>
                                    ."<td>\n"  
                                        ."&nbsp;\n"  

    //      Table One.One - Tbody - Row Four - Cell Three <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Four <END>
                                ."</tr>\n"  

    //      Table One.One - Tbody - Row Five <START>
                                ."<tr>\n"  

    //      Table One.One - Tbody - Row Five - Cell One <START>
                                    ."<td colspan=\"5\">\n"  

    //      Table One.One - Tbody - Row Five - Cell One <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Five <END>
                                ."</tr>\n"  

    //      Table One.One - Tbody - Row Six <END>
                                ."<tr>\n"  

    //      Table One.One - Tbody - Row Six - Cell One <START>
                                    ."<td>\n"  

    //      Table One.One - Tbody - Row Six - Cell One <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Two <START>
                                    ."<td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Two <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Three <START>
                                    ."<td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Three <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Four <START>
                                    ."<td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Four <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Five <START>
                                    ."<td>\n"  

    //      Table One.One - Tbody - Row Six - Cell Five <END>
                                    ."</td>\n"  

    //      Table One.One - Tbody - Row Six <END>
                                ."</tr>\n"  

    //      Table One.One - Tbody <END>
                            ."</tbody>\n"  

    //      Table One.One <END>
    // ========================>>>
                        ."</table>\n"  

    // Table One - Tbody - Row One - Cell One <END>
                    ."</td>\n"  

    // Table One - Tbody - Row One <END>
                ."</tr>\n"  

    // Table One - Tbody <END>
            ."</tbody>\n"  

    // Table One <END>
    // ===============>>>
        ."</table>\n";
    ?>


    Forgive the extensive Table Break Comments, but I am trying to visualize the layout in text, and this is all I know to do. As you can see... $imprimir is not used at any other point in the file... nor is it used in other other file in this theme... I am just confused and could really use some help.

    Again, keep in mind... I am learning PHP / Postnuke with only VB(A) in my background... I do not know C/C## language formatting at all... I am buying PHP books as fast as I can afford them and ingesting them just as quickly... BUT I still do not KNOW PHP... much less postnuke... So PLEASE... be as simple as possible (without being rude please)...

    Thanks a million...

    --


    With the advent of modern technology, sites like Twitter, and the Facebook Virus...
    I think we should all breathe a collective sigh of relief that I got here in time...
    - randomblink
  • Yikes! I'll tell ya one thing right off the bat: With themes you are *much* better off coding HTML (or XHTML) as HTML and not echoed PHP. One of PHP strengths is that it can seamlessly go back and forth from PHP "mode" to HTML, letting you code each in their "native" format. See this post for details:
    Theme Guide: Tips fo…g and starter theme

    You'll also find a link to some of the story vars available to you in that post. The correct variable for the print icon & link (which does not appear above), for example, is $preformat[print], not "prin2". I'm not sure *what* they were trying to do with assigning that variable - perhaps using it so they could conveniently pass it off to one of those included HTML files that you mentioned?

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Nate...
    I gotta say thanks...
    Your little post REALLY helped ALOT...
    Kinda makes me feel a little stupid for PHP'ing the whole damn thing...
    But I think it would be worth the learning experience to undo it and have it running like you suggested...

    My only problem is...
    The lines like: ."\"Alternate\n"
    Are not as 'clean' when you have to do it in XHTML...

    .

    Or am I wrong here... See, like I said I am still learning PHP along with doing all this... So it is a little frustrating for me... I like my code to look clean... Ah well...

    I thank you again for you help... Completely invaluable...
    I can't wait to put it into play...
    Have to undo all the PHP'ing I have already done... (which is all of it) But I think the cleanliness of it all will be worth it...

    Thanks again...

    --


    With the advent of modern technology, sites like Twitter, and the Facebook Virus...
    I think we should all breathe a collective sigh of relief that I got here in time...
    - randomblink
  • randomblink

    Kinda makes me feel a little stupid for PHP'ing the whole damn thing...

    I wouldn't feel that way. The themes included with the current release of PN are not exactly the best examples and you'd be surprised at how many PHP "gurus" don't understand the simple fact about "breaking out" of PHP to code HTML. The new Xanthia templating system will likely rid us of that mess, though, and don't forget PHP *is* at your disposal in themes so you can do some pretty cool stuff with it as well as echo the time/date, random images, etc...

    As for the line with the IMG tag you quoted above, that is an "ugly" example of echoed PHP and the $GLOBALS[thename] is an optional (though recommended) variable to use an assigned theme name (and thus, directory) to reference images, etc... used in that theme.

    At the start of your theme you would have:

    Code

    $thename = 'MyTheme';


    Then in the HTML (not echoed PHP) it could be:

    Code

    <img src="themes/<?= $GLOBALS[thename] ?>/images/logo.gif" alt="Alternate Text Here">


    If you then wanted to make another theme based on the current one, you could just make a copy of it to a different directory under your themes directory, change the $thename variable to the name of the directory and viola!

    Similar methods are used with the $bgcolor vars to allow you to change the color scheme of a theme in one swipe!

    Here a bonus post for you:
    many F.A.Tweaks">"VersaTheme" Starter…e w/many F.A.Tweaks
    And if you really want to see PHP at work in themes:
    Theme Add-in: Indivi…ain Pages & Modules
    HOW TO: Group Topic …wspaper or magazine
    HOW TO: Links to Rel…s for Article Pages
    HOW TO: Alternating …e news block tricks

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • So with all this postnuke knowledge...

    Any chance you know how to build modules as well?

    --


    With the advent of modern technology, sites like Twitter, and the Facebook Virus...
    I think we should all breathe a collective sigh of relief that I got here in time...
    - randomblink
  • Well, I've done a hack to the blocks module to allow EZ placment of blocks on certain (or NOT on certain pages:
    Blocks Module Mod fo…acement w/PN themes
    It's pretty cool, IMO, and I was pleased with myself when I got it to work ;)

    And I'm just now writing my first "original" module, BlockHome, which can be set as your PN homepage and lets the admin specify any # of blocks in different columns & rows (groups) as well as display news stories, etc... for a nice custom homepage look.

    I started with the "Template" module that's included in the PN install that is meant to be used as a starting point for new modules. It's a bit tricky at first and I didn't code the output as they did (very confusing). See the Module Developer Guide and Postnuke API reference links on the left menu of these forums.

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • ACK!

    I have given up on them...

    I have taken the Template Module myself and am SLOWLY piecing the damn thing together... See, I have over 8 years experience build professional MS Access Databases... tons of VB coding, etc...

    I have a Database that they use at my job (that I built) that the Engineers use to track their Projects and Invoices and Consultants etc... Well, I have taken the pninit and pntables files in the Module Template and gotten that figured out so far... Now I am stuck...

    I am trying to build a Module so I can show Management and HOPEFULLY move OUT of my Office Admin spot INTO a Programming / Database Management position... I work for City Gov't and I hoping to sorta create a spot for me... I think if I can show them the potential of Postnuke, I MIGHT be able to get them to use it, even if it was JUST internally... it would be great... But if outside consultants could access their data as well... Well, the potential is exciting the hell outta me...

    Anyway, I was hoping I could find someone who could walk me through bits and pieces of the Template Module to help me build the functions...

    Thanks anyway... your help was invaluable AND friendly and that was greatly appreciated... Enjoy your weekend...

    --


    With the advent of modern technology, sites like Twitter, and the Facebook Virus...
    I think we should all breathe a collective sigh of relief that I got here in time...
    - randomblink
  • randomblink

    The theme I am using as the master is: SabadellClients

    There is a hack in our download area called "funcs.php" that allow to display the little "printer" icon at the bottom of news boxes...

    But maybe with this investigation, we can fix the themes to display the icon without the hack...

    http://imagicweb.com

    Thanks!

    Also now SabadellClients2 is aready fixed to run PostCalendar 4.0.0:

    http://imagicweb.com/new

    But we still like to receive your feedback !
  • nate_02631

    I started with the "Template" module that's included in the PN install that is meant to be used as a starting point for new modules. It's a bit tricky at first

    Have you tryed our Interactive Theme Design?

    http://imagicweb.com/dynamic/table.php

    It is still under beta (pre-release) , but I would like to receive your EXPERT comments.

    Thanks very much!
  • I'm note certain why a hack is necessary to display the printer icon & link, why not just use:

    Code

    $preformat['print']

    Or is there something I'm missing here?

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • nate_02631

    why not just use: $preformat['print']


    I'll try to do this, and post here if it runs.

    Thaks again
    --------------
    We start this series of themes from another series (soweluautomation.net) that came whit this problem.

    But now it's time for us to fix them, and better: to start the new themes from scratch, following the most standard PN directives...
  • jeanloui

    Have you tryed our Interactive Theme Design?

    Just took a look, while it is no substitute for getting your hands dirty, it's a great feature for those wanting a basic theme with their own custom color scheme.

    You might want to start a new post to solicit comments, but mine are:

    - I'm pleased to see you "exiting" PHP where you should and not coding "echoed HTML", though you do go a little astray in the themefooter and Open/Close Tabel sections.

    - Where you are generating the files for the users, I would be inclined to put all the HTML generated into the appropriate parts of the theme instead of generating an articlebox.html, etc... just personal preference and easier for the user to create...

    - In the page editor itself, why the need for all the "OK" buttons? Could you have the page as one large form and have a "REFRESH" button - this way the user could edit as many things as they like at once

    - Additionally, you could maybe use some JScript trickery to do an instant color change in some spots without needing a refresh (you've seen those scripts where you can click a link and the background changes, etc...)

    - Perhaps option to let the user pick different font groups, and a choice of placing site name or logo placeholder at top of page

    - Option perhaps to show left, right and/or center blocks on all pages or just home page, etc... and have the logic inserted for you...

    - Maybe some extra bells and whistle as outlined in this post too, would be cool...

    What a neat idea though -- very inspired work!

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • I tried it, but it didn't run (under this theme).

    The explanatton that I've found (from original theme creators) is the following:

    Quote

    I had to add a variable more, because the variable "$preformat[print]" didn't work me.
    the variable that I added is called" $preformat[ print2]."


    Hacked lines of funcs.php (309 - 316):

    Code

    // Allowed to read full article?
        if (pnSecAuthAction(0, $component, $instance, ACCESS_READ)) {
            $print = "<a class=\"pn-normal\" href=\"$links[print]\"><img src=\"images/global/print.gif\" border=\"0\" alt=\""._PRINTER."\"></a>";
            $print2 = "<a class=\"pn-normal\" href=\"$links[print]\"><img src=\"images/global/print.gif\" border=\"0\" alt=\""._PRINTER."\"></a>";
        } else {
            $print = '';
            $print2 = '';
        }


    Also lines hacked 356 -370:

    Code

    $preformat = array(
                           "bodytext" => $bodytext,
                           "bytesmore" => $bytesmorelink,
                           "category" => "<a href=\"$links[category]\">$info[cattitle]</a>",
                           "comment" => $comment,
                           "hometext" => $hometext,
                           "notes" => $notes,
                           "searchtopic" => "<a class=\"pn-normal\" href=\"modules.php?op=modload&amp;name=News&amp;file=index&amp;catid=&amp;topic=$info[tid]\"><img src=\"".pnConfigGetVar('tipath')."$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"left\" hspace=\"5\" vspace=\"5\" ></a>",
                           "print" => $print,
                           "print2" => $print2,
                           "readmore" => $readmore,
                           "send" => $send,
                           "title" => $title,
                           "version" => 1
                           );


    Hope this gives some light there...
  • If the user is using PostNuke, the print preformatted variable should, nay, *must* work. However, it is a good practice to surround the stuff in the brackets of array variables as sometimes the missing syntax can cause the problem. (remember, "print" is also a reserved PHP command) i.e.:

    Code

    $preformat['print']

    NOT

    Code

    $preformat[print]

    Use single or double quotes as necessary for correct syntax - former preferred...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Yours are the best critics to my system !!

    nate_02631

    - I'm pleased to see you "exiting" PHP where you should and not coding "echoed HTML", though you do go a little astray in the themefooter and Open/Close Tabel sections.

    My english is not very good (sorry): can you be more plain in that point?
    I'm trying to build XHTML as seen at:

    http://developer.apple.com/internet/bestwebdev.html

    Quote

    - Where you are generating the files for the users, I would be inclined to put all the HTML generated into the appropriate parts of the theme instead of generating an articlebox.html, etc... just personal preference and easier for the user to create...

    I will try your VersaTheme and see how it works..

    Quote

    - In the page editor itself, why the need for all the "OK" buttons? Could you have the page as one large form and have a "REFRESH" button - this way the user could edit as many things as they like at once

    I dont know how to refresh... I'm not good whit javascript... and people likes to see every change inmediately... The data are not stored in the database (they are all "dynamic", and only are stored when someone is going to "save" the theme) usually it's VERY difficult to make javascript obey -read and re-write- the PHP "dynamic-stored" variables...

    Quote

    - Additionally, you could maybe use some JScript trickery to do an instant color change in some spots without needing a refresh (you've seen those scripts where you can click a link and the background changes, etc...)

    I have tried some ones, but they didn't work with my "newbee" PHP..
    Perhaps in further versions...

    Quote

    - Perhaps option to let the user pick different font groups, and a choice of placing site name or logo placeholder at top of page

    - Option perhaps to show left, right and/or center blocks on all pages or just home page, etc... and have the logic inserted for you...

    This all will come when I have the basic interface full running...

    Quote

    - Maybe some extra bells and whistles

    I will take a CAREFUL look at your bells !

    Thanks!

Go to page 1 - 2 [+1]:

  • 0 users

This list is based on users active over the last 60 minutes.