TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 17, 2024, 05:45:56 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 49
  • Total: 50
  • @rjen

Syntax Issue

Started by Zyos, January 28, 2009, 11:51:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zyos

Well, thats a text link afaik, anything that seems to involve a submit button on the page will automatically go to what would be the search results, the actual search box was in the same template just another section of it and as far as I know worked fine before, so I'm very confused and have no idea what the issue is lol.

If you could spare some time I would be happy to allow you access with an admin account to take a look?

I don't like bothering you for anything more than questions on here so it's ok if you say no lol.

JPDeni

This is really an SMF thing, but I'll give it a shot. Send me a PM with login info for admin access. Oh, yeah. And a link to the site. ;)

Zyos

Well, scratch that, the issue won't allow me to log in lmao, keeps sending me to search results page after searching for Search...

Which is the default value of the search bar.

A search bar has locked me out of my own forum haha.

Except for I can overwrite the index.template.php anyways, but that isn't the point.  I've since tried using a name value for the form, no effect on it, confusing as hell!

Zyos

#13
Upon further investigation the form works fine if these two functions are removed ...


<?php

       
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

?>



Wtf?

Working as expected now!  Thanks anyways Hehe

JPDeni

Sorry I missed your posts. I was waiting for a PM while I was doing something else.

But it looks like you got it figured out on your own. Cool. :)

Zyos

No problem, thanks for the help!