vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Portal Software - WebTemplates 3.7.x: VB Integrated CMS (Content Management System) (https://vborg.vbsupport.ru/showthread.php?t=186644)

Saviour 05-01-2009 01:43 PM

Thanks for the vMoods fix, Logician...

Much appreciated.

smooth-c 05-02-2009 11:26 PM

Any idea as to why this happens with my blogs link?

http://www.maximum-jackson.com/discu...?pg=invalid_pg

Thanks mate!

Logician 05-03-2009 09:06 AM

Quote:

Originally Posted by smooth-c (Post 1803331)
Any idea as to why this happens with my blogs link?

http://www.maximum-jackson.com/discu...?pg=invalid_pg

Thanks mate!

What happens exactly?

smooth-c 05-03-2009 10:31 AM

ooh just realised blogs don't show for guests - i'll take a screenshot and detail more info..

Normal blog link
http://img80.imageshack.us/img80/5450/1men.jpg

When using logician web template logged in.
http://img145.imageshack.us/img145/1968/2men.jpg

For some reason, when logged in (so blogs are enabled to show in the navbar) a seperate blog link is displayed and the original turns blue and has two little arrows instead of one.

rbgrn 05-12-2009 03:15 PM

I'm using WT to make a front page for one of my sites which includes latest blog entries. I had no problems creating a query to pull in and truncate the entries and such, but I am having a problem getting the correct BBCodes processed. Right now it's using the built in BBCode processing of WQ, but I need to instead use the Blog BBCode processing because attachments are incorrectly being linked to thread attachments.

I tried to remove the field from the bbcode parse field list and add some php include that I found in view.php to process the bbcodes. My plan was to get that to work and then swap that out for the blog bbcode parsing, but I couldn't get it to work.

Here's what I tried in the Query PHP Include (after)

Code:

require_once(DIR . '/includes/class_bbcode_alt.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$WQfield[pagetext] = $parser->do_parse($WQfield[pagetext], 1, 1, 1, 1, 1, 1);

and then I did the normal $WQfield[pagetext] in the result row.

This didn't work at all. So then I tried this:

Code:

require_once(DIR . '/includes/class_bbcode_alt.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$pagetext = $parser->do_parse($WQfield[pagetext], 1, 1, 1, 1, 1, 1);

and put $pagetext in the result row but that also did not work.

If anyone has the solution for processing blog bbcodes, I'd really appreciate it as I'm not sure how to proceed without REALLY digging deep. Otherwise, if someone can point out what I'm doing wrong here, I'd appreciate it because I can use that to figure out how to swap this code out for blog bbcode processing, which would look something like this:

Code:

require_once(DIR . '/includes/class_bbcode_blog.php');
$parser =& new vB_BbCodeParser_Blog($vbulletin, fetch_tag_list());

Thank you for any help!

Logician 05-12-2009 04:19 PM

Quote:

Originally Posted by rbgrn (Post 1809418)
I'm using WT to make a front page for one of my sites which includes latest blog entries. I had no problems creating a query to pull in and truncate the entries and such, but I am having a problem getting the correct BBCodes processed. Right now it's using the built in BBCode processing of WQ, but I need to instead use the Blog BBCode processing because attachments are incorrectly being linked to thread attachments.

I tried to remove the field from the bbcode parse field list and add some php include that I found in view.php to process the bbcodes. My plan was to get that to work and then swap that out for the blog bbcode parsing, but I couldn't get it to work.

Here's what I tried in the Query PHP Include (after)

Code:

require_once(DIR . '/includes/class_bbcode_alt.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$WQfield[pagetext] = $parser->do_parse($WQfield[pagetext], 1, 1, 1, 1, 1, 1);

and then I did the normal $WQfield[pagetext] in the result row.

This didn't work at all. So then I tried this:

Code:

require_once(DIR . '/includes/class_bbcode_alt.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$pagetext = $parser->do_parse($WQfield[pagetext], 1, 1, 1, 1, 1, 1);

and put $pagetext in the result row but that also did not work.

If anyone has the solution for processing blog bbcodes, I'd really appreciate it as I'm not sure how to proceed without REALLY digging deep. Otherwise, if someone can point out what I'm doing wrong here, I'd appreciate it because I can use that to figure out how to swap this code out for blog bbcode processing, which would look something like this:

Code:

require_once(DIR . '/includes/class_bbcode_blog.php');
$parser =& new vB_BbCodeParser_Blog($vbulletin, fetch_tag_list());

Thank you for any help!

Not easy to advise before doing the debugging on code and moreover I don't use jelsoft's blog application myself but here is a wild guess:

There are 2 occurences of this code in view.php
PHP Code:

$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list()); 
               
$WQfield[$WTWQqbbcodeparsedvalue] = $parser->do_parse($WQfield[$WTWQqbbcodeparsedvalue], 111111); 

These are for webquery bbcode parsing and you can apply your hack to these 2 sections like:

PHP Code:

require_once(DIR '/includes/class_bbcode_alt.php');
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
 
$WQfield[$WTWQqbbcodeparsedvalue] = $parser->do_parse($WQfield[$WTWQqbbcodeparsedvalue], 111111); 

This can help (hopefully!) :)

rbgrn 05-12-2009 04:42 PM

Logician,

Thanks for the quick reply!

I'm a little confused by your code though. It's the same code that I took out and modified to try to parse a specific field. Your snippet is directly from your view.php and works on the specific field that the loop is working on ($WQfield[$WTWQqbbcodeparsedvalue])

I haven't tried this (mostly because this is production and I can't monkey with it too many times during the day) but I'm assuming that if I plug your code in to the PHP post-query eval, that it won't actually do anything because it doesn't operate on a specific field.

I guess I'm wondering how I can change it to work on the specific field from my query, which is called pagetext, and normally shows up as $WQfield[pagetext]

I appreciate your help and thank you again for such a great product!

Logician 05-12-2009 08:30 PM

Quote:

Originally Posted by rbgrn (Post 1809475)
Logician,

Thanks for the quick reply!

I'm a little confused by your code though. It's the same code that I took out and modified to try to parse a specific field. Your snippet is directly from your view.php and works on the specific field that the loop is working on ($WQfield[$WTWQqbbcodeparsedvalue])

I haven't tried this (mostly because this is production and I can't monkey with it too many times during the day) but I'm assuming that if I plug your code in to the PHP post-query eval, that it won't actually do anything because it doesn't operate on a specific field.

I guess I'm wondering how I can change it to work on the specific field from my query, which is called pagetext, and normally shows up as $WQfield[pagetext]

I appreciate your help and thank you again for such a great product!

Actually hard for me to advise without testing myself and I cant test since I dont have the blog product.

But if you want your hack to work for a certain field only, this should help:
PHP Code:

 
if ($WTWQqbbcodeparsedvalue == 'pagetext')
{
require_once(
DIR '/includes/class_bbcode_alt.php');
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
 
$WQfield[$WTWQqbbcodeparsedvalue] = $parser->do_parse($WQfield[$WTWQqbbcodeparsedvalue], 111111);  
 
}
else
{
$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list()); 
               
$WQfield[$WTWQqbbcodeparsedvalue] = $parser->do_parse($WQfield[$WTWQqbbcodeparsedvalue], 111111); 


But then again, this should go directly into view.php file, not into phpinclude field of the webquery. Because phpinclude section is parsed after webquery's default bbcode parsing so when you reach there, your variable is already parsed. So you should try hacking the .php code.

Duncan Idaha 05-13-2009 10:31 PM

OK, so I have zilch knowledge of coding. I want to create a separate story-forum, visible for guests and members (guests can only see the forum, no content)

Rather than a subforum on the main paige, I want these stories to show up on their own page, with the forum looks, nav bar etc.

If I now install your mod, can I than copy paste the content of the address-bar to that mode and use that template for this story page? And does that create the same forum (with the threads & content) as the original, or only the structure, after which I can give it a name like "story-forum" and post each story as a thread?

Is this a feasible option, or do I have to create a page for every story (which seems a lot of work)?

Where does the created page show up on the forum? I take it that I can create a link to the story forum just like for example a link to the FAQ-page (which seems to have a forum structure as well)?

Is it safe to try this out, or do I wreck the forum in the proces, give my very limited knowledge of HTML, CSS and the likes?

Logician 05-14-2009 10:19 AM

Quote:

Originally Posted by Duncan Idaha (Post 1810378)
OK, so I have zilch knowledge of coding. I want to create a separate story-forum, visible for guests and members (guests can only see the forum, no content)

Rather than a subforum on the main paige, I want these stories to show up on their own page, with the forum looks, nav bar etc.

If I now install your mod, can I than copy paste the content of the address-bar to that mode and use that template for this story page? And does that create the same forum (with the threads & content) as the original, or only the structure, after which I can give it a name like "story-forum" and post each story as a thread?

Is this a feasible option, or do I have to create a page for every story (which seems a lot of work)?

Where does the created page show up on the forum? I take it that I can create a link to the story forum just like for example a link to the FAQ-page (which seems to have a forum structure as well)?

Is it safe to try this out, or do I wreck the forum in the proces, give my very limited knowledge of HTML, CSS and the likes?

Not sure if I understand your request but it will definetly not hurt to try it out. Go ahead and install it, I'm sure you'll find it easy to install. Then check test webtemplates that comes with the installation and see if it is as you wanted. If not, you can remove the product easily.


All times are GMT. The time now is 12:19 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.01667 seconds
  • Memory Usage 1,798KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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