971
zyspec
Re: Making xyp4All Searchable?
  • 2006/2/23 2:08

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Which version of xyp4all are you using? I have 1.58 installed on one of my sites and it does link into the XOOPS search engine. It does appear to need some tweaking as I believe it only finds words in the Name and Description fields - so it doesn't find anything in the address, phone number, etc. fields.

I haven't looked at the code but I'm sure it wouldn't be too difficult to add additional fields to the search criteria.

By the way the text returned from the search (that shows up in the search results) in my installation only shows the category and doesn't show the Name, etc. of the business. I'll have to look into that now that I've noticed it...

By the way "Go Illini!"



972
zyspec
Re: Modules cannot be found
  • 2006/2/22 23:45

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


It's not clear where to start. You need to explain exactly what happened a little more clearly so we can attempt to help - otherwise you will need to find someone you trust and give them access (ftp, admin/password, etc) to help.

First, did you unistall the previous Contact module and delete the directory as the XoopsContent readme.html file says?

Can you verify that when you uploaded the "contact" folder you put it into the /modules directory? This sounds a lot like you copied the contents of the /contact folder into your root directory instead of into the /modules/contact directory. You should be able to look at the site with an ftp client and see the contact folder under modules - although this may not help because if you didn't uninstall the original contact module it might trick you into thinking the "new" contact module is there.

You'll need to look at the xoops_version.php file to see if it's from the XoopsContact module (check the author line to see if it has "Modified by CreepingDeath - ...". You could also check this by looking to see if there are "other" directories in your root that shouldn't be - for example there shouldn't be a /templates directory listed in your root directory. There may also be a getgfx.php file in your root directory if this happened.

If you DID copy the contents of the /contact folder into your root all you should have to do is replace the index.php, header.php and xoops_version.php files in your root directory to get your site "operational". You'll then have to go through and clean out the other files that were accidently created to tidy things up.

One other thing to verify is that even if you did put the /contact directory in the /modules directory you did not copy the header.php and index.php files from the /contact module into the root directory when you were trying to fix it... I'd recommend overwriting the header.php, index.php and xoops_version.php from your XOOPS zip file to your root directory just to be sure.



973
zyspec
Re: Adding Google Adsense to Block
  • 2006/2/21 2:24

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I have virtually the same code you have listed working in a block with no problems (Xoops 2.0.13.2). Literally the only difference is my google_ad_client number (obviously) and I have a google_ad_channel defined.

The only suggestion I can offer is that you make sure you have entered your google_ad_client number correctly and chosen HTML as the Content Type for the block. Not much help, but thought it might be worth a try.

Edited:
In searching around I found that your problem "could" be caused by the mod_security module in Apache. Check out this article for an .htaccess suggestion to see if this could be your problem.



974
zyspec
Re: PHP image rendering in a custom block
  • 2006/2/21 2:10

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Of course - I don't know why I didn't think of that. Thanks Dave_L



975
zyspec
Re: Style sheet problems with login blocks?
  • 2006/2/21 2:09

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The following is for 2.0.13.2 (and most recent precedents) and for 2.2.3a (I haven't checked 2.2.4 but I assume it's the same):

It depends on what you're trying to 'adjust' - part of the styles for this are defined in the template (/modules/system/templates/system_uerform.html). The rest is controlled in /modules/system/style.css



976
zyspec
Re: PHP image rendering in a custom block
  • 2006/2/20 22:29

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Thanks... That's probably what I'll do. I had previously thought about using a seperate script to save the image file and then just display it in the custom block like you suggest (using <img> tags). I was just hoping I could do it all "on the fly" without having to thrash my disk with the temporary image creation.



977
zyspec
PHP image rendering in a custom block
  • 2006/2/20 21:54

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


What I'm attempting to do is use the php imagestring functions. Below is a simplified version of the code I'd like to use but I can't get it to render in a custom block (even with content type set to PHP Script).
$im = @imagecreate(12030);
$background_color imagecolorallocate($im255255255);
$text_color imagecolorallocate($im00153);
imagestring($im155,  "A Simple Text String"$text_color);

if (
function_exists("imagegif")) {
  
header("Content-type: image/gif");
  
imagegif($im);
  
imagedestroy($im);
} else {
   die(
"No image support in this PHP server");
}


This code renders fine outside of XOOPS but it won't display inside a custom block... It looks like the output is converted to ASCII text - any ideas?



978
zyspec
Re: how can i change the width of a contact us form?
  • 2006/2/19 23:00

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I'm assuming you're using the standard Contact module....

In contactform.php

Every place you see "50" in the form replace it with a smaller number (say "35"). This doesn't effect how many characters the field holds, just how many are displayed on screen. So, for example,
$name_text = new XoopsFormText(_CT_NAME"usersName", [d][b][color=990000]50[/color][/b][/d], 100$name_v);

with
$name_text = new XoopsFormText(_CT_NAME"usersName", [b][color=000099]35[/color][/b], 100$name_v);



979
zyspec
Re: blocks question help please!
  • 2006/2/17 23:58

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You're right, it isn't intuitive. What you need to do is the following:

1. Create the custom block.
2. Go to Groups and then the select the "Anonymous users" group
3. Give the "Anonymous users" group block access rights to your new custom block.

That should do it... By the way, if you don't want registered users to see your block after they've signed in just remove (uncheck) block access for your "Registered users" group.



980
zyspec
Re: Need to Install Pical- But too new to Xoops to even understand it
  • 2006/2/13 14:27

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Here's a step by step to get the module installed on 2.0.13.x.

1) Download the piCal module and unzip it to a local directory.
2) Inside the piCal directory you'll find 2 directories - "common" and "modules".
3) Via ftp copy the "common" directory and it's contents to your XOOPS root directory. You should end up with a directory called "common" in the root directory.
4) Next copy the contents of the modules directory into your XOOPS modules directory. The net result will be that you end up with the piCal directory in your /modules directory.
5) Now in your browser login to your site and go to the admin page (http://yoursite/admin.php)
6) Under the Systems Admin section go to "Modules". Scroll down to the bottom table and you should see piCal listed. Click the disk icon on the right hand side of the table to install the module.
7) The module should now be installed - provided you didn't see any errors during the installation. Click the link at the bottom to return to the Admin section. In the Main Admin menu (on the left hand side) you will see a link to piCal. You'll need to go to Preferences to setup the calendar the way you want, you'll also have to setup categories, etc. to start entering events.
8) Don't forget to go to Group (in the Admin window) and setup the permissions for the module so that your users/guests can edit/view the module.

If you have any other problems you may want to try GIJOEs site, he has a somewhat active forum there tha can probably help with any other problems.


**** Sorry *** Apparently BLUENOVA and I responded at virtually the same time....




TopTop
« 1 ... 95 96 97 (98) 99 100 »



Login

Who's Online

239 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 239


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