Links not working in Profile page despite being Super admin
Permalink
Hi, this is my first site where I am using profile pages for a client.
Yes I've checked the permissions. Everything for Admin is checked.
I have enabled them and discovered that upon login I now go to a cool page with Admin at the top.
There are a list of attributes at the side that I'd like to add to.
However despite being the designer and builder of the website I can't seem to use the links displayed in the sidebar.
Edit
Avatar
Messages
Friends
are all links but I cant click them!
I sense I'm missing something here. Can someone point me in the right direction?
Also I'd like to add some new attributes for users to fill in at rego time and I know how to do that. But if someone knows a good link about all this profile page stuff and attributes I'd love to see it. I have looked in the documentation and seen some good things but if someone knows something special I'd love to hear from you.
Cheers
Nige
Yes I've checked the permissions. Everything for Admin is checked.
I have enabled them and discovered that upon login I now go to a cool page with Admin at the top.
There are a list of attributes at the side that I'd like to add to.
However despite being the designer and builder of the website I can't seem to use the links displayed in the sidebar.
Edit
Avatar
Messages
Friends
are all links but I cant click them!
I sense I'm missing something here. Can someone point me in the right direction?
Also I'd like to add some new attributes for users to fill in at rego time and I know how to do that. But if someone knows a good link about all this profile page stuff and attributes I'd love to see it. I have looked in the documentation and seen some good things but if someone knows something special I'd love to hear from you.
Cheers
Nige
Thanks for the reply.
I wondered that. Registered Users have no permissions yet but admins have all.
I thought being the admin with all the boxes ticked I should be able to use them.
I will give some permissions to registered users now and see if it makes a difference.
Cheers
P.S. It didn't make a difference. I suspect its the second option and I've just thought of a strong culprit...
I wondered that. Registered Users have no permissions yet but admins have all.
I thought being the admin with all the boxes ticked I should be able to use them.
I will give some permissions to registered users now and see if it makes a difference.
Cheers
P.S. It didn't make a difference. I suspect its the second option and I've just thought of a strong culprit...
Ahh, yes, just remembered you said you were admin. You should definitely be able to access all the links as admin.
Let me know if you find anything in CSS or JS...
Jon
Let me know if you find anything in CSS or JS...
Jon
Yep I sorted it. In view.php I use the same markup as the rest of the site but with one column. I had a pic box at the top that I hadn't put anything in. It was blocking the links so I deleted it.
Don't need across the page pics in profile pages...
Cheers for your help
Don't need across the page pics in profile pages...
Cheers for your help
I want to style my single pages to be consistent and I need a superfish menu at the top.
Rather than go into every relevant single page and add one I'd like to hard code the superfish menu into view.php.
All images have a url to hard code them into the html but how would I go about doing that to the superfish menu which is a block?
Not by copying in the entire js surely!! gulp
Any ideas?
Rather than go into every relevant single page and add one I'd like to hard code the superfish menu into view.php.
All images have a url to hard code them into the html but how would I go about doing that to the superfish menu which is a block?
Not by copying in the entire js surely!! gulp
Any ideas?
Hi,
I have my superfish menu hardcoded into my site, you can see the code here:
the code shows you both how to show it with a template, or just the normal view file..
hope this helps you :-)
I have my superfish menu hardcoded into my site, you can see the code here:
<? $bt = BlockType::getByHandle('superfish'); $bt->controller->displayPages = 'first'; $bt->controller->orderBy = 'display_asc'; $bt->controller->displaySubPages = 'all'; $bt->controller->displaySubPageLevels = 'custom'; $bt->controller->displaySubPageLevelsNum = '2'; $bt->controller->displayPagesIncludeSelf = '1'; $bt->controller->autoWidthMode = true; //$bt->render('templates/skovbakken/view'); $bt->render('view'); ?>
the code shows you both how to show it with a template, or just the normal view file..
hope this helps you :-)
Great.
If I copy that code into the relevant div tag my superfish will display?
Will it have the same style as the superfish menu I have styled and put into my scrapbook?
Thanks for this.
P.S. It works brilliant but how can I style it?
If I copy that code into the relevant div tag my superfish will display?
Will it have the same style as the superfish menu I have styled and put into my scrapbook?
Thanks for this.
P.S. It works brilliant but how can I style it?
If you want to have something from the scrapbook to show, this is the approach!
(replace your scrapbook item name)
(replace your scrapbook item name)
$block = Block::getByName('My Scrapbook Item'); $block->display();
Wow that is brilliant thank you.
Except it didn't work
[code]
<div id="nav">
<?php
$block = Block::getByName('Superfish');
$block->display();
?>
</div>
What have I done wrong?
Except it didn't work
[code]
<div id="nav">
<?php
$block = Block::getByName('Superfish');
$block->display();
?>
</div>
What have I done wrong?
used the global scrapbook and gave it a name.
It worked and its styled perfectly...
BUT when I check the other single pages the styling hasn't come through.
They all use view.php...
Aaargh thats crazy. I've just done this, and its brilliant thanks a lot, with two other items and it worked perfectly styling everything, but NOT with Superfish. When I look at the other pages its just like an autonav.
Anyway thanks a lot for that help my understanding just doubled!
It worked and its styled perfectly...
BUT when I check the other single pages the styling hasn't come through.
They all use view.php...
Aaargh thats crazy. I've just done this, and its brilliant thanks a lot, with two other items and it worked perfectly styling everything, but NOT with Superfish. When I look at the other pages its just like an autonav.
Anyway thanks a lot for that help my understanding just doubled!
Nige,
you have to load all the vars required for the block to display correctly.
The best way to figure out what is needed is open up the superfish block controller, and look at the save function. Those would be all the vars that need to be defined.
each one of those needs to be represented.
here is an example of hard coding the autonav. you can see here how to reference the controller vars.:
Pixel8's post above should be correct and work for you.
you have to load all the vars required for the block to display correctly.
The best way to figure out what is needed is open up the superfish block controller, and look at the save function. Those would be all the vars that need to be defined.
each one of those needs to be represented.
here is an example of hard coding the autonav. you can see here how to reference the controller vars.:
$bt_main = BlockType::getByHandle('autonav'); $bt_main->controller->displayPages = 'top'; $bt_main->controller->orderBy = 'display_asc'; $bt_main->controller->displaySubPages = 'none'; $bt_main->render('templates/header_menu');
Pixel8's post above should be correct and work for you.
Thanks Chad.
Yes Pixel8s post did work, but only for one page and I don't understand why because they are all single pages using view.php.
I will have a look at his explanation of hardcoding Superfish using the edit function for single pages.
I will also check out the save function in the block controller and see if thats a better option.
Cheers for your all the help. Learning more about profile pages and view.php has increased my understanding of C5 in general.
Its brilliant when it all works...
Thanks guys
Yes Pixel8s post did work, but only for one page and I don't understand why because they are all single pages using view.php.
I will have a look at his explanation of hardcoding Superfish using the edit function for single pages.
I will also check out the save function in the block controller and see if thats a better option.
Cheers for your all the help. Learning more about profile pages and view.php has increased my understanding of C5 in general.
Its brilliant when it all works...
Thanks guys
So 2 things to check - Does the "Registered Users" group have Read access to these pages?
And also, is there anything in your css or javascript that could be preventing the links from working?
Jon