vb.org Archive

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

anarx 02-09-2007 06:42 PM

First of all: Very nice hack!

My question now: Is it possible to include subforums to:
$WQ_last10threadfromforum2

I tried to get arround this like that:
forumid='36,40'

It did not work.

I hope you can help me ;)

Logician 02-09-2007 08:14 PM

Quote:

Originally Posted by anarx (Post 1178616)
First of all: Very nice hack!

My question now: Is it possible to include subforums to:
$WQ_last10threadfromforum2

I tried to get arround this like that:
forumid='36,40'

It did not work.

I hope you can help me ;)

forumid='36' OR forumid='40'

Logician 02-09-2007 08:15 PM

Quote:

Originally Posted by dcpaq2 (Post 1177931)
Logician,

Where can i find detailed instructions on how or what is the best way to upgrade?

Thanks

Doug

Best way to upgrade is overwrite hack's all .php files in the server. That should be it.

anarx 02-10-2007 12:39 AM

Hi!

I have got a new question:
I use $WQ_last10threadfromforum2 to show some threads.

I included the table "forum" to show the forum name.
Code:

SELECT thread.threadid, thread.title as threadtitle, thread.postusername,thread.postuserid,thread.dateline,forum.title,forum.forumid, forum.parentid

FROM thread
LEFT JOIN forum
ON (thread.forumid = forum.forumid)

Showing the forumname just works fine with "title"

Now I wanted to show the names of one parent forum, too.

First I tried it with "parentid" and "title" but it did not show me the name of the parent forum, it just showed me the name of the forum where the thread is.

After that did not work I tried it like that:

Code:

<td class="$alternate" WIDTH="12%" VALIGN="TOP" NOWRAP><div class="smallfont">

<if condition="$WQfield[forumid]=='40'">
<a href='forumdisplay.php?$session[sessionurl]f=$WQfield[forumid]'>
BLA</a>
</if>
<if condition="$WQfield[forumid]=='38'">
<a href='forumdisplay.php?$session[sessionurl]f=$WQfield[forumid]'>
BLUB</a></if>
<else>
<a href='forumdisplay.php?$session[sessionurl]f=$WQfield[forumid]'>
Bla2</a></else>

</div></td>

That did not work, too.

I hope you understand my problem. I am not good at coding. Please help me if you are able to.

cU anarx

aacircle 02-10-2007 11:43 AM

Ok, I'm undecided now between this product and vbArticles by Mary.

WebTemplates is free and been around longer, but Mary's product looks snazzier. Has anyone looked at both offerings?

Thanks.

Sam1985 02-17-2007 03:16 AM

Hey Logician,

This is a flawless mod. I love it!! this will be a keeper!

Only question I have is how do I create categories besides "Your Custom Pages" and "Default WebTemplates"

I'm a total noob:p

Thanks

Logician 02-17-2007 06:29 AM

Please check 1.3.1.3 section in manual

Sam1985 02-18-2007 01:29 AM

Thanks it worked.
It's beautiful!

Any chance of making a search or releasing a code for that?

aacircle 02-19-2007 02:12 PM

Simple question. Are members able to reply to articles placed into the system? Otherwise I think vBa Blogicles may be the better alternative at http://www.vbadvanced.com/forum/showthread.php?p=105492.

kafi 02-19-2007 02:30 PM

Quote:

Originally Posted by Logician (Post 1163316)


Any news on how to make the page in certain style id? Example above doesnt work.


Thank you!!!!

bulbasnore 02-27-2007 03:51 AM

Quote:

Originally Posted by Logician (Post 1171897)
set a vb conditional in WT:

Hey yah, just noticed that is a generalized workaround (with no PHP file hacking) to the issue of the WT restriction or 'negative permissions', i.e. the fact that WT specifies groups/IDs who CANT see the page. Its difficult for us because we've leaned heavily on vB's positive permissions capability to assign multiple groups so that we give fine-grained permission to our site.

Here's what I did --

PHP Code:

$header
<if condition="is_member_of($bbuserinfo, 6, 7, 8)">
     
$WQ_secretinfo
<else />
     
You should not have come here$bbuserinfo[username]! 
</if>
$footer 

The above shows the web-query result to members of groups 6,7,8. It shows a personalized "go away" message to everyone else.

