91
technobia
2.0.14 Custom Block Code
  • 2006/8/1 20:45

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


ENVIRONMENT:
Operating System: Windows 2003 Server
Web Server: IIS 6.0
Xoops 2.0.14
PHP 4.3.11
MySQL 4.1
Module: Weblinks 0.93


OBJECTIVE:
I would like to have the search form from the weblinks_header.html file and only a portion of the weblinks_index.html on the home page in a custom block.

My reasoning is I only want some of that data on the home page that is on the weblinks module home page and more importantly I do not what the home page redirect that occurs when you assign a module to the home page.

This is what I want it to look like:
Resized Image

ISSUE:
I have simply pasted in the code in part or in it’s entirety into a custom block and one of two things happen, all the code is displayed or the block does not show up at all. This is with trying the block in HTML and PHP.

QUESTIONS:
1. Is this even possible and if so,
2. What is the proper procedure and/or syntax?
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



92
technobia
Module Code in Custom Block
  • 2006/7/27 19:30

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


ENVIRONMENT:
Operating System: Windows 2003 Server
Web Server: IIS 6.0
Xoops 2.0.14
PHP 4.3.11
MySQL 4.1
Module: Weblinks 0.93


OBJECTIVE:
I would like to have the search form from the weblinks_header.html file and only a portion of the weblinks_index.html on the home page in a custom block.

My reasoning is I only want some of that data on the home page that is on the weblinks module home page and more importantly I do not what the home page redirect that occurs when you assign a module to the home page.

This is what I want it to look like:
Resized Image
ISSUE:
I have simply pasted in the code in part or in it’s entirety into a custom block and one of two things happen, all the code is displayed or the block does not show up at all. This is with trying the block in HTML and PHP.

QUESTIONS:
1. Is this even possible and if so,
2. What is the proper procedure and/or syntax?
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



93
technobia
Re: Fixed width Issues in phpkaox & 2.0.14
  • 2006/7/22 1:02

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


The site is still under development so I am shy about listing it but here it is:

http://cms.pridedepot.com/themes/phpkaox/style.css
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



94
technobia
Fixed width Issues in phpkaox & 2.0.14
  • 2006/7/22 0:51

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Environment:
XOOPS 2.0.14
PHP 4.3.11
MySQL 4.1
Default Template: phpkaox
Check Templates for Updates: Enabled
Default Template Set: Cloned Version

I Wanted a Fixed width template for 750 px. I edited the theme/phpkaox/style.css and theme.html file to look like I want. All pages are now fixed width but only the home page is the correct width.

HOWEVER, Other pages from the rest of the site/modules are not the same width many of them are smaller than the home page. The only way I seem to be able to get them to be the correct width is to edit each template file for each module (if there is one) and sometimes I get diffrent results or no results at all.

I have looked at the theme.html and the .css until I can not stand it anymore. I made sure all the table/cell widths are uniform.

What am I doing wrong? This is going to drive me CRAZY!!
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



95
technobia
Re: I did a stupid thing! - Main Sub Menus Missing
  • 2006/7/18 23:56

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


You da best! That is a MUCH more elegant way to solve that problem.

Thanks so much!
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



96
technobia
Re: I did a stupid thing! - Main Sub Menus Missing
  • 2006/7/18 23:40

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Hey that worked great! Thanks!

Is there a way to temporailry remove the Submit, Top, & Popular as well?

The submit link is available directly above the links index and the others will come up blank for some time since I have not launched the site yet and it may take awhile for there be enough data to make it worthwhile to display.
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



97
technobia
Re: I did a stupid thing! - Main Sub Menus Missing
  • 2006/7/18 22:21

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Thanks msdana! That was it!

Now the issue that was the reason I did this in the first place has returned.

I have the weblinks directory set to the home page so now the weblinks sub menu os really long.

Anysuggestions on

A. How to disable the main sub menu just for the webliinks directory module OR

B. Put the weblinks search form and Category list of Web links in a custom block to place on the home page.

THANKS AGAIN!
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



98
technobia
Re: I did a stupid thing! - Main Sub Menus Missing
  • 2006/7/18 21:41

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Nope not that one either.

Honestly, I looked and looked and I do not see any files that might have something to do with the main & sub menus menu that appear to be altered.

I was sure there was some file(s) is altered somewhare.

OK let's assume I am remembering it wrong. What else might cause the sub menus for all modules not to show up in the main menu?

I am pretty sure it is not at the module level or ASM Submit Article would be there. Right?
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



99
technobia
Re: I did a stupid thing! - Main Sub Menus Missing
  • 2006/7/18 20:57

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


hmmm... I compared the two xoops_version.php files in the system module with the origininal download and the one I am using now and they are identical. So, I guess I did not alter that file.

I did not change any of these files in the other modules either.

Is there another global menu .php or template file? Any other suggestions?

Thanks!
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



100
technobia
I did a stupid thing! - Main Sub Menus Missing
  • 2006/7/18 16:41

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


XOOPS: Just Upgraded from 2.0.13.1 to 2.0.14
PHP: 4.3.11
MySQL: 4.1
Web Server: IIS 6.0
OS Windows 2003 Server
Theme: Cloned Default

When I was first working with XOOPS I thought I was doing a smart thing and now I realize it was really stupid.

I did not want all the sub menu options showing up in the main menu. I wanted visitors to visit each section for accessing the module/section options. I really want to keep the main menu as small as possible becasue I want to use a block directly below it that is, at least partically, displayed when the home page loads. Otherwise, it would be pushed down and people may not scroll down and see it.

So what I did was edit some file(s) to remove the sub menu options from the code. It worked beautifully until I reciently realized that some modules like AMS have the Submit Article button that only appears on the Sub Menu. Consequently there is no way to submit an article now.

OK so now all I have to do is restore the old file(s) right? Well that would be easy if I only remembered what file(s) I edited. I have searched and searched and can't seem to find the file(s) I edited.

I really do know better than to edit files without making a back up AND documenting the changes. I have definatly RE-learned that lesson

Would someone please show some mercy and help me recover from this bluder? What files do I need to restore?
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!




TopTop
« 1 ... 7 8 9 (10) 11 12 »



Login

Who's Online

116 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

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

Latest GitHub Commits