Welcome, Guest. Please Login or Register.
November 27, 2024, 10:49:20 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.2] SearchNew Mod v.09 « previous next »
Pages: 1 ... 4 5 [6] 7 8 9 Reply Ignore Print
Author Topic: [Done 1.5.2] SearchNew Mod v.09  (Read 26100 times)
nferreri
Noobie
*
Posts: 45


Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #75 on: December 31, 2002, 09:35:35 PM »
Reply with quote

anyone get this to work with 1.5 yet?

i miss this mod!
Logged
taznumber1
Noobie
*
Posts: 13


I'm a llama!

Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #76 on: January 01, 2003, 02:14:22 PM »
Reply with quote

Or does anyone know what the stuff we need to edit to get it to work I had it installed on my 1.4.1 board and now my members really want it back ASAP.
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #77 on: January 22, 2003, 09:02:25 PM »
Reply with quote

QuoteI've updated the Search New function.  It now accounts for the strange HTML that YABBSE produces (for some strange reason BR tags are <BR /> in 1.4.1 instead of <BR>).

YaBB SE is xhtml 1.0 compliant! So we use <br />! There is nothing strange!

For you:

If an element is empty, it must be represented either by a start-tag immediately followed by an end-tag or by an empty-element tag. An empty-element tag takes a special form:

<BR/>...empty element tag in XML, or
<BR></BR>

As opposed to HTML where a line break is declared with:

<BR>...start tag without an end tag


Quoteanyone get this to work with 1.5 yet?

me, but i´ll try to use the search function from 1.5 (not so much serverload! please wait few days!

For a certain modwriter, the YABB team would expect a little better treatment.  Maybe next time you ask us what <br /> stands for, rather than just posting un-helpful statements. ;)

mediman
« Last Edit: January 22, 2003, 09:10:12 PM by mediman » Logged

mainComm Dev Team
Forge
Noobie
*
Posts: 23


WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #78 on: January 24, 2003, 02:44:06 PM »
Reply with quote

Quote from: mediman on January 22, 2003, 09:02:25 PMFor a certain modwriter, the YABB team would expect a little better treatment.  Maybe next time you ask us what <br /> stands for, rather than just posting un-helpful statements. ;)

 :-*
Logged
Forge
Noobie
*
Posts: 23


WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #79 on: January 24, 2003, 02:58:07 PM »
Reply with quote

I haven't upgraded my board to 1.5 yet.  I made some pretty major changes to some parts of my board so that it now has a game organizing feature (check it out here:  http://www.flakshack.com/yabbse/FSMO/index.php).

Hopefully I'll have time to do it in the next month or so.  In the meantime, unless they dramatically changed the structure of the database, the searchnew page itself should still continue working.  I haven't looked at 1.5 yet, but here are some tips to get you started on getting it integrated into your board.

You can download the files you'll need from here:
http://www.flakshack.com/yabbse/attachments/searchnew.08_for_yabbse1.4.1.zip

Copy the gif files to the images folder and the SearchNew.php file to the Sources folder.  Check the modifications.mod file for the modifications I made to the yabbse files.   Unless 1.5 has changed significantly, you should be able to work your way through the changes.  Otherwise, I'll put up a new version soon (although I might wait for 1.5.1).
« Last Edit: January 24, 2003, 02:59:14 PM by Forge » Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #80 on: January 25, 2003, 11:31:15 PM »
Reply with quote

There ARE significant changes, and I made a few adjustments on the yabb.nl support board, so maybe you can use this :

<file>
index.php
</file>

<search>
      'search2' => array("$sourcedir/Search.php", 'plushSearch2'),
</search>

<add>
      'searchnew' => array("$sourcedir/SearchNew.php", 'SearchNew'),
      'searchnew_markallread' => array("$sourcedir/SearchNew.php", 'SearchNew_MarkAllRead'),
      'searchnew_marktopicread' => array("$sourcedir/SearchNew.php", 'SearchNew_MarkTopicRead'),
      'searchnew_markboardread' => array("$sourcedir/SearchNew.php", 'SearchNew_MarkBoardRead'),
      'searchnew_markcategoryread' => array("$sourcedir/SearchNew.php", 'SearchNew_MarkCategoryRead'),
      'searchnew_cleanup' => array("$sourcedir/SearchNew.php", 'SearchNew_Cleanup'),
</add>


<file>
dutch.lng
</file>

<search>
   $img['search'] = '<img src="' . $imagesdir . '/search.gif" alt="' . $txt[182] . '" border="0" />';
</search>

<add>
   $img['searchnew'] = '<img src="' . $imagesdir . '/searchnew.gif" alt="' . $txt[searchnew1] . '" border="0" />';</add>

<search>
$txt['yse217'] = 'Live vanaf www.yabb.info...';
</search>

<add>
$txt['searchnew1'] = 'Zoek naar nieuwe berichten';
$txt['searchnew2'] = 'Markeer alle berichten als gelezen';
$txt['searchnew3'] = 'Markeer dit bericht als gelezen';
$txt['searchnew4'] = 'Limiet van';
$txt['searchnew5'] = 'bereikt.  Niet alle nieuwe berichten worden getoond.';
$txt['searchnew6'] = 'Negeer deze topic voor de komende 7 dagen';
</add>

