PDA

View Full Version : Portal Software - WebTemplates 3.7.x: VB Integrated CMS (Content Management System)


Pages : 1 2 [3]

Jennifer Marx
10-26-2009, 10:26 PM
I apologize if this question has been asked already -- I searched but could not find it.

I want to use a a vBulletin style I've already created and used on parts of my board, but it is not my default style. Is there a way to call this style when creating a WebTemplates theme? If not, how would I recreate the look and feel of that style in a WebTemplates page? I tried copying the header information from that style and putting into a new WebTemlates header, but no changes was affected.

Thank you in advance. :)

Logician
10-27-2009, 05:12 AM
I apologize if this question has been asked already -- I searched but could not find it.

I want to use a a vBulletin style I've already created and used on parts of my board, but it is not my default style. Is there a way to call this style when creating a WebTemplates theme? If not, how would I recreate the look and feel of that style in a WebTemplates page? I tried copying the header information from that style and putting into a new WebTemlates header, but no changes was affected.

Thank you in advance. :)
I think this will help:
https://vborg.vbsupport.ru/showpost.php?p=1814486&postcount=449

Jennifer Marx
10-27-2009, 12:21 PM
I think this will help:
https://vborg.vbsupport.ru/showpost.php?p=1814486&postcount=449

Thank you, but no, that doesn't address my question. Let me try to explain it better. In my vBulletin I have several styles -- I have my Default Style and I have several other child styles, including one I call Club. The Club style uses a different background color and has special information in the header.

Here is what my Default Style looks like: http://www.passporterboards.com/forums

Here is what my Club style looks like: http://www.passporterboards.com/forums/passporters-club/

I want to use this Club style in a WebTemplate. Is there a way to apply this style?

Thank in advance! :)

Logician
10-27-2009, 02:16 PM
Thank you, but no, that doesn't address my question. Let me try to explain it better. In my vBulletin I have several styles -- I have my Default Style and I have several other child styles, including one I call Club. The Club style uses a different background color and has special information in the header.

Here is what my Default Style looks like: http://www.passporterboards.com/forums

Here is what my Club style looks like: http://www.passporterboards.com/forums/passporters-club/

I want to use this Club style in a WebTemplate. Is there a way to apply this style?

Thank in advance! :)
ok please see if this will help:
https://vborg.vbsupport.ru/showthread.php?p=651570&highlight=styleid#post651570

Jennifer Marx
10-28-2009, 02:33 PM
ok please see if this will help:
https://vborg.vbsupport.ru/showthread.php?p=651570&highlight=styleid#post651570

I tried this -- and put $styleid = 8; in the phpinclude field, but it seems to do nothing. It appears the original poster had this issue as well. But thank you for trying to help me -- I do appreciate it! :)

Logician
10-29-2009, 10:12 AM
I tried this -- and put $styleid = 8; in the phpinclude field, but it seems to do nothing. It appears the original poster had this issue as well. But thank you for trying to help me -- I do appreciate it! :)

ok try putting this into phpinclude of the webtemplate:


$styleid = 8;
$vbulletin->userinfo['styleid'] = $styleid;
$userselect = true;

$style = $db->query_first_slave("
SELECT *
FROM " . TABLE_PREFIX . "style
WHERE styleid = '$styleid'


LIMIT 1
");

eval('$header = "' . fetch_template('header') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
eval('$headinclude = "' . fetch_template('headinclude') . '";');

paul41598
10-29-2009, 07:40 PM
Logician: Is there a way to call a webtemplate to put on the forumhome for example? For example in VB if I wanted to create a new template called test with some text, then make a new plugin (forumhome_start) with eval('$test .= "' . fetch_template('test') . '";');

Then put $test variable in my forumhome template, I could call the contents of that template (test)

Can I somehow do this with webtemplates? Reason I ask is I want to be able to call a webtemplate on my forumhome in a module type setting.... in a (sidebar column) for example

Logician
10-30-2009, 09:45 AM
Logician: Is there a way to call a webtemplate to put on the forumhome for example? For example in VB if I wanted to create a new template called test with some text, then make a new plugin (forumhome_start) with eval('$test .= "' . fetch_template('test') . '";');

Then put $test variable in my forumhome template, I could call the contents of that template (test)

Can I somehow do this with webtemplates? Reason I ask is I want to be able to call a webtemplate on my forumhome in a module type setting.... in a (sidebar column) for example
You can do it with iframe.

paul41598
10-30-2009, 11:34 AM
Could you provide some guidance on that? Maybe not the iframe part, but the plugin part? Would you use the typical eval command for this type of process? I"m guessing no because your templates arnt stored in the same place as the default VB ones.


update
---------------------

ahhh, unless you meant something like this: ??
<iframe src ="http://domain.com/view.php?pg=test" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>

1.) Oh also, how do you remove the current active users part that shows in each template. Do I have to edit the template and remove that bit, or an on/off switch? Thx!

2.) What if I don't want a header/footer in my template within my iframe? I've tried switching the header to default_webtemplate_header with no luck. So I built my own header, but it doesn't allow me to keep the template body empty..so that doesn't work. Any other suggestions?

Logician
10-30-2009, 03:09 PM
Could you provide some guidance on that? Maybe not the iframe part, but the plugin part? Would you use the typical eval command for this type of process? I"m guessing no because your templates arnt stored in the same place as the default VB ones.


update
---------------------

ahhh, unless you meant something like this: ??
<iframe src ="http://domain.com/view.php?pg=test" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>1.) Oh also, how do you remove the current active users part that shows in each template. Do I have to edit the template and remove that bit, or an on/off switch? Thx!

2.) What if I don't want a header/footer in my template within my iframe? I've tried switching the header to default_webtemplate_header with no luck. So I built my own header, but it doesn't allow me to keep the template body empty..so that doesn't work. Any other suggestions?
yes that is what I meant by iframe.

current active users part belongs to the webtemplate theme you are using. You can edit the theme and remove relevant html code from there. This also applies to removing header/footer. Just edit webtemplate theme you are using in that webtemplate.

linuxututs
11-09-2009, 12:32 AM
This Mod is absolutely AWESOME !!!!!

Thank You and Think this ought to be the Mod of the YEAR !!!!!

Thanks,

P.S. vBulletin 3.8.4 pl1

betts02
11-12-2009, 08:55 AM
if someone ould help a newbi ?lol

anyway am i correct in saying this mod allows me to create a page with any content i want and it will match my theme ?

if so could someone please help me with this as i have some content i wsh to add but dont know how to

basically i have a clan gaming website and in each profile it shows who is playing the xbox 360 and what game they are on,it also shows what games they have played,i wish to add this to a page where it will show all members so users dont have to visit a profile to see what people are playing

is this possible and if so could someone help me with this please ?

linuxututs
11-13-2009, 07:03 AM
if someone ould help a newbi ?lol

anyway am i correct in saying this mod allows me to create a page with any content i want and it will match my theme ?

if so could someone please help me with this as i have some content i wsh to add but dont know how to

basically i have a clan gaming website and in each profile it shows who is playing the xbox 360 and what game they are on,it also shows what games they have played,i wish to add this to a page where it will show all members so users dont have to visit a profile to see what people are playing

is this possible and if so could someone help me with this please ?

It should be pretty simple to do. ( I think )

You'll just have to add the hooks from that/those template. And may have to add a few conditions to accomplish what your wanting.

Just look in your style manager and find the templates you think are displaying the hooks, and copy/paste the whole contents in a new page until you get it right by adding/taking away from till you get it right.

