MyBB Community Forums

Full Version: Advanced Sidebox 3.1.19
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2018-10-13, 12:29 PM)Wildcard Wrote: [ -> ]
(2018-10-13, 07:02 AM)kbilly Wrote: [ -> ]Hello bro!

How are you doing?

I'm good. Thanks for asking. Smile

(2018-10-13, 07:02 AM)kbilly Wrote: [ -> ]I need your help to create a custom box,where i would like to add some random user manually,who have contributed on my my forum.

The format could the same as of the Top Poster ,with a title,an avatar and the description.

I tried making a custom box but couldn't get it to work.

Okay, custom boxes are for static content. If you want for the content to change, you are probably gonna be better off going with a addon module. Now, if you aren't a PHP coder then you might have a little trouble with that, but it really isn't all that hard.

(2018-10-13, 07:02 AM)kbilly Wrote: [ -> ]Could you kindly help me,please?

Of course, I will try.

What about this: I will try to just make a "Member Spotlight"-type addon for the next version of ASB. This side box will allow you to enter a list of user uids (or just one) and it will randomly select a user and display their details in the side box?

Does that sound reasonable?

(2018-10-13, 07:02 AM)kbilly Wrote: [ -> ]Thanks a lot again for the plugin.

You're welcome.

Thanks for all the good ideas from you and other users! We are making this plugin better, together.

Your idea is also good and i think it could be tried.

Regarding what i need or asked is,i have an award on my forum and this award goes to the best poster of the month,ok?

Now,you would ask,this feature is already included and that is my problem as the top poster will automatically select me as the top poster because i post a lot as i'm the admin.But i was looking to make a custom box,as i tried to explain you in my last post,where i can insert manually some user of my choice with his avatar and where i could write a custom description,like "Congrats to the "username" for winning "awardname".

Is it doable?

Thankyou for your time and dedication.

Regards and respect to you and your work bro!
(2018-10-13, 04:19 PM)kbilly Wrote: [ -> ]Regarding what i need or asked is,i have an award on my forum and this award goes to the best poster of the month,ok?

Now,you would ask,this feature is already included and that is my problem as the top poster will automatically select me as the top poster because i post a lot as i'm the admin.But i was looking to make a custom box,as i tried to explain you in my last post,where i can insert manually some user of my choice with his avatar and where i could write a custom description,like "Congrats to the "username" for winning "awardname".

Is it doable?

Yes, just create a new custom box and put your content inside as follows, save it, and create a new box of this type.

	<tr>
		<td class="trow1" style="{css here}">
			<a href="{profile link}"><img src="{$mybb->user['avatar']}" alt="" height="25%" width="25%"></a><br />
			<strong>	<span class="largetext"><a href="{profile link}">User Name</a></span></strong>
			<span class="smalltext">description<br />
		</td>
	</tr>

Obviously just an example.
Advanced Sidebox 3.1.15 Released

Changes:
  • added validation for the filename entered in the edit script page (entering an invalid script name will display an error message above the setting)
  • moved caching functions into the cache class
  • now the theme exclude setting in ACP will be rebuilt after themes are added/deleted (rebuild link left in settings in case I missed something)
  • added validation to custom side box add/edit page to prevent submitting the form with invalid info
  • moved "Show Sideboxes" UCP setting HTML into its own template
  • a long-overdue full code cleanup was done including checks/changes for coding standards, redundancy, efficiency, and structure
Fixes:
  • a bug where when editing custom boxes with CodeMirror disabled in ACP, extra HTML (from the display page) is output unintentionally (reported by Darkrad)
  • a bug where using an incorrect method of the ACP Table class resulted in malformed HTML in the custom side box edit page
  • a duplicate language entry was removed (reported by 8guawong)
  • a bug where the UCP "Show Sideboxes" setting's installation method was problematic and was changed to a standard find_replace_templatesets call
  • a bug where when editing custom boxes, invalid input redirected the user back the display page rather than the edit page
  • a bug where in the Latest Threads module, the thread link title property was not properly encoded, causing an HTML error

To upgrade: Deactivate in ACP; overwrite existing files; Activate in ACP.
(2018-10-13, 10:11 PM)Wildcard Wrote: [ -> ]Advanced Sidebox 3.1.15 Released

