vb.org Archive

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

i156 08-25-2008 03:41 PM

Quote:

Originally Posted by Logician (Post 1606314)
It should work fine inside a html webtemplate.

http://www.usacarry.com/forums/view.php?pg=florida_ccw

I got it working. I didn't have some needed files in the forums root. Thanks! This is a great mod and with this working I'll be off of Joomla by the end of the day!

siddal 08-26-2008 05:45 AM

Firstly,
I?m trying to make a page with the last 30 threads showing forum-thread-user-date and succeeded. Almost.
The problem arises when I click on the forum name rather than the specific thread and I get
directed to the same forum (forum id7) every time. I?ve read through the posts on many versions of the mod and find nothing that resembles this. I should be grateful for any ideas/help.

Code:

SELECT thread.threadid AS threadid, thread.title AS title, thread.postusername AS postusername, thread.postuserid AS postuserid, thread.dateline AS dateline, forum.title AS ftitle, thread.forumid
FROM " . TABLE_PREFIX . "thread thread LEFT JOIN " . TABLE_PREFIX . "forum forum ON thread.forumid= forum.forumid
WHERE thread.sticky=0 AND thread.visible=1
ORDER BY dateline DESC
LIMIT 30

and lastl but not least: thank you Logician for this.
It?s so versatile and such a lot of fun to play around with. :)

Logician 08-26-2008 04:32 PM

Quote:

Originally Posted by siddal (Post 1607089)
Firstly,
I?m trying to make a page with the last 30 threads showing forum-thread-user-date and succeeded. Almost.
The problem arises when I click on the forum name rather than the specific thread and I get
directed to the same forum (forum id7) every time. I?ve read through the posts on many versions of the mod and find nothing that resembles this. I should be grateful for any ideas/help.

Code:

SELECT thread.threadid AS threadid, thread.title AS title, thread.postusername AS postusername, thread.postuserid AS postuserid, thread.dateline AS dateline, forum.title AS ftitle, thread.forumid
FROM " . TABLE_PREFIX . "thread thread LEFT JOIN " . TABLE_PREFIX . "forum forum ON thread.forumid= forum.forumid
WHERE thread.sticky=0 AND thread.visible=1
ORDER BY dateline DESC
LIMIT 30

and lastl but not least: thank you Logician for this.
It?s so versatile and such a lot of fun to play around with. :)

What's your query result row? If you use $WQfield[forumid] there, it should work fine.

siddal 08-27-2008 08:49 AM

Thank you for your quick reply, Logician.

Code:

<tr align="center">
 <td class="$alternate" align="left" WIDTH="25%" VALIGN="TOP"><div class="normalfont"><a href='forumdisplay.php?$session[sessionurl]t=$WQfield[forumid]'>$WQfield[ftitle]</a></div></td>
 <td class="$alternate" align="left"  WIDTH="50%" VALIGN="TOP"><div class="normalfont"><a href='showthread.php?$session[sessionurl]t=$WQfield[threadid]'>$WQfield[title]</a></div></td>
 <td class="$alternate" WIDTH="10%" VALIGN="TOP"><div class="normalfont"><a href='member.php?$session[sessionurl]u=$WQfield[postuserid]'>$WQfield[postusername]</a></div></td>
 <td class="$alternate" WIDTH="15%" VALIGN="TOP"><div style="font-size: 8pt; line-height: 10px;">$WQfield[dateline]</div></td>
</tr>

This is my query result row showing the $WQfield[forumid] but still I?m being directed to the same forum whichever forum I click on..

Interestingly, when I click a forum from the forum/index.php page I get this:
http://mysite/forum/forumdisplay.php?f=6

but when I click the same forum from the query page I get this:
http://mysite/forum/forumdisplay.php?t=6

Only the tiniest difference but enough to fool me, I?m afraid. :confused:

Logician 08-27-2008 09:12 AM

Quote:

Originally Posted by siddal (Post 1608053)
Thank you for your quick reply, Logician.

Code:

<tr align="center">
 <td class="$alternate" align="left" WIDTH="25%" VALIGN="TOP"><div class="normalfont"><a href='forumdisplay.php?$session[sessionurl]t=$WQfield[forumid]'>$WQfield[ftitle]</a></div></td>
 <td class="$alternate" align="left"  WIDTH="50%" VALIGN="TOP"><div class="normalfont"><a href='showthread.php?$session[sessionurl]t=$WQfield[threadid]'>$WQfield[title]</a></div></td>
 <td class="$alternate" WIDTH="10%" VALIGN="TOP"><div class="normalfont"><a href='member.php?$session[sessionurl]u=$WQfield[postuserid]'>$WQfield[postusername]</a></div></td>
 <td class="$alternate" WIDTH="15%" VALIGN="TOP"><div style="font-size: 8pt; line-height: 10px;">$WQfield[dateline]</div></td>