( That's the way I do things anyway ) :)

Thanks,

wacnstac
11-13-2009, 01:18 PM
With 4.0 beta out, this hack isn't dead yet?

blackenizer
11-13-2009, 03:03 PM
Outstanding Mod!!

Gn_Snake
11-18-2009, 01:20 PM
Will be upgraded to version 4 :confused:

Jeweetog
11-22-2009, 12:06 PM
It says 'Not supported' all the way up this thread.

In what way is this mod not supported anymore? No updates? No help with problems?

I'm getting this error when testing out the test and test2 pages:

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Jeweetog
11-25-2009, 05:28 PM
Never mind, I removed it.

PossumX
11-30-2009, 08:48 PM
I know, duplicate inquiry, but...Any chance of this mod being updated for vB 4.0 when the time comes?

Logician
12-01-2009, 04:32 AM
I know, duplicate inquiry, but...Any chance of this mod being updated for vB 4.0 when the time comes?
I can't promise when but yes, eventually it will be ported to vb4.

PossumX
12-01-2009, 08:34 AM
I can't promise when but yes, eventually it will be ported to vb4.

No need for a promise. The fact that you're planning to is great, as this is one of those excellent "can't live without" mods. Thank you very much for your response.

CLUB AMPLE
12-02-2009, 05:15 AM
I can't promise when but yes, eventually it will be ported to vb4.

Great to hear... I will be first in line with a donation when its over to vb4

Definitely a Mod of the year candidate!

Neutral Singh
12-31-2009, 11:56 AM
Gr8 News! that this monster may be ported over to vB4. :)

Budget101
01-03-2010, 05:20 PM
Are there directions for Uninstalling this mod?? I used the "uninstall" through the Plugin Manager & removed the files from the server, but there are still tables that didn't not uninstall.

Logician
01-04-2010, 07:06 AM
Are there directions for Uninstalling this mod?? I used the "uninstall" through the Plugin Manager & removed the files from the server, but there are still tables that didn't not uninstall.
Explained in FAQ

Shanj
01-09-2010, 05:36 PM
Logician sorry I didn't realise there are two mod forums and I posted to the older one.

I found the instructions for redirecting user login to a Logician template.
How does this work if there are multiple template pages for different usergroups or different users?

Thank you.

Logician
01-10-2010, 09:09 AM
I found the instructions for redirecting user login to a Logician template.
How does this work if there are multiple template pages for different usergroups or different users?

Can you please eloborate on the solution you implemented? What exactly did you do? (link to a solution post or referring the section in manual is ok)