I suppose you could enclose your entire page in the conditional so that only the specified group(s) could see it. Since you're giving (or denying) permission at the page level in vb (as opposed to element level) I guess this works pretty generally to convert WT permissions. Comments/corrections?

Logician -- I'm so very grateful for your add-on and your support of it!

Quantnet 02-28-2007 05:33 AM

I put the logout code in the template. This will use the vbulletin standard logout where it will display the message "Return to index page or the last view page"

Is there a way i can specify a site that after the member logout will be directed to ?

Thanks

markp_2000 03-01-2007 02:47 AM

Excellent mod.

How would one use the vB's internal ajax to tap into a add-on database and edit those fields?

Mark

Quantnet 03-06-2007 04:36 AM

Which $ variable I can use to display the last updated time of a user profile, either by himself or by the admin.

For example, when the admin move the user from usergroup X to usergroup B, I'd like to display the time when the admin made the usergroup move for the user.

Thanks

Logician 03-06-2007 04:44 AM

Quote:

Originally Posted by Quantnet.org (Post 1196855)
Which $ variable I can use to display the last updated time of a user profile, either by himself or by the admin.

For example, when the admin move the user from usergroup X to usergroup B, I'd like to display the time when the admin made the usergroup move for the user.

Thanks

There is no such variable. Neither in WT nor in vb.

Quantnet 03-07-2007 05:28 AM

thanks, Logician,

I decided to do without.

Immortal_Shades 03-13-2007 11:26 PM

How can I embed a flash file into the new pages and what do I have to do to remove the branding and extra stuff on the bottom? Much props on your work and all but I wouldnt mind paying a few bucks to remove the branding.

Parsing : TEXT | Theme : Default Basic Theme
WebQuery : N/A <------This Stuff!!

GafferSports 03-19-2007 11:43 PM

I have installed this but wehn I go to add a new template I do not get any default themes, I only get 'No Parent Template'.

Any ideas what is wrong here?

Logician 03-20-2007 06:29 AM

Quote:

Originally Posted by GafferSports (Post 1207733)
I have installed this but wehn I go to add a new template I do not get any default themes, I only get 'No Parent Template'.

Any ideas what is wrong here?

Performed installation step 3?

Kihon Kata 03-20-2007 12:35 PM

Hi Logician,

Do you have any plans to improve this mod?

Megadeuce 03-26-2007 02:26 AM

I'm sorry if someone has asked this already but I've noticed on the sites that this mod was installed on, let's say the leatherneck site, that I cannot find the link to click on that site to get to the about us page.

My question is, once you create a page, how to you get a link to diplay is a specific place on your VB forum?

Logician 03-26-2007 05:27 AM

Quote:

Originally Posted by Megadeuce (Post 1212380)
I'm sorry if someone has asked this already but I've noticed on the sites that this mod was installed on, let's say the leatherneck site, that I cannot find the link to click on that site to get to the about us page.

My question is, once you create a page, how to you get a link to diplay is a specific place on your VB forum?

You can:

1- Create your webtemplates link yourself manually in certain locations like navbar.
2- Put your webtemplates link an other webtemplate or site main page
3- Hack has already comes with a default webtemplate, which automatically compiles the list of your webtemplates created in a special group.

Megadeuce 03-26-2007 11:39 PM

Thank you for this great hack. I like that it comes with the default template with automatic list of webtemplates, but I will need a link in a navbar. Is this easily done, or is this another hack?

Logician 03-27-2007 06:23 AM

Quote:

Originally Posted by Megadeuce (Post 1213213)
Thank you for this great hack. I like that it comes with the default template with automatic list of webtemplates, but I will need a link in a navbar. Is this easily done, or is this another hack?

You can edit template named "navbar" and add any link there:

Admin cp/styles&templates/style manager/(Expand Templates)/Navigation / Breadcrumb Templates/navbar (edit)

Quantnet 03-27-2007 08:06 AM

Logician,

I have created a webtemplate where member can log in and have a different message displayed depends on which usergroup the member belongs to.

i have a small question, I don't know why the even though the page displays fine, the hourglass on the cursor seems to loads forever....

It's like something is still loading....

Deimos 03-27-2007 05:32 PM

When running this on VB 3.6.4, I get this error at the top of any webtemplate page

Warning: unserialize() expects parameter 1 to be string, array given in /view.php on line 59