</tr>

This is my query result row showing the $WQfield[forumid] but still I?m being directed to the same forum whichever forum I click on..

Interestingly, when I click a forum from the forum/index.php page I get this:
http://mysite/forum/forumdisplay.php?f=6

but when I click the same forum from the query page I get this:
http://mysite/forum/forumdisplay.php?t=6

Only the tiniest difference but enough to fool me, I?m afraid. :confused:

Actually you already found why: forumdisplay.php should take f parameter, not t parameter, so if you fix this in your query you are good to go:

HTML Code:

<a href='forumdisplay.php?$session[sessionurl]f=$WQfield[forumid]'>$WQfield[ftitle]</a>

siddal 08-27-2008 10:51 AM

Fixed! :)
Thank you Logician for your prompt help and this terrific piece of work.
I?ve sent a small donation via the template in my acp.

ArnyVee 08-29-2008 11:56 AM

Edited: Thanks Logician!

Logician 08-29-2008 12:06 PM

Quote:

Originally Posted by ArnyVee (Post 1609821)
Logician (or anyone else that might know),

I just started playing with the web templates and decided to take a free template from the web, get the html and paste it into the admin description field for this mod. It doesn't show up correctly though at this point.

Here's what I entered....

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Site Name: Page Title</title>
<meta http-equiv="content-language" content="en" />
<meta name="Keywords" content="your,keywords,here" />
<meta name="Description" content="Your short description here" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="robots" content="index,follow" />
<meta name="rating" content="general" />
<meta name="author" content="you@you.com" />
<meta name="copyright" content="Copyright ? 2006" />
<link href="images/favicon.gif" rel="SHORTCUT ICON" />
<link rel="alternate" type="application/rss+xml" title="Feed Title" href="rss.xml" />
<style type="text/css">
body {margin:0; padding:0; text-align:left; font-size:12px; font-family:Arial, Helvetica, sans-serif; background:#333; color:#fff;}
table {width:100%; height:100%;}
#lcol img, #ccol img, #rcol img {margin:2px; float:right;}
h1,h2,h3,h4,h5,h6 {padding:0;margin:2px; font-family:Verdana,Arial,Helvetica,sans-serif}
h1 {font-size:1.75em; border-bottom:1px dotted #009900;}
h2 {font-size:1.5em; border-bottom:1px dotted #009900;}
h3 {font-size:1.25em; border-bottom:1px dotted #009900;}
ul {margin:0;padding-left:12px;list-style:square;color:#009900}
li {margin:2px 0 2px 10px}
a {background:inherit; color:#009900; text-decoration:none; font-weight:bold;}
a:hover {background:inherit; color:#00FF00; text-decoration:none; border-bottom:1px solid #00FF00; font-weight:bold;}
#wrapper {border:2px solid #009900;}
#lborder {width:14px; background-image:url(images/lborder.jpg); background-repeat:repeat-y;}
#navbar, #footer {background:inherit; color:#009900; padding:5px; background-image:url(images/hfbak.jpg); background-repeat:repeat-x; background-position:top center;}
#navlinks {text-align:left; float:left; width:75%;}
#search {text-align:right; width:25%; float:right;}
#logo, #hdeco {border-bottom:1px solid #777; border-top:1px solid #999; height:150px; background-image:url(images/headbak.jpg); background-repeat:repeat-x;}
#logo {text-align:left;}
#hdeco {text-align:right;}
#main {border-left:2px solid #009900; border-right:2px solid #009900; background:#000;}
#lcol, #ccol, #rcol {width:33%; background-image:url(images/cback.jpg); background-repeat:no-repeat; background-position:bottom right; padding:5px; background-color:#333;}
/* If you want to add a background hover effect to the left, center and right columns, uncomment the following line */
/* #lcol:hover, #ccol:hover, #rcol:hover {width:33%; background-image:url(images/cbackhover.jpg); background-repeat:no-repeat; background-position:bottom right; padding:5px; background-color:#5C5C5C;}*/
#footer {text-align:center; border-top:1px solid #999; background-color:inherit; color:#999999;}
#rborder {width:14px; background-image:url(images/rborder.jpg); background-repeat:repeat-y;}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" id="wrapper" summary="Creates the background effects">
  <tr>
    <td id="lborder"></td>
    <td id="main"><table cellpadding="0" cellspacing="0" summary="Main body effects">
        <tr>
          <td colspan="3" id="navbar"><div id="navlinks"><a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a>&nbsp;|&nbsp;<a href="#">Your Link</a></div>
            <div id="search">
              <form style="margin: 0px;" action="/search.php" method="get">
                <input type="text" name="query" size="14" />
                <input type="hidden" name="action" value="results" />
                <input type="submit" value="Search" />
              </form>
            </div></td>
        </tr>
        <tr>
          <td id="logo" colspan="2"><img src="images/logo.jpg" alt="" /></td>
          <td id="hdeco"><img src="images/headr.jpg" alt="" /></td>
        </tr>
        <tr>
          <td colspan="3"><table width="100%" cellpadding="5" cellspacing="5" summary="Main content layout">
              <tr>
                <td id="lcol"><h1>The WDBoards</h1><img src="images/yourimage.jpg" alt="" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper <a href="#">suscipit</a> lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio <a href="#">dignissim</a> qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.<h2>Sub-Section Title</h2><ul><li>Bullet List Item 1</li><li><a href="#">Bullet List Item 2</a></li>
                <li>Bullet List Item 3</li><li><a href="#">Bullet List Item 5</a></li>
                <li>Bullet List Item 6</li><li><a href="#">Bullet List Item 7</a></li>
                <li>Bullet List Item 8</li><li><a href="#">Bullet List Item 9</a></li>
                <li>Bullet List Item 10</li></ul></td>
                <td id="ccol"><h1>The WDBuddies</h1><img src="images/yourimage.jpg" alt="" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper <a href="#">suscipit</a> lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio <a href="#">dignissim</a> qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.<h2>Sub-Section Title</h2><ul><li>Bullet List Item 1</li><li><a href="#">Bullet List Item 2</a></li>
                <li>Bullet List Item 3</li><li><a href="#">Bullet List Item 5</a></li>
                <li>Bullet List Item 6</li><li><a href="#">Bullet List Item 7</a></li>
                <li>Bullet List Item 8</li><li><a href="#">Bullet List Item 9</a></li>
                <li>Bullet List Item 10</li></ul></td>
                <td id="rcol"><h1>WDBroadcasts</h1><img src="images/yourimage.jpg" alt="" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper <a href="#">suscipit</a> lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio <a href="#">dignissim</a> qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.<h2>Sub-Section Title</h2><ul><li>Bullet List Item 1</li><li><a href="#">Bullet List Item 2</a></li>
                <li>Bullet List Item 3</li><li><a href="#">WDBRadio 5</a></li>
                <li>Bullet List Item 6</li><li><a href="#">WDBPodcast 7</a></li>
                <li>Bullet List Item 8</li><li><a href="#">Bullet List Item 9</a></li>
                <li>Bullet List Item 10</li></ul></td>
            </table></td>
        </tr>
        <tr>
          <td id="footer" colspan="3">Copyright &copy; 2008 W.D.B. Enterprises LLC | All Rights Reserved | Design by: <a href="http://www.waltdisneyboards.com/" target="_blank" title="AV">AV</a></td>
        </tr>
      </table></td>
    <td id="rborder"></td>
  </tr>
</table>
</body>
</html>
<!--
Design by AV: http://www.waltdisneyboards.com/
-->

Here's how it shows.... http://www.waltdisneyboards.com/view.php?pg=wdbhub and the attachment is how it should show.

Seems to have a huge space at the top (is this because a graphic is missing or am I doing something wrong?) and things shifted around just a bit.

Can anyone lend a hand to see if what I can do to fix it?

Thanks!

If you make it a "standalone" webtemplate which does NOT use a theme, it will show up fine but without your vb header/footer. (Also remember to make image URLs full urls or move images to your server otherwise images will be broken as source code can't find them in your server).

If you want to insert it inside a webtemplate theme which will display it between your header/footer you can't paste it as it is, you have to edit it to fit to your style. (which should require HTML knowledge).

ArnyVee 08-29-2008 12:15 PM

Logician, how do I make it a 'standalone' webtemplate?

Edited: I guess I would simply select "no parent template", is that right?

I was originally going to keep some elements of the forums, but I think for this particular one, I just want to use a full template that I find.

Logician 08-29-2008 12:28 PM

Quote:

Originally Posted by ArnyVee (Post 1609836)
Logician, how do I make it a 'standalone' webtemplate?

Edited: I guess I would simply select "no parent template", is that right?

right


All times are GMT. The time now is 09:50 PM.

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.01746 seconds
  • Memory Usage 1,808KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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