vb.org Archive

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

euantor 09-15-2010 06:23 PM

I'm so impressed by this mod, that I felt I had to come and say thanks.

Thanks to this mod, I have integrated a script that I made a long time ago with my vbuleltin install. Before, they were two separate things, but I can now call user information from vbulletin and everything. For this, thanks.

Here's what I've made so far - and I aim to bring my other scripts of the same ilk over to your plugin too!

http://www.360elites.net/forums/view.php?pg=xblstats (main area users get stats pulled using profile details)

http://www.360elites.net/forums/view...mertag=etorano (example display)

Once again, thanks!

dartho 09-17-2010 10:53 AM

I receive an error:

Code:

Deprecated: Assigning the return value of new by reference is deprecated in .../public/includes/wt_class_core.php on line 305

Deprecated: Assigning the return value of new by reference is deprecated in .../includes/wt_class_core.php on line 329

Those lines both contain
Code:

$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
removing the ampersand removes the error. This site is using PHP 5.3.1

dartho 09-23-2010 11:53 AM

Hi Logician,

I am trying to use webtemplates to add pages to a custom navbar tab. Looking at vb,it seems the highlighting of the current navbar tab is based on a define. However, I think that the hook where this is usually (process_tremplates_complete) may occur before a webtemplate gets evaluated.

My navbar link code is:

Plugin PHP Code
Code:

  if (defined('myProduct'))
  { 
    $vbulletin->options['selectednavtab'] = 'myProduct'; 
  } 
    $template_hook['navtab_middle'] .= vB_Template::create('myProduct_navbar_link')->render();

I am creating a PHP webtemplate which incliudes the line

Code:

  define ('myProduct','myProduct');
but it keeps defaulting back to teh "Forum" tab. ideas or direction will be much appreciated
I'm not a coder by trade, or many other measures for that matter, so please speak s l o w l y :)

Thanks

Logician 09-27-2010 01:56 PM

Quote:

Originally Posted by dartho (Post 2102212)
Hi Logician,

I am trying to use webtemplates to add pages to a custom navbar tab. Looking at vb,it seems the highlighting of the current navbar tab is based on a define. However, I think that the hook where this is usually (process_tremplates_complete) may occur before a webtemplate gets evaluated.

My navbar link code is:

Plugin PHP Code
Code:

  if (defined('rutipping'))
  { 
    $vbulletin->options['selectednavtab'] = 'myProduct'; 
  } 
    $template_hook['navtab_middle'] .= vB_Template::create('myProduct_navbar_link')->render();

I am creating a PHP webtemplate which incliudes the line

Code:

  define ('myProduct','myProduct');
but it keeps defaulting back to teh "Forum" tab. ideas or direction will be much appreciated
I'm not a coder by trade, or many other measures for that matter, so please speak s l o w l y :)

Thanks

I'm not sure if I understand your request. Can you please eloborate? Or better give me a sample URL and code to show your goal? :)

dartho 09-29-2010 08:46 AM

Thanks for your help. Moving the navtab code out of a plugin and into the PHP webtemplate itself was the way to resolve this

Paul M 10-01-2010 08:02 PM

Nice to see this out for vb4.

Kevlar21 10-02-2010 06:32 AM

Very good!

But I have some questions..

the url shows up as:

http://www.xxxxxx.com/forums/view.php?pg=test

is it possible to show it as

http://www.xxxxxx.com/view.php?pg=test
or just
http://www.xxxxxx.com/test
??

Also, I want to know how to change the font colour of this section:

"Page Visitors: 124, Last Visitor was Webmaster at Today - 07:29 AM.
Page Created at 02-14-2005 - 09:00 AM, Last Modified : Never.Edit This Page "

As the font color is the same as the background.

Please help, thanks!

Logician 10-02-2010 07:00 AM

Quote:

Originally Posted by Kevlar21 (Post 2105810)

See post installation FAQ 3 and pre installation faq 7

Quote:

Originally Posted by Kevlar21 (Post 2105810)

For SEO urls, see manuel section IV

Quote:

Originally Posted by Kevlar21 (Post 2105810)
Also, I want to know how to change the font colour of this section:

You can edit in webtemplate theme "Default Basic Theme" (or in other themes if you use another)

Kevlar21 10-02-2010 11:12 AM

Wow thanks for the fast reply..

I found the code:

Code:

  <vb:if condition="$bbuserinfo[usergroupid]==6">Page Visitors: <b>{vb:raw count}</b>, Last Visitor was {vb:raw WT.lastvisitorname} at {vb:raw WT.lastvisitdate}.<br>
      Page Created at <b>{vb:raw creationdate}</b>, Last Modified : <b>{vb:raw lasteditdate}</b>.</vb:if>{vb:raw WT_Editor_link}
</div>
  </vb:if>

But how and where do I add the code to change it to, lets say white?
I tried to add html but it doesnt work.

Hope you can help
Thanks.

Logician 10-02-2010 01:40 PM

Quote:

Originally Posted by Kevlar21 (Post 2105853)
Wow thanks for the fast reply..

I found the code:

Code:

  <vb:if condition="$bbuserinfo[usergroupid]==6">Page Visitors: <b>{vb:raw count}</b>, Last Visitor was {vb:raw WT.lastvisitorname} at {vb:raw WT.lastvisitdate}.<br>
      Page Created at <b>{vb:raw creationdate}</b>, Last Modified : <b>{vb:raw lasteditdate}</b>.</vb:if>{vb:raw WT_Editor_link}
</div>
  </vb:if>

But how and where do I add the code to change it to, lets say white?
I tried to add html but it doesnt work.

Hope you can help
Thanks.

Doesn't it work when you make it like:
HTML Code:

<font color=red>Page Visitors:</font>


All times are GMT. The time now is 09:37 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.02711 seconds
  • Memory Usage 1,756KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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