Regarding your pm, please check here (http://www.logician.org/about_logician/logicians-suggested-professionals).

Shanj
01-10-2010, 03:35 PM
Dear Logician

Thank you so much for fast reply.

Pages set to usergroup I knew and have used very happily.
Big discovery just now is page targeted to certain individual users PLUS web editing! you amazing guy- I didn't know all that.

I would dearly love to have users go to an entry page targeted to either their usergroup (mostly) or for a few, targeted individually.
Now you do give a way to make a Logician page replace the forum homepage using .htaccess and that means using a URL for the logon entry like
http://www.yourdomain.com/forum/view.php?pg=your_template

How do I deal with it if my usergroup pages are

http://www.yourdomain.com/forum/view.php?pg=your_template1
http://www.yourdomain.com/forum/view.php?pg=your_template2
http://www.yourdomain.com/forum/view.php?pg=your_template3

I suppose the actual login could go to
http://www.yourdomain.com/forum/view.php?pg=your_template

which might have a redirect?

(I'm not a coder but I can tweak under instruction)

Shanj

Logician
01-11-2010, 01:29 PM
Dear Logician

Thank you so much for fast reply.

Pages set to usergroup I knew and have used very happily.
Big discovery just now is page targeted to certain individual users PLUS web editing! you amazing guy- I didn't know all that.

I would dearly love to have users go to an entry page targeted to either their usergroup (mostly) or for a few, targeted individually.
Now you do give a way to make a Logician page replace the forum homepage using .htaccess and that means using a URL for the logon entry like
http://www.yourdomain.com/forum/view.php?pg=your_template

How do I deal with it if my usergroup pages are

http://www.yourdomain.com/forum/view.php?pg=your_template1
http://www.yourdomain.com/forum/view.php?pg=your_template2
http://www.yourdomain.com/forum/view.php?pg=your_template3

I suppose the actual login could go to
http://www.yourdomain.com/forum/view.php?pg=your_template

which might have a redirect?

(I'm not a coder but I can tweak under instruction)

Shanj
So if I understand you correctly, you want to take user to its usergroup's specific webtemplate when he logged in, am I correct?

With some code edits I can think this is doable but wouldn't it change the entire vb login system's logic for bad? As you know vb login system is kind of intelligent and it takes you to the previous page you were in when you received "no permission page" when you are not logged in. Eg. when you click reply a thread as a guest and receive no permission page, you can enter your u/p there and after login you are taken directly to the "reply this thread" page and resume your action.

And since webtemplates do not have a seperate login system and basically use default vb login system, hacking the login system to give an forceful entry page would mean breaking this function of the login. Don't you think?

(BTW irrelevant but you don't have to create a different webtemplate for each usergroup if modifications are minor. You can just create one webtemplate for all and then use conditionals to display different content to different usergroups)

Shanj
01-11-2010, 04:38 PM
So if I understand you correctly, you want to take user to its usergroup's specific webtemplate when he logged in, am I correct?

Exactly.

With some code edits I can think this is doable ... And since webtemplates do not have a seperate login system and basically use default vb login system, hacking the login system to give an forceful entry page would mean breaking this function of the login. Don't you think?

I don't have guests, only a small board for members only.
They all belong to usergroups 1, 2, 3, or 4.

But I don't know about the login system. You do. So I accept your advice.

(BTW irrelevant but you don't have to create a different webtemplate for each usergroup if modifications are minor. You can just create one webtemplate for all and then use conditionals to display different content to different usergroups)

Depends on what is "minor."
This COULD be exactly what I need.

The differences are the same section of the page has different info. per usergroup.
For example a weekly timetable which is displayed as a table. That is different per usergroup though the layout is the same. Cell text content different and bgcolor different.
One group has a search form that sends data but that is also in a table.

Perhaps if you tell me the limitations on "minor modifications" I could understand what is possible, and do my design to fit the limitations.

I don't know how to do conditionals. But if you tell me where to look I will learn it.


Thank you Logician. You're great.

Logician
01-11-2010, 07:56 PM
Perhaps if you tell me the limitations on "minor modifications" I could understand what is possible, and do my design to fit the limitations.

I don't know how to do conditionals. But if you tell me where to look I will learn it.

When you use seperate webtemplates as you do now, you have priviledge to set different options for each webtemplates as you enter them in "edit webtemplate" page.

For instance webtemplate A can use theme A, webtemplate B can be BBcode parsed, webtemplate C can be banned to user C etc.

However when you use single webtemplate for all usergroups obviously you are bound with the settings you entered in that webtemplate so you can't set them seperately for each usergroup.

But if this is not your concern and you are just interested in displaying a different content in that very webtemplate to different usergroups, it is possible via "conditionals". You can see the usage of one conditional in builtin webtemplate named "test". It appears with "hidden text" remark when you login as admin.

Webtemplates inherit the default vb template conditionals syntax so you can use if else conditions just like you use them in your styles:
<if condition="$bbuserinfo[usergroupid] == 6">
show this text to administrator
</if>
<if condition="$bbuserinfo[usergroupid] == 2">
show this text to registered member
</if>
etc.

And more info can be found in vb's manual about conditionals.

Shanj
01-12-2010, 03:21 PM
Thank you for the lovely clear explanation. I have read your documentation again. Then I copied the php from the test page, switched it to html, and it WORKS! HURRAY! I have conditional view pages!

But my first page is using the usergroup tickbox options in admin rather than a conditional php in the webtemplate. It looks to me like that is safer as this is a shared edit page with my mods who might accidentally mess the php conditional at top or bottom.
Does that sound right?

WEB EDITOR .....................................
There was a small problem with the webeditor.
The link already on the page generates a double URL!

http://www.mysite.com/xyz/www.mysite.com/xyz/editors.php?do=edit&pg=testa

I placed a bbcode [URL] link at the top to the editor and it's fine.
I just wondered if you can think of why the code supplied is doing this?
It's OK in View Source, just one URL.

I do have a slightly nonstandard filepath for my vbulletin - it's in directory xyz as you see in the URL. Perhaps this is difficult for your editor script command?

This is great. I'll work on the conditional page to replace forumhome later.

Thank you for everything. This is a very exciting mod. It does powerful things AND the instructions you give are extremely good.
A lot of coders do powerful things but their instructions are not clear. That makes their work useless. I understand why - instructions are my profession and it's a different brain training to code. So someone like you who does both code and instructions well, is rare - an unusual treasure.

Logician
01-12-2010, 03:45 PM
WEB EDITOR .....................................
There was a small problem with the webeditor.
The link already on the page generates a double URL!

http://www.mysite.com/xyz/www.mysite.com/xyz/editors.php?do=edit&pg=testa

I placed a bbcode [url] link at the top to the editor and it's fine.
I just wondered if you can think of why the code supplied is doing this?
It's OK in View Source, just one URL.

You just entered "$WT_Editor_link" in the webtemplate right? This variable is suppose to give you the correct editor link for this page. If you appended it like "http://www.mysite.com/$WT_Editor_link" please dont do it. Just use "$WT_Editor_link" as is. I hope this will fix your problem.

And thanks for kind words! :)

Shanj
01-12-2010, 05:16 PM
"$WT_Editor_link"

No I used http://www.mysite.com/xyz/ (http://www.mysite.com/xyz/www.mysite.com/xyz/editors.php?do=edit&pg=testa)
then the bit for your script
view.php?pg=testt


This link works fine.


It was the little font link that appeared automatically via your script that gave the funny double result.
It's not your code obviously as the View Source link shows it properly.
Probably something on my site.
Unless you can think of something it might be I'll just go on putting the link in manually.

You deserve nice words. I meant it you're very very good.

Wilfred1
01-14-2010, 04:45 AM
I have set up my chat room on a web templates page and is working well. The only thing I would like to do now is to include a list of usernames that are on the chat room page (i.e. chatting in the chat room) in the "What's Going On" box at the bottom of the forums home page.

Is there any way that I can adapt the WebTemplates_NowBrowsing template that has the variable $activeusers to specify a page or is there any other way to achieve this with this great mod?

Thanks for any advice.

Logician
01-14-2010, 06:28 AM
I have set up my chat room on a web templates page and is working well. The only thing I would like to do now is to include a list of usernames that are on the chat room page (i.e. chatting in the chat room) in the "What's Going On" box at the bottom of the forums home page.

Is there any way that I can adapt the WebTemplates_NowBrowsing template that has the variable $activeusers to specify a page or is there any other way to achieve this with this great mod?

Thanks for any advice.
Well, unfortunately there is no very easy way to do this but if you are familiar with sql queries, you can create a new webtemplate which displays only a single webquery result in it and then in this webquery you can adopt this:


SELECT user.username, user.usergroupid, user.membergroupids,
session.userid, session.inthread, session.lastactivity,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid,
IF(user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ", 1, 0) AS invisible
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE
session.lastactivity > $datecut AND (session.location LIKE '%".$Search_Word_for_session_TB."?%' AND session.location LIKE '".$idSQL."') OR (session.location LIKE '%".$Search_Word_for_session_TBURL."%')
ORDER BY session.lastactivity DESC

which is the default query to return a specific webtemplate's visitors.

Then you can put this webtemplate in a iframe to display in any place you like.

I'm sorry it is not very easy and I couldn't find time to do it for you but I at least tried to show you the correct route.

Shanj
01-14-2010, 12:20 PM
Logician dear man

Plese advise about images in the templates.
Obviously I can hard code with a full site link
http://www.mysite.com/pics/imagefile.jpg

But isn't it better for loading to use relative links?
If I knew where the webtemplate pages are saved I could create a subdirectory in that directory for my pics. Then my image links could be
../pics/imagefile.jpg
which is quicker neater coding.

If you tell me I'm making an unnecessary fuss and just using a full site URL
http://www.mysite.com/pics/imagefile.jpg
then I will do that.

Logician
01-14-2010, 01:12 PM
Logician dear man

Plese advise about images in the templates.
Obviously I can hard code with a full site link
http://www.mysite.com/pics/imagefile.jpg

But isn't it better for loading to use relative links?
If I knew where the webtemplate pages are saved I could create a subdirectory in that directory for my pics. Then my image links could be
../pics/imagefile.jpg
which is quicker neater coding.

If you tell me I'm making an unnecessary fuss and just using a full site URL
http://www.mysite.com/pics/imagefile.jpg
then I will do that.
You can use all vb style variables that are used in regular vb templates.

Eg.
$stylevar[imgdir_misc]

Drago13
01-14-2010, 02:01 PM
Any idea when this will be ported to 4.0.. This was one of my favorite mods, and I MISS it !!
I have been checking back here a couple times a day , hoping to see some good news.. Anxiously awaiting... ;)

Shanj
01-14-2010, 11:30 PM
Dear Logician

I have a long complex page but just for me to edit. It has to be html - lots of tables and some php conditionals.

One area is not complicated, just plain text, font size, colour, line breaks.
There is one picture at the top.
The text is all in one table cell
<td>Text content</td>

I want to frequently update this by changing the text content.

Your interface in the admin cp and your wyswyg html editor online are both very good indeed so obviously I can already do that.
I REALLY love the online web editor.

But it would be wonderful if I could set tags around this quick-edit text section which the online editor recognises.
Then I can open ONLY that section of simple text in one table cell, to edit.

Plus if possible, replace the picture by changing the URL.

Possible?

Your respectful admirer UK.

Shanj
01-15-2010, 12:54 AM
I think I have finally worked out a way to make a personalised entry / specialised welcome page per usergroup for my site, using Logician's top quality mod and with a bit of his advice as well.

(Actually with Logician's powerful controls it could also target key individual users with a custom entry / welcome page as well as targeting usergroups.)

No messing with the login process, no secondary complications of being timed out and forced to return to the entry page when logging in again.

Also when giving the URL for entry to anyone in an email/ by phone/ visible on a webpage, in a letter or advert, the welcome page URL can be kept very simple and easy to remember.

The welcome page can provide any information, links, guides as relevant to e.g. very new user/ veteran user/ mods/ various needs for usergroups.

Using Logician's admin cp editor by pasting in a complex page from your own editor,
OR using the "Edit this page" Logician webeditor to make a simple page of information and links, it's not a big deal to create the welcome page you want.


1. I make a perfectly ordinary html page.
I'll call this the false welcome page.

This must NOT be a Logician Webtemplate.
Best to place it outside the vbulletin folder.

Its URL is something like

www.mysite.com/welcomeTo get this ultra simple URL make a directory named
welcome
containing an index.html page. This is the false welcome page.

This URL is very easy for you to publicise and for your people and new possible people to remember.
www.mysite.com/welcomeis much more user friendly than either the forumhome (if it's in a subdirectory) or a webtemplate page. It's quick and simple to
- give out on the phone,
-- offer in an email, email signature
- include in a letter/ letter heasding, leaflet, or advert

- and perhaps most important it's easily remembered.
For me with international travelling users that's key as they can remember it wherever they are.

2. But the false welcome page - the index.html page inside the welcome directory
has nothing in it except a standard redirect to one of Logician's cool webtemplates - which because it is powerful has its characteristically more complex URL.

Redirect is done like this.
Put this code between the <HEAD> and </HEAD> tags of the index page in the "welcome" directory.

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mysite.com/view.php?pg=test ">www.mysite.com/view.php?pg=test">the target for the redirect, is one of Logician's sample webtemplates which will be the TRUE welcome page.
Yours will replace mysite.com and also the name of the webtemplate on the end showing as "test."

3. Because the user is being redirected to a page INTERNAL to VBulletin the standard VB login interface HAS to appear.
The user logs in.
or registers, if you accept open registration.

4. They then arrive at the TRUE welcome page.
For them it's just
- use the very simple URL to the false welcome page (the ordinary html page)
- Login or register
- Arrive at the TRUE welcome page.

4A. The webtemplate on arrival, the TRUE welcome page, obviously has a link to the forumhome either in its navbar (if using the VB header) and optionally in a side menu.
(I recommend Ultimate Side Columns for use with Logician's Webtemplates)

It should also have a prominent link to the TRUE welcome page so users can get back to it for information, guides, links to frequently used areas, the stuff you put together to suit THEIR needs.

5. The TRUE welcome page is one single longish page, set to be accessible to ALL usergroups you want to use this method of entry.
Set that access for this page, in Logician's webtemplates admincp.

(You may also want some usergroups to just use the standard forumhome which you publicise to those types of user. Perhaps having a personalised welcome page is best for your newcomers? or useful as a privilege level gift.)

6. The TRUE welcome page/ webtemplate has sections that are different for different usergroups.
Welcome for very new users,
higher level content for veterans,
stuff for mods,
specifics for various usergroups.

Logician's online editor feature also supports a collaborative page maintained with colleagues, fellow mods, family wetc though this would probably mean a simpler page unless the collaborators are all coders!

These usergroup access controls are created by php conditionals as Logician showed earlier on this thread:

<if condition="$bbuserinfo[usergroupid] == 6">
this content displays only to administrator
</if>
<if condition="$bbuserinfo[usergroupid] == 2">
this content displays only to registered member
</if> There is also php conditional code like this to target an individual user, or bar one otherwise allowed by their usergroup.

.................................................. ...

TO SUMMARISE

Use a false welcome page \directory-named-welcome\index.html
index.html redirects to the TRUE webtemplate welcome (Logician's webtemploate)
the TRUE webtemplate welcome is set in Logician's admin cp to all usergroups you want to have a welcome/ entry page
it has php conditionals to offer customised stuff to a) usergroups b) key individuals or bar same.

Phew! Thank you Logician for helping me so much on the way. I hope this little piece of work is not out of place here.

Shanj
01-16-2010, 12:17 AM
Can I make a quick edit section possible like this?

First template is independent, no VB header or footer, set to HTML.
Second template has ONLY text content and URL to image only.

First template has code in one of its table cells (a column) that inserts the content of the second template.

What do I put in the selected table cell, in the first template to make it insert the second template?

My aim is that I open just the SECOND template via its URL,
click Edit this page
and change the typed text in it. Save.
This updates this section in the FIRST template within the table cell.

........................

If this is not good please suggest a way to insert
a) plain text paragraphs and b) an image link
into a specific part of a webtemplate
using the webeditor
without opening and editing the whole webtemplate in the webeditor.

This is because it's a long and complicated webtemplate so i want a way to have a quick update section.

Thank you lots.

jimfries
01-16-2010, 02:59 PM
Love the mod Logician! Very well done.

I've also recently updated my site to 4.0.1, and was curious if you have given any plans on upgrading this to the latest versions?

Shanj
01-16-2010, 04:36 PM
Love the mod Logician! Very well done.

I've also recently updated my site to 4.0.1, and was curious if you have given any plans on upgrading this to the latest versions?

Yes s/he said that 4.0 will be done but isn't giving us a date yet.

Logician are you he or she? Just so's I can be properly courteous after all these years!

Logician
01-16-2010, 04:47 PM
Logician are you he or she?
he :)

Shanj
01-16-2010, 08:20 PM
he :)

This is like hide n seek in the WOODS - you peep out from behind a ruddy bush and squeak

"he"

after 51 hours silence pre-cisely -

- then another 3 hours silence!

How can you be so cruel? Take pity on me Sir Logician. At least tell me if you can give me code to do this:

What do I put in the selected table cell, in the first template to make it insert the text in a second template?

I've been checking every couple of hours just for one word from you - that you can do this yes/no?

Seriously being able to insert text from template B into a table cell in template A, using the webeditor on template B, plus start/end tags in the table cell in template A -
this would complete being able to ignore all those cms/ portal things. They don't give me the fine degree of control on layout or content that your genius does.

Logician
01-17-2010, 07:53 AM
Can I make a quick edit section possible like this?

First template is independent, no VB header or footer, set to HTML.
Second template has ONLY text content and URL to image only.

First template has code in one of its table cells (a column) that inserts the content of the second template.

What do I put in the selected table cell, in the first template to make it insert the second template?

My aim is that I open just the SECOND template via its URL,
click Edit this page
and change the typed text in it. Save.
This updates this section in the FIRST template within the table cell.

........................

If this is not good please suggest a way to insert
a) plain text paragraphs and b) an image link
into a specific part of a webtemplate
using the webeditor
without opening and editing the whole webtemplate in the webeditor.

