1
BigJim
Search.php can i make this change?
  • 2009/5/22 9:24

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hi

For one of my modules I have altered the search.inc.php file to make the search of that module more accurate.

However, it means that when the site's main search.php is used it cannot search that module.

I would like to have both searches working (the site.com/search.php and the site.com/modules/module/search.php).

But it seems I need 2 different search.inc.php files to allow this. But as this is specified in xoops_version.php it doesn't seem possible to have 2 different search.inc files.

Can anyone help me on how I can do this?

thanks a lot!



2
BigJim
Javascript advice please!!!
  • 2009/5/13 6:58

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hi guys, I'm trying to get this javascript working on my XOOPS site. I've made the below javascript code so that users can search all modules in the site from just one text box - there is a search button for each module so users simply enter their keywords and press one of the search buttons according to module they want to search.

The thing is it works fine in firefox but not at all in ie - can anyone tell me why its not working in ie?

Quote:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head></head>
<body>
<SCRIPT language="JavaScript">
function OnSubmitForm()
{ if(document.pressed == 'questions') { document.myform.action ="/modules/newbb/search.php"
document.getElementById("mids[]").value = '6' document.getElementById("query").name = "term" }

else if(document.pressed == 'rankings') { document.myform.action ="/modules/smartsection/search.php"; document.getElementById("mids[]").value = '91' document.getElementById("query").name = "query" }

else if(document.pressed == 'courses') { document.myform.action ="/modules/classifieds/search.php"; document.getElementById("mids[]").value = '3' document.getElementById("query").name = "query" }
return true; }

</SCRIPT>

<FORM name="myform" method="GET" onSubmit="return OnSubmitForm();">
<input name="" id="query" type="text" size="40" />
<input type="hidden" name="mids[]" id="mids[]" value=""/> <input type="hidden" name="forum[]" id="forum" value="all" /> <input type="hidden" name="searchin" id="searchin" value="both" />
<input type="hidden" name="sortby" id="sortby" value="p.post_time desc" /> <input type="hidden" name="andor" id="AND" value="AND" />
<input type='hidden' name='action' id='action' value='results' />
<input type="hidden" name ="level" value= "ALL"/>
<input type="hidden" name="action" value = "results"/>
<input type="hidden" name="id" value = ""/>
<input type="hidden" name="apply_by" value = "Sept"/>

<INPUT TYPE="SUBMIT" name="submit" onClick="document.pressed=this.value" VALUE="questions">

<INPUT TYPE="SUBMIT" name="submit" onClick="document.pressed=this.value" VALUE="rankings">

<INPUT TYPE="SUBMIT" name="submit" onClick="document.pressed=this.value" VALUE="courses">

</FORM>
</body>
</html>


thanks a lot for any help!!!!!



3
BigJim
Re: can i utilise google in my website
  • 2009/3/2 10:45

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


yeh, that's a good point Ghia, thanks



4
BigJim
Re: can i utilise google in my website
  • 2009/2/26 10:45

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


thanks Ghia, ok I won't do it if its not ok but how come google and yahoo can do it for their image searches (do you know the bit I mean, if you search for images and click on the image the original website page is shown within a frame)?

thanks again, I don't want to waste my time setting the site up like this if I'm going to find out its against the rules or etiquette.



5
BigJim
can i utilise google in my website
  • 2009/2/26 2:50

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hi guys, I'd really appreciate some advice on this regarding using google on my site.

1. Can I use Google's 'I'm feeling lucky' feature to build links on my site. For example if I have a huge list of businesses I could use I'm feeling lucky and insert the business name to produce a link which takes visitors directly to a related website (most often probably that business's website).

2. And could I use frames to have those websites open in my site. I wouldn't try and hide anything, it would be clear that I am displaying another website and I would give users the option to remove the frame and go direct to that webpage (so just like images are displayed in image searches in engines like Google and Yahoo).

I've tried searching to see if this is breaking any rules or Google's TOS but can't see any clear answer so if anyone could advise I'd be really grateful.

thanks



6
BigJim
Re: help needed to change user.php
  • 2009/1/7 10:36

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


that's great thanks Ghia!

the problem was a strange one.

If a user clicked on the 'register to post' in the newbb module they would come to this page and the url of that page includes the redirect, so like this:

http://www.domain.com/user.php?xoops_redirect=/modules/newbb/viewtopic.php?topic_id=883

If someone needed to register, for some strange reason the register link was

?xoops_redirect=/studyintheuk/newbb/viewtopic.php?topic_id=883/register.php

which obviously is a nonsense link.

Thankfully changing the link (in the file you gave me) like this:

"register.php"
to
"/register.php"

did the trick



7
BigJim
Re: help needed to change user.php
  • 2009/1/7 5:37

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hi ghia

if you go to

https://xoops.org/modules/profile/user.php

It is this link

Not registered? Click here.


although the xoops.org site uses the profile module, for a standard website the user.php page is at domain.com/user.php

thanks



8
BigJim
help needed to change user.php
  • 2009/1/6 22:15

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hello

On the user.php page there is a link for users to register. Can anyone tell me where I can find where this link is assigned? (its not in user.php or modules/system/templates/system_userform.html).

My 'register' link is not working properly when the user.php page is accessed with a redirect to the previous page because for some reason it adds the redirect to the register link.

If anyone can tell me where to find where the link is made i should be able to fix it but I just can't find it anywhere

thanks a lot



9
BigJim
Re: Not sure about sitemap
  • 2008/12/11 3:11

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


thanks a lot robustus, I'm gonna give that a go



10
BigJim
Re: customizing the description metatag
  • 2008/12/8 3:10

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


I follow your meaning and I've tried to do this but the code is very confusing to me - can anyone help futher???

Thank you




TopTop
(1) 2 3 4 ... 8 »



Login

Who's Online

231 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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