Welcome, Guest. Please Login or Register.
April 24, 2024, 11:24:57 AM
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.4.x, 1.5.x) YaBB version mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: (Done 1.4.x, 1.5.x) YaBB version mod  (Read 3238 times)
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
(Done 1.4.x, 1.5.x) YaBB version mod
« on: May 20, 2003, 08:24:46 PM »
Reply with quote

If you're proud of your Yabb version and want to show it off (inspired by the 1.5.3 upgrade).
-----------------------------------------------------------
<ID>
YaBB Version Mod
</ID>

<Version>
1.0
</Version>

<Mod Info>
Proudly display your Yabb version on your front page.
</Mod Info>

<Author>
Dan E. Monk (old dan)
</Author>

<Edit File>
English.lng
</Edit File>

<Search For>
$yycopyright = "<font face=\"Verdana, Arial\" size=\"1\"> $mbname | Powered by <a href=\"http://www.yabbse.org/index.php?affiliate=$mbname;l=$boardurl;v=$YaBBversion\" target=\"_blank\">YaBB SE</a><br />\n© 2001-2003, YaBB SE Dev Team. All Rights Reserved.</font>";
</Search For>

<Replace>
$yycopyright = "<font face=\"Verdana, Arial\" size=\"1\"> $mbname | Powered by <a href=\"http://www.yabbse.org/index.php?affiliate=$mbname;l=$boardurl;v=$YaBBversion\" target=\"_blank\">$YaBBversion</a><br />\n© 2001-2003, YaBB SE Dev Team. All Rights Reserved.</font>";
</Replace>
-----------------------------------------------------------

I would appreciate it if someone could translate this for me. :)


To see it in action go to
http://olddan.themonks.info/Board/
and scroll down to the bottom of the page.
« Last Edit: May 20, 2003, 08:35:58 PM by old dan » Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #1 on: May 20, 2003, 10:29:00 PM »
Reply with quote

Care to explain this?   ???

Members: 2726  &#8226;  Posts: 237  &#8226;  Topics: 21  

I'm confused ;)
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #2 on: May 21, 2003, 01:38:12 AM »
Reply with quote

Quote from: charlottezweb on May 20, 2003, 10:29:00 PM
Care to explain this?   ???

Members: 2726  •  Posts: 237  •  Topics: 21  

I'm confused ;)

