1
davidl2
Theme customisation & Multiple entry points
  • 2004/11/12 18:53

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Sorry if this has already covered, but I couldnt find it with search (I did try!)

Ok - here's the problem. I hope someone can help.

I have a number of different URLs that I want to use as an entry point to a single XOOPS site... the idea being if someone goes to:

http://www.website-a.com

or

http://www.website-b.com

they will get a slightly different set of images - based on the entry site.

Effectively, I need to know if I can pass a variable of some sort that can be used by the theme, to reffer to graphics called... and from the main site, change this variable to other values?

I hope my explanation makes some sense! :)

All/any help appreciated!

Regards

2
davidl2
Re: Theme customisation & Multiple entry points
  • 2004/11/12 20:50

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


*this* seems close to what I need for my problem here - but is there anyway to pass a variable instead, and - another problem - how tricky would a condition be to add to see if a particular page was being view in the module...?

ie:

if wf-section-page-view = 1 to 10 - then image = "whatever"

if wf-section-page-view = 11 to 20 - then image = "somethingelse"

3
davidl2
Multiple entry points (was Re: Theme customisation & Multiple entry points)
  • 2004/11/14 11:51

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


To be honest - I've been looking at my original post again - and it is very confusing.

What I actually want to do could be quite tricky, so i'll try for a simpler idea :)

* Can I log into a XOOPS site from a different URL?

I'm guessing that this would only be possible by IFRAME on the relevent code?

* Can I select a different start page? If I normally start with the Top page - can I specify a particular different one? Perhaps a TinyContent page?

I suspect that a slight hack of the login code would be needed to remove the redirect?

If these are possible - I think I could use a combination of Theme Changer, and the multiple version of TinyContent, to emulate the more ambitious thing I wanted......

All help appreciated!

4
Lance_
Re: Theme customisation & Multiple entry points
  • 2004/11/14 15:13

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


From my little experience. I'm prety sure you can achieve the showing whatever pages you want with an initial redirect index file.

redirect url1 to /modules/tinycontent/
redirect url2 to /modules/news/

But if you want to use the urls seperately, whereas it doesn't redirect to 1 url only, then the multisite hack would work quite well for you. Just requires more admining of the site.

Depends on the level of seperation you need with each site.

Cheers.

PS. Of course I'm still a n00b at this.

5
davidl2
Re: Theme customisation & Multiple entry points
  • 2004/11/14 15:18

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Quote:

Lance_ wrote:
From my little experience. I'm prety sure you can achieve the showing whatever pages you want with an initial redirect index file.

redirect url1 to /modules/tinycontent/
redirect url2 to /modules/news/


That's pretty much what I mean (except it would be to different WF-Sections Ids

6
davidl2
Re: Theme customisation & Multiple entry points
  • 2004/11/15 9:42

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Would anyone be interested in tackling the login hack at all? Or giving me a rough Idea -so I can have a go myself? :)

Thanks in advance

7
solo71
Re: Theme customisation & Multiple entry points
  • 2004/11/15 10:49

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Is this what you are looking for ? (Visit the different links).


8
davidl2
Re: Theme customisation & Multiple entry points
  • 2004/11/15 18:32

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Now that's looking promising - yes, very similar to what I was after (except for the useage of a different url to login)

9
solo71
Re: Theme customisation & Multiple entry points
  • 2004/11/15 19:37

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Yes, thinking about your request that day.

Here is a tricky solution...

1) First apply that hack.

2) Redirect your url to a specified directory (for url http://www.site-a.com -> http://www.site-a.com/site-a/

3) In this directory, add an index.php file including the following code :

header("Status : 301 Moved Permanently"); 
header("Location: http://www.site-a.com/index.php?xoops_theme_select=site_a_theme"); 
exit();
?>


As simple as that... (I think). Hope this make sens.



PS : Oh, and let me know about this please...

Login

Who's Online

326 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 326


more...

Donat-O-Meter

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

Latest GitHub Commits