The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Sun May 06, 2012 6:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 24, 2012 8:02 pm
Posts: 9
I hired someone on oDesk to create a Joomla template to mirror an existing html/java/css site, with positions for modules in specified places (see screenshot here http://offcampuscanes.com/zach/wpn_instructions.png

Here is the original site http://escue-polo.info/

Essentially, I wanted to be able to install the template to Joomla and have the site look like it did, except be able to modify the content in those 3 boxes, as well as have a newsfeed/blog component with a breadcrumb/navigation pane (also outlined in screenshot). I forgot to red box the menu which should also be a module not static. This is being done to add user registration / cms features.

Now, here is the index.php for his template (edit - In Next Post due to exceeding limit)... it doesn't have any of the original HTML whatsoever... it looks like he just created positions for all the div frames and changed all the css names as well so now if I want to manually insert content into those positions with custom html modules now none of the themes from the original html are the same. Am I correct in seeing this? Or just doing something incredibly wrong?


Thanks a lot to any replies... I just want to know what the hell this guy did lol... when I install it I have a pretty much blank template not resembling the original at all.


Top
 Profile  
 
PostPosted: Sun May 06, 2012 6:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 24, 2012 8:02 pm
Posts: 9
His Template's index.php
Code:

<?php
/**
 * @version                $Id: index.php 21518 2011-06-10 21:38:12Z chdemko $
 * @package                Joomla.Site
 * @subpackage   Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

// check modules
$showRightColumn        = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom                        = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft                        = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));

if ($showRightColumn==0 and $showleft==0) {
        $showno = 0;
}

JHtml::_('behavior.framework', true);

// get params
$color              = $this->params->get('templatecolor');
$logo               = $this->params->get('logo');
$navposition        = $this->params->get('navposition');
$app                = JFactory::getApplication();
$doc            = JFactory::getDocument();
$templateparams     = $app->getTemplate(true)->params;

$doc->addScript($this->baseurl.'/templates/beez_20/javascript/md_stylechanger.js', 'text/javascript', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
        <head>
                <jdoc:include type="head" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez_20/css/position.css" type="text/css" media="screen,projection" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez_20/css/layout.css" type="text/css" media="screen,projection" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez_20/css/print.css" type="text/css" media="print" />
<?php
        $files = JHtml::_('stylesheet','templates/beez_20/css/general.css',null,false,true);
        if ($files):
                if (!is_array($files)):
                        $files = array($files);
                endif;
                foreach($files as $file):
?>
                <link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
<?php
                 endforeach;
        endif;
?>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez_20/css/<?php echo htmlspecialchars($color); ?>.css" type="text/css" />
<?php         if ($this->direction == 'rtl') : ?>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez_20/css/template_rtl.css" type="text/css" />
<?php            if (file_exists(JPATH_SITE . '/templates/beez_20/css/' . $color . '_rtl.css')) :?>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez_20/css/<?php echo $color ?>_rtl.css" type="text/css" />
<?php            endif; ?>
<?php         endif; ?>
                <!--[if lte IE 6]>
                <link href="<?php echo $this->baseurl ?>/templates/beez_20/css/ieonly.css" rel="stylesheet" type="text/css" />

                <?php if ($color=="personal") : ?>
                <style type="text/css">
                #line
                {      width:98% ;
                }
                .logoheader
                {
                        height:200px;

                }
                #header ul.menu
                {
                display:block !important;
                      width:98.2% ;


                }
                 </style>
                <?php endif;  ?>
                <![endif]-->
                <!--[if IE 7]>
                        <link href="<?php echo $this->baseurl ?>/templates/beez_20/css/ie7only.css" rel="stylesheet" type="text/css" />
                <![endif]-->
                <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez_20/javascript/hide.js"></script>

                <script type="text/javascript">
                        var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%';
                        var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%';
                        var altopen='<?php echo JText::_('TPL_BEEZ2_ALTOPEN',true); ?>';
                        var altclose='<?php echo JText::_('TPL_BEEZ2_ALTCLOSE',true); ?>';
                        var bildauf='<?php echo $this->baseurl ?>/templates/beez_20/images/plus.png';
                        var bildzu='<?php echo $this->baseurl ?>/templates/beez_20/images/minus.png';
                        var rightopen='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTOPEN',true); ?>';
                        var rightclose='<?php echo JText::_('TPL_BEEZ2_TEXTRIGHTCLOSE'); ?>';
                        var fontSizeTitle='<?php echo JText::_('TPL_BEEZ2_FONTSIZE'); ?>';
                        var bigger='<?php echo JText::_('TPL_BEEZ2_BIGGER'); ?>';
                        var reset='<?php echo JText::_('TPL_BEEZ2_RESET'); ?>';
                        var smaller='<?php echo JText::_('TPL_BEEZ2_SMALLER'); ?>';
                        var biggerTitle='<?php echo JText::_('TPL_BEEZ2_INCREASE_SIZE'); ?>';
                        var resetTitle='<?php echo JText::_('TPL_BEEZ2_REVERT_STYLES_TO_DEFAULT'); ?>';
                        var smallerTitle='<?php echo JText::_('TPL_BEEZ2_DECREASE_SIZE'); ?>';
                </script>
<script>
   var isIE6                             = false;
    var MEDIA_URL                         = 'http://www.iwc.com/site_media/'; //for image links in the js, which there shouldn't be, but you never know...
   var LANGUAGE_CODE                     = 'en-us';

   // Localized URLS
   var url_SIGNIN                        = 'sign-in/index.html';
   var url_REGISTER                      = 'register/index.html';
   var url_WI_SUBSCRIBE                  = 'watch/international/subscribe/index.html';
   var url_CONTACT                       = 'contact/index.html';
   var url_FORGOT_PASSWORD               = 'forgot-password/index.html';
   var url_SHARE_EMAIL                   = 'share_email/index.html';
   var url_NEWSLETTER_SIGNUP             = 'newsletter/signup/index.html';
   var url_MCBE_ENTRY                    = 'mcbe/index.html';
    var url_MCBE_ENTRY_HONGKONG           = 'mcbe/hongkong/index.html';
   var url_PRIVACY                        = 'privacy/index.html';
   var url_SIDERALE_CONTACT              = 'siderale/contact/index.html';

   //STRINGS THAT NEED TO BE LOCALIZED FOR USE IN JAVASCRIPT
   var string_ERROR                      = 'Error';
   var string_PROBLEM_COMPLETING_REQUEST = 'There was a problem completing your request. Please Try Again Later';
   var string_UNSAVED_CHANGES            = 'You have unsaved changes. Are you sure you want to switch tabs?';
   var string_SAVING                     = 'Saving...';
   var string_LOADING                    = 'Loading...';
   var string_FIELD_REQUIRED             = 'This field is required';
   var string_VALID_EMAIL                = 'Please enter a valid email address';
   var string_LIGHTS_OFF                 = 'Lights\u003Cbr/\u003EOff';
   var string_LIGHTS_ON                  = 'Lights\u003Cbr/\u003EOn';
   var string_VIEW_BACK                  = 'View Back';
   var string_VIEW_FRONT                 = 'View Front';
   var string_OF                         = 'of';
   var string_PREV                       = 'prev';
   var string_NEXT                       = 'next';
   var string_IMAGE_VIEWER               = 'Image Viewer';
   var string_CLICK_DRAG_EXPLORE         = 'Click and drag\u003Cbr /\u003Eto explore';
   var string_VIEWER_INSTRUCTIONS        = 'Use the controls on the right\u003Cbr /\u003Eor press ESC to exit.';
   var string_CLOSE_RETURN               = 'Close \u0026amp\u003B Return';
   var string_ZOOM_IN                    = 'Zoom In';
   var string_ZOOM_OUT                   = 'Zoom Out';
   var string_SHARE                      = 'Share';
   var string_DOWNLOAD_HI_RES            = 'Download Hi\u002DRes Image';
   var string_EXPAND_FOR_ANSWER          = 'Expand for full answer';
   var string_COLLAPSE_ANSWER            = 'Collapse answer';
   var string_REGION                     = 'Region';
   var string_ADDRESS                    = 'Address';
   var string_BOUTIQUE                   = 'Boutique';
   var string_AUTHORIZED_RETAILER        = 'Authorized Retailer';
   var string_SERVICE_CENTRE             = 'Service Centre';
   var string_PHONE                      = 'Phone';
   var string_FAX                        = 'Fax';
   var string_EMAIL                      = 'Email';
   var string_WEB                        = 'Web';
   var string_VIEW_MAP                   = 'View Map';
   var string_CONTACT                    = 'Contact';
   var string_COMMENTS                   = 'Comments';
   var string_COUNTRY                    = 'Country';
   var string_CITY                       = 'City';
   var string_NO_CITIES                  = 'No Cities Available';
   var string_NO_RESULTS                 = 'No Results';
   var string_READ_MORE                  = 'Read More';
   var string_SECONDS                    = 'Seconds';
   var string_MINUTES                    = 'Minutes';
   var string_HOURS                      = 'Hours';
   var string_DAYS                       = 'Days';
   var string_COLLAPSE_COMMENTS          = 'Collapse Comments';

   /* STAR CHART STRINGS */
   var string_VIEW_NORTH               = 'Northern Hemisphere';
   var string_VIEW_SOUTH               = 'Southern Hemisphere';
    var string_CONTACT_SIDERALE         = 'Contact IWC About the Portuguese Sidérale Scafusia';
    var string_SIDERALE               = 'Portuguese Sidérale Scafusia';
</script>
<!--[if IE 6]><script>isIE6 = true;</script><![endif]-->
<script src="<?php echo $this->baseurl ?>/templates/beez_20/js/iwc_bundle.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/beez_20/js/main.js"></script>
        </head>

        <body>
        <div id="pageHeader">
        <div class="navigation">
           <jdoc:include type="modules" name="position-1" />
           
            </div>
        </div>
        <div class="clr"></div>

                     


Top
 Profile  
 
PostPosted: Sun May 06, 2012 6:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 24, 2012 8:02 pm
Posts: 9
(continued)
Code:


<div id="all">
        <div id="back">
        <div class="banner">
         <jdoc:include type="modules" name="position-21" style="beezDivision" headerLevel="3" />
         
        </div>
                <!-- end header -->
                <div style="clear:both;"></div>
                        <div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
                                        <div id="breadcrumbs">

                                                       <div class="shareCon">
                                                       <div class="sharetxt">Share : </div>
                                                       <div class="shareBtn">
                                                       <jdoc:include type="modules" name="position-2" />
                                                       </div>
                                                        </div>

                                        </div>
                           <div class="conTop">
                                    <div class="col1">
                                    <jdoc:include type="modules" name="position-15" style="beezDivision" headerLevel="3" />
                                    </div>
                                       <div class="col2">
                                    <jdoc:include type="modules" name="position-16" style="beezDivision" headerLevel="3" />
                                    </div>
                                         <div class="col1">
                                    <jdoc:include type="modules" name="position-17" style="beezDivision" headerLevel="3" />
                                    </div>
                                    </div>
                                    <div class="conCenter">
                                    <div class="promo">
                                    <jdoc:include type="modules" name="position-18" style="beezDivision" headerLevel="3" />
                                    </div>
                                                                        <div class="promo">
                                    <jdoc:include type="modules" name="position-19" style="beezDivision" headerLevel="3" />
                                    </div>
                                                                            <div class="promo">
                                    <jdoc:include type="modules" name="position-20" style="beezDivision" headerLevel="3" />
                                    </div>
                                    </div>
                                        <?php if ($navposition=='left' AND $showleft) : ?>


                                                        <div class="left1 <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav">
                                                   <jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" />
                                                                <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
                                                                <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />


                                                        </div><!-- end navi -->
               <?php endif; ?>

                                        <div id="<?php echo $showRightColumn ? 'wrapper' : 'wrapper2'; ?>" <?php if (isset($showno)){echo 'class="shownocolumns"';}?>>

                                                <div id="main">

                                                <?php if ($this->countModules('position-12')): ?>
                                                        <div id="top"><jdoc:include type="modules" name="position-12"   />
                                                        </div>
                                                <?php endif; ?>

                                                        <jdoc:include type="message" />
                                                        <jdoc:include type="component" />

                                                </div><!-- end main -->

                                        </div><!-- end wrapper -->

                                <?php if ($showRightColumn) : ?>
                                        <h2 class="unseen">
                                                <?php echo JText::_('TPL_BEEZ2_ADDITIONAL_INFORMATION'); ?>
                                        </h2>
                                        <div id="close">
                                                <a href="#" onclick="auf('right')">
                                                        <span id="bild">
                                                                <?php echo JText::_('TPL_BEEZ2_TEXTRIGHTCLOSE'); ?></span></a>
                                        </div>


                                        <div id="right">
                                                <a id="additional"></a>
                                                <jdoc:include type="modules" name="position-6" style="beezDivision" headerLevel="3"/>
                                                <jdoc:include type="modules" name="position-8" style="beezDivision" headerLevel="3"  />
                                                <jdoc:include type="modules" name="position-3" style="beezDivision" headerLevel="3"  />
                                        </div><!-- end right -->
                                        <?php endif; ?>

                        <?php if ($navposition=='center' AND $showleft) : ?>

                                        <div class="left <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav" >

                                                <jdoc:include type="modules" name="position-7"  style="beezDivision" headerLevel="3" />
                                                <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
                                                <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />


                                        </div><!-- end navi -->
                   <?php endif; ?>

                                <div class="wrap"></div>

                                </div> <!-- end contentarea -->

                        </div><!-- back -->

                </div><!-- all -->

                <div id="footer-outer">
                        <?php if ($showbottom) : ?>
                        <div id="footer-inner">

                                <div id="bottom">
                                        <div class="box box1"> <jdoc:include type="modules" name="position-9" style="beezDivision" headerlevel="3" /></div>
                                        <div class="box box2"> <jdoc:include type="modules" name="position-10" style="beezDivision" headerlevel="3" /></div>
                                        <div class="box box3"> <jdoc:include type="modules" name="position-11" style="beezDivision" headerlevel="3" /></div>
                                        <div class="box box4"> <jdoc:include type="modules" name="position-16" style="beezDivision" headerlevel="3" /></div>
                                </div>


                        </div>
                                <?php endif ; ?>

                        <div id="footer-sub">


                                <div id="footer">

                                        <jdoc:include type="modules" name="position-14" />
                                        <p>
                                               © World Polo News. All Rights Reserved. <?php //echo JText::_('TPL_BEEZ2_POWERED_BY');?>
                                        </p>


                                </div><!-- end footer -->

                        </div>

                </div>
            <jdoc:include type="modules" name="debug" />
        </body>
</html>


Top
 Profile  
 
PostPosted: Sun May 06, 2012 7:29 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Aug 29, 2005 10:17 am
Posts: 11987
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
posting this code makes no sense. post a link makes sense since than we can see.

The Beez-template has been modified for sure but need to see

Leo 8)

