11
pod
Re: What's this menu?
  • 2007/9/5 0:10

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


Menu with dynamic sublinks as found at peak.ne.jp:

<{php}> 
global 
$xoopsModule $xoopsUser ;
$xoops_url XOOPS_URL ;
$submenu_str "" ;
$mainmenu_str "
  <tr> 
    <td class='head_menu_left' width='15'>&nbsp;</td>
    <td class='head_menu'>
      <a href='
$xoops_url/'>HOME</a> |
      <a href='
$xoops_url/modules/news/'>NEWS</a> |
      <a href='
$xoops_url/modules/mydownloads/'>DOWNLOADS</a> |
      <a href='
$xoops_url/modules/xhnewbb/'>FORUMS</a> |
      <a href='
$xoops_url/modules/piCal/'>piCal</a> |
      <a href='
$xoops_url/modules/myalbum/'>myAlbum-P</a> |
    </td>
    <td class='head_menu_right'></td>
  </tr>
;
if( isset( 
$xoopsModule ) && is_object$xoopsModule ) ) {
    
$dirname $xoopsModule->getVar'dirname' ) ;
    
$mainmenu_str str_replace"/modules/$dirname/'" "/modules/$dirname/' style='background: #C0CCD9;'" $mainmenu_str ) ;
    
$sublinks =& $xoopsModule->subLink();
    if( 
count$sublinks ) > ) {
        
$submenu_str .= "  <tr>
    <td class='sub_menu_left' width='15'>&nbsp;</td>
    <td class='sub_menu'>
 &nbsp; &nbsp; " 
;
        foreach( 
$sublinks as $sublink ) {
            
$submenu_str .= "<a href='$xoops_url/modules/$dirname/{$sublink['url']}'>{$sublink['name']}</a> |
"
;
        }
        
$submenu_str .= "    </td>
    <td class='sub_menu_right'></td>
  </tr>
;
    }
} else {
    
$mainmenu_str str_replace"'>HOME</a>" "' style='background: #C0CCD9;'>HOME</a>" $mainmenu_str ) ;
    if( 
$xoopsUser ) {
        
$pm_handler =& xoops_gethandler('privmessage');
        
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
        
$criteria->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
        
$new_messages $pm_handler->getCount($criteria);
        if( 
$xoopsUser->isadmin() ) $admin_link "<a href='$xoops_url/admin.php' target='_blank'>Admin</a>" ;
        if( 
$new_messages ) {
            
$pm_str "<span style='color:#ff0000; font-weight: bold;'> ($new_messages)</span>" ;
            
$pm_class "class='highlight'" ;
        } else {
            
$pm_str '' ;
            
$pm_class '' ;
        }
        
$submenu_str .= "
        <tr>
          <td class='sub_menu_left' width='15'>&nbsp;</td>
          <td class='sub_menu'> &nbsp; &nbsp; 
            <a href='
$xoops_url/user.php'>View Account</a> |
            <a href='
$xoops_url/edituser.php'>Edit Account</a> |
            <a href='
$xoops_url/notifications.php'>Notifications</a> |
            <a href='
$xoops_url/viewpmsg.php' $pm_class>Inbox$pm_str</a> |
            
$admin_link
          </td>
          <td class='sub_menu_right'></td>
        </tr>
;
    }
}
echo 
$mainmenu_str ;
echo 
$submenu_str ;
<{/
php}>


This code is also included in MyXoopsExtensions 1.0.4 and better.

Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



12
pod
Re: How to build a Subscription to an RSS Feed
  • 2007/9/5 0:03

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


WebLinks from Happy Linux is another good utility for collecting RSS feeds.
Seehttp://linux2.ohwada.net/


Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



13
pod
Re: Uploading a Theme
  • 2007/9/5 0:00

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


You will need to upload your theme via FTP.

In FTP, navigate to yoursiteroot/themes - here you should see 3 folders. The 'default' folder contains your default theme. You can overwrite the theme.html file in this folder with your own, or you can create a new theme folder in your /themes/ directory & upload your theme files to that location.

If you create a new folder in the themes directory with your new theme files, you will then need to navigate to your XOOPS site admin > Preferences > General and select your new theme in 2 places - under 'Default Theme' and under 'Selectable Themes'. Also set "Check templates for modifications?" to Yes.


Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



14
pod
Re: New html page
  • 2007/9/1 4:19

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


There are many solutions for this (see CJayContent for instance) but I have a simple though somewhat unorthodox solution for integrating HTML pages into your XOOPS site available for download here.


Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



15
pod
Re: Clan Site Home Page
  • 2007/8/24 8:58

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


You can manage your front page content either by hard-coding it into your theme with an IF-Frontpage variable, or by populating your non-module front page with block content (the latter is the most common solution).

Go to System Admin > Blocks and start adding blocks to your top page from there. Be sure to set your group permissions if you want users who are not logged in to see your block content too.
www.myxoops.com - MyXoops Is Your XOOPS!



16
pod
Re: ADMIN CONTROL PANEL DOESN'T SHOW UP
  • 2007/8/24 8:52

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


You might also try turning off your antivirus/firewall before logging in to your XOOPS site. This usually works for me when I have the same problem.

Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



17
pod
Re: Clan Site Home Page
  • 2007/8/24 8:49

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


There are many ways to implement your static HTML content into your XOOPS site. A simple solution can be found here.

Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



18
pod
Re: blocks on system module
  • 2007/8/20 11:26

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


Say you're not using any center-right blocks on your system module pages... you could utilize the block position only on user.php by placing this code in your theme.html where you want the block in question to appear:

<{if $xoops_requesturi == "/your_xoops_root/user.php"}>
<{foreach 
item=block from=$xoops_crblocks}>
<
div class="blockTitle"><{$block.title}></div>
<
div class="blockContent"><{$block.content}></div>
<{/foreach}>  
<{/if}>


(I _think_ $xoops_requesturi is supported in 2.0.14 - someone correct me if I'm wrong.)

Of course if you are using center-right blocks on your system pages, you would replace the block part with left, right, or center blocks... whatever works for you.

Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



19
pod
Re: Need assistance inserting flash header into theme...
  • 2007/8/18 0:21

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


The code you have there in your original post should work. Check to be sure you have uploaded AC_RunActiveContent.js to your themes directory & have linked to it in the head of your theme like so:

<script src="<{$xoops_imageurl}>AC_RunActiveContent.js" type="text/javascript"></script>


This ensures cross-browser compatibility & optimal display of your Flash file.
Don't have AC_RunActiveContent.js? You can get it in the MyXoops Downloads section by downloading one of our Flash menu addons - it's in the /scripts/ folder.

Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!



20
pod
Re: cPanel question
  • 2007/8/4 5:16

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


Don't fear FTP, FTP is your friend.

Try SmartFTP here:http://www.smartftp.com/

Download, install, open it up.
In the top left input bar, simply type ftp.yoursite.com, then follow that by typing your username & your password into the appropriate spaces to the right of that. Click Connect.
Navigate to your themes folder & drag-and-drop your desired_theme folder over.
Isn't that easier than uploading your images 1-by-1?

I'm guessing the 'home, view account, download & forums' menu links are built into your theme, which (probably) is the reason you are seeing them at all. Go to Your XOOPS Admin > Groups > Anonymous & check the boxes of the blocks you would like to be able to view when you are not logged into your site. Hit submit.
If that doesn't help, go to blocks admin & be sure you set the blocks to be displayed in the right places on the appropriate pages.


Hope this helps!
www.myxoops.com - MyXoops Is Your XOOPS!




TopTop
« 1 (2) 3 4 5 ... 24 »



Login

Who's Online

165 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits