vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

Azum 10-22-2014 10:05 PM

Quote:

Originally Posted by dartho (Post 2519470)
Do you mean "inline" as in inserting an image, such as https://vborg.vbsupport.ru/images/ed...nsertimage.gif, in the middle of of a post ?

Yeah, I can't seem to get the image to insert into the body of the message after it's uploaded...

dartho 10-24-2014 02:31 AM

I've had a bit of a look, and I don't think there is any easy way to do that without bringing in the full ckeditor ...

Azum 10-24-2014 03:53 PM

Quote:

Originally Posted by dartho (Post 2519900)
I've had a bit of a look, and I don't think there is any easy way to do that without bringing in the full ckeditor ...

Thanks anyway...

On another note, I've noticed that line breaks aren't preserved when quoting. Any fix for that aside from disabling the WYSIWYG editor?

Mark.B 10-24-2014 07:35 PM

Ok you need to create a new plugin at newreply_start. I called mine Line Break Fix which helped me locate it years later. :)

Add this code:
PHP Code:

if (STYLEID==$vbulletin->options['ls_mobile_style'])
{
$vbulletin->userinfo[showvbcode]=0;



Azum 10-24-2014 07:44 PM

Quote:

Originally Posted by Mark.B (Post 2519959)
Ok you need to create a new plugin at newreply_start. I called mine Line Break Fix which helped me locate it years later. :)

Add this code:
PHP Code:

if (STYLEID==$vbulletin->options['ls_mobile_style'])
{
$vbulletin->userinfo[showvbcode]=0;



I saw your earlier post about that, and it works... but then my checkbox for AME convert URLs to videos doesn't show up because it kills the newpost_disablesmilies hook.

Mark.B 10-24-2014 07:53 PM

That's a weird one....I don't have any AME options showing anywhere (although I do use AME) so haven't run into this.

I can't understand why it would affect code run at another hook. It's just an if conditional, which is closed off. So whether it returns true or false, it ought not to affect any other hooks.

Could it be that the AME checkbox only shows on the WYSIWYG? That would explain it, as you've turned the WYSIWIG off with my code.....though only in the mobile style. Shouldn't affect a normal style.

Slightly baffled, I'm afraid.

Azum 10-24-2014 08:18 PM

Quote:

Originally Posted by Mark.B (Post 2519965)
That's a weird one....I don't have any AME options showing anywhere (although I do use AME) so haven't run into this.

I can't understand why it would affect code run at another hook. It's just an if conditional, which is closed off. So whether it returns true or false, it ought not to affect any other hooks.

Could it be that the AME checkbox only shows on the WYSIWYG? That would explain it, as you've turned the WYSIWIG off with my code.....though only in the mobile style. Shouldn't affect a normal style.

Slightly baffled, I'm afraid.

Took me awhile to figure it out, but AME adds the convert URLs to video checkbox by looking for the newpost_disablesmilies hook, if present, it injects the checkbox before the smilies checkbox... and from what I can tell the newpost_disablesmilies hook only gets called in the WYSIWYG editor.

I'm working on trying to change it to something else, like attachments... maybe you could help.

Like this code here works, but I want it to show up after the attachments box, not before it... which is what it currently does. (note newpost_attachment was newpost_disablesmilies until I changed it).

Code:

hook: parse_templates

if ($vbulletin->templatecache['newpost_attachment'])
        {
                require_once(DIR . '/includes/ame_prep.php');
                $ame = new AME_editor_prep($vbulletin, THIS_SCRIPT);                       
                $ame->add_template_injection(
                        array(
                                'type'                => 'cache',
                                'name'                => 'newpost_attachment',
                                'search'        => '$final_rendered = \'',
                                'replace'        => '$final_rendered = \'<li><label for="cb_parseame"><input type="checkbox" name="parseame" value="1" id="cb_parseame" tabindex="1" %2$s /> \' . vB_Template_Runtime::parsePhrase("ame_auto_convert") . \'</label><input type="hidden" name="parseame_check" value="1" /><input type="hidden" name="parseame_wasdisabled" value="%1$d" /></li>'
                        )                       
                );
               
                $ame->do_template_injections();                       
               
        }


Azum 10-24-2014 11:17 PM

nevermind, didn't work correctly.

Gadget_Guy 11-16-2014 12:18 AM

dartho....

Trying to PM you about hiring you for a custom version of this skin but your PM box is full.

Can you contact me with a way I can get a message to you?

D.

dartho 11-16-2014 12:14 PM

Try again!


All times are GMT. The time now is 04:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02405 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete