Thread Rating:
  • 4 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Advanced Sidebox 3.1.19
(2018-09-20, 04:19 PM)Wildcard Wrote: Each module has templates associated with them. For example, Latest Threads uses all of the template in the Advanced Sidebox template group that begin with the prefix asb_latest_threads_

You may alter those templates to implement almost any style you like.

I am at work for a while longer, but when I get home if you still need help, I'll try.

ths for the tip i have changed

asb_latest_threads_thread to
				<tr>
					<td class="{$altbg}">
						 {$last_poster}<a href="{$mybb->settings['bburl']}/{$thread['threadlink']}" title="{$fullSubject}"><strong>{$thread['subject']}</strong></a>
					</td>
				</tr>

and
asb_latest_threads_last_poster_avatar to
{$lastposterlink}

but i do not know how to make the avatar like circle



i figured out how to make the avatar round now Big Grin
heres is my solution (don't laugh i'm not an expert on this kinda things)

change asb_latest_threads_thread template to
<tr>
                    <td class="{$altbg} portal-latest-thread-avatar">
                         {$last_poster}<a href="{$mybb->settings['bburl']}/{$thread['threadlink']}" title="{$fullSubject}"><strong>{$thread['subject']}</strong></a>
                    </td>
                </tr>

and then add your own css with the following content
.portal-latest-thread-avatar img { 
	border-radius: 50%;
}

so now just need to know how to translate the table header of sidebox

   

don't think you can translate those..

did a match whole word only and match case search in asb_addon.lang.php for WELCOME returned nothing
Okay, good work figuring the avatar out, but there is an easier way to do that.


<img src="{$avatarInfo['image']}" alt="{$thread['last_post']}" title="{$thread['lastposter']}'s profile" style="width: {$avatar_width}px; border-radius: 50%;"/>

Note: This will cause you to have to delete {$last_poster} or there will be two avatars.

In the next version, I'll separate the avatar into its own template so that editing its style will be much easier: https://github.com/WildcardSearch/Advanc...issues/322



Also, here is a link I didn't have access to earlier that details all the variables that are available to you inside each module's templates: https://github.com/WildcardSearch/Advanc...nformation



Now to the language issue. The language variable you want (for Welcome) is on line 43 of inc/languages/{your_lang}/asb_addon.lang.php and inc/languages/{your_lang}/admin/asb_addon.lang.php

NOTE: You must recreate the side box before the translation will be used because the title is stored in the database when saving/editing.
(2018-09-20, 08:05 PM)Wildcard Wrote: Okay, good work figuring the avatar out, but there is an easier way to do that.


<img src="{$avatarInfo['image']}" alt="{$thread['last_post']}" title="{$thread['lastposter']}'s profile" style="width: {$avatar_width}px; border-radius: 50%;"/>

Note: This will cause you to have to delete {$last_poster} or there will be two avatars.

In the next version, I'll separate the avatar into its own template so that editing its style will be much easier: https://github.com/WildcardSearch/Advanc...issues/322



Also, here is a link I didn't have access to earlier that details all the variables that are available to you inside each module's templates: https://github.com/WildcardSearch/Advanc...nformation



Now to the language issue. The language variable you want (for Welcome) is on line 43 of inc/languages/{your_lang}/asb_addon.lang.php and inc/languages/{your_lang}/admin/asb_addon.lang.php

NOTE: You must recreate the side box before the translation will be used because the title is stored in the database when saving/editing.

ok i knew there are probably better ways of doing it than what i was doing Toungue

ummm about the translation
I've changed the line like you said
removed the sidebox and readd sidebox -> still not translated
uinstall and install the abs plugin and readd sidebox -> still not translated

i even went ahead and changed the english translation just to check but the text did not change
line 43 changed to
$l['asb_welcome'] = 'Testing';



after more testing to get the header to change you need to change line 43 of admin/asb_addon.lang.php
but you can't really change the translation of the header using the language selector
it seems like its hardcoded or am i doing something wrong?
I didn't test that part yesterday because I am in the middle of updating another plugin. I will take a look this evening and let you know how it goes.
(2018-09-21, 10:12 AM)Wildcard Wrote: I didn't test that part yesterday because I am in the middle of updating another plugin. I will take a look this evening and let you know how it goes.

hey Wildcard any updates? Toungue
I'm not gonna lie to you. I completely forgot about this.

I'll try again today.
Advanced Sidebox 3.1.13 Released

Special thanks to Eldenroot who suggested both of the new modules.

Birthdays:

[Image: 2uzgBDe.png]


Changes:
  • new module: Birthdays shows today's birthdays and upcoming birthdays
  • new module: Forum Age shows forum start date and time since
  • added peekers for module settings where appropriate
  • upgraded installer
  • moved Latest Threads avatar HTML into its own template for easy customization
Fixes:
  • an issue where improperly set server permissions cause images and style sheets installation to fail
  • an issue where module settings were displayed with duplicate ids for the row and input element
  • a duplicate entry in the modules' language file

To upgrade: Deactivate, overwrite existing files, Activate.
Thank you, great update!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
great release WildCard!
did you get a chance to investigate the issue that i've brought up?

also i found another duplicate entry in the translation
admin/asb_addon.lang.php
line 112 and 119
(2018-09-23, 04:15 PM)Eldenroot Wrote: Thank you, great update!

You're welcome. Smile

(2018-09-23, 04:17 PM)8guawong Wrote: great release WildCard!
did you get a chance to investigate the issue that i've brought up?

also i found another duplicate entry in the translation
admin/asb_addon.lang.php
line 112 and 119

Yes, but I am having no problem at all:

[Image: 8nIpUUU.png]

Make sure you are following these steps:

  1. Edit BOTH inc/languages/{your_lang}/asb_addon.lang.php AND inc/languages/{your_lang}/admin/asb_addon.lang.php
  2. Create a new new module of that type
  3. Save it.


Forum Jump:


Users browsing this thread: 1 Guest(s)