This is because it's a long and complicated webtemplate so i want a way to have a quick update section.



Thank you lots.
Create 2 webtemplates as you imagined:
a) HTML webtemplate (will be parent)
b) Text Webtemplate (will be a child element in parent)

Then use iframe code in HTML webtemplate to display text webtemplate in it.

Give editor rights to text webtemplate to any user/usergroup you like and they can now edit text content with WYSIWYG editor without dealing with HTML content of the parent.

Shanj
01-17-2010, 10:43 AM
Thank you kindly Logician. I just woke up and found your lovely reply.

I was beginning to wonder what that iframe stuff was that came up on this thread sometimes. Should have looked it up. I did that now.

In the parent webtemplate I put


<iframe src ="http:/www.mysite.com/forums/view_child.htm" width="100%" height=""></iframe>
100% width is controlled by the parent table cell.

Hmm. Just as a final flourish it would be nice to archive the previous item in an accessible way to the user. Little bit like a blog.
Let's see ...
# Parent webtemplate (html) has iframe for updating info+pic item. This links to child1 (text).
At the bottom of this iframed column (table cell) AFTER the iframe is a link to child2 (text) archive page labelled "More." Placing after iframe ensures that editing the iframe content doesn't blitz this link!

# Open both child1 and child2 in separate windows.
Webedit (text): Cut item 1 text+pic from child1.
Webedit (text): Paste it into child2 archive page.
This is not narrow column, but full width centre content. So can hold quite a few before pagination necessary.

# Webedit (text): Paste or type new item into child1.

# Child1 (pic+text) updated appears in the iframe on parent.
Child2 displays archived items full page spread.

If anyone can see better shortcut on the archiving please tell me.

Or would I be better finding a simple blog and inserting it in the iframe?
No - not for me because all I want is to update a news/ info/ announcement item. No comments etc. But i would like to have the older items archived for users to read.

ryancooper
01-20-2010, 04:12 PM
Can someone help me with a web query that will insert the latest 5 threads with title x in them? I want to be able to put a query on every page that says: here are the latest five threads about <subject>

Thanks!

Gn_Snake
01-21-2010, 07:06 AM
I can't promise when but yes, eventually it will be ported to vb4.

Yeahhhhh :up:
I hope as soon as possible is the best mod ever

Shanj
01-21-2010, 09:57 PM
Yeahhhhh :up:
I hope as soon as possible is the best mod ever

I won't say seconded more like 2,000ded.
Though I wouldn't touch VB4 with the proverbial barge pole. Give it 6 months to a year to develop.

Shanj
01-23-2010, 12:00 AM
Can anyone give a link to a list of vb variables?

The words you put with a dollar sign to get output like a username?

Would be useful to use in my webtemplates and I can't find a list anywhere.
Thanks.

Drago13
01-27-2010, 08:13 PM
Yeahhhhh :up:
I hope as soon as possible is the best mod ever
Yeaaaaa... I will agree this was one of my favorite mods, cant wait for the 4.0 version..:D

Logician
01-28-2010, 05:29 AM
Yeaaaaa... I will agree this was one of my favorite mods, cant wait for the 4.0 version..:D
For the last 2 weeks I've been working on the VB4 version of WebTemplates.

However I still can't give an ETA because porting proved to be more difficult than I expected. VB4 changed entire template system and algorithm and well WebTemplates is "Template"s :D So entire structure needs to be rewritten and it can take sometime (especially if my daily regular work floods) but rest assured, this hack will be ported to vb4 this way or that way (still without a promised ETA!) ;)

Gn_Snake
02-02-2010, 11:15 AM
For the last 2 weeks I've been working on the VB4 version of WebTemplates.

However I still can't give an ETA because porting proved to be more difficult than I expected. VB4 changed entire template system and algorithm and well WebTemplates is "Template"s :D So entire structure needs to be rewritten and it can take sometime (especially if my daily regular work floods) but rest assured, this hack will be ported to vb4 this way or that way (still without a promised ETA!) ;)

This news made me happy :up::D

Thanks Logician

PossumX
02-02-2010, 11:18 PM
Logician, you are life saver for putting in the work effort to port this mod. It is, in my view, the best modification I have put on my board, as it has soo many uses, it's unreal. keep up the great work and look forward to seeing the vB4 version, when you get it completed. Thanks again.

Battle_Ring
02-03-2010, 08:55 PM
can't wait as i have many templates created with this

ChopSuey
02-18-2010, 05:29 AM
Heck this mod is great, no word on the vB4 update? How far are you?