<search>
   $img['search'] = $txt[182];
</search>

<add>
   $img['searchnew'] = $txt[searchnew1];
</add>

<file>
Sources/Subs.php
</file>

<search>
   if($username == "Guest") { $yymenu .= $menusep."<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
   } else {
</search>


<add>
      $yymenu .= "$menusep<a href=\"$cgi;action=searchnew\">$img[searchnew]</a>";
</add>

I can't find anything to adjust in Poll.php, so I just let that one be like it is.  No problems so far.......

Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
riekl
Jr. Member
**
Posts: 89


I'm a llama!

Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #81 on: January 27, 2003, 10:42:32 PM »
Reply with quote

I would really like to see this updated for 1.51RC1 ..
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #82 on: January 27, 2003, 10:57:37 PM »
Reply with quote

Well, I got it working on my board  ;D
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Yvette
Noobie
*
Posts: 35


Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #83 on: January 28, 2003, 01:51:14 AM »
Reply with quote

I get the following error when trying to install it with the suggested changes for 1.51RC1:

2: Supplied argument is not a valid MySQL result resource
(/mypath/yabbse/Sources/SearchNew.php ln 121)

mypath  = my path :)  Guess I'll wait.

Yvette
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #84 on: January 28, 2003, 04:51:02 AM »
Reply with quote

Changed all the memberName into ID_MEMBER :)

Try it ;)
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Yvette
Noobie
*
Posts: 35


Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #85 on: January 28, 2003, 06:53:26 AM »
Reply with quote

Quote from: Webby on January 28, 2003, 04:51:02 AMChanged all the memberName into ID_MEMBER :)

Try it ;)

That worked, thanks!
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #86 on: January 28, 2003, 06:55:58 AM »
Reply with quote

So we have another working mod vor v1.5.x  ;D
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
riekl
Jr. Member
**
Posts: 89


I'm a llama!

Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #87 on: January 28, 2003, 02:19:12 PM »
Reply with quote

Well .. i installed the .08 for 1.41, then the above changes .. and i dont even get a searchnew button on the main page .. here is the (i think) relevant section of my subs.php

----------
function template_header()
{
   global $yytemplate, $yyboardname, $yytitle, $yyuname, $yyim, $yytime, $yymenu, $yymain, $yycopyright;
   global $yynews, $menusep, $enable_notification, $enable_news, $username, $db_prefix, $locale, $boarddir;
   global $maintenance, $txt, $mbname, $date, $settings, $cgi, $img, $scripturl, $helpfile, $realname, $yyheaderdone;
   global $yycopyin, $yytemplatemain, $yytitle, $yyVBStyleLogin, $timeformatstring, $timeoffset, $modSettings, $imagesdir;
   global $mnum, $munred, $ID_MEMBER;

   // print stuff to prevent cacheing of pages
   header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
   header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT');
   if ($modSettings['disableCaching'] == 1)
   {
      header("Cache-Control: no-cache, must-revalidate");
      header("Pragma: no-cache");
   }

   $yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=\"_blank\">$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   if ($settings[7] == 'Administrator')
      $yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>";
   if ($username == 'Guest')
      $yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
   else
   {
$yymenu .= "$menusep<a href=\"$cgi;action=searchnew\">$img[searchnew]</a>";
--------------

whats wrong ?
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #88 on: January 28, 2003, 02:30:41 PM »
Reply with quote

This works for me :

   $yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=\"_blank\">$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   if ($settings[7] == 'Administrator')
      $yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>";
   if ($settings[7] == 'Global Moderator')
      $yymenu .= "$menusep<a href=\"$cgi;action=gmod\">$img[global]</a>";
   if ($username == 'Guest')
      $yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
   else
   {
      $euser = urlencode($username);
      $yymenu .= "$menusep<a href=\"$cgi;action=searchnew\">$img[searchnew]</a>";
      $yymenu .= "$menusep<a href=\"$cgi;action=profile;user=$euser\">$img[profile]</a>";
      if ($enable_notification)
         $yymenu .= "$menusep<a href=\"$cgi;action=shownotify\">$img[notification]</a>";
      if ($modSettings['cal_enabled'] == 1)
         $yymenu .= "$menusep<a href=\"$scripturl?action=calendar\">$img[calendar]</a>";
      $yymenu .= "$menusep<a href=\"$cgi;action=logout\">$img[logout]</a>";
   }
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] SearchNew Mod v.08
« Reply #89 on: January 28, 2003, 02:36:26 PM »
Reply with quote

by-the-way : the mod doesn't seem to work properly on the v1.5.1rc38, because whenever I search for new, unread posts, it doesn't show them all.

It shows the posts, but when you go to the index page, and you do a new search, the list is completely empty as if you already have read all the messages.

Maybe somebody can have a look at it ?
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: 1 ... 4 5 [6] 7 8 9 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.2] SearchNew Mod v.09 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.056 seconds with 20 queries.