1
kerrysl
Re: Resize photos in XCGAL
  • 2005/2/16 7:08

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


I had a look at my database on this and it would appear that the database only contains data about the image, and not the image itself.

It should therefore not be too difficult for a PHP script to be written that read each file in a directory, gets the image dimensions and filesize attributes and writes that to the database. It is certainly within the realms of doable.

The trickiest part would be matching the file with the right one in the database, but if the filenames are unchanged then this would not be too hard.



2
kerrysl
Re: Multi-Menu Question
  • 2005/2/12 2:53

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Anything is possible if you can isolate the right piece of code and modify it.

It is certainly possible to make a center/center block with a horizontal menu. In the templates for the multi-menu block you would need to change the code that causes each entry to start a newline, to one that creates a small space. You would need to be careful not to have too many items, and watch the item title length.

I am certainly confident that it could be done.



3
kerrysl
Re: WF-Section and artindex page
  • 2005/2/7 6:31

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


It took me a while to duplicate the problem. Yes it does produce a full listing and is probably not what most people would want.

Here is a fix:
Go to modules\wfsection\blocks\wfs_menu.php.
At line 49 find this line;
$wfsmenu['ctitle'] = "<a class="menuMain" href='".WFS_ROOT_URL."/index.php?category=".intval($myrow["id"])."'>".$myts->htmlSpecialChars(stripslashes($myrow["title"]))."</a>";

Change the "/index.php?category=" to "/viewarticles.php?category="

Save the file and upload. Your menu items should now take you to the sections list of articles only without any of the other sections showing.



4
kerrysl
Re: Time zone problem...
  • 2005/2/1 2:22

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


The problem is that code is not a timepiece. Simple program code cannot tell what time IT IS. It therefore needs the input of a time signal.

You basically have 3 choices for a time signal;
1. The time of the computer running as a server.
2. The time of the users computer
3. An external time signal.

Since your users can come from all over the place only options 1 and 3 are workable. The most common is option 1.

Even PHPBB will take the server time and use code that takes your Offset setting to correct to GMT. IF you don't supply the correct setting then you don't get the right time.

Xoops is no different.

So the steps are;
1. Read your server time with the php date() function running in a script on the server.
2. Calculate for yourself what this is offset from GMT.
3. Add that offset to the Server Time setting in Xoops.
4. IF most of your users are local to you, then set default to your local GMT offset. IF not set it to the expect timezone of the majority of users. Anonymous users will always see time based on this default.
(NOTE: My guess is that you have set Server and Default to the same offset. Therefore until you log in, your displayed times will be wrong.)
5. Set up your profile time offset for your local time zone.



5
kerrysl
Re: [MULTIMENU] Test the multiMenu 1.6
  • 2005/1/31 23:14

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Does this new version still have the restriction on submenus being in same directory as main entry?

I have got around this restriction, by adding a column to the multimenu01 database for main_id. Then on page load I check the database to read in this main_id and expand all menu items with the same main_id. Now my sub menus can come from anywhere within Xoops. Even remote (off-site) sub menu items will expand if they have the same main_id of a loaded page.

Only down-side I have found so far is if I go to a non-menu linked page (eg. different data in Calendar, then menus collapse.) However this is a small price to pay for the ability to pull calendars, news items, galleries, channel pages for one subject into sub menus for that main subject entry, and similar items into sub menus for a different subject main entry.

An example can be seen here
www.bobsrugby.com/index.php



6
kerrysl
Re: Checking out Multi Menu
  • 2005/1/30 23:07

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


With the new 1.5 version, is there a reason for the restriction that a submenu must be in the same directory as the main entry? I have a site where I want to use Multimenu to replace the standard MainMenu to put stuff according to subject category instead of function.

One issue I have is that in the varous subjects, the submenu items will be drawn from different modules and therefore different directories.

As main items the abilty to grab stuff from all over XOOPS install is brilliant. So why has this been limited in the sub-menu hack?

I am looking through the code and ready to remove the restriction unless there is a very good reason for it to be there.



7
kerrysl
Re: Graphical MySQL Tools
  • 2004/10/27 14:53

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


I have been down the same route as I am in the process of converting over to Linux from Windows.