Drago13
02-19-2010, 04:24 PM
Heck this mod is great, no word on the vB4 update? How far are you?
Please... :) still anxiously awaiting...

Battle_Ring
02-25-2010, 07:53 PM
Come on please update this to Vb4

zelnik
03-08-2010, 12:19 PM
I agree I'm holding off updating to vb4 until this mod has been updated as it's brilliant and cant run the site without it :(

Manoel J?nior
03-10-2010, 10:41 AM
Hello. has an estimated completion? I'm hoping to update this hack to perform the update of my forum.

stizoula
03-24-2010, 09:53 AM
Hello

This is a very nice product and of course it resolves many admins difficulties and give lot of flexibilities for any design combination.

I need any help or idea to resolve a problem.
I have one VIP zone which is coming for a specific period active by auto Paypal Paid Subscriptions. If the time period expired, then the VIP member is coming back to the simple group member.
I point to that for saying that after the subscription, the VIP is the Primary group, and the additionally group is the member.
So now the problem is, that if I set in a webtemplate permission access only to VIP, they havent access at all in any way, they can have access if they are specified only as VIP without additional group.
Thats mean If I will do so, I cant control automatic when their subscription has expired.
I have tried all the combinations in webtemplates session "Page Security and misc" settings but nothing give me the solution.
I use the default VB Subscription Manager of VB3.8.4, and I upgraded to 3.8.5 for any good luck but still nothing.

I will be VERY appreciated for any info to resolve this problem.

Thanks

Robby

ski diva
03-24-2010, 06:39 PM
Two questions. Please excuse me if you've answered this before:

1) Can this be used in 3.8.2?

2) I'd like to personalize the message that appears on the page that appears. For example, I'd like it to say "Welcome $Username." Can that be done? How?

dartho
03-24-2010, 09:31 PM
First line of opening post: This hack is for vb version 3.7.x & 3.8.x ONLY, so yes - you can use in 3.8.2

Have a look at the "test" web template for an example on using username variables etc (which is $user_username by the way)

ski diva
03-25-2010, 12:33 AM
First line of opening post: This hack is for vb version 3.7.x & 3.8.x ONLY, so yes - you can use in 3.8.2

Oops -- didn't see this before. Thanks.

Logician
03-25-2010, 10:47 AM
Hello

This is a very nice product and of course it resolves many admins difficulties and give lot of flexibilities for any design combination.

I need any help or idea to resolve a problem.
I have one VIP zone which is coming for a specific period active by auto Paypal Paid Subscriptions. If the time period expired, then the VIP member is coming back to the simple group member.
I point to that for saying that after the subscription, the VIP is the Primary group, and the additionally group is the member.
So now the problem is, that if I set in a webtemplate permission access only to VIP, they havent access at all in any way, they can have access if they are specified only as VIP without additional group.
Thats mean If I will do so, I cant control automatic when their subscription has expired.
I have tried all the combinations in webtemplates session "Page Security and misc" settings but nothing give me the solution.
I use the default VB Subscription Manager of VB3.8.4, and I upgraded to 3.8.5 for any good luck but still nothing.

I will be VERY appreciated for any info to resolve this problem.

Thanks

Robby
If it is possible for you to NOT make VIP members part of "Member" usergroup, this will solve your problem but I'm sure you thought of that so I assume this is not possible. :)

The other solution would be changing how hack's permission system works as described in Post Installation FAQ Question 24.

PossumX
04-09-2010, 10:41 AM
Hate to be perceived as a nag....but...

...any update as to when this may or may not be vB4.x readied?

Logician
04-09-2010, 12:35 PM
Hate to be perceived as a nag....but...

...any update as to when this may or may not be vB4.x readied?
I'm sorry this is taking so long. I'm working on this porting and there will definetely be a vb4 version but when my real job kicks in, I have to take this project aside till I get more available again. So as I mentioned previously, I can promise there will be a vb4 version but I can't promise when.

stizoula
04-16-2010, 02:37 PM
If it is possible for you to NOT make VIP members part of "Member" usergroup, this will solve your problem but I'm sure you thought of that so I assume this is not possible. :)

The other solution would be changing how hack's permission system works as described in Post Installation FAQ Question 24.

Thank you I resolved my problem by the combination you promote me.
Thanks again and keep good work

Robby

Wilfred1
04-18-2010, 01:05 AM
I have been having a look into vb4 and my current 3.8.5 site. I think one issue that will need to be overcome with this great mod and vb4 is how the vb4 menu is structured.

I will be wanting to add different sections to the vb4 menu and it seems the only way is to use the "THIS_SCRIPT" method to determine which tab is to be displayed as active.

As I currently use webtemplates in different areas of my site I will be needing different menu tabs displayed as active for different templates.

Just flagging this as a potential issue.

Khan_
04-21-2010, 02:15 AM
i used this mod for a long time, now i upgraded forum to vb4 ..

Will there be a release of logicans webtemplates for vb4 version ? if yes what will be the approximate time ? Just curious cant wait to have it again on vb4 ..

vFranky
04-24-2010, 02:51 PM
Hello,

I have advertisments in my ad_navbar_below template, which I want do disappear, when showing certain Webtemplate pages. But how can I write vB Code to identify a Webtemplate Page? Something in the ad_navbar_below template like "if you are a webtemplate, then do not show advertisments".

I have tried the forum-id, which is 0 for Webtemplates (because only forums have ids). But it is == 0 for the homepage/startpage of a vBulletin forum too. :erm:

Any ideas? Thank you in advance!

Kind regards,
vFranky

Logician
04-26-2010, 06:32 AM
Hello,

I have advertisments in my ad_navbar_below template, which I want do disappear, when showing certain Webtemplate pages. But how can I write vB Code to identify a Webtemplate Page? Something in the ad_navbar_below template like "if you are a webtemplate, then do not show advertisments".

I have tried the forum-id, which is 0 for Webtemplates (because only forums have ids). But it is == 0 for the homepage/startpage of a vBulletin forum too. :erm:

Any ideas? Thank you in advance!

Kind regards,
vFranky
<if condition="THIS_SCRIPT == view">
Show this if we are on a webtemplate
<else />
dont show this when we are on a webtemplate
</if>

vFranky
05-02-2010, 07:52 PM
<if condition="THIS_SCRIPT == view">
Show this if we are on a webtemplate
<else /> dont show this when we are on a webtemplate </if>

Thank you, Logician! :up:

Please allow me another question: I have choosen a user-friendly name for my web templates. But I in the HTML <title> appears the [forum name] first an the user-friendly name after it.

How can I remove [forum name] from the webtemplates HTML <title>? Which vb-template I have to modify? :confused:

Wilfred1
05-02-2010, 09:09 PM
But is there anyway to determine which template is being viewed as the THIS_SCRIPT method would apply to all Web Templates? - thanks

Logician
05-03-2010, 08:35 AM
But is there anyway to determine which template is being viewed as the THIS_SCRIPT method would apply to all Web Templates? - thanks
I didn't test but
<if condition "$pg=='webtemplate_name'>
</if>
might work.

vFranky
05-03-2010, 10:19 AM
And which vBulletin template is used to display the webtemplate? :confused:

I want to remove the leading [forum name] from the html <title>. The <title> should only be the choosen "user-friendly name".

Logician
05-03-2010, 11:29 AM
And which vBulletin template is used to display the webtemplate? :confused:

