Welcome, Guest. Please Login or Register.
May 10, 2025, 09:07:40 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  |  Mod Ideas and Creation  |  redirected after posting « previous next »
Pages: [1] Reply Ignore Print
Author Topic: redirected after posting  (Read 347 times)
raffael3d
Jr. Member
**
Posts: 79


I'm a llama!

redirected after posting
« on: March 22, 2003, 01:17:49 AM »
Reply with quote

so far you can determine in the mod settings if a person is sent back to the board or the posted thread after posting. Now I want to make that every person can determine itself which of the two should happen. I can store the info info the database, however I have a problem with reading it when posting.

here my code in post.php
   $request55 = mysql_query("
      SELECT redirect
      FROM {$db_prefix}members
      WHERE ID_MEMBER = $ID_MEMBER") or database_error(__FILE__, __LINE__);
   if ($request55 == '1')
      $yySetLocation = "$cgi;board=$board;action=display;threadid=$thread;start=new";
   else
      $yySetLocation = $cgi;
   redirectexit();
}


something with the meber id seems to be wrong. thanks
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:redirected after posting
« Reply #1 on: March 22, 2003, 01:44:05 AM »
Reply with quote

u havent set something like
$row = mysql_fetch_row($request55);

btw, have u seen this mod? http://www.yabbse.org/community/index.php?board=158;action=display;threadid=20277
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  redirected after posting « 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.135 seconds with 21 queries.