_________________
--- Joomla Professional Support Services :: http://gws-desk.com ---
--- Joomla Professional and Specialized Hosting :: http://gws-host.com ---
--- Ready to Roll Joomla! Web Sites : 1 - 7 days only! :: @ gws-market.com ---


Top
 Profile  
 
PostPosted: Sun May 06, 2012 8:28 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 24, 2012 8:02 pm
Posts: 9
It's hosted at http://www.escuepolo.net

Original site is http://www.escue-polo.info


Top
 Profile  
 
PostPosted: Sun May 06, 2012 8:49 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Aug 29, 2005 10:17 am
Posts: 11987
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
This is not a correct template. Rudely stated it is crap. It depends how yo instructed the developer but this is not a proper Joomla template and won't do the job for you.

Leo 8)

_________________
--- Joomla Professional Support Services :: http://gws-desk.com ---
--- Joomla Professional and Specialized Hosting :: http://gws-host.com ---
--- Ready to Roll Joomla! Web Sites : 1 - 7 days only! :: @ gws-market.com ---


Top
 Profile  
 
PostPosted: Sun May 06, 2012 9:44 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 24, 2012 8:02 pm
Posts: 9
Okay thanks a lot man


Top
 Profile  
 
PostPosted: Mon May 07, 2012 2:51 pm 
Joomla! Guru
Joomla! Guru