I want to remove the leading [forum name] from the html <title>. The <title> should only be the choosen "user-friendly name".
Depends on webtemplate. If it is a child webtemplate using a theme then title section is inside THEME webtemplate. (Eg. "Default Basic Theme"'s source code)

vFranky
05-03-2010, 11:43 AM
Works --> Logician, thank you very much.

Gamelobby
05-06-2010, 07:53 PM
Any ideas why i cant get $bbuserinfo[avatar] to work.?
$bbuserinfo[username] seems to be working fine..!?

Wilfred1
05-07-2010, 03:58 AM
I didn't test but
<if condition "$pg=='webtemplate_name'>
</if>
might work.
Thanks Logician.
It worked using:
<if condition="$pg=='webtemplate_name'">

Any idea how I would do that in an array of web template names

Logician
05-07-2010, 07:10 AM
Any ideas why i cant get $bbuserinfo[avatar] to work.?
$bbuserinfo[username] seems to be working fine..!?
There is no $bbuserinfo[avatar] variable in vbulletin. Use WT variable $user_useravatar

adwolf1
05-30-2010, 12:58 PM
Hi logician,
add me to the list of people waiting for a 4.0 release; I know you're very busy with your 'day job', but I was curious if you had a time-frame for at least an alpha release that we could play with?

Add me to the list that will be PayPal'ing you with a new release, you do great work!

Neutral Singh
06-11-2010, 05:40 PM
With the release of vB 4.0.4, does new content type "Static Pages" rings a death bell for webtemplates?

Logician
06-12-2010, 06:47 AM
With the release of vB 4.0.4, does new content type "Static Pages" rings a death bell for webtemplates?
I don't know yet how new content type works in 4.0.4. However I am about to complete 4.x version of WebTemplates and I'll release + support it as planned regardless of what Jelsoft plans for vb. We can consider this later when we see how their static pages work and how does it compare to WebTemplates. :)

Neutral Singh
06-12-2010, 02:58 PM
I don't know yet how new content type works in 4.0.4. However I am about to complete 4.x version of WebTemplates and I'll release + support it as planned regardless of what Jelsoft plans for vb. We can consider this later when we see how their static pages work and how does it compare to WebTemplates. :)
mind blowing!! regardless of how static pages work in vb4.0.4, i am going to love webtemplates. Can't wait to put my hands on the new version. Thanks for the update. :)

Khan_
06-12-2010, 05:10 PM
i used this mod for a long time, now i upgraded forum to vb4 ..

Will there be a release of logicans webtemplates for vb4 version ? if yes what will be the approximate time ? Just curious cant wait to have it again on vb4 ..

will this work with 4.0.3 ???

zelnik
06-15-2010, 02:14 PM
Logician that's the best news I've had in awhile that webtemplates is near for vb4! :)

inspiration100
06-23-2010, 07:45 PM
I am really looking forward to this release for VB4. I have a lot of content waiting on it :)

Logician
07-06-2010, 01:51 PM
Please find vb4.x version of WebTemplates hack in the attached file.

I'm releasing this as a BETA release for users who are waiting it for a long time (Thank you for your patience BTW!). It is FULLY complete (no missing sections at all etc.), yet not tested very long. So if you run into any bugs etc. please let me know and I'll check it out. After we tested it for a few weeks with the community, I'm going to release it in its own dedicated thread.

Usage, look, functionality etc. are all same with 3.x version, still, please let me know if you have any questions (BTW. new user manual revised for this version is also included in the ZIP file).

Fresh installation and upgrade from 3.x version is same for everybody and I believe installation/upgrade is quite simple as always. You can find more info in ZIP file.

tunamix
07-06-2010, 02:02 PM
Thanks for the support!

zelnik
07-06-2010, 05:53 PM
Brilliant news Logician!!

I've upgraded and followed the upgrade instructions but I'm getting the following error, I know it's not a bug more of how I've got it set up but would appreciate some guidance:

On the site information template I'm getting the following error message "Error: Header Template is Customised"

If memory serves me correctly you kindly logged into my site ages ago and changed the header template as it was causing a conflict of sorts. How do I go about changing it back to default as hopefully now I'm using vb4 it may be ok to use the default header.

PS: Everything else seems to be working great! :)

Logician
07-07-2010, 08:18 AM
On the site information template I'm getting the following error message "Error: Header Template is Customised"

Apparently this is related to Display Unread Posts and Reputation Comments hacks. Please see if this will help:
http://www.vbadvanced.com/forum/showthread.php?t=39555

klaush
07-07-2010, 09:17 AM
Thanks a lot! We won?t upgrade any board to 4.x before this fantastic stuff is not working with vb 4.

I don't know yet how new content type works in 4.0.4. However I am about to complete 4.x version of WebTemplates and I'll release + support it as planned regardless of what Jelsoft plans for vb. We can consider this later when we see how their static pages work and how does it compare to WebTemplates. :)

dartho
07-07-2010, 10:19 AM
Well done logician - I'm one step closer to making the move to VB4 on a live site ...

Shanj
07-07-2010, 11:40 AM
<i>I do not use vb4 so am sticking to this thread.</i>

I want to make a Template which I add text, but my mods can update - I know that's not a problem using usergroup access

But I want PARTS of it to be unavailable to them to edit.
They can view ALL text on the page, mine and each others, but not edit mine.
.
So it's a series of brief paragraphs I put in, then the mods can add notes to update that paragraph of info, based on their work. But they cannot alter the info I put.

It's extremely unlikely they'd be editing at the same time - only 6 people on a small project.

Logician
07-07-2010, 11:46 AM
I do not use vb4 so am sticking to this thread.

I want to make a Template which I add text, but my mods can update - I know that's not a problem using usergroup access

But I want PARTS of it to be unavailable to them to edit.
They can view ALL text on the page, mine and each others, but not edit mine.
.
So it's a series of brief paragraphs I put in, then the mods can add notes to update that paragraph of info, based on their work. But they cannot alter the info I put.

It's extremely unlikely they'd be editing at the same time - only 6 people on a small project.
There is no default feature for it in Webtemplates but if the section you want them to edit is all together in a section (eg. in a paragraph or smt), you can do rest of the page a webtemplate theme and make only the part you want them to edit the webtemplate itself. Since editors can't edit theme, they'll be editing only the remaining part you want them to edit in this scenario. Hope this helps.

Shanj
07-07-2010, 12:43 PM
Logician thank you that is ingenious.
Problem is I need the admin text and the additional mod notes to alternate.

Admin A
Mods add notes to B.

Admin B
Mods add notes to B.

Logician
07-07-2010, 12:59 PM
Logician thank you that is ingenious.
Problem is I need the admin text and the additional mod notes to alternate.

Admin A
Mods add notes to B.

Admin B
Mods add notes to B.
One other alternative would be keeping your content inside a private forum in seperate threads and then display it to users in a webtemplate with webqueries.

Eg. Thread 1 of Forum A : first message Admin message, mods can post replies.
A webquery pull the content of first message in Thread 1 and show it inside a webtemplate. Another webquery pulls replies to it and shows under it.

Neutral Singh
07-08-2010, 02:09 PM
Please find vb4.x version of WebTemplates hack in the attached file.

I'm releasing this as a BETA release for users who are waiting it for a long time (Thank you for your patience BTW!). It is FULLY complete (no missing sections at all etc.), yet not tested very long. So if you run into any bugs etc. please let me know and I'll check it out. After we tested it for a few weeks with the community, I'm going to release it in its own dedicated thread.

Usage, look, functionality etc. are all same with 3.x version, still, please let me know if you have any questions (BTW. new user manual revised for this version is also included in the ZIP file).

Fresh installation and upgrade from 3.x version is same for everybody and I believe installation/upgrade is quite simple as always. You can find more info in ZIP file.

You are my Hero! :up: :)

Gn_Snake
07-09-2010, 10:04 AM
Please find vb4.x version of WebTemplates hack in the attached file.

I'm releasing this as a BETA release for users who are waiting it for a long time (Thank you for your patience BTW!). It is FULLY complete (no missing sections at all etc.), yet not tested very long. So if you run into any bugs etc. please let me know and I'll check it out. After we tested it for a few weeks with the community, I'm going to release it in its own dedicated thread.

Usage, look, functionality etc. are all same with 3.x version, still, please let me know if you have any questions (BTW. new user manual revised for this version is also included in the ZIP file).

Fresh installation and upgrade from 3.x version is same for everybody and I believe installation/upgrade is quite simple as always. You can find more info in ZIP file.

Thank You Logician for all, your job is magnificent...will install today the release for 4.x :up:

Drago13
07-09-2010, 09:08 PM
yeeessss... Bless you Logician... I will donate to you soon.. againg thanks for your hard work in getting this back to us.. And best of all , all my old stuff was still there... :)

Deimos
07-20-2010, 01:16 PM
Please find vb4.x version of WebTemplates hack in the attached file.

Seem to upgrade AOK, the templates are still there and editable, but they don't show up when looking at them through the normal method.

I.E - http://www.uoforums.net/view.php?pg=info_forumrules

