292511
ackbarr
Re: different location for a module

mvandam - great advice. I am toying with the idea of creating pretty urls for all the modules I use in my website for more search engine friendly links. For those unfamiliar with mod_rewrite and its usage, I would highly recommend checking out the article available on A List Apart:

http://www.alistapart.com/stories/urls/index.html



292512
mvandam
Re: different location for a module
  • 2003/7/10 22:40

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Nope. Why do you need the module moved... just the sake of a nicer URL?

If yes, and if you are using the apache webserver you can use the "mod_rewrite" feature which will convert the incoming URL request /rootweb/forum into /rootweb/modules/pbboard to access those files. i.e. gives you a nice URL without moving files.



292513
XStrafer
different location for a module
  • 2003/7/10 21:26

  • XStrafer

  • Just popping in

  • Posts: 2

  • Since: 2003/6/13


Is there a universal way to change location of a module within XOOPS?

if module lives in rootweb/modules/pbboard/ but i REALLY need it to be located in /rootweb/forum (pbboard and forum are different folder names!)

how to do that?



292514
onegwr
Link between UserDB & .htaccess
  • 2003/7/10 7:49

  • onegwr

  • Just popping in

  • Posts: 2

  • Since: 2003/2/8 1


Hi, I'm using XOOPS on an intranetsite
and for another part of the site I'm using .htaccess to restrict access.
So I now have receive a question to sync these password with the XOOPS accounts...

As the PW is also stored in an MD5 format
& .htaccess can also use this md5 hash

So my question
=> has anyone got a small hack?
So when someone new is added or the pw is changes, the UserDB is exported into an .htaccess (text-)file

Is it this easy? or am I forgetting something?
Thx!



292515
chrisz
Problem with Headlines module
  • 2003/7/10 1:37

  • chrisz

  • Just popping in

  • Posts: 44

  • Since: 2003/7/9 1


When I attempt to add an RSS feed to my headlines module, a popup window, well, lol, pops up giving me the error:

"A Runtime Error has occurred.
Do you wish to debug?

Line 448
Error: 'window.document.headline_form.headline_name.value'
is null or not an object."

After I click no, an error message in red says:

"Failed saving to database for headline
Array"

Anyone else run into this or know how to fix this?



292516
cardo
Re: Need Help With Random Quote Module
  • 2003/7/10 0:01

  • cardo

  • Just popping in

  • Posts: 8

  • Since: 2003/5/22


No need to be sorry. I really appreciate you trying to help. I figured there would be a way to do this like you can in PostNuke. With PostNuke using either AutoTheme or nucleiblocks you can put a block pretty much anywhere on the screen and it would appear on every page if you configured it correctly. Oh Well...



292517
lykoszine
Re: Need Help With Random Quote Module
  • 2003/7/9 23:36

  • lykoszine

  • Module Developer

  • Posts: 244

  • Since: 2002/1/2 2


Hmm, after looking at this in a bit more detail I realise that this approach will not work.

I fact the only way that Ican think of to do it is to move the php code to every module page, which is not practical...

Sorry.



292518
cardo
Re: Need Help With Random Quote Module
  • 2003/7/9 22:34

  • cardo

  • Just popping in

  • Posts: 8

  • Since: 2003/5/22


After further testing the line that causes the blank page to be displayed is:

$tpl->assign("quote", $texto);

If I comment this line out it my page displays as normal, without the random quote of course. I have two quotes in my database and the quotes display fine in the left block if I use one of the other themes. I am at a loss as to what is causing this to fail.




292519
cardo
Re: Need Help With Random Quote Module
  • 2003/7/9 20:18

  • cardo

  • Just popping in

  • Posts: 8

  • Since: 2003/5/22


I should have said it in my last message but I tried both $texto and $quote. I will enable Smarty Error in preferences to see what it comes back with. I will post the results shortly.

[UPDATE]

Turning on Smarty Debugging worked when I didn't have the modified random quotes template in place, but as soon as I made the change I get the blank page and no pop up with the smarty variables listed as before. :(


Thanks again,

Rich



292520
lykoszine
Re: Need Help With Random Quote Module
  • 2003/7/9 19:54

  • lykoszine

  • Module Developer

  • Posts: 244

  • Since: 2002/1/2 2


For a start, you need to be using <{$quote}>, not text in the template.

Also enable Smarty Error, in preferences, and check that $quote is there, with the correct value.







Login

Who's Online

163 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 163


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