Solved

Virtuemart front end administration layout problem

Posted on 2010-11-29
56
1,704 Views
Last Modified: 2012-05-10
My all Frontend-Administration for non-Backend Users got funny layout after entering admin section. They got a very width screen for their page. that means, they need to move down slide bar to do anything or check anything. Also, I want to know how can change the link of the virtuemart http://virtuemart.net to my own site...


0
Comment
Question by:TonyReba
  • 30
  • 26
56 Comments
 
LVL 24

Expert Comment

by:lenamtl
ID: 34236006
Hi, it's hard to help but It's probably a css issue.
Which templates are you using (joomla admin template and VM template)?
Check if you have the problem in all browser.

Where is located the link you like to change?

We need more information to help ...
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34239880
I dont know exactly where to look for it , or edit code , I have tried looking on the template css file and index.php but is not there
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34248632
This is the funny layout screenshot. Also can someoone help me removing the link in the image right now goes to virtuemart . net .
funnylayout.doc
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249184
Ok I see Have you modified Joomla Admin template? is this the original admin template that you are using?
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34249328
I installed the eCommerce Bundle with Joomla!  , the template in use is called Ja Larix .
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249344
ok to change the link
edit
administrator\components\com_virtuemart\header.php
line 80
<a href="http://virtuemart.net" target="_blank">
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249365
Is this template modify the look and feel of the admin or just the frondend (the store)?
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34249450
the store in general front end. But the url of the front end administrator changes to :
http://mystore/dhrstore/index2.php?pshop_mode=admin&page=admin.show_cfg&option=com_virtuemart&Itemid=3


whereas all pages are usually  index.php
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249453
I'm not able to reproduce the glitch...
Which browser are you using, have you this glitch with all browser?

Do you have any errors displayed at the top?
You can enable debug mode to see these errors (from site / Global Configuration / System)
Because maybe hidden errors are generating this extra space...
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249474
Let say in admin section if you are in VM / Configuration like it is in your printscreen
the link shoulb be
http://localhost/joomla/administrator/index.php?option=com_virtuemart
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249493
Also try the extend layout link to see if it's render ok.
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249512
Ok I have just realize that you don't have these link in your image... have you edit these links?
when you change the image have you edit other line in the code?
also which vm version are you using?
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249540
I have attached an image
vm.jpg
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34249565
Which browser are you using, have you this glitch with all browser?
Yes, well tested on IE8 and Chrome.

Do you have any errors displayed at the top?
No
You can enable debug mode to see these errors (from site / Global Configuration / System)
Will try that ....

Version i am using is
VirtueMart 1.1.5 stable

0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249609
What is the size of you image logo, i suspect this may be the culprit..
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34249613
I edited the image to my own logo , but the link to virtuemart stays there..
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249632
try replace the orignal code to see if this fix it
re edit

administrator\components\com_virtuemart\header.php
line 80 to 82

<a href="http://virtuemart.net" target="_blank">
                        <img align="middle" hspace="15" src="<?php echo IMAGEURL ?>ps_image/menu_logo.gif" alt="VirtueMart Cart Logo" />
                  </a>
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34249643
image is 75 x 60 pix
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249645
You logo need to be the same size as the VM logo otherwise it will break the template
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249726
ok logo seem the same size
if you put back the code is the template ok after?
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34249780
it is the same size
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249824
if you put back the code is the template ok after?
Do this is this fix it's related we need to know if it's related or not, you see...

try replace the orignal code to see if this fix it
re edit

administrator\components\com_virtuemart\header.php
line 80 to 82

<a href="http://virtuemart.net" target="_blank">
                        <img align="middle" hspace="15" src="<?php echo IMAGEURL ?>ps_image/menu_logo.gif" alt="VirtueMart Cart Logo" />
                  </a>
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34249897
I think you should put back the original header.php page (check in the VM package you will need to unpacked first)
you have removed the links Simple layout and Extend layout
and you edit the logo so it's appear that while editing these two area this affect the template.

Maybe just put back the original header.php file and start your modification one at the time till you discover what create the problem.

0
 
LVL 9

Author Comment

by:TonyReba
ID: 34250078
No that does not fix is it,, I tried putting back originally settings..

Is there any way I can assign a template layout to this page??

0
 
LVL 9

Author Comment

by:TonyReba
ID: 34250105
Do you know how do i remove the configuration menu item ? I think thats the only one that makes the menu go up and down...
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34250668
Ok could you confirm if this happening only with menu item...

Quick fix is to use the extend layout only.

You can assign a template / css for this component
I did it once for a special report component, I will have to check the code I don't remember exactly what to do but this is

As VM offer 2 option by checking the code so this is possible to take this model and add an extra template.

I will make a test an get back to you.
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34250812
thanks yes is only that menu item which moves the menu once the main container grows....

can you pershaps tell me how to remove other menu items as well? I dont want the store admin to see all options, only orders, users, and reports....??
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34252095
Any Luck?
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 24

Expert Comment

