|
|
|
|
Joined: Aug 2000
Posts: 335
Member
|
|
Member
Joined: Aug 2000
Posts: 335 |
quote: I want to change my 6.04 board so that when the first icon is picked (the default one) it then gives a random icon when the post is sent.
I don't understand why you want to do this.
However:
In ubb_lib_posting.cgi, sub create_topic, find the place where $icon_number is used to construct the string $this_icon. If you want to assume that the icon files are numbered consecutively starting with 1, you can simply set $icon_number to int(rand N) + 1, where N is the number of icons. If you don't want to make that assumption, it's messier. You could use glob() to get the icon file names into a list, select a random item from the list, then construct $this_icon from that selected item.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1205
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 5
|
|
|
|
|
|