vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebTemplates 2.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=54875)

Intex 07-04-2003 07:30 AM

Ahh I see. The board I use has a very small amount of members (unlikely to rise above 50), so I wouldn't be too concerned about the number of queries on that pages to be honest, particularly when max. usage there are 11 people online.

If this is possible and simple, could you show me. If its a big job don't worry - I'm grateful for the time you've spent so far :).

Logician 07-04-2003 08:44 AM

Quote:

Today at 11:30 AM Intex said this in Post #51
Ahh I see. The board I use has a very small amount of members (unlikely to rise above 50), so I wouldn't be too concerned about the number of queries on that pages to be honest, particularly when max. usage there are 11 people online.

If this is possible and simple, could you show me. If its a big job don't worry - I'm grateful for the time you've spent so far :).

Edit online.php, find:

PHP Code:

  // Logician WebTemplates v.2 Hack    
  
global $WT_Option_NameOFviewphp;
  
// Logician WebTemplates v.2 Hack 

Replace it as:
PHP Code:

  // Logician WebTemplates v.2 Hack    
  
global $WT_Option_NameOFviewphp,$DB_site,$WT_DB_TemplateTable;
  
// Logician WebTemplates v.2 Hack 

find:
PHP Code:

$userinfo[where]= 'Reading <b>WebTemplate:</b> <a href="'.$WT_Option_NameOFviewphp.'?pg='.$lmatch.'&s='.$session['sessionhash'].'" target="_blank">'.$lmatch.'</a>'

Replace as:
PHP Code:

         $friendlyname $DB_site->query_first("SELECT userfriendlyname FROM $WT_DB_TemplateTable WHERE title='".addslashes($lmatch)."'");
if (!
$friendlyname[userfriendlyname]) {$friendlyname[userfriendlyname]=$lmatch;}
         
$userinfo[where]= 'Reading <b>WebTemplate:</b> <a href="'.$WT_Option_NameOFviewphp.'?pg='.$lmatch.'&s='.$session['sessionhash'].'" target="_blank">'.$friendlyname[userfriendlyname].'</a>'

Enjoy

Intex 07-04-2003 09:25 AM

Logician - you're some sort of superstar !! Thx. a lot :cool:.

Bad Bunny 07-04-2003 02:27 PM

Looks interesting to say the least.

Dark_Wizard 07-05-2003 10:48 AM

WOW! Awesome job....

Skipsoutdoors 07-09-2003 10:10 PM

And now this new version. This is awesome. Keep up the good work, and thanks for the hack.

One question that you might be able to answer that I have yet to get an answer for.

I operate an outdoor website and want to build pages with information about specific lakes. For each of these lakes, I have a Forum. Example: Fishing Reports is parent, Kentucky Lakes is a sub parent and Laurel Lake is the forum. What I want to do is make the Laurel Lake thread appear on the Laurel Lake information page. The thread is intended to have fishing reports on it from users, the other information would be local weather, lake levels, marina and attraction info. Is there a way to do this? I've been told once that it would require another complete board, but that's not the aim here. The aim is to keep the same bunch of users, just add more information to their surf in.

Skip

soccerclue 07-10-2003 12:20 AM

hi Logician...just using the hack..it's awesome...you are the best...but I have a problem displaying the last 10 thread on my site. can you take a look at http://www.asianguild.com ? The last 10 threds table is on bottom of the page. Please let me know what is wrong with it. Thanks. Clicking install now. ;)

soccerclue 07-10-2003 12:41 AM

all right..it works now...i just delete the forumid condition.

K33nny 07-10-2003 04:07 AM

Alright, I got this hack working out of the default vBulletin directory and with the Online Locations hack.

Would it be safe to say that Webtemplates v.1 no longer needs to be used? I never really got around to do anything with it but should I just remove it?

K33nny 07-10-2003 05:08 AM

Something I noticed when editing pages threw the edit page option.

It doesn't use {doctype}, it actually executes that peice of code and prints it out as "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">".

That could cause big problems if it does the same stuff for (firstaltcolor} type replacements.


All times are GMT. The time now is 11:17 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.01332 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)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
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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