Warning: unserialize() expects parameter 1 to be string, array given in /view.php on line 60

Wondering if it's a compatability problem with PHP5?

Logician 03-27-2007 05:44 PM

Quote:

Originally Posted by Deimos (Post 1213744)
When running this on VB 3.6.4, I get this error at the top of any webtemplate page


Warning: unserialize() expects parameter 1 to be string, array given in /view.php on line 59

Warning: unserialize() expects parameter 1 to be string, array given in /view.php on line 60

Wondering if it's a compatability problem with PHP5?

It looks like that. I haven't tested it with php5 before. If everything else seems to work fine, changing line 59 and 60 like this MAY work:

PHP Code:

$wt_hf = @unserialize($vbulletin->wt_hf);
$wt_themes = @unserialize($vbulletin->wt_themes); 


Deimos 03-27-2007 05:56 PM

That seems to have worked aok!
Thanks

Megadeuce 03-29-2007 11:31 PM

Thanks Logician for you help. This is a nicely done and useful hack.

I see your code. Will this allow me to post this code is a specific forum instead of all forums?

Pocket Aces 04-07-2007 04:30 AM

Nice hack. So far it works well on vb 3.6.5.

By the way, how do i remove the page stats on footer (ie. page visitors, last visitor, page created, etc.)?

Dennen 04-09-2007 01:33 PM

how do we add meta tags to the index page of this

Nikke 04-19-2007 09:56 AM

I would want to use the $WQ_last10threadfromforum2 query with multiple forums. So that I could take last 10 threads from forum id:s 1,2,34,5 for example.

Is this possible?

Kasey 04-24-2007 12:42 PM

hrrrmmm feeling really stupid here....(no blonde jokes please:o )

But when I tried to install.....and I got to the Step 3 on the Installation read me file....My VB ADMINCP didnt seem to be the same as what is being described. And when I tried to import the file "webplate_export.xml" I gt an Invalid File error.



Any thoughts?


I'm on vb 3.6.5

lazserus 04-24-2007 01:56 PM

I would back track and make sure you didn't skip any steps. Once all the files are uploaded to your server be sure you've imported the products-webtemplates.xml. The instructions aren't exactly accurate, so unless you're completely familiar with vB and all the options, I can see how it would be easy to miss. You import that by going to Plugins & Products > Product Manager > Add/Import Product. If you don't import that file then you won't see any of the Webtemplates options in your Admin CP. If you don't see the Webtemplates option then that means you're attempting to upload the webtemplates_export.xml to the wrong place. If that's the case then you'd definitely get an error when importing.

Back track and follow the instructions, but replace the info "Login Admin CP/Product Manager/Add-Import Product/ -> Import the file named 'product-webtemplates.xml'" with the path I've provided above in bold. You won't be able to upload webtemplates_export.xml until you've imported products-webtemplates.xml, because you need to import the export.xml using the Webtemplates options.

Hope that helps. If that doesn't, then maybe you could elaborate more on your problem.

Kasey 04-24-2007 05:43 PM

<font color="blue">I had found the 1st imported file but it had loaded under the vb options-->a listing on the right...(as opposed to the instruction alluding to they would be in the menu system to the left)....and I could open that up but it did not give me the option to import there as the instructions suggest rather .....the import is down in the plug ins as you said....that is where I had attempted to import the 2nd file and received the invalid error.</font>

Logician 04-24-2007 06:23 PM

If you can't handle it and don't mind me giving admincp access, I can take a look.

Kasey 04-24-2007 06:52 PM

yes please, if you can...


again I seem to be stuck on Step 3, the loading of the 2nd .xml file.

Kasey 04-24-2007 07:25 PM

Wooohoooo!!!!!(( (_/_) (_|_) (_\_) )) (doin' da happy dance wiggle!)



Thank you for the assistance Logician!!!!!!

lazserus 04-24-2007 07:28 PM

Sounds to me you were trying to upload the 2nd file in the wrong place. It had to be imported through Webtemplate options, not vBulletin's Plugin/Product importing area. But, looks like you've been taken care of!

Devile 05-01-2007 05:50 PM

There's a security problem with this mod. If u have it, better disable it til the author fixes it.


All times are GMT. The time now is 09:32 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.02366 seconds
  • Memory Usage 1,837KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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