When I click edit, I can see the text, I save it, but it doesn't show on the page.

Logician
07-22-2010, 06:57 PM
Seem to upgrade AOK, the templates are still there and editable, but they don't show up when looking at them through the normal method.

I.E - http://www.uoforums.net/view.php?pg=info_forumrules

When I click edit, I can see the text, I save it, but it doesn't show on the page.
The conditional syntax can be wrong. Try to put the same text into a regular vb template and see if it works. If it gives an error, there must be a problem in template conditionals etc.

If you still can't find it, give me admin cp access and ftp access and I can check it for you.

kether1
07-23-2010, 01:11 AM
Thanks for updating this!!

I upgraded with no problem on my test board.

I did have one question though:

At the top of the page in the bar where the title usually is, I am getting this:

Page Visit Log: (name of the template)

Then, under it, I get the actual friendly template name. What is wrong? Is this a setting I need to adjust?

Thanks so much for your good work.

Logician
07-23-2010, 05:49 AM
Thanks for updating this!!

I upgraded with no problem on my test board.

I did have one question though:

At the top of the page in the bar where the title usually is, I am getting this:

Page Visit Log: (name of the template)

Then, under it, I get the actual friendly template name. What is wrong? Is this a setting I need to adjust?

Thanks so much for your good work.
Sorry, not quite understood. Can you please show me a sample URL?

kether1
07-23-2010, 02:03 PM
Sorry, not quite understood. Can you please show me a sample URL?

Hi. Since it is my test site, it is not public yet, but maybe this photo will help explain what I am asking about:


119960

To restate the question:

When I create a new webtemplate page, there are two boxes at the top of the page. One is for the WebTemplate Name and the next is for the User Friendly Name. After creating the page, when I visit the page, the webtemplate name displays as: Page Visit Log : (WebTemplate Name) not the User Friendly Name. That name displays under in a sub-heading.

I want to know if there is a way to not have the "Page Visit Log :" name and just have the friendly name that people can easily understand?

I hope I made my question more clear. Thanks so much for your help.

kether1
07-23-2010, 02:39 PM
I just figured out that this only happens in the Two Column Theme. It appears that
<h2>{vb:rawphrase WT_Page_Visit_Log} : {vb:raw WT.title}</h2> might be the cause, but will wait to see what you say. Thanks so much.

inspiration100
07-23-2010, 08:11 PM
Logician, you are my VB hero. Thank you so bloody much!!

Logician
07-24-2010, 11:18 AM
I just figured out that this only happens in the Two Column Theme. It appears that
<h2>{vb:rawphrase WT_Page_Visit_Log} : {vb:raw WT.title}</h2> might be the cause, but will wait to see what you say. Thanks so much.
Yes, you are correct. :) Please edit this section as:
<h2>vb:raw WT.title}</h2>

rinkrat
07-26-2010, 04:56 AM
With the recent vBulletin flaw, I've had hackers bombarding my site through Google search that finds my version being annunced on every webtemplate. How do I remove the vb version number at the bottom?

Logician
07-26-2010, 06:46 AM
With the recent vBulletin flaw, I've had hackers bombarding my site through Google search that finds my version being annunced on every webtemplate. How do I remove the vb version number at the bottom?
edit /includes/wt_include.php, find:


$WT_DB_VisitorLogsTable = 'wt35_visitlog';


after that add:

$vbulletin->options['templateversion'] = '';

MagicThemeParks
07-28-2010, 12:36 AM
After creating the custom pages and visiting them, my "who's online" is displaying as "unknown location /x.png" ... any idea what I'm doing incorrectly to have it display this way?

FYI: I am also using a custom redirect for vBSEO which may or may not have anything to do with it. Just figured I'd throw that out there in case it could be part of the issue.

Logician
07-28-2010, 06:53 AM
After creating the custom pages and visiting them, my "who's online" is displaying as "unknown location /x.png" ... any idea what I'm doing incorrectly to have it display this way?

FYI: I am also using a custom redirect for vBSEO which may or may not have anything to do with it. Just figured I'd throw that out there in case it could be part of the issue.
WebTemplates has a built-in pluggin to show correct locations in WOL. Your problem is vbseo. Since it is changing URL of the webtemplates forcefully, webtemplates pluggin is not recognizing them anymore.

I suggest to disable vbseo for webtemplates urls (view.php)

MagicThemeParks
07-28-2010, 12:44 PM
Thank you for the suggestion Logician.

By disabling vBSEO for webtemplate urls, does that mean that I cannot rewrite the custom page urls and have the Who's Online display correctly?

In other words, do I have to choose one or the other?

Logician
07-28-2010, 02:09 PM
Thank you for the suggestion Logician.

By disabling vBSEO for webtemplate urls, does that mean that I cannot rewrite the custom page urls and have the Who's Online display correctly?

In other words, do I have to choose one or the other?
You don't have to disable vbseo. You can use vbseo in your forum urls but disable it just for webtemplates pages which will fix your problem for who is online issue. vbseo has a "exclusion" list in which you can add "view.php" script of webtemplates so vbseo will go on working but just exclude webtemplate pages in rewriting. :)

MagicThemeParks
07-29-2010, 12:48 AM
I know that I don't have to disable vBSEO completely, I was just clarifying if I could rewrite the URLs and have the ability to view my "Who's Online" correctly. If not, then I won't worry too much about the "Who's Online" piece.

Logician
07-29-2010, 06:54 AM
I know that I don't have to disable vBSEO completely, I was just clarifying if I could rewrite the URLs and have the ability to view my "Who's Online" correctly. If not, then I won't worry too much about the "Who's Online" piece.
webtemplates has a built-in seo which you can enable in the options. After you except view.php from vbseo, you can turn it on and who is online will display these urls fine as it is builtin.

MagicThemeParks
07-29-2010, 12:06 PM
Logician, I had not seen these options and completely forgot about it (since I installed your mod a long time ago and just now started to use it more) .... thanks for the info!

So, could I change the "view_" to "info_" in the .htaccess data or would that mess things up with the mod?

FYI: I sent a donation to you for your great support of your mod (and removal of tagline). Thanks! :up:

Logician
07-29-2010, 12:19 PM
Logician, I had not seen these options and completely forgot about it (since I installed your mod a long time ago and just now started to use it more) .... thanks for the info!

So, could I change the "view_" to "info_" in the .htaccess data or would that mess things up with the mod?
Yes you can do that. Just remember to change $WT_SEO_url_prefix variable in the wt_include.php file too though

jbeam
09-02-2010, 01:33 PM
I am using the WebTemplates to make How-To pages. I would like to give the users a printer friendly page option.

Anyone have any suggestions on how to do this? I would really like to use CSS to do it, but my attempts have been unsuccessful.

MagicThemeParks
09-02-2010, 11:32 PM
This seems to be a way to do the printer-friendly option: http://www.dynamicdrive.com/forums/showpost.php?p=3249&postcount=10

Please let us know if it works for you, good luck :up:

Logician
09-03-2010, 06:57 AM
I am using the WebTemplates to make How-To pages. I would like to give the users a printer friendly page option.

Anyone have any suggestions on how to do this? I would really like to use CSS to do it, but my attempts have been unsuccessful.
You can create a webtemplate theme for printer friendly pages. Then create clones of your webtemplates and make them use this theme. Finally link these clones from original webtemplates with printer friendly links.

If you need an sample html code for printer friendly page, you can check vbulletin template named "printthread".

biggeorge
09-05-2010, 03:37 AM
I've been using Logician's WebTemplates for around 3-years to manage my raffle pages. It has always made the pages seem as though they are 100% a part of the forum.

I updated VB to 4.0x last night and dumped my pants when I realized that LWT wasn't working. Thank God I found the LWT update in this thread (https://vborg.vbsupport.ru/showpost.php?p=2065300&postcount=591). The update was simple and all my templates remained fully functional.

Thank you for an outstanding product!

