Page Index Toggle Pages: 1 Send TopicPrint
Sticky Topic Modding notes for 2.4 (Read 1753 times)
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Modding notes for 2.4
Feb 27th, 2009 at 6:55pm
Print Post  
Will somebody with the power to do so consider stickying this?

I was talking with Deti over on the YaBB forum, about some of the code changes in 2.4 (CVS version, being changed when problems are found). I asked about some code changes that were going to affect the quiz mod, and it is one that will probably affect several others, too. I suggested a thread here, where some of these code changes can be noted, with their solutions for the mod writers.

Users who are just installing mods don't need to worry about this thread, but mod writers might be helped by reading bits that are posted here.



The first large code change issue that came up involved AdvancedTabs.pl, which has gone through a fairly large reorganization. One of the steps in adding things to the tab menu used to involve a Push(@tabs ... added after an extended @tabs line in the .pl file ... but that information has moved to a variables file.

Here's the new way to do it, in Deti's very helpful explanation:

After upgrading to 2.3.2Beta (!!! Not released jet !!!) you will find something like this in the Variables/advsettings.txt

Code
Select All
@AdvancedTabs = stpm","mycenter","logout");# Advanced Tabs order and infos  



add after this line:
Code
Select All
push(@AdvancedTabs, "tabname"); 



Maybe it is better you add the above code before:
Code
Select All
1; 



Because the @AdvancedTabs = ("home",... code may differ from forum to forum.

This code will disappear when you save some settings once, then the "tabname" will be written at the end of the @AdvancedTabs = ("home",...

PLEASE NOTE
This file does not exist in the forum package ... it is created during the setup of the forum, so the person installing your mod will need to download it from their Variables directory before modding it.
« Last Edit: Apr 15th, 2009 at 9:28pm by batchman »  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Modding notes for 2.3.2
Reply #1 - Feb 28th, 2009 at 1:36am
Print Post  
Thanks for the info, batchman

now sticking Smiley
  

The Administrator.
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: Modding notes for 2.3.2
Reply #2 - Apr 14th, 2009 at 9:21pm
Print Post  
Hi
in YaBB 2.4 will this in Variables/Settngs.pl. Wink
  

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


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Modding notes for 2.3.2
Reply #3 - Apr 14th, 2009 at 11:50pm
Print Post  
OMG! What a major step backwards for modwriters who want to add a tab to the menu for their mod - now you can't do that in a resonable way.

I suspect the same thing happened to the option to add a small text (.cfg) file to auto-add new templates - sad thing!!

And for what reason?? To avoid loading a very small (approx. 100 byte) file??
  

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
 
deti
Full Member
***
Offline


YaBB is the best!!!

Posts: 101
Location: Prien am Chiemsee
Joined: Mar 13th, 2008
Re: Modding notes for 2.3.2
Reply #4 - Apr 15th, 2009 at 8:40pm
Print Post  
Carsten wrote on Apr 14th, 2009 at 11:50pm:
To avoid loading a very small (approx. 100 byte) file??

The size doesn't take the time. The open/require of the file on each YaBB call does take time and increases serverload value.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
Johann Wolfgang Goethe
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint