1
scoobster
Re: Extra mysql insert during registration
  • 2006/11/28 15:11

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


Hi James

I believe you need to edit the /kernel/user.php file to add another table insert after the XOOPS user table has been modified. The function is called insert and it's around line 510 depending on what other hacks you've already done!

Hope this helps.

scoobster



2
scoobster
Re: long time of load home page
  • 2006/6/24 9:20

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


I'd start off with analysing your pages with something like Web Page Analyser to see which areas of your site are bloated. There are a lot of images, perhaps reducing the number of news items would help, plus reducing the actual amount of text shown on the front page. Maybe even paginating articles at smaller intervals.

The site looks good, but are things like the background image really necessary?

It also looks like you're pulling in ads which will create delays.

I suggest you have a play around and see what works best as a compromise for you. At present your home page is over 700k, which in web terms is huge. If you can get it down to 100k (even this is quite large) it would be a lot better for people still on dial up, otherwise they'll just give up.



3
scoobster
Re: How to merge user menu with main menu together ?
  • 2006/6/23 8:57

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


This is the way I'd do it, but there's probably others.

In /modules/system/blocks/system_blocks.php

edit function b_system_main_show()

before
$block['lang_home'] = _MB_SYSTEM_HOME;


add
global $xoopsUser,$xoopsModule,$xoopsConfig;
    
$block = array();
      if (!
$xoopsUser) {
        
$block['lang_username'] = _USERNAME;
        
$block['unamevalue'] = "";
        if (isset(
$_COOKIE[$xoopsConfig['usercookie']])) {
            
$block['unamevalue'] = $_COOKIE[$xoopsConfig['usercookie']];
        }
        
$block['lang_password'] = _PASSWORD;
        
$block['lang_login'] = _LOGIN;
        
$block['lang_lostpass'] = _MB_SYSTEM_LPASS;
        
$block['lang_registernow'] = _MB_SYSTEM_RNOW;
        if (
$xoopsConfig['use_ssl'] == && $xoopsConfig['sslloginlink'] != '') {
            
$block['sslloginlink'] = "<a href="javascript:openWithSelfMain('".$xoopsConfig['sslloginlink']."''ssllogin'300200);">"._MB_SYSTEM_SECURE."</a>";
        }
      } else {
        
$pm_handler =& xoops_gethandler('privmessage');
        
$block['lang_youraccount'] = _MB_SYSTEM_VACNT;
        
$block['lang_editaccount'] = _MB_SYSTEM_EACNT;
        
$block['lang_notifications'] = _MB_SYSTEM_NOTIF;
        
$block['uid'] = $xoopsUser->getVar('uid');
        
$block['lang_logout'] = _MB_SYSTEM_LOUT;
        
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
        
$criteria->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
        
$block['new_messages'] = $pm_handler->getCount($criteria);
        
$block['lang_inbox'] = _MB_SYSTEM_INBOX;
        
$block['lang_adminmenu'] = _MB_SYSTEM_ADMENU;
        }

note the $xoopsConfig part.

Then in your /modules/system/templates/blocks/system_block_mainmenu.html file add:

<{if !$xoops_uname}> 
<
tr>
<
td>
<
form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post">
    <{
$block.lang_username}><br />
    <
input type="text" name="uname" size="12" value="<{$block.unamevalue}>" maxlength="25" /><br />
    <{
$block.lang_password}><br />
    <
input type="password" name="pass" size="12" maxlength="32" /><br />
    <
input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
    <
input type="hidden" name="op" value="login" />
    <
input type="submit" value="<{$block.lang_login}>" /><br />
    <{
$block.sslloginlink}>
</
form>
<
a href="<{$xoops_url}>/user.php#lost"><{$block.lang_lostpass}></a>
<
br /><br />
<
a href="<{$xoops_url}>/register.php"><{$block.lang_registernow}></a>
</
td>
</
tr>
<{else}>
  <
tr>
    <
td id="usermenu">
      <
class="menuTop" href="<{$xoops_url}>/user.php"><{$block.lang_youraccount}></a>
      <
a href="<{$xoops_url}>/edituser.php"><{$block.lang_editaccount}></a>
      <
a href="<{$xoops_url}>/notifications.php"><{$block.lang_notifications}></a>
      <
a href="<{$xoops_url}>/user.php?op=logout"><{$block.lang_logout}></a>
      <{if 
$block.new_messages 0}>
        <
class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}> (<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}></span>)</a>
      <{else}>
        <
a href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}></a>
      <{/if}>

      <{if 
$xoops_isadmin}>
        <
a href="<{$xoops_url}>/admin.php"><{$block.lang_adminmenu}></a>
      <{/if}>
    </
td>
  </
tr>
  <
tr>
    <
td>
    <
br />
    </
td>
  </
tr>
<{/if}>


after the first line

<table cellspacing="0">


Don't forget to then update your system module to pick up the changes.

Should do the trick.



4
scoobster
Re: Question about $GLOBALS['xoopsSecurity']->check()
  • 2006/6/22 15:54

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


I don't know if this is going to help you, but the ->check() part is checking whether there is a valid $_REQUEST['XOOPS_TOKEN_REQUEST'] posted as part of your form. There should be a hidden field with it in within each form. If it isn't there the validation fails and you get the re-direct you're experiencing.

This function is in /class/xoopssecurity.php if you care to take a look.



5
scoobster
Re: I've lost my login block
  • 2006/6/22 14:47

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


Call up /user.php to see the login page.



6
scoobster
Re: Install problems - don't understand the installation process
  • 2006/6/22 14:44

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


Have a look at the documentation site that MadFish has posted. It looks to me like you've not got the files uploaded to the correct place.

If your webserver has the files in (for example) /username/web/ folder for calling from www.yoursite.com then this is where all the html folder files should go. Calling the www.yoursite.com should then call /install/index.php automatically.



7
scoobster
Re: Install problems - don't understand the installation process
  • 2006/6/22 14:17

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


No problem. Don't forget to remove the install directory when you're finished otherwise someone can come and run it again!



8
scoobster
Re: Install problems - don't understand the installation process
  • 2006/6/22 14:11

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


You need to copy all the files in the html directory to the root of your site and then in your browserhttp://www.yoursite.com/install to start the installation wizard.



9
scoobster
Re: long time of load home page
  • 2006/6/22 9:47

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


Any chance you could post the URL so that I can have a look?



10
scoobster
Start Page Module
  • 2006/6/22 9:45

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


I am having trouble with the module for the start page of my site. The issue is that when I call up the website directlyhttp://www.mysite.com the News module is always displayed and not the module I want to be there. However, if I type inhttp://www.mysite.com/index.php it re-directs to my desired start page module.

It looks like the calling of index from the root has a problem - is this a setting on my web server that needs amending?

Thanks in advance.




TopTop
(1) 2 3 »



Login

Who's Online

143 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 143


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