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)

Logician 01-15-2011 07:58 AM

Quote:

Originally Posted by Legend Killer1 (Post 2149127)
yes im sure this is the right install cause my vbulletin forum is 3.8 and this hack is suppose to be for 3.7 and 3.8 my forum is xws-hd.com/forum

This is not about webtemplates hack, it is about your php version vs. you vb version. Please see here for more info:
http://www.vbulletin.com/forum/showt...ed-in-home-car

Shanj 01-18-2011 06:38 PM

As always I LOVE Webtemplates!

Trying to set up the frontend editor for the first time.
But I cannot see an EDIT link at the bottom.

The webtemplate has no parent
- parse = TEXT
- admins (me) and my mods are NOT ticked under disallowed - and I can view it OK
- admins (me) and my mods are entered as usegroups to edit
- I also added my name as individual user to edit.

vBulletin Version 3.6.2 on this site.

Logician 01-19-2011 06:19 AM

Quote:

Originally Posted by Shanj (Post 2151062)
Trying to set up the frontend editor for the first time.
But I cannot see an EDIT link at the bottom.

The webtemplate has no parent

Please make sure your webtemplate content has "$WT_Editor_link" variable in it. When you use a default webtemplate theme, this theme has this variable automatically but when you create a standalone webtemplate with no theme, you need to put it a location where you want edit this page link to appear.

Shanj 01-19-2011 09:09 AM

Quote:

Originally Posted by Logician (Post 2151348)
Please make sure your webtemplate content has "$WT_Editor_link" variable in it. When you use a default webtemplate theme, this theme has this variable automatically but when you create a standalone webtemplate with no theme, you need to put it a location where you want edit this page link to appear.

Thank you I did that but there must be something I don't know.
Here's the top of my page / page is set to parse TEXT

Excerpt ######################
HOMEWORK RECORD: JAN - APRIL 2011
.................................................. .........
$WT_Editor_link
.................................................. .........
############################

The link shows but if I click it I get 404.

Logician 01-19-2011 11:38 AM

Quote:

Originally Posted by Shanj (Post 2151369)
Thank you I did that but there must be something I don't know.
Here's the top of my page / page is set to parse TEXT

Excerpt ######################
HOMEWORK RECORD: JAN - APRIL 2011
.................................................. .........
$WT_Editor_link
.................................................. .........
############################

The link shows but if I click it I get 404.

May I see the url you have this problem please?

Shanj 01-19-2011 12:53 PM

Thank you. I will PM you because you need to login as a specific usergroup to see it.

(THis usergroup is listed as Editors)

Logician 01-19-2011 03:17 PM

Quote:

Originally Posted by Shanj (Post 2151444)
Thank you. I will PM you because you need to login as a specific usergroup to see it.

(THis usergroup is listed as Editors)

I couldn't check your admincp vb options page since I don't have permissions but I believe that your "Forum URL" setting does not involve "http://" part.

Please check this out. If your forum url starts with "www.", please make sure it is changed to "http://www."

Shanj 01-20-2011 12:38 AM

Thank you Logician that worked.

Is there no possibility of having colour formatting for the fonts?
These shared edit pages for me summarise quite fine grained data so colour would help.

A TIP - if you want mods/ selected users to edit only PART of the page
I put that part in QUOTE TAGS so it shows up in a box
and added a top and bottom line of ### - my forum displays it in a box anyway.

Quote:

EDIT AREA START###########################################

blah blah

###########################################EDIT AREA END

Logician 01-20-2011 05:26 AM

Quote:

Originally Posted by Shanj (Post 2151764)
Is there no possibility of having colour formatting for the fonts?
These shared edit pages for me summarise quite fine grained data so colour would help.

Sorry I didn't understand the question?

You are using a TEXT parsing in that webtemplate so default color bbcode [ color ] should help, shouldn't they? Eg.

Mytextcolored

Shanj 01-20-2011 10:22 AM

Quote:

Originally Posted by Logician (Post 2151832)
Sorry I didn't understand the question?

You are using a TEXT parsing in that webtemplate so default color bbcode [ color ] should help, shouldn't they? Eg.

Mytextcolored

I don't know how you did that! I can use colour with <font> tags but I'm trying to create pages my staff can add notes to. They don't do html.
Tags in brackets - bbcode? will be a barrier - they'll find it slow to apply, probably make mistakes, and find it generally unfamiliar.
I never noticed the WYSWYG editor on VB doesn't have a font colour button.

Logician 01-20-2011 11:23 AM

Quote:

Originally Posted by Shanj (Post 2151887)
I don't know how you did that! I can use colour with <font> tags but I'm trying to create pages my staff can add notes to. They don't do html.
Tags in brackets - bbcode? will be a barrier - they'll find it slow to apply, probably make mistakes, and find it generally unfamiliar.
I never noticed the WYSWYG editor on VB doesn't have a font colour button.

Please see here: admin cp/vb options/bbcode options/Allow Color BBCode

It should be off for you.

Shanj 01-20-2011 11:47 AM

Quote:

