Page Index Toggle Pages: 1 [2] 3 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Compliance Rules for Y2 mods (Read 2163 times)
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #15 - Jan 24th, 2005 at 3:02pm
Print Post  
7. All 'mod images' should be added to a sub-folder under 'public_html/yabbfiles/ModImages'. System variables for mod images are:

$modimgurl = Base URL for all mod images.
$modimgdir = Base Path for all mod images.
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
Kong
God Member
*****
Offline


Is it just me or is my
back hairy???

Posts: 858
Joined: Aug 2nd, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #16 - Jan 27th, 2005 at 10:12pm
Print Post  
I know there are things that you dont' wanted edited but it hasn't been mentioned so I'm asking.

What about a mod that requires editing of ubbc.js and yabbc.js?

Is that alright?
  


Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #17 - Feb 8th, 2005 at 7:08pm
Print Post  
Quick question - I am planning to make a very, very simple mod that will just add an iFrame to the Post page.  However, I'd like the admin to be able to turn it on and off in the admin panel.  It would just be a single setting that would be included (Turn XXXXX On/Off).  Where would I put that?

If I decide to add a few more options (I may have the admin be able to control color settings within the admin panel as well, but I'm not really working on that yet), I'm guessing I should make a new page within the admin panel for my mod.  Where would I add that?

Sorry if these seem like silly questions.  I know some things have changed since the original RC of YaBB2, and I may just hold off releasing a YaBB2 version of my mod until YaBB2 is finalized, but I'm just curious what the standards are now, and how to go about adding the info.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #18 - Feb 8th, 2005 at 8:31pm
Print Post  
Personally, I would have a separate section, if you have any options, this way it's easy to tell where it is, and what mods you have installed.

Unless it's a mod which changes the way settings pages work, then it should have it's own section IMHO.
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Kong
God Member
*****
Offline


Is it just me or is my
back hairy???

Posts: 858
Joined: Aug 2nd, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #19 - Feb 8th, 2005 at 8:37pm
Print Post  
I'm pretty sure they don't want anyone modifying any pages which already exist within the Admin Center.
  


Back to top
 
IP Logged
 
Eddy
New Member
*
Offline



Posts: 17
Joined: Jan 11th, 2005
Re: Compliance Rules for Y2 mods
Reply #20 - Feb 22nd, 2005 at 5:10pm
Print Post  
Has there been any consideration given to having some file that mod writers can modify so that it is easy for YaBB to determine which mods / versions have been applied?

I'm envisioning just a simple hash:

$installed_mods{"mod_name-version"} = "author";

Then, in all the "official" mods that are eventually released for YaBB 2, the mod author would just need to be sure and include a simple section like this:

<search for>
# append installed mods here
</search for>

<add after>
$installed_mods{"QuickSearch-1.2"} = "Eddy";
</add after>

Then, in the YaBB admin screen, it would be trivial to list the actual installed mods in alphabetical order, without having to upload the 'install.log' file from BoardMod (for example)...

foreach $mod (sort keys %installed_mods) {
  $yymain .= "$mod by $installed_mods{$mod}<br>";
}

Thoughts?
  
Back to top
 
IP Logged
 
Kong
God Member
*****
Offline


Is it just me or is my
back hairy???

Posts: 858
Joined: Aug 2nd, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #21 - Feb 22nd, 2005 at 5:22pm
Print Post  
I always add the version info to the mod title.

For example, the Simple Spoiler 2 mod if you view it's settings it says  Single Spoiler <version>.

You could also add that to the name listed in the mods section of Admin Center.

I do know what you mean though, I'm juts offering suggestions. Smiley
  


Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #22 - Mar 30th, 2005 at 3:01pm
Print Post  
While creating a new template, I have found it necessary (upon Michael Prager's suggestion) to add a second yabb menu definition.  Currently, I have simply modified Subs.pl, to add a $yymenu2 variable into it, which is probably frowned upon.

How should I go about adding in a second yabb menu variable?

Also - how should I define a new image variable?  I know Carsten mentioned mod images should have their own subdirectory, but my new images are simply part of the template I worked on, so they have gone in the appropriate template directories.  However, I have found it desirable to add a second "profile" image variable, so that I can have two separate profile buttons (one that is simply an icon for the yabb menu, and a completely different one that will appear in a user's posts).  Where and how should I define $img{'profile2'} or whatever I should call it?

You can see the modifications I've already made by visiting this topic.  Please let me know if I'm on the right track, and, if not, then give me some suggestions.  When I originally started the template, I wasn't planning on making any modifications at all.  However, I found as I started working on it, that it required some minor modifications in order to get it to function properly.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #23 - Mar 31st, 2005 at 7:05pm
Print Post  
Quote:
While creating a new template, I have found it necessary (upon Michael Prager's suggestion) to add a second yabb menu definition.  Currently, I have simply modified Subs.pl, to add a $yymenu2 variable into it, which is probably frowned upon.

How should I go about adding in a second yabb menu variable?

As the main template is done now the way suggested by Michael is the only way to add alternative menus. Problem is that the contens of the menu changes according to the situation - one menu for guests and another for members, and yet another for admins. Meaning, to avoid "unsubstituted tags" in the html code, the yabb menu must be defined 'as one variable' by the perl script.

Quote:
Also - how should I define a new image variable?  I know Carsten mentioned mod images should have their own subdirectory, but my new images are simply part of the template I worked on, so they have gone in the appropriate template directories.  However, I have found it desirable to add a second "profile" image variable, so that I can have two separate profile buttons (one that is simply an icon for the yabb menu, and a completely different one that will appear in a user's posts).  Where and how should I define $img{'profile2'} or whatever I should call it?

You can see the modifications I've already made by visiting this topic.  Please let me know if I'm on the right track, and, if not, then give me some suggestions.  When I originally started the template, I wasn't planning on making any modifications at all.  However, I found as I started working on it, that it required some minor modifications in order to get it to function properly.

$img{'profile2'} should be defined in the Menu0.def, Menu1.def and Menu2.def in /Variables folder.
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #24 - Apr 28th, 2005 at 10:58am
Print Post  
I've just added a section to the admin-centre which lists all installed mods.

You will need to do the following to get this to work.

In ModList.pl, do the following

Search For:
Code
Select All
### END BOARDMOD ANCHOR ### 



Add Before
Code
Select All
 	$my_mod = "Name_of_Mod|Author|Description|Version|Date Released";
	push (@installed_mods, "$my_mod");
 



The reason why I suggest adding before, is because this then preserves the order in which the mods were installed.

The Date Released section can be in any format you want, it will be displayed "as-is"

The description section can be as long as you want, it has a relatively large area to be displayed in, so don't think you are only allowed to write a sentence Wink - Of course, don't put the whole manual in the description, but get a happy medium between the two.
« Last Edit: May 8th, 2005 at 6:04pm by LoonyPandora »  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #25 - Apr 28th, 2005 at 11:12am
Print Post  
Hi Loony
i can not find Modlist.pl  Roll Eyes
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #26 - Apr 28th, 2005 at 11:22am
Print Post  
It's only in CVS at the moment Wink - Wait for the next weekly
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #27 - Apr 28th, 2005 at 11:24am
Print Post  
aha OK thnx  8)
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #28 - Jul 22nd, 2005 at 7:11pm
Print Post  
Carsten wrote on Jan 24th, 2005 at 3:02pm:
7. All 'mod images' should be added to a sub-folder under 'public_html/yabbfiles/ModImages'. System variables for mod images are:

$modimgurl = Base URL for all mod images.
$modimgdir = Base Path for all mod images.


Hi Carsten
I have one question. If we make Mods with add Buttons in Menu, must the in

yabbfiles/Buttons/German/
yabbfiles/Buttons/English/
yabbfiles/Buttons/Nederlands/

or

yabbfiles/ModImages/

Because there a different language Buttons for Mods. Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Kong
God Member
*****
Offline


Is it just me or is my
back hairy???

Posts: 858
Joined: Aug 2nd, 2002
Gender: Male
Re: Compliance Rules for Y2 mods
Reply #29 - Jul 22nd, 2005 at 8:00pm
Print Post  
I would suggest maybe code in the mod to check the users language ad then use the appropriate image.

This means you'd be able to put the images in the ModImages Directory still.
  


Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 
Send TopicPrint