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)

brycea 09-27-2012 10:58 AM

<a href="http://healthcommunity.co/view.php?pg=invalid_pg" target="_blank">http://healthcommunity.co/view.php?pg=invalid_pg
</a>

I would like to change or delete the 'page visit log' that appears on this page and change the URL. Can this be done?

Logician 09-27-2012 01:52 PM

Quote:

Originally Posted by brycea (Post 2368967)
http://healthcommunity.co/view.php?pg=invalid_pg


I would like to change or delete the 'page visit log' that appears on this page and change the URL. Can this be done?

To "not to log" a page's visitors, edit that webtemplate, find section "Logged Usergroups" and uncheck all usergroups. Also make sure "Logged Usernames" section is blank.

To delete log, go to log page (URL /editors.php?do=readlogs&pg=WEBTEMPLATE), at the end of page, click "Clear logs for this webtemplate" page.

URL to "invalid_pg" webtemplate can not be changed because this is not a regular webtemplate it is an "error page". However you can edit its content to display anything you like in it.

forumrunt 11-18-2012 12:32 AM

Can I get the Site navigation on the right side using this? I installed it and like it but a few issues I have

Seems I cant use tables as it pushes all the info to the botom

Cant figure out how to get the site navigation block or other blocks on the page

Can someone help me please

N8 09-05-2013 04:51 AM

Hey Logician - Is there a way to change dateline from displaying the time: "5 Hours Ago - 11:57 PM"

And have it only display ie. "5 Hours Ago" ?

Logician 09-05-2013 06:45 AM

Quote:

Originally Posted by N8 (Post 2443364)
Hey Logician - Is there a way to change dateline from displaying the time: "5 Hours Ago - 11:57 PM"

And have it only display ie. "5 Hours Ago" ?

In which section do you mean exactly? logs?

N8 09-06-2013 05:49 PM

Sorry I mean from within a webquery

Logician 09-06-2013 08:18 PM

Quote:

Originally Posted by N8 (Post 2443769)
Sorry I mean from within a webquery

That part of the hack is inheriting date/time format you set in vbulletin options. So if you change vb option, it will also change accordingly.

But if you want to keep your vb option like that but only change webqueries, you can modify "view.php", find this line:
PHP Code:

$WQfield[$WTWQqdateparsedvalue] = WTdatelineTOusertime($WQfield[$WTWQqdateparsedvalue]);} 

and replace it as:
PHP Code:

$WQfield[$WTWQqdateparsedvalue] = 
vbdate("Y-m-d"$WQfield[$WTWQqdateparsedvalue], true).' - '.vbdate($vbulletin->options['timeformat'], $WQfield[$WTWQqdateparsedvalue]);} 

There are 2 instances of this line and you need to change both. You can use anyother format you like instead of "Y-m-d". For other formats check:
http://php.net/manual/en/function.date.php

N8 09-07-2013 12:38 AM

Thanks Logician

I tried those edits, however It changed (ie.) 3 days ago - to Y-m-d format.

Is there a way to have it simply say "X Days ago" without the time after?

Logician 09-07-2013 05:39 AM

Quote:

Originally Posted by N8 (Post 2443829)
Thanks Logician

I tried those edits, however It changed (ie.) 3 days ago - to Y-m-d format.



Is there a way to have it simply say "X Days ago" without the time after?

Try this line:
PHP Code:

$WQfield[$WTWQqdateparsedvalue] = 
vbdate($vbulletin->options['dateformat'], $WQfield[$WTWQqdateparsedvalue], true);} 


N8 09-08-2013 01:19 AM

Perfect. I really appreciate it, thanks!


All times are GMT. The time now is 02:30 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.02923 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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