vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebTemplates 2.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=54875)

Logician 01-22-2006 01:17 PM

Quote:

Originally Posted by digitalSite
Hi, I'm, back :) I got the hang of using the themes, templates, queries...this hack is too cool :)

I have a question about dateline:

If using the external Javascript option within vB, the display of a thread looks like:

Test Thread ? Today 09:35 AM by Me

My Webtemplates thread looks like:

First Post!... Me 01-15-2006 - 03:59 AM

I am interested to know if it's possbile to use Today, Yesterday, 2 days ago, 5 days ago, instead of the date format. :)

You are in vb2 thread. ;) (OR is my link in the options wrong?)

It should display the dates in the format you set in your vboptions. So if you are using yesterday/today format, wt dates should be so too.

digitalSite 01-22-2006 01:38 PM

Quote:

Originally Posted by Logician
You are in vb2 thread. ;) (OR is my link in the options wrong?)

It should display the dates in the format you set in your vboptions. So if you are using yesterday/today format, wt dates should be so too.

Ooops! Thanks! lol...I did a search and posted here. :)

Aaron1 09-13-2006 03:43 PM

Hi Logician, don't know if you will spot this message in such an old thread, but somehow I can't get a webquery to parse the pagetext (post) without any bbcodes.

I have setup a Discography webtemplate with comments inside, you can see here: http://www.housequake.com/view.php?s=&pg=discography
On the right hand side bottom, you can see some comments that shows the bbcode. Example: ([quote]Originally posted by DicxdPlay on 11-09-06 at 16:17 [b])

This is my webquery:

Code:

SELECT username, IF(LENGTH(pagetext) > 130, CONCAT(LEFT(pagetext, 127), "..."), pagetext)  AS pagetext
FROM post
WHERE threadid = 51953
ORDER  BY dateline
DESC limit 7

And the Queryresult row:

Code:

<div align="left" class="cmbx"><div class="cmbxd"><b> $WQfield[username]</b></div><div class="cmbxt">$WQfield[pagetext]</div></div>


I have tried adding to the field BB Code Parsed Field Names various settings. Like 'pagetext', 'bbcodeparse2', 'bbcodeparse', 'message'. Etc. But it keeps showing the bbcode. Any idea why this won't work for me? Do I maybe need to add a phpinclude to make this work perhaps?

Best,

/Aaron

Logician 09-13-2006 04:04 PM

[quote=Aaron1]Hi Logician, don't know if you will spot this message in such an old thread, but somehow I can't get a webquery to parse the pagetext (post) without any bbcodes.

I have setup a Discography webtemplate with comments inside, you can see here: http://www.housequake.com/view.php?s=&pg=discography
On the right hand side bottom, you can see some comments that shows the bbcode. Example: (
Quote:

Originally posted by DicxdPlay on 11-09-06 at 16:17 )

This is my webquery:

Code:

SELECT username, IF(LENGTH(pagetext) > 130, CONCAT(LEFT(pagetext, 127), "..."), pagetext)  AS pagetext
Code:

FROM post
WHERE threadid = 51953
ORDER  BY dateline
DESC limit 7

And the Queryresult row:

Code:

<div align="left" class="cmbx"><div class="cmbxd"><b> $WQfield[username]</b></div><div class="cmbxt">$WQfield[pagetext]</div></div>




[b]I have tried adding to the field BB Code Parsed Field Names various settings. Like 'pagetext', 'bbcodeparse2', 'bbcodeparse', 'message'. Etc. But it keeps showing the bbcode. Any idea why this won't work for me? Do I maybe need to add a phpinclude to make this work perhaps?

Best,

/Aaron
You are receiving your text with CONCAT command so only a snippet of it is pulled from datase. If this snippet has a starting bb code tag but missing the ending tag, vbulletin (or WT) can not strip them. bbcodeparse section will work if you get all of the text.

Aaron1 09-13-2006 04:13 PM

Hi, yes I know, but i tried your suggestion aswell, as you can see now, it's showing the complete message. But remains to keep the bbcode showing. Btw, I didn't know a way to limit the text without that concat function :-)

Aaron1 09-13-2006 06:48 PM

And what if I use the Query PHPInclude Code field, and removed the bbcode tags manualy like this for example?

Code:

$WQfield[pagetext] = str_replace("[quote]", "", $WQfield[pagetext]);


All times are GMT. The time now is 06:46 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.02192 seconds
  • Memory Usage 1,736KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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