Originally Posted by Logician (Post 2151904)
Please see here: admin cp/vb options/bbcode options/Allow Color BBCode

It should be off for you.

I'm so sorry this isn't really your work to look after this. Thank you.
But I checked and ALL the boxes are ticked in vboptions.
I don't see buttons for colour OR size, on that forum of my own, or here.

Logician 01-20-2011 03:41 PM

Quote:

Originally Posted by Shanj (Post 2151909)
I'm so sorry this isn't really your work to look after this. Thank you.
But I checked and ALL the boxes are ticked in vboptions.
I don't see buttons for colour OR size, on that forum of my own, or here.

Actually I see them both here and in your forum too. Please make sure you set "Full WYSISYG editing" in your forum options (as a user):
https://vborg.vbsupport.ru/profile.php?do=editoptions

If you still can't see, I'd think it is a browser issue. You can try to use with a different browser. See my screenshot how they look in firefox

Spinball 05-13-2011 01:51 PM

Hello Logician. I have set up a webquery to display a list of members who are in an exclusive secondary usergroup. I want to display their avatars.
Is there a way to get a link to each user's Avatar image using a webquery so I can display it in a webtemplate?
I'm using vB 3.8.
Thanks.

Logician 05-15-2011 02:26 PM

Quote:

Originally Posted by Spinball (Post 2195106)
Hello Logician. I have set up a webquery to display a list of members who are in an exclusive secondary usergroup. I want to display their avatars.
Is there a way to get a link to each user's Avatar image using a webquery so I can display it in a webtemplate?
I'm using vB 3.8.
Thanks.

Sorry I can't think of a way to do it without hacking

CodeRed 06-02-2011 03:39 PM

Question.

I have a Logician's Webtemplates Mod template with PHP code embedded in it from another mod and I would like to add the Cyb Chatbox in that custom template page as well.

The call to code is "$cybchatbox"

I'm willing to pay $25 via paypal gift if someone can send me the code to get this web template working with both included mods.

PM me if interested. Thanks a ton guys in advance for your help

Logician 06-02-2011 06:33 PM

Quote:

Originally Posted by CodeRed (Post 2202720)
Question.

I have a Logician's Webtemplates Mod template with PHP code embedded in it from another mod and I would like to add the Cyb Chatbox in that custom template page as well.

The call to code is "$cybchatbox"

I'm willing to pay $25 via paypal gift if someone can send me the code to get this web template working with both included mods.

PM me if interested. Thanks a ton guys in advance for your help

I didn't dig deep but from the first impression, it looks like, it might work if you add "$cybchatbox" into your webtemplate (or webtemplate theme if its using one).

If it is a php webtemplate then code can be:
echo $cybchatbox;

Give it a shot.

CodeRed 06-02-2011 06:58 PM

Thanks, the template is a php parses template. I tried your suggestions and it just displayed the text when I viewed the page and not the chatbox

It just displayed:

echo ;

I also tried just "$cybchatbox" in the template and in the theme itself and no go...

Thanks again for the suggestions though, I do appreciate it.

Logician 06-02-2011 09:57 PM

Quote:

Originally Posted by CodeRed (Post 2202799)
Thanks, the template is a php parses template. I tried your suggestions and it just displayed the text when I viewed the page and not the chatbox

It just displayed:

echo ;

I also tried just "$cybchatbox" in the template and in the theme itself and no go...

Thanks again for the suggestions though, I do appreciate it.

If it is displaying "echo ;" in a php parsed template, it means the section that you added this line is out of PHP scope (= you added it in a HTML part which began after ?>)

Try to add the line in a PHP part or if you want to keep it where it is try to include it with PHP syntax, ie:

<? echo $cybchatbox; ?>

Spinball 09-14-2011 11:13 AM

Can I do this?
HTML Code:

<tr>
 <td class="$alternate" align="left" VALIGN="TOP"><div class="smallfont">$queryqueryresult) <a href='http://www.avforums.com/forums/member.php?$session[sessionurl]u=$WQfield[userid]'>$WQfield[username]</a></div></td>
 <td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[email]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[title]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[joined]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="xsmallfont">$WQfield[ipaddress]<br /><? echo(geoip_country_name_by_addr($gi, $WQfield[ipaddress])); ?></div></td>
</tr>

in the Query Result Row of a WebQuery? Note the php element
PHP Code:

<? echo(geoip_country_name_by_addr($gi, $WQfield[ipaddress])); ?>

It's not working. I was wondering whether it was at all possible.
Thanks

Logician 09-14-2011 05:27 PM

Quote:

Originally Posted by Spinball (Post 2245798)
Can I do this?
HTML Code:

<tr>
 <td class="$alternate" align="left" VALIGN="TOP"><div class="smallfont">$queryqueryresult) <a href='http://www.avforums.com/forums/member.php?$session[sessionurl]u=$WQfield[userid]'>$WQfield[username]</a></div></td>
 <td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[email]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[title]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="smallfont">$WQfield[joined]</div></td>
