vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [WEBTEMPLATES HACK:]Share your WebTemplates or WebQueries! (https://vborg.vbsupport.ru/showthread.php?t=36578)

Logician 03-26-2002 03:00 PM

[WEBTEMPLATES HACK:]Share your WebTemplates or WebQueries!
 
Dear Friends,

This thread is for sharing your WebTemplates and WebQueries with other WebTemplates Hack users.

If you have questions about the hack itself or need support about installation of the hack, please forward your questions in the original thread.

If you installed the hack you can insert other user's WebQueries(or Web Templates) from your Admin Control panel/Add WebQuery(WebTemplate) link. It's just like adding a vbcode. After adding your templates and queries just call the webtemplate you created from your browser and you have the page!

Let's devote this thread to requesting/sharing Webtemplates and especially WebQueries.

Share away! :)

Logician

Ps. If you haven't installed WebTemplates Hack, this thread will be no help to you. Go check the original thread.

Logician 03-26-2002 03:19 PM

This WebQuery will display the last XX private messages of your members. So if you want to keep your member's pms under surveillance, you'll like this one ;)

Here we go: Login your CP and click ADD QUERY:
Fill the form accordingly:

QUERY NAME:
----------------
_privatemessages

QUERY:
---------
SELECT privatemessageid, fromuserid, touserid, title, message, touser.username AS tousername, fromuser.username AS fromusername
FROM privatemessage
LEFT JOIN user AS touser ON (touser.userid=privatemessage.touserid)
LEFT JOIN user AS fromuser ON (fromuser.userid=privatemessage.fromuserid)
WHERE folderid='0'
ORDER BY privatemessageid DESC LIMIT 30

(Change 30 to whatever you want for last XX messages)

DESCRIPTION:
-------------------
Read last XX private messages of your forum.

NO RESULT TEXT:
----------------------
No private messages exist in the database!

TABLE ROW:
---------------------
<table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#0000FF"><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"><tr> <td ><div align="center"><normalfont>Message
ID: ??privatemessageid??</normalfont></div>
</td><td ><div align="center"><normalfont><a href="$bburl/member.php?s=&action=getinfo&userid=??fromuserid?? ">??fromusername??</a></normalfont></div>
</td><td ><div align="center"><normalfont><a href="$bburl/member.php?s=&action=getinfo&userid=??touserid??"> ??tousername??</a></normalfont></div></td></tr><tr>
<td colspan="3" ><normalfont>??title??</normalfont></td></tr><tr>
<td colspan="3" ><normalfont>??message??</normalfont></td></tr></table></td></tr></table>


Save your query and it's ready to rock. Now let's add a Webtemplate to attach your query:

Click ADD WEBTEMPLATE and create your HTML page as you like. Just a few points about your webtemplate:
1- Insert $_privatemessages in your template in the place where you want the private messages displayed.
2- Insert [options]templatequeryon[/options] anywhere in your template so that the script will parse your WebQuery.
3- Dont forget to ban this page to your ordinary users so that other members wont see all pms of all users. Give access to specific users/usergroups for this page. Eg. insert :

[cantsee]everybody[/cantsee][cansee]6 Admin[/cansee]

This will ban the template to all users except whose usergroup id is 6 or username is "Admin"

Just a WebTemplate Sample here:
(Remember WebTemplates are simple HTML pages so you can create them by yourself, this is just an example)
-- cut ----
[cantsee]everybody[/cantsee][cansee]6 Admin[/cansee] [options]templatequeryon[/options]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<title>$bbtitle </title>
<p align="left">$headinclude </head> <body> $header <br><p>

<p align="left"> <normal></normal></p>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td valign="top">
<p align="center"><smallfont>The page you accessed is visited by '$count' times.
Last visitor of this page was "$lastvisitorname" who visited the page at $lastvisittime.</smallfont></p>
<p>&nbsp;</p>
<div align="left">
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr id="cat">
<td bgcolor="#606096"><normalfont color="#FFF788"><b>Last
30 Private Messages From Your Board:</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#F1F1F1">
<p><normalfont> </normalfont><normalfont>$_privatemessages<br>
</normalfont></p>
</td>
</tr>
</table>
<p align="center"><smallfont></smallfont></p>
</div>
</td>
</tr>
</table>
$footer
-- cut --------

That's all! Now you can call your webtemplate as http://your_board_url/show.php?pg=your_template_name to monitor last XX pms in your board. ;)

Enjoy!
Logician