by:lenamtl
ID: 34253951
Hi will get back to asap.
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34254338
Thanks!!
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34258179
Hello lenamtl ,  did you happen to find the modification in your code?
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34258554
I got rid of all the menu items I don't need to show on the front end. And that is making the trick to avoid showing configuration, now? is there any way to tell the menu in CSS that stay in the top of the page?
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34266564
I think it will more flexible for you to use a Backend (admin section) ACL to manage what they can do or see...just removing the menu item will not preven them to modify conten if they fin out the url.

I have used Juga  in the past for preventing my customer to modify settings.
http://extensions.joomla.org/extensions/access-a-security/backend-a-full-access-control/2587

Try one of these:
http://extensions.joomla.org/extensions/access-a-security/backend-a-full-access-control

This new one seems very interesting
http://extensions.joomla.org/extensions/access-a-security/backend-a-full-access-control/7010
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34266789
Thanks for all your help, one last questions is, do you happen to know how to modify the css so the admin menu in front end dont move down when the main div is to wide?  Can I copy and have a different menu in  front end?
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34267126
yes it is possible by the way the admin section is called Backend not Frontend, Frontend is the part that can be view by visitors.

Check this list for admin navigation plugins:
http://extensions.joomla.org/extensions/administration/admin-navigation

I like this one
Component listing
http://extensions.joomla.org/extensions/administration/admin-navigation/5778

and this one
Shortcuts for Joomla Backend
http://extensions.joomla.org/extensions/administration/admin-navigation/8176

Also check here for all admin goodies
http://extensions.joomla.org/extensions/administration

Good luck!
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34267474
Yes I meant frontend administration, when I type admin credentials on virtuemart login control. does it makes sense?
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34268684
When you logged
from www.yousite.com
or
from www.yoursite.com/administrator

0
 
LVL 9

Author Comment

by:TonyReba
ID: 34269862
1st one , please see attached word document in this post.
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34270079
When checkit I tought it was from the admin side...because the joomla admin buttons are there...
I never used frontend login for VM admin, I didn't know that was possible.
How you did that?
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34270218
i use created and user and gave hin store admin privileges, so once he logs in o the front end he sees a link admin. and he sees this panel.
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34274831
ok I see
I'll check that
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34274877
I spoke to one of my friend he is using this component for the frontend access control
http://extensions.joomla.org/extensions/access-a-security/frontend-access-control/7020

here is the complete list
http://extensions.joomla.org/extensions/access-a-security/frontend-access-control
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34282977
Can you help with the original question of this topic , I need to fix the layout so the menu on the left stay on the left top, right now it moves when main container expands.......

0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34287832
I have try to download the template but I'm no more a member from joomlart
without the template it's hard to help.

Have you tried to swich to default template for a moment and see if you have the same glitch.
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34301675
I change to JA_purity and the menu does not move on this one, which is what i want.. is there anything I can modify on ja-larix template to avoid this issue?
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34301854
I guess my question now, is , how do I assign the purity template to an specific url?? I tried assigning to a menu item for the front end administration, but i would not take it ,,

this is the url
store/index2.php?pshop_mode=admin&page=store.store_form&option=com_virtuemart&Itemid=3
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34302195
What I usually do is to compare both template script & css to find the code to modify.

You can use free application like winmerge to achieve this: http://winmerge.org


To assign different template to a page or item
Go in admin area, extensions / template manager
select another template (different from default)
click edit and Select page and itmes from the list

http://docs.joomla.org/How_do_you_assign_a_template_to_a_specific_page%3F
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34302226
How would I assign this to index2.php (I think this is what used on the back end?)
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34302340
Depending where index2.php is located is for different thing.
Why you want to assign a template to index2.php?

If you want to assign differents template for Admin side
You will need to install a second template and
Go in admin area, extensions / template manager
click on administrator link
select another template (different from default)
click edit and Select page and itmes from the list

0
 
LVL 9

Author Comment

by:TonyReba
ID: 34302402
I want to apply the purity template in the front end aministration because when I tested and made it thge default, that got rid of the front end menu going to the center of the page,.,,  So i looked and the front end admin uses the index2.php to render all the functions on the front end admin,,, bu I tried creating a external link and assigning to a menu item, (admin front end) and it doesnt take it..

Sorry my english is very bad so here are some screenshots, thanks!
 configuration.doc
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34304979
Hello Lena, did you hyave the chance of reviewing the document ?
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34306705
Hi sorry,

I'm back home now I will read the document now.
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34306736
ok I will try to reproduce the same I'll be back in few minutes
0
 
LVL 24

Expert Comment

by:lenamtl
ID: 34307266
ok first try with this menu link instead:
index.php?pshop_mode=admin&page=store.store_form&option=com_virtuemart&Itemid=3

I'm not able to reproduce  your problem.
And your main template is a very old one 16 August 2007

Maybe you should check for a more recent one that will work ok with Joomla 1.5x (it is compatible but need legacy mode I beleive)
This is probably the best solution, or try to contact them, because this is a commercial template I suppose they can give you support...
0
 
LVL 9

Author Comment

by:TonyReba
ID: 34310201
can you recommend me another template?  So I cannot hack the code to tell joomla I want to use milkiway teamplte style into the index2?
0
 
LVL 24

Accepted Solution

by:
lenamtl earned 500 total points
ID: 34310984
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now