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)

etca 12-06-2011 07:00 PM

Quote:

Originally Posted by dartho (Post 2271597)
Replace the contents of the pm_messagelistbit template with
Code:

<div class="thread_<vb:if condition="$show['unread']">
new</vb:if>"><img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" /> <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>

        </div>
<div class="windowbg" id="pm_{vb:raw pm.pmid}">
                <vb:each from="userbit" value="row">
                        <a href="{vb:link member|js, {vb:raw row}}" class="username understate">{vb:raw row.username}</a>{vb:raw row.comma}
                </vb:each>
        : {vb:raw pm.senddate},&nbsp;<span class="time">{vb:raw pm.sendtime}</span>
</div>


thx u. it's works on me.

etca 12-06-2011 07:06 PM

dartho,
how to fix this?

https://vborg.vbsupport.ru/external/2011/12/53.jpg



Quote:

Originally Posted by semprot (Post 2269777)
It works with 4.1.8. However here is how to show Reputation, Infraction, and Report message link.

Put this before last </div> to your postbit template (if you are using non-legacy), or postbit_legacy template (if you are using post legacy)

PHP Code:

<vb:if condition="$show['reputationlink']">
<
a id="btn" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow">Reputation</a>
</
vb:if>

<
vb:if condition="$show['reportlink']">
<
a id="btn" href="{vb:raw post.reportlink}" rel="nofollow">{vb:rawphrase report_bad_post}</a>
</
vb:if>

<
vb:if condition="$show['infractionlink']">
<
a id="btn" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;p={vb:raw post.postid}" rel="nofollow">Infraction</a> &nbsp;
</
vb:if> 


kok ga ngefek?
*it doesn't work

dartho 12-06-2011 09:25 PM

Quote:

Originally Posted by thenamesgould (Post 2274409)
Are you still looking at this one dartho? I tried changing it back to how it was because those <br />'s were appearing in people's posts and annoying me, but I must have done something wrong because now two text boxes are appearing! haha.

But I am happy to give you any more details if you need them. :)



thenamesgould worked out how to reproduce this - it only happens when the user uses full WYSIWIG editor (as set in UserCP).

Found a template only way to resolve:

Edit the editor_ckeditor temaplte and replace contenst with:
HTML Code:

<div id="{vb:raw editorid}">
{vb:raw ckeditor}
</div>

<input type="hidden" name="wysiwyg" id="{vb:raw editorid}_mode" value="{vb:raw editortype}" />

Edit the lightweight.css.php file, search for:
Code:

body
{

and add immediately above:
Code:

.hidden {display:none;}
That should do it.

The following superceded by above, but kept here for reference


[s]
A quick fix is to add a plugin as follows:
Title: Lightweight Style - Set Editor Mode to Standard (bugfix)
Hook: style_fetch (there could be a better place, but this works)
Order: 5
Code:
PHP Code:

// Fixes bug were <br /> shows up in posts when user has Full WYSIWIG editor by overriding to text box only
$vbulletin->userinfo[showvbcode]=0

If you have Lightweioght Style Options installed, you could add the code to the "Enter code here to disable addons" section of that rather than create a new plugin.

There is probably another way, and I'll look into it - but for those that want a fix now, tis is it.[/s]

dartho 12-06-2011 09:39 PM

Quote:

Originally Posted by etca (Post 2275259)

Edit the tagbit_wrapper template and replace it's contents with:

HTML Code:

<vb:if condition="$tag_list">
                <vb:each from="tag_list" value="row">
                        <a href="tags.php?{vb:raw session.sessionurl}tag={vb:raw row.url}">{vb:raw row.tag}</a>{vb:raw row.comma}
                </vb:each>
<vb:else /><i>{vb:rawphrase none}</i></vb:if>


dartho 12-06-2011 09:56 PM

See 2 posts up for template only way to reolve errant <br />'s turning up when quoting - I just edited the post, no plugin required

etca 12-07-2011 12:04 AM

Quote:

Originally Posted by dartho (Post 2275323)
Edit the tagbit_wrapper template and replace it's contents with:

HTML Code:

<vb:if condition="$tag_list">
                <vb:each from="tag_list" value="row">
                        <a href="tags.php?{vb:raw session.sessionurl}tag={vb:raw row.url}">{vb:raw row.tag}</a>{vb:raw row.comma}
                </vb:each>
<vb:else /><i>{vb:rawphrase none}</i></vb:if>


Hooo thanks dartho..
it's works on me

tafreeh 12-07-2011 05:20 AM

Quote:

Originally Posted by tafreeh (Post 2274494)
sorry forgot to maked install :)

@dartho: you missed me again.. :(

thenamesgould 12-07-2011 06:17 AM

Thanks again, dartho. :)

dartho 12-07-2011 11:08 AM

Quote:

Originally Posted by tafreeh (Post 2275431)
@dartho: you missed me again.. :(



I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such.

Having said all that - I'll try and point you in the right direction -

To strip all HTML tags from posts for a specific style ID, create a plugin as follows:

Product:vBulletin
Hook Location: Postbit Disaply Complete
Name: Strip HTML from Mobile Style Posts
Execution Order:5
Code:
Code:

if (STYLEID=='n') {
$post['message']=strip_tags($post['message'],'<br><a>');
}

replace 'n' with teh styleid of your lightweight style.

the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags

mvoelker 12-08-2011 12:32 AM

Just want to chime in and say thanks for this. All my users prefer this significantly over the built in mobile style.


All times are GMT. The time now is 03:20 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.02441 seconds
  • Memory Usage 1,769KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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