Joined: Sat Jan 21, 2006 8:42 pm
Posts: 925
Posting the code makes sense... going to the link you only see the js and html not the php or jdoc statements.
Also it will do the job, the site just has no content what makes it look crapy and empty.
But I agree with one thing Leo wrote "Rudely stated it is crap.", the code you posted here is crap, you can easily see that the guy has no clue how to include module positions right, what brings lot of empty divs in your site.
Have I count right and there are 23 positions for modules^^, if http://www.escue-polo.info/ is the site you want in Joomla 6-8 positions are completely enough.


Top
 Profile  
 
PostPosted: Thu May 24, 2012 5:53 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu May 24, 2012 5:44 am
Posts: 4
What really happened here is you probably hired the wrong guy for the job. This really happens when you hire guys online.

I've got people from odesk who screwed up big time too. That's why now I only hire at Staff.com. I got better and more affordable employees there. Plus, you get to test them before hiring so these kind of problems won't really become an issue later on.


Top
 Profile  
 
PostPosted: Thu May 24, 2012 8:13 am 
Joomla! Guru
Joomla! Guru

Joined: Sat Jan 21, 2006 8:42 pm
Posts: 925
misshillary wrote:
That's why now I only hire at Staff.com.
Wow, unbelievable rates some of this guys have there, 10hr trial for $20 - $30 :eek:
I do for sure check some of them on one of my next projects.
"over twelve years of Web development experience" and $12.70/hr ... first candidate I guess, the guys I work with get this for 10mins


