images js blog.png blog_entry.php default.php default.png description.txt full.php full.png left_sidebar.php main.css sidebar_left.png styles.css thumbnail.png typography.css
These are from the theme I want to use called "Halloween". It had a broken members page after install that required view.php so I created the view.php you see here, now the page loads correctly but doesn't have the members area on it.
img default.css default.php description.txt license-readme.txt thumbnail.png typography.css view.php
I tried duplicating the view.php from the Imagine theme and it did give me the members area but the page was a mess so I deleted it and now have just a blank default page.
Try - concrete/single_pages
If you would like I will change the theme back to the one that has the working members page. Return and look now if you will.
$v = View::getInstance(); $v->setThemeByPath('/members', "your theme name here");
This will override the concrete member's page.
/config/site_theme_paths.php=(returned this back to normal)
then went to.
concrete/config/themes_paths.php
$v->setThemebypath('/members',VIEW_CORE_THEME);
only problem is it doesn't have any theme, but has both our member ID's and avatar. Also now when you click the name it goes to a blank profile page, no more edit options, but this is themed.
Really appreciate you coming back to help me on this.
$v = View::getInstance(); $v->setThemeByPath('/members', "Halloween");
Now, in the theme_paths.php, you should be able to set VIEW_CORE_THEME to "Halloween" or whatever your theme name is. All this is doing is applying your theme to that page type.
http://www.nailglamz.com/index.php/members/...
An unexpected error occurred.
File not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files.
"UPDATE"***************************************************************
Hopefully I can explain all this, maybe no one else cares lol.
Here we go,
None of the above worked unfortunately, still big ups to "Sniggity" would have never figured this out without you!
Conclusion: I had to create a file inside,
/packages/theme_halloween/themes/halloween
Name: View.php
Contents: /packages/theme_halloween/themes/halloween/default.php
after
<?php $a = new Area('Main'); $a->display($c); ?>
/concrete/single_pages/members.php
Looks like this
<?php $a = new Area('Main'); $a->display($c); ?> <?php defined('C5_EXECUTE') or die("Access Denied."); ?> <div id="ccm-profile-wrapper"> <form method="get" action="<?php echo DIR_REL?>/<?php echo DISPATCHER_FILENAME?>"> <?php echo t('Search');?> <input type="hidden" name="cID" value="<?php echo $c->getCollectionID()?>" /> <input name="keywords" type="text" value="<?php echo $keywords?>" size="20" /> <input name="submit" type="submit" value="<?php echo t('Search')?>" /> </form> <h1><?php echo t('Members');?></h1> <?php if ($userList->getTotal() == 0) { ?> <div><?php echo t('No users found.')?></div> <?php } else { ?> <div class="ccm-profile-member-list"> <?php
Ya Buddy!
Fatal error: Call to a member function getTotal() on a non-object in /hermes/bosweb/web201/b2019/ipg.nailglamz/packages/theme_halloween/themes/halloween/view.php on line 33
Any input would be greatly appreciated.
To Display the User's Name(change to getUserID if preferred)
And to display the user's avatar:
I believe that should do the trick. I tested it a little on my own install and it seemed to do what you were inquiring about.