dartho
09-08-2010, 09:17 PM
I found the LWT update in this thread (https://vborg.vbsupport.ru/showpost.php?p=2065300&postcount=591). The update was simple and all my templates remained fully functional.

Thank you for an outstanding product!
+1

Thanks for your efforts!

Logician
09-09-2010, 10:39 AM
I've released 4.x version in its own thread:
https://vborg.vbsupport.ru/showthread.php?t=250202

Shanj
09-09-2010, 02:40 PM
I'm following the development of the XenForo (http://xenforo.com/community/) forums - which the best VB developers are bringing out, with great interest. It's a lovely system with very attentive support frokm Kier and Mike - due out by end of this month I think.

XenForo (http://xenforo.com/community/)has a Pages feature which does some of what your templates do. They provide a page with forum header and footer, user permissions integration and integration in forum hierarchy. I bet they were inspired by Logician.

What XF Pages doesn't do though is provide for bbcode editing. It's html.
While I can do that it's slower and my moderators c an't do it. So I do hope you're going to polish up XF Pages dear Logician to give us a bbcode editor on them with a nice mod.

Logician
09-09-2010, 02:56 PM
I bet they were inspired by Logician.

What XF Pages doesn't do though is provide for bbcode editing. It's html.

Considering they are already making it a built-in feature, why don't they provide bbcode editing too? I bet their forum system would have WYSIWYG editor, so it shouldn't be too difficult for its devs to bring it into their pages. Do they tell why not?

joselaholla
11-13-2010, 12:19 AM
Thank you..

Shanj
11-13-2010, 07:53 AM
Considering they are already making it a built-in feature, why don't they provide bbcode editing too? I bet their forum system would have WYSIWYG editor, so it shouldn't be too difficult for its devs to bring it into their pages. Do they tell why not?

Logician I totally agree. I was asking and asking for it and so were others.
Kier said it was not a difficult thing / would be an easy mod. Nor did he rule out adding it to the core XF. But a) it would interfere with the template syntax (I thin k that's what he said, meaning the bits of code like conditionals you can add in?) and b) it wasn't on the priority list.

I too made the point that we were using a WYSWYG editor whenever we wrote a forum post so this was much the same thing. I saw others saying this. I guess the only bit that fits this point is the one about code conflict? <shrug>

To me this is a major flaw. For one thing the modding community at XF is enthusiastic but not very developed. There are few mods of any substance. (Possibly because XF is designed on unfamiliar lines.) But I was trailing for a WYSWYG editor in my signature on daily posts for weeks with no response. So it's all a definitely later later situation.

Quite a few admins were very sniffy about it all - one even said you shouldn't be an admin if you can't code htrml !!!!
But although I can do it, it's a pain in the backside and much slower to log into admin, find the section, and code the page, instead of clicking on the page with usergroup access and just updating some info.
Also it means I can't delegate to my mods - forum mods need many social skills and it's a rare bird that has both these and html.

So finally I find the XFPages a lovely starter but pretty well unusable except in a small scale way - a FAQ or forum rules, or a handful of pages.
Whereas with WYSWYG on the frontend like your Templates we have a highly controllable cms - I use the VBSide Columns mod as well.

Thank you again and again for your excellent excellent mod. A real classic.

viper357
12-19-2010, 07:06 PM
Quick question Logician ;)

I have the following 4 tables in my db, I assume these are from when I had your old web template system installed, would it be safe to delete these tables or are they still used with this version?

wt35_query 7.5 KB 2.0 KB 0 Yes
wt35_theme 10.1 KB 2.0 KB 0 Yes
wt35_visitlog 288 Bytes 3.0 KB 0 Yes
wt35_webtemplate 1.35 MB 3.0 KB 0 Yes

Logician
12-20-2010, 06:18 AM
Quick question Logician ;)

I have the following 4 tables in my db, I assume these are from when I had your old web template system installed, would it be safe to delete these tables or are they still used with this version?

wt35_query 7.5 KB 2.0 KB 0 Yes
wt35_theme 10.1 KB 2.0 KB 0 Yes
wt35_visitlog 288 Bytes 3.0 KB 0 Yes
wt35_webtemplate 1.35 MB 3.0 KB 0 Yes
These are part of webtemplates 3.7 version (and you are now in ITS thread). If you mean you upgraded to 4.x version, then yes they can be dropped as mentioned in the "UPGRADE FROM VERSION 3.x.TXT" file of WT 4.x version.

viper357
12-20-2010, 06:47 AM
Thanks. :)

p.s. I'm still on vb 3.8, so if you add any updates to the 4.x version, don't forget about us mortals further down the food chain. ;)

Thanks for the awesome hack :up:

Logician
12-20-2010, 07:45 AM
Thanks. :)

p.s. I'm still on vb 3.8, so if you add any updates to the 4.x version, don't forget about us mortals further down the food chain. ;)

Thanks for the awesome hack :up:
If you are on vb 3.8, then please do not remove these tables. 3.7/3.8 versions use same (these) tables. They are only obselete in 4.x version.

Actually for now, 4.x users are mortals down the food chain because I myself is also using 3.5.x version. ;)

viper357
12-20-2010, 08:02 AM
If you are on vb 3.8, then please do not remove these tables. 3.7/3.8 versions use same (these) tables. They are only obselete in 4.x version.Cool, thanks. :)

Actually for now, 4.x users are mortals down the food chain because I myself is also using 3.5.x version.
Good to hear :up::up::up:

Shanj
01-02-2011, 01:43 PM
For some of my forums it would be great if I could set a redirect so after a reply the user goes to a specific page.
I just want this on selected forums. If anyone can help please let me know.

Legend Killer1
01-14-2011, 05:29 PM
yes i installed this mod today exactly the way it tells u in the install instructions and now i got some kinda error saying:

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/class_core.php on line 2552

Unable to add cookies, header already sent.
File: /home/wlxstrea/public_html/forum/includes/init.php
Line: 55

what does this mean and how can i fix this i would appreciate any help thanks

Logician
01-14-2011, 07:03 PM
yes i installed this mod today exactly the way it tells u in the install instructions and now i got some kinda error saying:

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/wlxstrea/public_html/forum/includes/class_core.php on line 2552



Unable to add cookies, header already sent.
File: /home/wlxstrea/public_html/forum/includes/init.php
Line: 55

what does this mean and how can i fix this i would appreciate any help thanks
This is vb 3.7 version of the hack. Are you sure you didn't install into a vb4.x board?

Legend Killer1
01-14-2011, 07:43 PM
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

Logician
01-15-2011, 07:58 AM
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/showthread.php/353555-Deprecated-Assigning-the-return-value-of-new-by-reference-is-deprecated-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
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
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
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
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.

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

blah blah

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

Logician
01-20-2011, 05:26 AM
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
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
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
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
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
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 (https://vborg.vbsupport.ru/showthread.php?t=186644) template with PHP code embedded in it from another mod and I would like to add the Cyb Chatbox (https://vborg.vbsupport.ru/showthread.php?t=201283) 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
Question.

I have a Logician's Webtemplates Mod (https://vborg.vbsupport.ru/showthread.php?t=186644) template with PHP code embedded in it from another mod and I would like to add the Cyb Chatbox (https://vborg.vbsupport.ru/showthread.php?t=201283) 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
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?
<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
<? 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
Can I do this?
<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
<? 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
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 <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
^ 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 <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:

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


and before that use something like this


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?

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
http://healthcommunity.co/view.php?pg=invalid_pg
(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
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
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:

$WQfield[$WTWQqdateparsedvalue] = WTdatelineTOusertime($WQfield[$WTWQqdateparsedvalue]);}
and replace it as:

$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
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:

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

N8
09-08-2013, 01:19 AM
Perfect. I really appreciate it, thanks!

viper357
03-01-2014, 07:53 AM
I'm getting these errors on all my webtemplates pages:

Deprecated: Assigning the return value of new by reference is deprecated in /home/*****/public_html/view.php on line 584

Deprecated: Assigning the return value of new by reference is deprecated in /home/*****/public_html/view.php on line 713

Deprecated: Assigning the return value of new by reference is deprecated in /home/*****/public_html/view.php on line 990

Any idea how to fix it? Thanks. I'm using vb 3.8.5

Logician
03-01-2014, 08:13 AM
I guess you upgraded your PHP.

Use the attached view.php

viper357
03-01-2014, 08:30 AM
Thanks for the quick response, working perfectly now, thank you. :)
I guess you upgraded your PHP.
Hosting provider probably did, I just checked and I'm on 5.3.18.

Thanks for the help. :)