<td class="$alternate" VALIGN="TOP"><div class="xsmallfont">$WQfield[ipaddress]<br /><? echo(geoip_country_name_by_addr($gi, $WQfield[ipaddress])); ?></div></td>
</tr>

in the Query Result Row of a WebQuery? Note the php element
PHP Code:

<? echo(geoip_country_name_by_addr($gi, $WQfield[ipaddress])); ?>

It's not working. I was wondering whether it was at all possible.
Thanks

Sorry nope, webquery section does not support external function calls.

Spinball 09-14-2011 08:23 PM

Bummer. Ok, thanks. Still love Webtemplates :)

cowcowcow 09-25-2011 12:41 PM

Hi Logician,

I am really liking WebTemplates so far.


Anyway to allow comments? Like a simple system comment system like bannalives tournament mod where anyone can leave comments on the pages.


Anyway this is a really cool mod and wish you had premium products, would definitely pay for something like this with pro features, you seem like a talented developer and super helpful to noobs in your documentation, which is fantastic for people like me :)

Would gladly offer my site to be featured too in the OP if you like.

N8 03-10-2012 07:46 AM

I'm having an issue using jQuery in my webtemplates:

the templates are taking the "$"s and converting them to $ in the html output.

Any way to stop this from happening?

Logician 03-13-2012 04:07 PM

Quote:

Originally Posted by N8 (Post 2308209)
the templates are taking the "$"s and converting them to $ in the html output.

This is an intended feature to provide security

I don't recommend disabling it but if you should, replacing the line
$val = preg_replace( "/\\\$/" , "$" , $val );

as

//$val = preg_replace( "/\\\$/" , "$" , $val );

in wt_include.php should take care of it.

N8 03-16-2012 05:30 AM

^ Thanks.


I also have a question regarding WebQueries:


Inside of:

Query Result Row
Use $WQfield[fieldname] variables to replace returned fields in your HTML code


Is there a way to use conditional statements?



I have a webtemplate set up as basically a global "New thread" page - which grabs a list of forumid's / titles and outputs a list of every forum, with every forum name linking to it's respective newthread.php link.

What I want to do now is be able to show which forums are empty, but can't figure out how to use a conditional statement to do so...


I've tried
Code:

<if condition=" $WQfield[lastpostid] == 0">code here</if>
.. but noticed that it doesn't matter what I put inside of condition="" - whatever is inside still ends up being displayed.


Is this just not builtinto the functionality of WebTemplates or am I doing something wrong? thanks :)

Logician 03-16-2012 07:42 AM

Quote:

Originally Posted by N8 (Post 2309952)
^ Thanks.


I also have a question regarding WebQueries:


Inside of:

Query Result Row
Use $WQfield[fieldname] variables to replace returned fields in your HTML code


Is there a way to use conditional statements?



I have a webtemplate set up as basically a global "New thread" page - which grabs a list of forumid's / titles and outputs a list of every forum, with every forum name linking to it's respective newthread.php link.

What I want to do now is be able to show which forums are empty, but can't figure out how to use a conditional statement to do so...


I've tried
Code:

<if condition=" $WQfield[lastpostid] == 0">code here</if>
.. but noticed that it doesn't matter what I put inside of condition="" - whatever is inside still ends up being displayed.


Is this just not builtinto the functionality of WebTemplates or am I doing something wrong? thanks :)

Webqueries result row section does not support template condiditionals.

You can do what you want by hacking view.php. Find this line:
PHP Code:

@eval("\$birikenrow .= \"".WTgettemplate("$WTWQ[resultrow]"10)."\";"); 

and before that use something like this

PHP Code:

 if ($WTWQ['qname']=='$WQ_last10threadfromforum2'
{
$WQfield[title] = "If webquery name is $WQ_last10threadfromforum2' this is what all thread titles will be!!";


Important: There are 2 of these lines so you should add the hack before BOTH of them.

webmastershome 05-16-2012 05:05 PM

i have just download and it's works good on my forums

mindhunter77 06-26-2012 12:31 PM

I keep getting this on my forum, is there anyway to fix this or maybe disable the visitor log?

Code:

Database error in vBulletin 3.8.7:

Invalid SQL:
SELECT count(*) as num,floor((1340668799-dateline)/604800) as week FROM vbwwu002visitlog WHERE

(userid=1)AND(dateline>=1338249600) GROUP BY week ORDER BY week;

MySQL Error  : BIGINT UNSIGNED value is out of range in '(1340668799 -

`bbq`.`vbwwu002visitlog`.`dateline`)'
Error Number  : 1690
Request Date  : Tuesday, June 26th 2012 @ 03:26:56 PM
Error Date    : Tuesday, June 26th 2012 @ 03:26:57 PM
Script        : .com/forum/
Referrer      : admincp/index.php?do=head
IP Address    : 71.
Username      : c
Classname    : vB_Database
MySQL Version : 5.5.24-0ubuntu0.12.04.1


mindhunter77 06-26-2012 01:14 PM

disregard my last post, this was related to the server time being off apparently.

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 09:09 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.02342 seconds
  • Memory Usage 1,884KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (7)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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