vb.org Archive

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

wacnstac 11-22-2008 05:53 PM

Quote:

Originally Posted by rolandogomez (Post 1670708)
Check out what I did with http://www.garageglamour.com in the photo tips section. I have a few more pages to go down at the bottom links, but almost done. Basically I took my html pages, copied everything in the html file except the body, head, meta tags, in other words, everything within the table, div or span tags, then created the page. You will have a new URL, so you'll have to update the links...works like a charm. I also paid the OP some money via PayPal to go brand free, fyi...rg sends!


What drives your homepage?..... vbadvanced?

viper357 11-25-2008 07:40 AM

Logician, please help ;)

I am trying to make a page that is editable by certain users, I see you say that the page must be made in TEXT and not html etc. That is fine and I have done that but no matter what I do I can not find an Edit link anywhere on the page, I have used the webtemplate footer and added the usergroup admin as editors but still nothing. Where is this edit link supposed to be?

Thanks

Logician 11-25-2008 09:59 AM

Quote:

Originally Posted by viper357 (Post 1672559)
Logician, please help ;)

I am trying to make a page that is editable by certain users, I see you say that the page must be made in TEXT and not html etc. That is fine and I have done that but no matter what I do I can not find an Edit link anywhere on the page, I have used the webtemplate footer and added the usergroup admin as editors but still nothing. Where is this edit link supposed to be?

Thanks

If you are using one of the default themes, it should pop up automatically. If you don't, you can always add $WT_Editor_link to your custom design to make it appear.

viper357 11-25-2008 11:04 AM

Quote:

Originally Posted by Logician (Post 1672586)
If you are using one of the default themes, it should pop up automatically. If you don't, you can always add $WT_Editor_link to your custom design to make it appear.

Thank you, I used the $WT_Editor_link and now it's working perfectly.

Another question if I may:

Is there any easy way of copying a post on the forum into a text template without losing all the bbcode formatting like Bold, Italic etc. As it is now, if I copy and paste a post into the template it loses all the formatting. I am currently using an offline bbcode editor that shows all the bbcode and then pasting that into the template, but it's a long tedious task as I have to basically type out the whole post if there is formatting in it.

Thanks.

Logician 11-25-2008 01:55 PM

Quote:

Originally Posted by viper357 (Post 1672630)
Thank you, I used the $WT_Editor_link and now it's working perfectly.

Another question if I may:

Is there any easy way of copying a post on the forum into a text template without losing all the bbcode formatting like Bold, Italic etc. As it is now, if I copy and paste a post into the template it loses all the formatting. I am currently using an offline bbcode editor that shows all the bbcode and then pasting that into the template, but it's a long tedious task as I have to basically type out the whole post if there is formatting in it.

Thanks.

If you turn on WYSIWYG editor of the vbulletin in your vb options (and also enable it in your user cp options), it can keep the formatting in your pastes as it is usually capable of processing such data well.

When WYSIWYG is on, Webtemplates can also use it.

john h 01-10-2009 09:12 AM

Is there a way to only display the page visits stats at the bottom of the page to certain usergroups?

i.e. this bit

Code:

Page Visitors: 9, Last Visitor was Guest at Today - 10:44 AM.
Page Created at Yesterday - 03:02 PM, Last Modified : Today - 10:45 AM.


Logician 01-10-2009 09:34 AM

Quote:

Originally Posted by john h (Post 1707088)
Is there a way to only display the page visits stats at the bottom of the page to certain usergroups?

i.e. this bit

Code:

Page Visitors: 9, Last Visitor was Guest at Today - 10:44 AM.
Page Created at Yesterday - 03:02 PM, Last Modified : Today - 10:45 AM.


By default only admins see it. If you want to display to others, you can edit theme webtemplate (eg. default basic theme), find this section:

PHP Code:

<if condition="$bbuserinfo[usergroupid]==6">
<
tr
  <
td class="thead" align="left">Page 
      Visitors
: <b>$count</b>, Last Visitor was $WT[lastvisitorname
      
at $WT[lastvisitdate]. $WT_Editor_link<br>
      
Page Created at <b>$creationdate</b>, Last Modified 
      
: <b>$lasteditdate</b>.</td>
 </
tr>
</if> 

and change if condition.

Eg.
<if condition="$bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==7 ">
(all staff can see it)

john h 01-10-2009 08:10 PM

Excellent. I was using a modified copy of the two column theme where it didn't have the "if" condition around that part. All good now :)

bashy 03-01-2009 08:42 AM

Hi folks

I would like to show one usergroup ID: 26, whats the best way to include the usergroup
on a page please?

Logician 03-01-2009 09:51 AM

Quote:

Originally Posted by bashy (Post 1757454)
Hi folks

I would like to show one usergroup ID: 26, whats the best way to include the usergroup
on a page please?

Tick all usergroups but 26 in "Disallowed Usergroups" of this webtemplate.


All times are GMT. The time now is 07:45 PM.

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.01938 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)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