Changes:
  • added validation for the filename entered in the edit script page (entering an invalid script name will display an error message above the setting)
  • moved caching functions into the cache class
  • now the theme exclude setting in ACP will be rebuilt after themes are added/deleted (rebuild link left in settings in case I missed something)
  • added validation to custom side box add/edit page to prevent submitting the form with invalid info
  • moved "Show Sideboxes" UCP setting HTML into its own template
  • a long-overdue full code cleanup was done including checks/changes for coding standards, redundancy, efficiency, and structure
Fixes:
  • a bug where when editing custom boxes with CodeMirror is disabled in ACP, extra HTML (from the display page) is output unintentionally (reported by Darkrad)
  • a bug where using an incorrect method of the ACP Table class resulted in malformed HTML in the custom side box edit page
  • a duplicate language entry was removed (reported by 8guawong)
  • a bug where the UCP "Show Sideboxes" setting's installation method was problematic and was changed to a standard find_replace_templatesets call
  • a bug where when editing custom boxes, invalid input redirected the user back the display page rather than the edit page
  • a bug where in the Latest Threads module, the thread link title property was not properly encoded, causing an HTML error

To upgrade: Deactivate in ACP; overwrite existing files; Activate in ACP.

I may be interested in installing your plugin, but I am curious about this one setting...

"now the theme exclude setting in ACP will be rebuilt after themes are added/deleted (rebuild link left in settings in case I missed something)"

Does this mean that if I have Theme 1, Theme 2, and Theme 3, but I only want to install the plugin into Theme 3, can I exclude Theme 1 & 2 from this plugin?

Is that how that option works?
(2018-10-13, 10:25 PM)Serpius Wrote: [ -> ]I may be interested in installing your plugin, but I am curious about this one setting...

"now the theme exclude setting in ACP will be rebuilt after themes are added/deleted (rebuild link left in settings in case I missed something)"

Does this mean that if I have Theme 1, Theme 2, and Theme 3, but I only want to install the plugin into Theme 3, can I exclude Theme 1 & 2 from this plugin?

Is that how that option works?

Yes. In the plugin settings, you can specify certain themes to exclude, meaning ASB will not work for those theme(s) and those themes won't even show up on the list of possible themes when creating side boxes.

You can also shut the plugin off for mobile browsers, various pages, allow users to disable side boxes individually, and of course, control display by user group.
(2018-10-13, 10:48 PM)Wildcard Wrote: [ -> ]
(2018-10-13, 10:25 PM)Serpius Wrote: [ -> ]I may be interested in installing your plugin, but I am curious about this one setting...

"now the theme exclude setting in ACP will be rebuilt after themes are added/deleted (rebuild link left in settings in case I missed something)"

Does this mean that if I have Theme 1, Theme 2, and Theme 3, but I only want to install the plugin into Theme 3, can I exclude Theme 1 & 2 from this plugin?

Is that how that option works?

Yes. In the plugin settings, you can specific certain themes to exclude, meaning ASB will not work for those theme(s) and those themes won't even show up on the list of possible themes when creating side boxes.

You can also shut the plugin off for mobile browsers, various pages, allow users to disable side boxes individually, and of course, control display by user group.

Very interesting!
Please help me with this error after the plugin activation: Sad


Quote:Fatal error: Call to undefined function asb_get_all_scripts() in inc/plugins/asb/classes/AdvancedSideboxCache.php on line 75
(2018-10-14, 11:43 AM)majlo89 Wrote: [ -> ]Please help me with this error after the plugin activation: Sad


Quote:Fatal error: Call to undefined function asb_get_all_scripts() in inc/plugins/asb/classes/AdvancedSideboxCache.php on line 75

It looks like I made a mistake on this release.

Give me a little while and I'll try to patch it. Sorry!
Hello!

Almost,i have done it.

I need a small help in making the username visibile with the username style as in top poster.

It is currently working as i copied it like this:


<img src="https://myforum.com/uploads/avatars/avatar_1234.jpg?dateline=1212456666" style="width: 135px;" alt="no avatar">
<span style="font-size: small ; color: white;">Congratulations to the user<a href="https://myforum.com/User-username"><i class="fas fa-user-check fa-lg" style="color:#ac95f9"></i> <span style="font-weight:bold;color:#ac95f9;">username</span></a>, for winning the last month's award.<br />
(2018-10-14, 12:43 PM)kbilly Wrote: [ -> ]I need a small help in making the username visibile with the username style as in top poster.

I'm afraid I don't quite understand what you are asking. If you are creating a custom box, export it and attach it to a post so I can download it and give it a try.