31
turnerrw
Re: Javascript Menu & Site Context Problems
  • 2005/12/13 18:18

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Quote:

wtravel wrote:
In order to have your script found you should use the full file path. In your theme.html file put:




Excellent Martijn, I'll make that change.

I'm still concerned about one item though - here is the text from the developer's FAQ

Quote:

Make sure that the var dmWorkPath parameter that is in the html page has the correct path to the .js files of a menu and do NOT begin with "/" character:

var dmWorkPath = "/menudir/"; - incorrect
var dmWorkPath = "menudir/"; - correct


I've placed these files in a menudir directory on the docroot of the site. How can I address this issue? My workaround was to place a copy of the menudir directory in each module, but that's a messy solution. What I'd like to do is to use the syntax you reference above for this variable. According to the developer, that won't work.

SO it seems, I'm left with merging 5 javascripts into 1 file.

Is there another solution?

Cheers,
-Robert



32
turnerrw
Re: Javascript Menu & Site Context Problems
  • 2005/12/13 17:47

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


My workaround solution is to copy menudir to the root of each module directory. This let's me take the code out of the iFrame. This is still a rough, non-elegant workaround.

Still keen on hearing from any experts on how to do this better.

Cheers,
-Robert



33
turnerrw
Re: Javascript Menu & Site Context Problems
  • 2005/12/13 17:17

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Just did some more testing and the iFrame causes any links to be returned to that section of the page --- which of course won't work!

UGH! What started out as a "simple project" has turned into a monster. Need some expert advice from the XOOPS Wizards!!



34
turnerrw
Javascript Menu & Site Context Problems
  • 2005/12/13 16:48

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I'm having a bit of trouble getting the final touches on a dynamic menu. I found a pretty good dynamic javascript menu from http://www.deluxe-menu.com. It's got good flexibility and a good GUI builder tool. I added the required javascript references to the headers of theme.html and added code to a custom HTML block.

The problem I found was that the menu only rendered properly on the front page. Once I changed to a module page, the custom block was empty. I know this is due to the script references pointing to a now non-existant directory.



My workaround was to put the javascript code into an .shtml file and put an iframe in the block. This just feels like a rough workaround and not very elegant. If I knew more about XOOPS development, I guess I could create a module, but that's beyond my education at the moment.

Does anyone have any ideas on how I can maintain context for this menu across my entire site? Here are the code particulars.

MENU: http://www.deluxe-menu.com/

SITE: http://69.16.202.42/~campfire/

.SHTML file - http://69.16.202.42/~campfire/menu.shtml

Puzzled...
-Robert



35
turnerrw
Re: VPS Hosting Recommendation Needed
  • 2005/11/30 18:59

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


How interesting that this thread took 2 years to get any interest :)

When I posted my query back in 12/2003, I needed to move my site (news portal) from shared hosting to something with more capacity. VPS seemed like the next step.

I moved to a Virtuozzo-based hosting solution at Rackforce.com. They're pretty good, reasonable prices, and only the occasional outage (mostly network-based).

I'm now on my own dedicated dual-processor XEON machine with 2Gb's RAM - monthly cost is $200.00. The control panel is PLESK (which takes some getting used to after growing up with CPANEL), but I have SSH and root access, so I can do whatever I need to do.

Bandwidth is unmetered at Rackforce, which has worked out pretty well. My constraint so far has not been bandwidth but CPU. Getting my own dedicated box + php acceleration + implementing caching is what helped improve my site's performance.

Be glad to answer any questions about this setup for those that are interested.

Cheers,
-Robert



36
turnerrw
Re: News 1.2.1 stuck in the Past ... not displaying most recent artilces
  • 2005/3/14 17:43

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I edited /modules/news/admin/index.php under the section case=newarticle and changed the line from

ihome = 1; to ihome = 0;

Is this the correct procedure for this issue, or is there a cleaner fix?



37
turnerrw
Re: News 1.2.1 stuck in the Past ... not displaying most recent artilces
  • 2005/3/14 17:39

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


When in doubt ... look in the database.

I noticed that all new articles published since the news module upgrade had the ihome field set to 1 (publish in home = no).

Publish in Home "No" is the default switch for the publish template. is there a switch somewhere to set the default to Yes, or must I edit the template by hand? I did not see anything on the Preferences page.



38
turnerrw
News 1.2.1 stuck in the Past ... not displaying most recent artilces
  • 2005/3/14 17:12

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I have a strange problem with News 1.2.1 on XOOPS 2.0.7.3.

If a user clicks the News Menu, they get this URL
http://hostname/modules/news/index.php?storytopic=0&storynum=15

The most recent story returned for this page is dated 3/9. We publish news every day or 2, and there are stories that are not listed.

If a user selects a topic, then the correct stories are returned, for instance...

http://hostname/modules/news/index.php?storytopic=5&storynum=15
works correctly.

What could be causing the general cross-topic query to be stuck on 3/9 (which is approximately when I upgraded from News 1.1 to 1.2.1)?



39
turnerrw
Re: Help Needed with News 1.2.1
  • 2005/3/9 19:57

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Thanks very much for your response. I pretty much figured this was the situation.

For the record, how is the xoops.org server configured (both hardware and software).

My site is running in a dedicated Virtuozzo machine with the PLESK control panel on a 2.4Ghz P4 with 1Gb RAM and a 80Gb 7200 RPM drive. My hosting provider RackForce says that I have 1.5 GB of available bankwidth to my machine

Today I noticed that with 55 online users (Who's Online Block), response time was very poor and load averages were very high in TOP - early this morning I actually got one of the dreaded XOOPS php error messages that says the MySQL database is unavailble. At that time there were 200 active processes and load averages were way out of line. User counts were only around 65.

I'm having a hard time figuring out where to go next. Do I change hosting providers, add more RAM, add another CPU. I'm probably 6 months away from having 100 - 125 concurrent users and I don't think my current configuration will scale.

On the XOOPS software side, I edited /etc/php.ini to turn off MySQL persistent connections and I've optimized every table in my database.

What recommendations do you genius types have more me?



40
turnerrw
Help Needed with News 1.2.1
  • 2005/3/9 18:01

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


My site is a News portal where the two most popular modules are News and Forum. I've also configured the site so that only registered users can post news comments or forum threads.

Like many of us, I'm also experiencing performance challenges and have been experimenting with cachine and other techniques to keep my site running. I just moved to dedicated hosting and still had 2 db unavailable errors just today.

I'd like to cache the News and Forum modules, except that when I turn caching on for News I notice that I can be logged into the site and yet, the article I'm reading is cached without the Post Comment button at the bottom of the page.

I have to offer the ability to Post Comments to registered users, yet caching this module is something I haven't been able to do. I'm also getting the same behavior with newbb Forum module.

Does anyone have any suggestions? I notice that XOOPS.org has 2x the number of on-line users that I have. Do you guys cache News and Forum?

Thanks,
-Robert




TopTop
« 1 2 3 (4) 5 6 7 »



Login

Who's Online

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


Members: 0


Guests: 156


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