Not sure what (Members: 2726  •  Posts: 237  •  Topics: 21 ) has to do with the mod. And it has very little to do with my test board (http://olddan.themonks.info/Board/), as only 2 of those members ever post. Me and my alter ego. :)

About the mod: it's very trivial. All it does is change the link to Yabb from YaBB SE to Powered by YaBB SE 1.5.3  (provided you have 1.5.3 installed, otherwise it will display your current version)

The reason I did this is I installed the upgrade to 1.5.3 and then rolled the mouse over the link to see if it displayed. Well the link is too long and cut off before the version was displayed. :( So I changed the text in english.lng. Then I thought maybe others would like to do the same so I wrote up this mod.

This may be the simplest mod ever written. It's actually a warmup for another mod I'm going to make. I just wanted to see if I still remembered everything.
Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #3 on: May 21, 2003, 01:51:04 AM »
Reply with quote

Mind if I include this mod in my project/1.6.0?  ;D.

I've always thought this was a good idea... never understood why the version isn't down there.

So what's this new other mod...?

-[Unknown]
Logged
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #4 on: May 21, 2003, 01:59:26 AM »
Reply with quote

Quote from: [Unknown] on May 21, 2003, 01:51:04 AM
Mind if I include this mod in my project/1.6.0?  ;D.

I've always thought this was a good idea... never understood why the version isn't down there.
-[Unknown]
no problem, in fact I'd be honored. :)



Quote from: [Unknown] on May 21, 2003, 01:51:04 AM

So what's this new other mod...?

-[Unknown]

it's a secret.  ;D ;D ;D (j/k)

It's a new post based membergroup mod so you can add, change or delete post based membergroups from the admin panel. And there's no limit to how many groups you can make. I'm testing it out now. :)
Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #5 on: May 21, 2003, 02:06:59 AM »
Reply with quote

I've done a lot of work on that kinda thing.  How does this compare?

I posted this:
QuoteCREATE TABLE IF NOT EXISTS {$db_prefix}post_groups (
  ID_GROUP smallint(6) NOT NULL default '0',
  minPosts smallint(5) unsigned NOT NULL default '0',
  stars tinyint(4) unsigned NOT NULL default '0',
  starImage tinytext NOT NULL default 'star.gif',
  PRIMARY KEY (ID_GROUP),
  KEY minPosts (minPosts)
) TYPE=MyISAM;

INSERT IGNORE INTO {$db_prefix}post_groups
  (ID_GROUP, minPosts, stars, starImage)
VALUES
  (1, 0, 5, 'staradmin.gif'),
  (2, 0, 5, 'starmod.gif'),
  (3, 0, 1, 'star.gif'),
  (4, 50, 2, 'star.gif'),
  (5, 100, 3, 'star.gif'),
  (6, 250, 4, 'star.gif'),
  (7, 500, 5, 'star.gif'),
  (8, 0, 5, 'stargmod.gif');

SELECT pg.ID_GROUP, pg.stars, pg.starImage, mg.membergroup
FROM {$db_prefix}post_groups AS pg, {$db_prefix}membergroups AS mg
WHERE (pg.minPosts<$posts OR ID_GROUP=$ID_GROUP)
  AND pg.ID_GROUP=mg.ID_GROUP
ORDER BY pg.minPosts DESC
LIMIT 1

If the user's a mod, the ID_GROUP should... possibly?... be changed to 2.

Thoughts?

Do note this is for my project, and in it ID_GROUP is used instead of memberGroup.

-[Unknown]
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #6 on: May 21, 2003, 02:07:39 AM »
Reply with quote

I was just curious  ;D

Cool mod though.

Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #7 on: May 21, 2003, 09:54:26 AM »
Reply with quote

Quote from: [Unknown] on May 21, 2003, 02:06:59 AM
I've done a lot of work on that kinda thing.  How does this compare?

I posted this:
QuoteCREATE TABLE IF NOT EXISTS {$db_prefix}post_groups (
  ID_GROUP smallint(6) NOT NULL default '0',
  minPosts smallint(5) unsigned NOT NULL default '0',
  stars tinyint(4) unsigned NOT NULL default '0',
  starImage tinytext NOT NULL default 'star.gif',
  PRIMARY KEY (ID_GROUP),
  KEY minPosts (minPosts)
) TYPE=MyISAM;

INSERT IGNORE INTO {$db_prefix}post_groups
  (ID_GROUP, minPosts, stars, starImage)
VALUES
  (1, 0, 5, 'staradmin.gif'),
  (2, 0, 5, 'starmod.gif'),
  (3, 0, 1, 'star.gif'),
  (4, 50, 2, 'star.gif'),
  (5, 100, 3, 'star.gif'),
  (6, 250, 4, 'star.gif'),
  (7, 500, 5, 'star.gif'),
  (8, 0, 5, 'stargmod.gif');

SELECT pg.ID_GROUP, pg.stars, pg.starImage, mg.membergroup
FROM {$db_prefix}post_groups AS pg, {$db_prefix}membergroups AS mg
WHERE (pg.minPosts<$posts OR ID_GROUP=$ID_GROUP)
  AND pg.ID_GROUP=mg.ID_GROUP
ORDER BY pg.minPosts DESC
LIMIT 1

If the user's a mod, the ID_GROUP should... possibly?... be changed to 2.

Thoughts?

Do note this is for my project, and in it ID_GROUP is used instead of memberGroup.

-[Unknown]
Cool, I'll hold off on mine.

Interesting question about moderators. doesn't that change depending if they are in a forum they moderate or not?

Looking at your code the major difference between your mod and mine is the way we handle stars. In mine I just used single gifs. In other words for a group with 5 stars the gif would be 5 stars rather than 5 individual star gifs. That way I only needed to add one more field to the db and kept everything in the membergroups table. Plus it makes it more flexible in case a user wants to use something beside stars. Adding the gif name would be good. I just used 'userstar = star[post count].gif'.

anyway, this is something that has been needed to be done for a long time. I really liked and used Thunderaces mod. And he was of course my inspiration.

Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
Re:(Done 1.4.x, 1.5.x) YaBB version mod
« Reply #8 on: May 21, 2003, 09:55:22 AM »
Reply with quote

Quote from: charlottezweb on May 21, 2003, 02:07:39 AM
I was just curious  ;D

Cool mod though.



thanks. And curiousity is good. Unless you're a cat. ;)
Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  (Done 1.4.x, 1.5.x) YaBB version mod « 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.054 seconds with 21 queries.