indiamike 04-03-2002 08:32 AM

Okay Logician,
Since you saw the other thread that I posted in the other spot I hope I this is the correct spot to ask some questions. Not some much for the install, which was easy and went well, but for some more examples.

I have it installed and have been playing around with it, however my knowledge on this kind of programming is limited. I figured out how to do custom pages and such and that was easy but the one big hurdle I have been running in to is having the header switch for differant styles that I use.

Let's say for example I have multiple stlyes that I use. In each of these styles the header is totally differant. Is there a way that I make a page in web templates and have it changed according to the style the user has selected.

Looking at it I don't think it's possible since it basically created a whole new section of templates which it draws from.

Any tips would be appreciated.

Mike

Logician 04-04-2002 06:33 AM

Yes this is possible:

What you have to do is create a "conditional" depending on user style variable, ie. $bbuserinfo['styleid']

So this should work:
-- cut ----
[[($bbuserinfo['styleid']==X)]]
your header for users whose styleid is X (Dont forget to replace X with style's id number)
[[/($bbuserinfo['styleid']==X)]]

[[($bbuserinfo['styleid']==Y)]]
your header for users whose styleid is Y (Dont forget to replace Y with style's id number)
[[/($bbuserinfo['styleid']==Y)]]

-- cut ----
and etc..

Let alone header, you can even design the WHOLE page in a different manner depending on user's style id, if that is what you want.

I am not at home now, so couldnt check if it works, but I cant see any reason that it wont.

Let me know if this is what you asked..

Regards,
Logician

WizyWyg 04-12-2002 07:54 PM

Hi Logician to quote from the original thread:

Quote:

Figured out how to do the post all threads (take off limit 10)
But how do I make the query only look at the private forum that he/she only has acces to? And apply to to every usergroup? I have all my users in usergroups (so no one under registered or groupid 2

I think i have the idea to make similar "whoareyou" templates for each usergroup I have so they would only have access to it. Would that be wise to do?

Another q:

Is it possible that instead of taking the user to the actual forum itself to view the thread, but to pull the contents of the thread and have them be viewed in a "threaded" format?

Is this possible?
I want to clear up that I dont want the query to look at a specific page in a thread, just to pull threads from only the private forum that the user belongs to. I dont want any of the public forum threads they may have posted to be displayed.

Logician 04-12-2002 08:11 PM

Quote:

Originally posted by WizyWyg
I think i have the idea to make similar "whoareyou" templates for each usergroup I have so they would only have access to it. Would that be wise to do?
Yes it would be wise to solve the problem in this manner: Create a sample "WebTemplate" (like whoareyou), then copy the same template with different names and in the begining of each one strict it to a certain usergroup. So every usergroup will have access to only his webtemplate.

Quote:

Originally posted by WizyWyg

Is it possible that instead of taking the user to the actual forum itself to view the thread, but to pull the contents of the thread and have them be viewed in a "threaded" format?

Does "threaded format" means the format a user reads a thread? If so, yes this is possible too. Simply pull the post itself with your webquery and the script will automatically list it in the way you like. But I dont know if you'll like this listing, because post will not be parsed (smilies, URLS etc.) and be in a raw format.

If you want to have an idea how it looks, just apply the webquery about "reading members pms" in this thread, and check the page out: Its quite readable but not parsed so not very presentable.. ;)

Wildthinks 04-22-2002 07:11 AM

Hi Logician,

THX is a very cool hack. You are a great developer.
Now let's go to the point... :bandit:
How can I realize a Newspage with comments
Newspage is not a Problem:
1. Create Board
2. set permission all non (not show in normal board)
3. query to get the content...
4. ?? How can I implemt the commentfunction?
-Should I create a new commentthread for every Newsentry? (not really... :paranoid: )
- oohh my god.... I have a idea ... I will query only the first Post of every thread and user can answer normally ?!?

Q: When the board say not allowed to view, but allowed reply...I think that should work?
When the rights in your page say allowed and the forum say not allowed is allowed?

THX for your help----

Wildthinks 04-22-2002 11:39 AM

Problem:

How can get the date in the right form ?
Can i use php to format from unixtimestamp to readable format?

Logician 04-23-2002 06:36 PM

Quote:

Originally posted by Wildthinks

Q: When the board say not allowed to view, but allowed reply...I think that should work?
When the rights in your page say allowed and the forum say not allowed is allowed?

I'm not sure if I got the question right? If it's what you asked, here's the answer: ;)

If you granted a special permission for your webtemplate, this would be different than your board's permissions. Say, you created a webtemplate which can be visible only to mods. Other users wont be able to see this webtemplate (thus the threads there), but if you didnt put special permissions (or make them hidden) in your original board, these threads can still be seen or replied from ordinary (non-mods) members in the board.

So the best practise can be appliying your webtemplates permissions to your forum too..

Regards,

Logician 04-23-2002 06:41 PM

Quote:

Originally posted by Wildthinks
Problem:
How can get the date in the right form ?
Can i use php to format from unixtimestamp to readable format?

The hack cant format the date (yet). In the next releases I plan to format it automatically inside the script.

Wildthinks 04-23-2002 09:15 PM

thx for help i will use the dateformat from Mysql ... and I hope I solve the problem...

Wildthinks 04-24-2002 01:45 PM

Another Question: How can I insert any data in the db?
I don't understand , because when I call aformular then ist query done, but I will write the entry and then insert..
Can you help?

THX

Logician 04-24-2002 01:54 PM

Quote:

Originally posted by Wildthinks
Another Question: How can I insert any data in the db?
I don't understand , because when I call aformular then ist query done, but I will write the entry and then insert..
Can you help?

Basically this hack is for reading FROM database and listing the returned data in a formatted table only, not for writing to the database. So if you want to modify/insert data you have to write the script that does it and then link it form your webtemplate.

Wildthinks 04-24-2002 02:00 PM

Ok I have done this, but I hope you can realize WRITING to Database... I write a new Template/Query for Sponsorlisting and so on and your Webtemplates make my life easier. THX
WT

Wildthinks 04-27-2002 08:13 PM

Hi Logician,

I'm a little bit nervous. I have Problems with a newssystem that use your webtemplates...
I have no idea, how can be realized with commentfunction... can u help me?
The Sponsortemplate is ready, I will share that when I have migration to vb completed...

Logician 04-27-2002 08:24 PM

I didnt understand what the problem is?!? Can you clarify?

Wildthinks 04-27-2002 08:35 PM

The Problem is, that I don't know exactly how can I realize the Newssystem with commentfunction...
my first way was I make a page that call all first thread from a hidden board... and display them on your page, but the smilies don't show's and I have problems with permissions...

Everybody should be commenting this thread ...

Have you another Idea to realize that... I don't need a template, I need a Idea...


PS: The sponsor-thing can you see here http://swishzone.net/vb/show.php?pg=sponsor

Logician 04-27-2002 08:52 PM

ok so why do you need this in a webtemplate? If you need special permissions for certain forums/users to read/reply etc. you can do that with vbulletin. Do you really need your threads moved in a webtemplate?

If you really need it in a webtemplate then may be you can think of moving only thread subjects to your template not the entire thread. You can link your threads in the template and if someone needs to read/reply, they can click the link and beamed to the original thread in the forum.

The hack was not designed to alternate vbulletin's reply feature because we already had it there. Hack's purpose was moreover derive data from the database and automatically create pages integrated with vbulletin. Therefore I dont think we can figure out a way to create a vbulletin reply alternative in a web template..

Wildthinks 04-27-2002 08:57 PM

thx for answer...so I will do what you saw, I think i can also the webtemplate design, that I have the post from VB or the headlines only and then a button to send the user to the thread and he can answer there....

Ok... I hopeI can realize that... thx for help...

-=dm=- 05-01-2002 12:33 PM

Quote:

Originally posted by Logician
Yes this is possible:

What you have to do is create a "conditional" depending on user style variable, ie. $bbuserinfo['styleid']

So this should work:
-- cut ----
[[($bbuserinfo['styleid']==X)]]
your header for users whose styleid is X (Dont forget to replace X with style's id number)
[[/($bbuserinfo['styleid']==X)]]

[[($bbuserinfo['styleid']==Y)]]
your header for users whose styleid is Y (Dont forget to replace Y with style's id number)
[[/($bbuserinfo['styleid']==Y)]]

-- cut ----
and etc..

Let alone header, you can even design the WHOLE page in a different manner depending on user's style id, if that is what you want.

I am not at home now, so couldnt check if it works, but I cant see any reason that it wont.

Let me know if this is what you asked..

Regards,
Logician


Hi Logician
Great hack :)
I have 2 questions.
1: where to add the code above?
2: How do I see where is the user (the whoisonline part)

Thanx in advance
dm

Logician 05-01-2002 02:37 PM

Quote:

Originally posted by -=dm=-

1: where to add the code above?
2: How do I see where is the user (the whoisonline part)

1- You should insert the code somewhere in your web template.

Say, you created a new Web Template (an HTML page) and you want this page post "I love users who use my Red Style Sheet and you're one of them!" to only users who are using Red Style Sheet. Simply create your webtemplate like an ordinary HTML page, then in the place where you want this text posted insert this code:

[[($bbuserinfo['styleid']==X)]]
"I love users who use my Red Style Sheet and you're one of them!"
[[/($bbuserinfo['styleid']==X)]]

While your webtemplate is loaded, the script will check if the viewer's styleid=X and if yes this text will be posted, else it will not..

2- When your users view a webtemplate, they can be monitored in the "Who is Online". However their location is raw, not in a formatted text. (Anyway you can understand in which webtemplate they are).

I would improve this section of the hack with the next release, however I am not sure if I'll code any other releases any more..

Honestly I thought this hack is something that many people can use and benefit, but 1.5 half months passed and only 12 people installed the hack. Seems I was wrong so I think it's not worth spending times to improve it.

Regards,
Logician

TECK 05-02-2002 07:55 AM

Quote:

Originally posted by Wildthinks
- oohh my god.... I have a idea ... I will query only the first Post of every thread and user can answer normally ?!?
if you do this, you will end up with 150queries on that page. i made the same mistake with vbHome (lite). is now corrected in the full version. and it does have the comments separated... ;)

-=dm=- 05-02-2002 11:01 AM

Thanx :)

Quote:

Honestly I thought this hack is something that many people can use and benefit, but 1.5 half months passed and only 12 people installed the hack. Seems I was wrong so I think it's not worth spending times to improve it.
thats strange only 12 have installed this, cuz this hack is one of the best in my opinion, also easy to install and still advanced hack...why is this still in beta section?

Logician 05-02-2002 12:09 PM

Quote:

Originally posted by -=dm=-
why is this still in beta section?
Same reason: The hack had no problems here when I published it. But I posted it in the BETA section anyway, because it has a complicated coding and I wanted some feedback and be sure it has no bugs. Unfortunately I received none. So it stays there..

Thx for the nice comments though..

Wildthinks 05-02-2002 01:30 PM

Quote:

Originally posted by Logician

Same reason: The hack had no problems here when I published it. But I posted it in the BETA section anyway, because it has a complicated coding and I wanted some feedback and be sure it has no bugs. Unfortunately I received none. So it stays there..

Thx for the nice comments though..

Your WT works very fine and is cool stuff, IMHO is it a cool "light" CMS and I'm happy that I can use it and you share it with us. It's very great...

NTLDR 05-02-2002 01:37 PM

Quote:

Originally posted by Logician

Same reason: The hack had no problems here when I published it. But I posted it in the BETA section anyway, because it has a complicated coding and I wanted some feedback and be sure it has no bugs. Unfortunately I received none. So it stays there..

Thx for the nice comments though..

Perhaps the fact that it is in the beta section is putting people of as they think it could mess up there board, the people who have insalled it know its stable but other users may still consider it risky.

Thats just my $0.02 worth.

Logician 05-02-2002 02:07 PM

Quote:

Originally posted by NTLDR

Perhaps the fact that it is in the beta section is putting people of as they think it could mess up there board, the people who have insalled it know its stable but other users may still consider it risky.

Yep, you may have a point..

-=dm=- 05-02-2002 08:43 PM

sorry Logician Im a newbie I cant giv ya the feedback u need:(, but I can tell ya that, its runing fine on my testboard and I love it and u r damn good to giv dummie instructions :D lately there is only 2 hcak which impressed the vBindex and this TemplateHack.
I hope I can use it with the v3 when its out otherwise Im not going to upgrade to v3 :D

NTLDR 05-02-2002 08:53 PM

Quote:

Originally posted by -=dm=-
I hope I can use it with the v3 when its out otherwise Im not going to upgrade to v3 :D
I have a feeling this isn't going 2 work with vB3, I think thats says it all about what -=dm=- thinks about this hack :D

Logician 05-02-2002 09:13 PM

Quote:

Originally posted by NTLDR

I have a feeling this isn't going 2 work with vB3, I think thats says it all about what -=dm=- thinks about this hack :D

-=dm=-'s comment is so nice and flattering that it's now impossible not to convert it to vb3. :laugh: (thx btw!)

In fact I cant see any reason that it will not work with VB3. The script what does the real job is independent from the vbcode. So even if they change the all code, I think it will keep on working provided that "global.php" file structure is same. Anyway I think there will no clash between vb3 and this hack that I cant fix..

NTLDR 05-02-2002 09:21 PM

The thing that made me think that it may not work is the fact that the template system (I'm sure I read somewhere) has change quite abit, but that depends how much this hack relies on the built-in template system of vB.

Logician 05-03-2002 05:50 AM

Quote:

Originally posted by NTLDR
The thing that made me think that it may not work is the fact that the template system (I'm sure I read somewhere) has change quite abit, but that depends how much this hack relies on the built-in template system of vB.
It doesnt matter even if vbulletin totally revokes the entire template system, let alone changing a bit. WebTemplates (although having the name template) has nothing to do with vbulletin templates. They are kept in a non-vbulletin table, they are created/modified in a non-vbulletin code and they are parsed in a non-vbulletin script. So whatever modification is made in the vbulletin template system, will not effect this hack.

The hack's only common point with Vbulletin is, it uses vbulletin's variables and values (such as username, user style set id etc.) and hack compiles this info via global.php, just like other vbulletin scripts like showthread.php, forumdisplay.php etc. So if they dont touch this system, script will work with even vbulletin 3000 ;) If they change the system, then they have to substitute a similiar system to compile userdata for native vbulletin files and then I have to make a modification in my script and apply the same system they have adopted.

Therefore I dont think there will be any problems with new releases.

Wildthinks 05-05-2002 01:58 PM

Hi Logician,

I have found a bug...

the queryname is $_listedownloadprogramme and this don't work and rename to $_listedlprog work fine. The Name to long?

My other (working queryname)
Quote:

Welcome to Your Web Queries:


_last_10_threads [edit] [remove]
Gets user's last 10 threads from forum database
_letzten10threadsalle1 [edit] [remove]
letzetn 10 threads ?ber alles nur mit gleicher oder kleinerer Userid
_listedlprog [edit] [remove]
Liste normaler Programme
_listedownloads [edit] [remove]
Alle Downloads listen
_listedownloadsSWI [edit] [remove]
Fragt alle Downloads aus der Liste ab
_listedownloadsswi152 [edit] [remove]
Liste aller SWI 152
_listedownloadsswi20 [edit] [remove]
Liste aller SWi 2.x
_privateevents [edit] [remove]
Gets user's recent private calender event list
_privatemessages [edit] [remove]
Read last XX private messages of your forum.
_sponsorAusgaben [edit] [remove]
aussgaben auflisten
_sponsorListe [edit] [remove]
Eingang der Betr?ge
_sponsorRestzeit [edit] [remove]
Restlaufzeit ausrechnen
_sponsorSponsoren [edit] [remove]
Liste der Sponsoren
_sponsorSumme [edit] [remove]
Sponsorstatistik
_StatsAnzahlPM [edit] [remove]
Anzahl PM's
_StatsAnzahlPoll [edit] [remove]
Anzahl der Umfragen
_StatsThreadundVoteRate [edit] [remove]
Anzahl der Bewertungen f?r alle threads
and templatename
Quote:

Welcome to Your Web Templates:


downloadprogramme (40) [edit] [remove]
downloads (13) [edit] [remove]
downloadsstats (1) [edit] [remove]
DownloadsSWI (71) [edit] [remove]
downloadsswi152 (7) [edit] [remove]
Downloadsswi20 (8) [edit] [remove]
footer (0) [edit] [remove]
header (0) [edit] [remove]
last10threads (122) [edit] [remove]
Nachrichten (3) [edit] [remove]
notallowed (0) [edit] [remove]
notfound (0) [edit] [remove]
PrivateNachrichten (9) [edit] [remove]
Sponsor (161) [edit] [remove]
webquery_help (1) [edit] [remove]
webtemplate_help (1) [edit] [remove]
whoareyou (1) [edit] [remove]
_sponsorEintragen (1) [edit] [remove]
------------------
...what I really need is the possibility to transfer variables from one to next site...
I realize a Download at the moment with a seperate *.php, because I must give the ID for the target....

and so on... it's very great code and this safe my rarely time...
this is definitely my favourite hack !

Wildthinks 05-05-2002 02:12 PM

another tip, when the name to long and a query have the first charackter identical then have you a problem
when i have a querystatement in the template
$_listedownloadsprogramme
and a query $_listedownloads the will query $_listedownloads use and in the template is printing "programme" ...
I little bug... :-) (very small)

Logician 05-05-2002 05:01 PM

Wildthinks I tested "_listedownloadprogramme" as WebQuery name and it worked here. I dont know what problem you encountered but I created a new webquery named "_listedownloadprogramme", then added the $_listedownloadprogramme variable into my webtemplate and it listed the results.

as for second one: ($_listedownloadsprogramme/$_listedownloads) yes you may have a point. I noted it down and will check it in the new release if there will be a new release :)

Wildthinks 05-05-2002 06:03 PM

I'm busy on job next week, after that I will send you a "problem" for me ....
Quote:

I noted it down and will check it in the new release if there will be a new release
wow wow wow... mhhhh please. ... develope this further... i give you all support that i can.... unlikely my skills have not level to develope a programm like webtemplate...

Logician 05-05-2002 07:02 PM

Quote:

Originally posted by Wildthinks
wow wow wow... mhhhh please. ... develope this further... i give you all support that i can.... unlikely my skills have not level to develope a programm like webtemplate...
You guys surprise me! :p I published this hack, asked for comments and feedback to develop it more and nobody even tell me if it's working without any problems in their board or not. Only 12 people installed it in 2 months and honestly this hack lost its priority in my list. (I still use it in my board though).

Then all of a sudden I realize that there are "real fans" of the hack. It's really surprising. Thx anyway.. :) I'll think about improving it.

Wildthinks 05-05-2002 07:48 PM

yes... give me a little bit more time to understand and test out all features from your hack...what I really really need is transfer variables from site to site...

See my Downloadmanager in test and developening....
http://swishzone.net/vb -> click on download or on sponsor ... this use your webtemplate ...btw the next one is news and a big intro-site ... soon.... grafix in developement...

Wildthinks 05-12-2002 10:41 AM

so we going to the point...
bugreport Webtemplates
1. ??Count(dlm_files.id)?? don't work

2. I can't one webtemplate insert in a other... but I use the querytemplates for it... i create a simple (needed and also cached)
query and so work this... can you make a button to say have query or not and so can I use as a webtemplate..
Logician ... i don't understand... i Can't insert webtemplate, but I can insert querys... I think you can insert a query without query... so have you the possibility to insert webtemplates in other...

3. to much space between ??var1?? and ??var1??
sample: original Downloads: ??var1?? in html
Downloads: ??var1??
4. Wish: include Template in Standardtemplate from VB
5. don't work in footer or header as template with templateoption or standalone... means that I can't use query's or templates in footer or header...
6. casesensitiv? the names are casesensitiv? sometimes yes sometimes no?

samples for templates on my site

all in downloads....
http://swishzone.net/vb/show.php?pg=downloadsswi20

Sponsorlist:
http://swishzone.net/vb/show.php?pg=sponsor

Regards...

Logician 05-12-2002 06:16 PM

Hiyas,
Quote:

Originally posted by Wildthinks
1. ??Count(dlm_files.id)?? don't work
Right, use alphanumeric names ONLY. ie. A-Z and 0-9

No ().?*,"' etc..

Quote:

2. I can't one webtemplate insert in a other... but I use the querytemplates for it... i create a simple (needed and also cached) so have you the possibility to insert webtemplates in other...
Wow! you are asking for too much! :)

Yes you cant insert webtemplate inside webtemplate.

You can insert many webqueries inside 1 webtemplates though.

Quote:

3. to much space between ??var1?? and ??var1??
sample: original Downloads: ??var1?? in html
Downloads: ??var1??
I didnt get that??

Quote:

4. Wish: include Template in Standardtemplate from VB
It would be a mistake because then hack would be dependable to vb template system and if they change it in the future (v. 3?), hack would be useless.

And there is no need for that either. If you need to use a vb template, simply copy/paste its contents to your webtemplate.

Quote:

5. don't work in footer or header as template with templateoption or standalone... means that I can't use query's or templates in footer or header...
That's right. Header and footers are not designed to be parsed. If you need to run a webquery in header, do not use a header. Just make 1 webtemplate including your header, webtemplates etc and use that one without header.

Quote:

6. casesensitiv? the names are casesensitiv? sometimes yes sometimes no?
You have already mentioned that, I noted it.. It's not an important bug either. Just always use lower case.. :)

Regards,


All times are GMT. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,903KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete