Forum Support

 
Advanced Search


[1]

Offline sberry1963
Free Member
Posts: 40
Posted on: December 06, 2014, 12:07:20 PM

So, I'm curious about programming style.
This particular annoyance just doesn't go away.
in Vertex, you demand a HARD CODED path to the background image, which could EASILY be accomplished by adding
Code:
<?php echo $this->baseurl ?>
into the appropriate place rather than this.

As it stands, this FAULT creates a number of issues, such as the background image is not picked up on sub-menu items which, in order to get it to work causes a whole lot of other crap to be necessary - like creating copies of the style which in my experience hasn't worked all that well either (90% of the settings are totally ignored anyway - no point in a copy of the style)

So, my curiosity is this: Why is this continually ignored? This is not the first time I have mentioned this and it's present in EVERY template I have worked with. Why? What's the huge issue with fixing it? Who on earth uses absolute paths any more? Why dictate that we have to enter this path (and if you're like me and don't develop sites on a live domain - have to remember to go into the template and update all the paths yet again after the site launches - as if I don't already have enough to do when I launch the site anyway).

I have come up with a number of my own fixes to this, but ALL of them will be wiped out if I upgrade the damn template and I REALLY HATE wasting my time over asinine crap like this.
Logged

Offline sberry1963
Free Member
Posts: 40
Posted on: December 06, 2014, 12:22:38 PM

For anyone who is interested, here is the fix I have implemented for this single row.
Code:
<div id="s5_top_row2_area1" style="background-image: url(<?php echo $this->baseurl ?>/images/YOURIMAGENAME.jpg) !important;">

This line is located in the index.php file - at or around line 218

Beware. If you update the template, this will be wiped out. This is purely a coding issue.
Logged

Offline jonahh
Free Member
Posts: 23789 WWW
Posted on: December 08, 2014, 01:13:19 PM

Hello,

You can either add a full hard coded URL in or you can just type in an image name which then pulls from your image directory.  The second method is not a full hard coded URL
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.02 seconds with 23 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.