Welcome, Guest. Please Login or Register.
November 28, 2024, 04:32:35 AM
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] recentPoll & New recentTopics() for SSI.php « previous next »
Pages: [1] 2 3 ... 5 Reply Ignore Print
Author Topic: [Done 1.5.1] recentPoll & New recentTopics() for SSI.php  (Read 40064 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

[Done 1.5.1] recentPoll & New recentTopics() for SSI.php
« on: February 13, 2003, 07:48:44 AM »
Reply with quote

Name: SSI_Enhancements (recentPoll & New recentTopics)
For: YSE 1.5.1Final
Mod Version: 1.5

Info:
This mod is made for showing the latest or a certain poll in your forum. Options for the poll can be found at the beginning of the SSI.php.
This mod is made to enhance the current recentTopics() function in SSI.php. By using this mod, you will be able to edit the recentTopics look according what you like via a template file, like News.php.

The .mod files are made for YaBB SE 1.5.x
For other YSE versions, check the installation instruction in readme.txt. (just copy and paste the whole recentTopics() function.

Read the readme.txt file or go to the demo site for include instructions!
Open the sample template to check the available variables.

Demo:
..:: PHP Version :: SHTML Version ::..

..:: Download mod file ::..
use with BoardMod for faster edit ;)

Changelogs:
• New in v1.5:
  - recentpoll now not showing hidden boards unless the user has the permission
• New in v1.4:
  - compliant with 1.5.1 bug/security fix
• New in v1.3:
  - included 1.5.1final version
  - fixed poll width not showing properly
• New in v1.2:
  - fixed recentTopics function call
  - made recentPoll function
• New in v1.1:
  - works for .shtml (read the readme.txt file for instructions)
  - "MOVED:" topics are no longer shown
  - topic duplicates are no longer shown (thx to Joseph Fung for the code)

FAQ:
• How to use the new recentTopics?
Same as in the previous versions, only you need to add the template filename that you want to use, example: <?php recentTopics("template1.php"); ?> (.php)
or: <!--#include virtual="SSI.php?function=recentTopics&template=rTopics_template.php" --> (.shtml)
« Last Edit: January 26, 2004, 08:20:24 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #1 on: February 13, 2003, 08:26:25 AM »
Reply with quote

Actual I did 1.5.1 ssi.php and after submitted it compuart made some chages to it. Some was for security others was to reduce query loads I made.  ;D
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #2 on: February 13, 2003, 09:09:25 AM »
Reply with quote

fixed the link

i'll see if i can change 1.5.1 SSI into 1.4.1 style in the next version
i just did that one quickly when upgrading my forum
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
VZey
Noobie
*
Posts: 35


Bring The Beat Back

WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #3 on: February 13, 2003, 10:36:04 AM »
Reply with quote

i have downloaded the mod and boardmod, however as this is the first time im using boardmod with yabbse 1-5-1 (the last time being with yabb gold) I don't know where my script file is that it keeps asking for.

In other words, I have no idea how to install this mod :(

Can someone please explain it to me? thanks :)

edit in: I want to keep my site looking how it is http://ymv.vze.com

I want to have the little icons and then just the topic name, that links to the actual topic. I don't want dates or authors or anything like that.
« Last Edit: February 13, 2003, 10:38:46 AM by VZey » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #4 on: February 13, 2003, 09:11:55 PM »
Reply with quote

its the same way like when u install Y1G
but point the BoardMod to index.php instead of YaBB.cgi/.pl
after installing the mod, open the SSI.php and change the config part (on top of the codes, after the credits)
u'll need to change the path, and the parts that u want to show/hide in recentTopics2())
for details, read http://www.yabbse.org/community/index.php?board=158;action=display;threadid=11961
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
VZey
Noobie
*
Posts: 35


Bring The Beat Back

WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #5 on: February 14, 2003, 03:22:28 AM »
Reply with quote

I have a feature request :)

I'd love to have the little message icon to still be there. Say they selected the thumbsup message icon, I'd like that to be there instead of the >>

Is this possible?

and thanks :)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #6 on: February 14, 2003, 04:50:09 AM »
Reply with quote

open SSI.php

search for the global part (beginning of recentTopics2()
add in the line after:
global $imagesdir;

replace$request2 = mysql_query ("SELECT subject FROM {$db_prefix}messages WHERE ID_MSG=$row[ID_FIRST_MSG] LIMIT 1");

with $request2 = mysql_query ("SELECT subject, icon FROM {$db_prefix}messages WHERE ID_MSG=$row[ID_FIRST_MSG] LIMIT 1");

replace close to the bottom of recentTopic2():
$thepost .="» <a ...
with
$thepost .="<img src=\"$imagesdir/$row[icon]\"> <a ...


maybe i should make something like news_template.php for recentTopics ;)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
VZey
Noobie
*
Posts: 35


Bring The Beat Back

WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #7 on: February 14, 2003, 05:18:30 AM »
Reply with quote

I did what you said (i think)

But ended up with broken little images

http://id.hostnexus7.com/~ymv/

My SSI file is here

http://id.hostnexus7.com/~ymv/forum/SSI.php

Thanks.
« Last Edit: February 14, 2003, 05:25:29 AM by VZey » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #8 on: February 14, 2003, 05:21:22 AM »
Reply with quote

This:

$thepost .="<img src=\"$imagesdir/$row[icon]\"> <a ...  

Should be:

$thepost .="<img src=\"$imagesdir/$row[icon].gif\"> <a ...  

No big deal..

-[Unknown]
Logged
VZey
Noobie
*
Posts: 35


Bring The Beat Back

WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #9 on: February 14, 2003, 05:26:02 AM »
Reply with quote

Now I'm getting this

http://id.hostnexus7.com/.gif

But still no icon...
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #10 on: February 14, 2003, 05:32:07 AM »
Reply with quote

sorry, 2 typos, its supposed to be $row2 and forgot the .gif
         $thepost .="<img src=\"$imagesdir/$row2[icon].gif\"> <a href
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
VZey
Noobie
*
Posts: 35


Bring The Beat Back

WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #11 on: February 14, 2003, 05:42:14 AM »
Reply with quote

thanks :) It sorta works now, I'm getting

http://id.hostnexus7.com/smiley.gif

Do I just add /~ymv/forum/YaBBImages in the code somewhere?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #12 on: February 14, 2003, 05:53:27 AM »
Reply with quote

Need there be a global $imagesdir?

-[Unknown]
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #13 on: February 14, 2003, 05:58:38 AM »
Reply with quote

yes, i've stated in my post above:


Quote from: Spaceman-Spiff on February 14, 2003, 04:50:09 AM
open SSI.php

search for the global part (beginning of recentTopics2()
add in the line after:
global $imagesdir;
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
VZey
Noobie
*
Posts: 35


Bring The Beat Back

WWW
Re:[Done 1.5.x] old-style SSI.php recentTopics()
« Reply #14 on: February 14, 2003, 06:12:08 AM »
Reply with quote

Thanks so much, it works perfectly now :)

Sorry about the amount of questions I asked, it's just that I have no clue about coding and rely on copy n paste jobs.  

Anyways, thanks for your time.
Logged
Pages: [1] 2 3 ... 5 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] recentPoll & New recentTopics() for SSI.php « 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.028 seconds with 20 queries.