Top
 Profile  
 
PostPosted: Mon May 28, 2012 7:16 am 
Joomla! Intern
Joomla! Intern

Joined: Wed Jan 12, 2011 8:49 pm
Posts: 93
Man, I hoped you fixed contacted NOT paid per hour!!!!!!!!!!!


Top
 Profile  
 
PostPosted: Tue Aug 21, 2012 9:12 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Aug 21, 2009 12:40 pm
Posts: 75
Location: New Delhi, India
I agree. After taking a look at the code - we can see that the coder hasn't followed the Joomla practice at all and the best will be to create the template again from scratch.

RedEye wrote:
Posting the code makes sense... going to the link you only see the js and html not the php or jdoc statements.
Also it will do the job, the site just has no content what makes it look crapy and empty.
But I agree with one thing Leo wrote "Rudely stated it is crap.", the code you posted here is crap, you can easily see that the guy has no clue how to include module positions right, what brings lot of empty divs in your site.
Have I count right and there are 23 positions for modules^^, if http://www.escue-polo.info/ is the site you want in Joomla 6-8 positions are completely enough.

_________________
Sanjay Kumar
http://www.OpenSourceTechnologies.com - Joomla, PHP/MySQL Expert. Contact Us for your Open Source Projects.
http://www.OpenSourceUniverse.com - The First Social Networking Platform for Open Source Professionals, Users and Believers.


Top
 Profile  
 
PostPosted: Sat Feb 02, 2013 6:20 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jun 27, 2012 10:04 am
Posts: 3
Location: Kathmandu Nepal
Output matters, money matters, I see that guy has done good work


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group