Welcome, Guest. Please Login or Register.
April 27, 2025, 04:31:43 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1 RC1] Exact Link Post « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.5.1 RC1] Exact Link Post  (Read 2180 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

[Done 1.5.1 RC1] Exact Link Post
« on: March 21, 2003, 09:25:23 PM »
Reply with quote

ID: Exact Post Link

Version: 1.0

Mod Info:
This mod directs the post link to the exact post, using the ancor tag name, like: #msg12300
Currently works for:
- View the 10 most recent posts on the board. (Recent.php)
- Search result (Search.php)
- Show the last x posts of this person. (Profile.php)

Download:
BoardMod file

BoardMod Installation Instructions:
1. Run this .mod file under BoardMod
2. Upload all the changed files (3 files: Recent.php, Profile.php, Search.php) into the Sources directory
« Last Edit: January 26, 2004, 08:30:27 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[Done 1.5.1 RC1] Exact Link Post
« Reply #1 on: March 22, 2003, 09:04:13 AM »
Reply with quote

With my board it went straight in, no probs at all. Nice one!
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
gandolphxx
Noobie
*
Posts: 41


Novice Admin

gandolphxx@hotmail.com WWW
Re:[Done 1.5.1 RC1] Exact Link Post
« Reply #2 on: April 23, 2003, 09:37:07 PM »
Reply with quote

This gets to the correct post on a quote url independent of number of posts per page.

201c201
<               $form_message = '[quote author=' . $mname . ' link=board=' . $currentboard . ';threadid=' . $threadid . ';start=' . $start . '#msg' . $quotemsg . ' date=' . $mdate . ']' . "\n" . htmlspecialchars($form_message, ENT_QUOTES) . "\n" . '[/quote]';
---
>               $form_message = '[quote author=' . $mname . ' link=board=' . $currentboard . ';threadid=' . $threadid . ';start=msg' . $quotemsg . '#msg' . $quotemsg . ' date=' . $mdate . ']' . "\n" . htmlspecialchars($form_message, ENT_QUOTES) . "\n" . '[/quote]';

The next two deletions get rid of the antiquated Re: blahblah in the subject - I will have another that forces the subject to be read only based on the starter.

205,206c205,206
<               if (!stristr(substr($msubject, 0, 3), 're:'))
<                       $form_subject = 'Re:' . $form_subject;

---
> //GXX         if (!stristr(substr($msubject, 0, 3), 're:'))
> //GXX                 $form_subject = 'Re:' . $form_subject;

220,221c220,221
<               if (!stristr(substr($msubject, 0, 3),'re:'))
<                       $form_subject = 'Re:' . $form_subject;

---
> //GXX         if (!stristr(substr($msubject, 0, 3),'re:'))
> //GXX                 $form_subject = 'Re:' . $form_subject;


These might be useful additions. ;D
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1 RC1] Exact Link Post « 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.152 seconds with 19 queries.