Jump to content

smile

Members
  • Posts

    34
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

smile's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, I'm using gallery2 v2.3. I want to use miniCMS module to be able to write articles in my gallery site. I have installed the miniCMS module and it works fine. The problem I'm having is that front page is assigned a default article from miniCMS. This frontpage article is shown by changing main.php file. By adding this code: $rewritePath = (isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'path']) ? $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'path'] : null); $itemId = (int)(isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId']) ? $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId'] : null); $page = (int)(isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'page']) ? $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'page'] : null); if (empty($viewName) && !$gallery->isEmbedded() && empty($itemId) && empty($rewritePath) && empty($page)) { $viewName = 'minicms.Show'; GalleryUtilities::putRequestVariable('view', $viewName); While this code works fine as expected it disables the administrator from seeing root gallery, that means user created albums and permissions. So I thought that I can use if statement to solve this. if ( $user.isGuest == 1 ) { $rewritePath = (isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'path']) ? $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'path'] : null); $itemId = (int)(isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId']) ? $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'itemId'] : null); $page = (int)(isset($_GET[GALLERY_FORM_VARIABLE_PREFIX . 'page']) ? $_GET[GALLERY_FORM_VARIABLE_PREFIX . 'page'] : null); if (empty($viewName) && !$gallery->isEmbedded() && empty($itemId) && empty($rewritePath) && empty($page)) { $viewName = 'minicms.Show'; GalleryUtilities::putRequestVariable('view', $viewName); } } else { } if ( $user.isGuest == 1 ) { true part } } else { } If I reverse like this if ( $user.isGuest == 0 ) then the true part fires, if if ( $user.isGuest == 1 ) it does not. But the problem is if I login that makes no difference. So I think this means the problem is "$user.isGuest" the gallery2 can't understand this, the other part "== 0" or "== 1" just reverses the if-statement. The only variable explanation I found is http://codex.gallery2.org/Gallery2:Themes:Reference:Variables but it is for templates not php file. debug shows "Use of undefined constant isGuest - assumed 'isGuest' in" I'm trying to exclude or include part of code into main.php depending if user is logged in or not.
  2. Hi, I try to use PHP report maker (http://www.hkvstore.com/phpreportmaker/) to make a graph like this: Can't seem to undertand how to make it. The graph is drawn from top to bottom and there is only 1 dropdown to fill one series field. Since I need to show multiple fields from left to right I don't know how to do it.
  3. Hi, I have gallery 2 permission problem. The gallery gives user too much permission even edit their own permissions that I don't need user to be able to do. See http://rapidshare.com/files/208073251/useralbum.rar.html I have two files: 1. Original file UserAlbumHelper.class 2. Modified older version file UserAlbumHelper__uncomment.class The UserAlbumHelper__uncomment.class file was working for older gallery 2 version and was created by friendly forum member. But since gallery 2 support forum is dead. I try to get help here. I'm not very good at PHP so I could not make a working version out of 2 files. If you can help me and understand how to modify the original file to make it like UserAlbumHelper__uncomment.class that would be awesome. Thanks.
  4. Hi, want to use Fedora 1.5 bottom spotlight on my Bellatrixv1.1 1.5 template. css_ok.jpg - How I need it to look like jpg.gif css_problem.jpg - The problem zip.gif css_problem.zip - zipped file with fedora and bellatrix css and index files Is does not work right. The modules is repeated 3 times somehow too Here is my original bellatrix bottom spotlight code: Old bottom header form CSS file: /*old bottom header #ja-botsl { background: url(../images/botsl-bg.gif) top left repeat-x #545C66; color: #C6CED9; padding: 15px 20px; } #ja-botsl a { color: #C6CED9; } .ja-box { float: left; overflow: hidden; } #ja-botsl h3 { padding: 0; margin: 0 0 5px; color: #FFFFFF; font-size: 1em; } #ja-botsl div.moduletable { margin: 0 20px 0 0; padding: 0; } #ja-botsl ul { padding: 0; margin: 0!important; } #ja-botsl li { padding: 0; margin: 0; background: none; line-height: 170%; } #ja-botsl li a { padding-left: 13px; background: url(../images/arrow-readon.gif) no-repeat 0 50%; text-decoration: none; } #ja-botsl li a:hover, #ja-botsl li a:active, #ja-botsl li a:focus { color: #5FA4FB; background: url(../images/arrow-readon2.gif) no-repeat 0 50%; text-decoration: none; } #ja-botsl td { padding: 0; } #ja-botsl .article_separator, #ja-topsl .article_separator { display: none; } #ja-botsl table, #ja-topsl table { border-spacing: 0; border-collapse: collapse; } .box-ended div.moduletable { margin-right: 0!important; border: none!important; } end old bottom header*/ New code from Fedora bottom header form CSS file: does it need changing to adapt to bellatrix template? /*start bottom header beta /* Bot spotlight */ element.style { height:211px; width:20%; } /* Spotlight Box Style */ .ja-box-full, .ja-box-left, .ja-box-center, .ja-box-right { float: left; overflow: hidden; } .ja-box-left, .ja-box-center { } #ja-botsl { color: #CCCCCC; background: url(../images/pat3-1.gif) #666666; } #ja-botsl h3 { color: #FFFFFF; font-size: 115%; background: none; border-bottom: 1px solid #999999; margin-bottom: 0; margin: 0 0 5px; padding: 0 0 5px; } #ja-botsl div.moduletable { padding: 15px; } #ja-botsl .ja-box-full, #ja-botsl .ja-box-left, #ja-botsl .ja-box-center, #ja-botsl .ja-box-right { border-top: 5px solid #CCCCCC; } #ja-botsl .ja-box-full:hover, #ja-botsl .ja-box-left:hover, #ja-botsl .ja-box-center:hover, #ja-botsl .ja-box-right:hover { border-top: 5px solid #E6E6E6; background: url(../images/pat3-2.gif) #787878; color: #FFFFFF; } #ja-botsl .ja-box-full:hover a, #ja-botsl .ja-box-left:hover a, #ja-botsl .ja-box-center:hover a, #ja-botsl .ja-box-right:hover a { color: #FFFFFF; } #ja-botsl ul, #ja-botsl ol { margin: 0; padding: 0; } #ja-botsl ol li { margin: 0 0 0 20px; padding: 0; } #ja-botsl ul li { margin: 0; padding: 4px 4px 6px; background: url(../images/dot.gif) repeat-x bottom; } #ja-botsl a { display: block; color: #CCCCCC; } #ja-botsl li a:hover, #ja-botsl li a:active, #ja-botsl li a:focus { color: #FFFFFF; } /*end bottom header beta*/ Old bellatrix index php code <!-- BEGIN: BOTTOM SPOTLIGHT --> <div id="ja-botsl" class="clearfix"> <?php if ( $this->countModules('user1') ) { ?> <div class="ja-box<?php echo $user1divstyle; ?>" style="width: <?php echo $divbotwidth ?>;"> <jdoc:include type="modules" name="user1" style="xhtml" /> </div> <?php } ?> <?php if ( $this->countModules('user2') ) { ?> <div class="ja-box<?php echo $user2divstyle; ?>" style="width: <?php echo $divbotwidth ?>;"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php } ?> <?php if ( $this->countModules('top') ) { ?> <div class="ja-box<?php echo $topdivstyle; ?>" style="width: <?php echo $divbotwidth ?>;"> <jdoc:include type="modules" name="top" style="xhtml" /> </div> <?php } ?> </div> <!-- END: BOTTOM SPOTLIGHT --> New bellatrix code <!-- BEGIN: BOTTOM SPOTLIGHT --> <div id="ja-botsl" class="clearfix"> <?php if( $this->countModules('user1') ) {?> <div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user2') ) {?> <div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('top') ) {?> <div class="ja-box<?php echo $botsl['top']['class']; ?>" style="width: <?php echo $botsl['top']['width']; ?>;"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php } ?> </div> <!-- END: BOTTOM SPOTLIGHT --> [attachment deleted by admin]
  5. Hi, I use Joomla CMS and need help with template. I need help with my menu CSS colors. Here is picture What it looks like and what I need it to be: My Problem: When I select second level menu item the first level menu background color is lost. Here is my CSS code: /* MAIN NAVIGATION --------------------------------------------------------- */ #ja-mainnav { float: left; width: 100%; font-size: 1em; line-height: normal; background: #646E7B; border-bottom: 5px solid #4F96F8; } #ja-subnavwrap { clear: both; float: left; width: 100%; background: #4F96F8; border-bottom: 5px solid #4F96F8; } #ja-subnav { padding: 0 10px; } /* Default Joomla! Menu */ a.mainlevel { padding: 3px; border-bottom: 1px solid #C6CED9; display: block; color: #646E7B; text-decoration: none; } a.mainlevel:hover { color: #4F89D2; background: #DFE5EC; text-decoration: none;} a.mainlevel:active { color: #4F89D2; background: #DFE5EC; text-decoration: none; background:#4F89D2 none repeat scroll 0%; } a.mainlevel:focus { color: #4F89D2; background: #DFE5EC; text-decoration: none; } a.mainlevel#active_menu { background: #4F89D2; color: #FFFFFF; text-decoration: none; font-weight: bold; } a.sublevel { padding: 2px 4px 2px 12px; display: block; background: url(../images/bullet-list2.gif) no-repeat 2% 50%; text-decoration: none; color: #646E7B; } /* 2 lygio meniu - uzvedus pele --------------------------------------------------------- */ a.sublevel:hover, a.sublevel:active, a.sublevel:focus { text-decoration: none; background: url(../images/bullet-list3.gif) no-repeat 2% 50%; color: #4F89D2; font-weight: bold; } /* 2 lygio meniu - paspaudus --------------------------------------------------------- */ #active_menu { background: url(../images/bullet-list3.gif) no-repeat 2% 50%; color: #4F89D2; font-weight: bold; } #ja-rightcol a.mainlevel { border: none; } /*End: Default Joomla! Menu */
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.