On Windows I wouldn't go past MySQL Front. It is brilliant, especially if you can find the older versions (the free ones). On Linux the choices are more limited. I too like the look of Knoda and installed it. What a marathon that was. It was my first install from source and didn't have any of the compiler files installed. It took me 12 hours to get the thing up and running.

In the end I was very dissappointed. While its screens look great and the feature list looks good, it fell down when it came to handling SQL queries (even the queries it built itself). While it was happy with a "SELECT * FROM x", as soon as you added a WHERE clause it would error and not execute. It was quickly erased from the system.

I have now loaded MySQL Administrator and have MySQL Query Builder ready to go. I haven't had time to play with them yet but they look infinitely better than Knoda. All I want is something on Linux that will do what MySQL Front does. I am hoping the two programs from the people at MySQL will be the way to go.



8
kerrysl
Re: phpbb2 vs xoops 2.0.7.3
  • 2004/10/27 8:49

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Yes it is entirely possible. I have done it with my site (see my signature). As for step by step that is a bit harder because I have been playing with XOOPS for 2 weeks now so it all blends together.
However, something like this;
1. Install Xoops.
2. Get the X-PHPBB module files.
3. The install of X-PHPBB takes about 30 minutes and requires the copying of all of the files up to the server.
4. There is a converter script that will grab your users, topics, posts, forums, etc from your old installation and import them into the module. IT works very well.
5. Troubleshoot any problems. You will find some things you don't like and need to fix them. I found that the porting across busted my Polls because there was a data issue. Just about any problem can be fixed.
6. Go to the BBPixel forum for support.

As for which is better that will be long debated.
The advantages with Newbb are that;
you only have one search system not two.
it does integrate better but X-PHPBBM is quite good as well.
Your pages are produced with better more standards compliant code.

With X-PHPBB,
I personally think it looks better.
it probably has more features
Your page code is faulty. You end up with two HEAD sections and BODY sections on your Forum pages. Would love to solve this one.

Bottom line, both are good and both work. There are however better converters if you stick with PHPBBS/X-PHPBB. That situation will likely change over coming months. Question probably is how long can you wait.



9
kerrysl
Re: Googlebot and random news on index
  • 2004/10/27 7:20

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Quote:

indream wrote:
Quote:
1.) i didn't give permission to guests on my web site. Because of this google doesnt show any result from my page. is there a way to let googlebot in?

Nice idea. i really need such a code.
Please help.


The question needs to be asked why would you want to do that? Let's face it people use search engines to find sites that they don't yet know about. So what is the point of getting a good listing in Google, if when people come along they have no access to your site.

create soem keyword rich blocks and give guest access to them. Both Google and visitors will find it. Then your job is convert the visitors to registered members. You won't do that if they can't get any access.



10
kerrysl
Re: Xoops + Power Phlogger
  • 2004/10/27 6:29

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Did you get this working or not?

I use PPHLogger on several sites and wanted it on my XOOPS one as well. What I did was create a smarty tage for the Logger code in header.php like so;
// PPHLogger insert code for template
    
$xoopsTpl->assign('xoops_pphlogger','<!-- PowerPhlogger Code START --><script language="JavaScript" type="text/javascript" src="http://www.domainname.com/pphlogger.js"></script><noscript><img alt="" src="http://www.domainname.com/pphlogger/pphlogger.php?id=username&st=img"></noscript><!-- PowerPhlogger Code END -->');


All of that code works best on one line.

Then in theme.html I just added;
</head>
<
body background="<{$xoops_imageurl}>white16.jpg">
<{
$xoops_pphlogger}>


just after the body tag as you can see. This is working for me. I found that using an absolute path for the JS file to be useful because you don't know from what directory your header and theme files are going to be called.

One gotcha to watch out for. Did you upload the pphlogger.js file to the XOOPS root directory? It won't work without the JS file being in place.

Is there a way to get the PHP version (PHP+JS) rathen than just the JS. I don't know how we can insert PHP into the final page output. I run this site on the same server as the PPHLogger script so I would prefer to use PHP+JS so that I can log search engine spiders. On one of my other sites I do this which is easy because all of the public pages are .php files.




TopTop
(1) 2 »



Login

Who's Online

202 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits