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)

GoTTi 03-07-2009 09:44 PM

nevermind i think i goes it.

i found this code @ http://www.w3schools.com/tags/att_iframe_height.asp

Code:


<iframe src ="SITE" width="200" height="200">
<p>Your browser does not support iframes.</p>
</iframe>

and its loading fine. i change the first 200 to 100% and made the wnd 200 into 1000 and its loading ok

Tomale 03-13-2009 12:56 PM

If my original page (passing variables by URL) is:

http://www.domain.com/page.php?var1=value&var2=value2

what will the WebTemplates URL be?

Logician 03-14-2009 03:25 PM

Quote:

Originally Posted by Tomale (Post 1767182)
If my original page (passing variables by URL) is:

http://www.domain.com/page.php?var1=value&var2=value2

what will the WebTemplates URL be?

http://www.domain.com/view.php?do=we...ue&var2=value2

Ohiosweetheart 03-18-2009 01:06 AM

Logician, you must have missed my post on the last page.

Quote:

Originally Posted by Ohiosweetheart (Post 1756706)
Logician, are there any plans in the future to make this valid xhtml?

Thanks :)

dartho 03-18-2009 03:03 AM

I modified the 'Themes' myself to make the validate at http://validator.w3.org/

Here's mine. The only changes are those required to make them validate - layout etc should be identical

Default Basic Theme
HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] $WT_PageName</title>
$headinclude
</head>
<body>
$header
$navbar
$nowbrowsing
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td valign="top">
                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
                                <tr>
                                        <td class="tcat" align="left">
                                                &raquo; $WT_PageName
                                        </td>
                                </tr>
                                <tr>
                                        <td class="alt1" align="center">
                                                <div class="normalfont"><h2> $WT_PageName</h2></div>
                                        </td>
                                </tr>
                                <tr>
                                        <td class="alt2" align="left">
                                                <div class="normalfont">
                                                        $includedtemplate
                                                </div>
                                        </td>
                                </tr>
                                <tr>
                                        <td class="thead" align="left">Page
                                                Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
                                                at $WT[lastvisitdate]. $WT_Editor_link<br />
                                                Page Created at <b>$creationdate</b>, Last Modified
                                                : <b>$lasteditdate</b>.
                                        </td>
                                </tr>
                        </table>
                </td>
        </tr>
</table>

$footer

</body>
</html>


Standard Error Theme
HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <title>$pagetitle</title>
$headinclude
$headinsert
</head>
<body>
$header
$navbar
$nowbrowsing
<br />


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
        <td class="tcat">&raquo; $WT_PageName</td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
       
                $includedtemplate
               
                </div>
        </div>
                </td>
</tr>
</table>

<br />

<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
        <td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->

<br />
<br />

$footer
</body>
</html>

Two Column Theme

HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] $WT_PageName</title>
$headinclude
</head>
<body>
$header
$navbar
$nowbrowsing
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td width="225" valign="top">
                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
                                <tr>
                                        <td class="tcat" align="center">Stats</td>
                                </tr>
                                <tr>
                                        <td class="alt1">
                                                <div class="smallfont">
                                                        Member count : <b>$numbermembers</b>,<br />
                                                        Thread Count: <b>$totalthreads</b>,<br />
                                                        Post Count : <b>$totalposts</b><br />
                                                        <br />
                                                        Welcome to our newest member <a href='member.php?$session[sessionurl]u=$newuserid'>$newusername</a>
                                                </div>
                                        </td>
                                </tr>
                        </table>
                        $WT_Login               
                        <br />
                        <br />
                </td>
                <td width="20">
                        <img src="$vboptions[cleargifurl]" width="20" height="1" alt="spacer" />
                </td>
                <td valign="top">
                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
                                <tr>
                                        <td class="tcat" align="left">
                                                &raquo; $WT_PageName
                                        </td>
                                </tr>
                                <tr>
                                        <td class="alt2" align="left">
                                                <div class="normalfont">
                                                        $includedtemplate
                                                </div>
                                        </td>
                                </tr>
                                <tr>
                                        <td class="thead" align="left">
                                                Page Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname] at $WT[lastvisitdate]. $WT_Editor_link<br />
                                                Page Created at <b>$creationdate</b>, Last Modified : <b>$lasteditdate</b>.
                                        </td>
                                </tr>
                        </table>
                </td>
        </tr>
</table>
$footer
</body>
</html>

Site Information Pages Template
HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title> $WT_PageName</title>
$headinclude
</head>
<body>
$header
$navbar
<h2 align="center">$WT_PageName </h2>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td width="225" valign="top">
                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
                                <tr>
                                        <td class="tcat" align="center">
                                                Site Help Pages
                                        </td>
                                </tr>
                                <tr>
                                        <td class="alt2" height="400" valign="top">
                                                <div class="smallfont">
                                                        $WQ_siteinformationitems
                                                </div>
                                        </td>
                                </tr>
                        </table>
                </td>
                <td width="10">
                        <img src="$vboptions[cleargifurl]" width="10" height="1" name="image" alt="Spacer" />
                </td>
                <td valign="top">
                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
                                <tr>
                                        <td class="alt1" align="left" height="400" valign="top">
                                                <div class="normalfont">
                                                        $includedtemplate
                                                </div>
                                        </td>
                                </tr>
                                <tr>
                                        <td class="alt1" >
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                                <td align="left" nowrap="nowrap">
                                                                        <div class="smallfont">
                                                                                <a href='sendmessage.php'>Still Have A Question?</a>
                                                                        </div>
                                                                </td>
                                                                <td align="right">
                                                                        <div class="smallfont"><b>$count</b><i> times visited.
                                                                                <if condition="$bbuserinfo[usergroupid]==6"><br />
                                                                                        Last Visitor was $WT[lastvisitorname] at $WT[lastvisitdate].
                                                                                        $WT_Editor_link
                                                                                </if></i>
                                                                        </div>
                                                                </td>
                                                        </tr>
                                                </table>
                                        </td>
                                </tr>
                        </table>
                </td>
        </tr>
</table>
<br />
<if condition="$bbuserinfo[usergroupid]==6">$nowbrowsing</if>
$footer
</body>
</html>


Logician 03-18-2009 08:01 AM

Quote:

Originally Posted by Ohiosweetheart (Post 1770838)
Logician, you must have missed my post on the last page.



Thanks :)

Frankly speaking, my experise is coding and I'm not very good at designing, nor with HTML. So it is why my hacks in general might not be in perfect xhtml (or artistic web design). :) Sorry about it and thanks so much to dartho sharing his corrected syntax code!

dartho 03-18-2009 08:46 AM

"No one becomes perfect, but some become great."

Ohiosweetheart 03-23-2009 02:20 PM

Thanks so much for your honesty Logician, that's why I like you :)

dartho, I replaced my template content with yours above, and it worked great, except that I'm still having a table issue.


Another problem is Logician's footer info.
Quote:

Powered by: vBulletin Version 3.8.0 & Logician's WebTemplates v.3.7.00
The & of course does not validate, but I can't find where to change it.

subvertbeats 03-23-2009 04:07 PM

Hi Logician

This is a truly excellent mod!

I have very quickly built a newly redesigned site that I was going to do in Xoops.

This new solution is better is so many ways.

I have 2 questions for you about issues Im still struggling with.

This new site I have is a subsite of the main forums, but uses a custom look and feel (done entirely though WebTemplates). So for example the forum nav bar is not visible, nor the footer bar, and the site uses a different colour theme.

Questions:

- How can I integrate the forum registration page into my new WebTemplates site?
- How can I integrate the forum login page into the site ? (ive tried using the Deluxe login on non VB pages: https://vborg.vbsupport.ru/showthrea...ghlight=deluxe but have not been sucessful)

Of course I want to do these things within the look and feel of the WebTemplates site - I dont want to colors, headers/footers etc of the standard forum pages.

Any ideas?

Logician 03-23-2009 06:12 PM

Quote:

Originally Posted by subvertbeats (Post 1775116)
- How can I integrate the forum registration page into my new WebTemplates site?

This does not sound very easy. If you are determined to try my suggestion would be creating a new vb style with your wemplate colors/header/footer etc., then hack register.php to use this style id forcefully and then run it inside a wemplate with a iframe. Not very sure if this will work but sounds likely. :)

Quote:

Originally Posted by subvertbeats (Post 1775116)
- How can I integrate the forum login page into the site ? (ive tried using the Deluxe login on non VB pages: https://vborg.vbsupport.ru/showthrea...ghlight=deluxe but have not been sucessful)

What do you mean? Put login form into your wt pages? Just put $WT_Login in anywhere you like in your webtemplates (or webtemplate themes) and it will automatically display the login form if user is not logged in.

subvertbeats 03-23-2009 11:05 PM

Logician

Thanks for your prompt reply, its really appreciated.
ill look into the registration page.

Re: login form - thanks - I embarrassingly missed that in the doc.


Also, Im not sure if your aware of the Easy Forms mod (https://vborg.vbsupport.ru/showthread.php?t=201097) ?

Have you had any experience with showing these forms in a WT site?

Logician 03-24-2009 05:27 AM

Quote:

Originally Posted by subvertbeats (Post 1775406)
Logician

Thanks for your prompt reply, its really appreciated.
ill look into the registration page.

Re: login form - thanks - I embarrassingly missed that in the doc.


Also, Im not sure if your aware of the Easy Forms mod (https://vborg.vbsupport.ru/showthread.php?t=201097) ?

Have you had any experience with showing these forms in a WT site?

I don't have any experience with this hack but I'd think including it in a wt via iframe should be possible.

subvertbeats 03-24-2009 10:30 AM

Excellent suggestion thanks Logician - have it working well....just a couple of challenges left to overcome

- how to put a logout link in the userinfo panel inserted by $WT_Login

- need the Easy Forms mod to be able to choose a style per form - then I could create a style with the correct colours, no header etc (at the moment im wrapping the vB header, footer and navbar templates with a conditional to detect this page)

- registration form redirect back to this site (but only when called from this site)

dartho 03-25-2009 12:20 PM

Quote:

Originally Posted by Ohiosweetheart (Post 1775039)
dartho, I replaced my template content with yours above, and it worked great, except that I'm still having a table issue.

The biggest issue I have with tables is with <THEAD> and <TBODY> tags. Rather than work them out I just removed them from the temaplates I posted earlier (they're really only useful for CSS declarations). If you do use them within your web templates, having one without the other may cause a validation error? (I'm guessing here :) )

TheLastSuperman 03-25-2009 02:46 PM

Logician... if you have time could you reccomend how to remove the navbar links in webtemplates.... could I just edit the installer files or am I thinking to simple?

Reason: I moved my navbar from navbar template to header template for aesthetic reasons and to place 32 x 32 icons in front of each (it looks nice :D) but it still tends to add in the extra options like Blogs etc in the header template even though in my forums they are not there but only in a webstemplate? I cannot code in the images unless I go into all those mods and try to remove it from each when I would simply like to remove the display of the navbar links in webtemplates.

If it's a simple fix please post, if it's not and your busy just point me in the right direction perhaps?

Thanks!!

3.8.1

S-MAN

Logician 03-25-2009 08:19 PM

Quote:

Originally Posted by TheLastSuperman (Post 1776713)
Logician... if you have time could you reccomend how to remove the navbar links in webtemplates.... could I just edit the installer files or am I thinking to simple?

Reason: I moved my navbar from navbar template to header template for aesthetic reasons and to place 32 x 32 icons in front of each (it looks nice :D) but it still tends to add in the extra options like Blogs etc in the header template even though in my forums they are not there but only in a webstemplate? I cannot code in the images unless I go into all those mods and try to remove it from each when I would simply like to remove the display of the navbar links in webtemplates.

If it's a simple fix please post, if it's not and your busy just point me in the right direction perhaps?

Thanks!!

3.8.1

S-MAN

You can just edit the theme webtemplate you are using and remove $navbar part. :)

Logician 03-25-2009 08:20 PM

Quote:

Originally Posted by subvertbeats (Post 1775703)
Excellent suggestion thanks Logician - have it working well....just a couple of challenges left to overcome

- how to put a logout link in the userinfo panel inserted by $WT_Login

Don't you have one when you are logged in?

mmoore5553 03-25-2009 09:13 PM

Just a thought. I would go into the webtemplates and then the themes at the bottom. Just click on edit on the one you use and take out $navbar

TheLastSuperman 03-25-2009 10:09 PM

Quote:

Originally Posted by Logician (Post 1776967)
You can just edit the theme webtemplate you are using and remove $navbar part. :)

See Below...

Quote:

Originally Posted by mmoore5553 (Post 1777022)
Just a thought. I would go into the webtemplates and then the themes at the bottom. Just click on edit on the one you use and take out $navbar

Guys, thanks so much for the suggestions and quick replies :D ... THAT would normally work however I should have been more specific when I posted but my lunch break was almost over and the boss is a HAWK lol ;)

I already did that but the style I use has other stuff I would love to have in the navbar... I reworked the code to include the icons and removed a lot of links that were there to streamline it as the style did not look right w/ the nav menu going to the right about half a mile :erm: but if push comes to shove I'll simply redo the whole navbar in another template i.e. the parts I need and make the navbar template itself nearly empty and do what you suggested! There's always more than one way to skin a cat (just a phrase I have 2 & luv em') but I was hoping Logician would have a simpler solution but what you posted is the simplest way and I need to work around it as I decided to slice & dice my navbar.

Thanks to you both but especially you Logician... this is one of my favorite and most useful vb mods! Every site I help out on or admin on has installed it so far and that's 4 and soon to be 5.

S-MAN

TimberFloorAu 03-25-2009 10:39 PM

where it says

example : 32 times visited

Can we amend this to

This page has been visited 32 times

bamfonk 03-25-2009 10:53 PM

**installing***

subvertbeats 03-26-2009 12:46 AM

Quote:

Originally Posted by Logician (Post 1776968)
Don't you have one when you are logged in?

nope....

http://mastering.subvertbeats.com/

This is my WebTemplates_LoginCode vB template:

Code:

<table><tr>
<if condition="$bbuserinfo['userid']">

                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                </div>
                </td>

        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>                        </tr>
                </table>

think its unchanged from installed version?

subvertbeats 03-26-2009 01:02 AM

changing the above code to:

Code:

<table><tr>
<if condition="$bbuserinfo['userid']">

                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                </div>
                </td>
<td class="alt2" valign="bottom">
<div class="smallfont">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a>
</div>
</td>

        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>                        </tr>
                </table>

did the trick

Deepdog009 03-26-2009 03:53 AM

Outstanding work Logician...:up:

bamfonk 03-27-2009 07:29 PM

sweeeet!

i love it!!

Ohiosweetheart 03-27-2009 07:41 PM

This add-on is one of the largest hidden treasures of this community. I'm sure that if everyone knew what all this mod can do, just about everyone would be using it. I use it for all of the extra pages on my site.

Nominated for MOTM - again! :rolleyes:

skogen 04-02-2009 02:56 PM

I have searched but not found anything about attachments.
I know how to show a template that get the last post from forum X but how about including attachments like images

Someone that could help me getting the right SQL-query.

Thanks

/Fredrik

gsmph 04-09-2009 03:37 AM

this is really a nice mod.

i tried to merge it with autoindex but i got problems..

here is the code i use:

PHP Code:







echo "$stylevar[htmldoctype]";
echo 
"<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">";
echo 
"<head>";
echo 
"<title>$vboptions[bbtitle] $WT_PageName</title>";
echo 
"$headinclude";
echo 
"</head>";
echo 
"<body>";
echo 
"$header";
echo 
"$navbar";
echo 
"$nowbrowsing";
echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
echo 
" <tr>";
echo 
"<td valign=\"top\"> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\">";
echo 
"<thead>"
echo 
"    <tr>";
echo 
"        <td class=\"tcat\" align=\"left\">&raquo; $WT_PageName</td>";
echo 
"</tr>";
echo 
" <tr> ";
echo 
"  <td class=\"alt2\" align=\"left\">";
echo 
"<div class=\"normalfont\"> ";
// ============================
// Put Your PHP CODE right after this line

require_once("autoindex.php");
require_once(
"AutoIndex.conf.php");





// ============================
echo "</div> ";
echo 
"</td>";
echo 
"</tr>";
echo 
"<tr> ";
echo 
"<td class=\"thead\" align=\"left\">Page ";
echo 
"      Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname] ";
echo 
"      at $WT[lastvisitdate]$WT_Editor_link<br>";
echo 
"      Page Created at <b>$creationdate</b>, Last Modified ";
echo 
"      : <b>$lasteditdate</b>.</td>";
echo 
" </tr>";
echo 
"</thead>";
echo 
"</table>";
echo 
"</td>";
echo 
"</tr>";
echo 
"</table>";
echo 
"$footer";
echo 
"</body>";
echo 
"</html>"


it works perfect but..

https://vborg.vbsupport.ru/external/2009/04/58.jpg

every time i click the each folder my URL change from view.php?pg=phptest2 to view.php?=dir=x then it redirects to invalid page...

any solution?

Reason why am merging this hack with autoindex to VB is that autoindex has the ability to control speed download and anti-leeching sequence..


thou this is really a great hack i nomionate this hack MOTM
great job Logician

br
gsmph

dartho 04-09-2009 05:16 AM

You may be best off running the autoindex page in an iframe within your web template?

gsmph 04-10-2009 12:37 AM

Quote:

Originally Posted by dartho (Post 1787116)
You may be best off running the autoindex page in an iframe within your web template?

if i use <iframe>link</iframe> syntax then the login inaccess of this hack will be useless because any one who visit the site can give full access to download..

for EX:

http://www.forum.com/vb/view.php?pg=autoindex will open on VB page right..

after that they can access the download section by accessing

http://www.forum.com/vb/autoindex.php direct without login in they can access it.

sorry for my bad english.. i hope you understand..

br
gsmph:erm:

drew82 04-10-2009 07:38 PM

Can someone please help me!?

I have created a homepage using this mod. But now how do I make the homepage act as my my defauly homepage when someone goes to mysite.com. My VB is installed in the root... I tried domain forwarding and that didn't work. There must be a simple way to do this?

MTGDarkness 04-11-2009 12:39 AM

Hi, I need my front page to be at www.mtgdarkness.com and my forums to be at http://forums.mtgdarkness.com; can this CMS manage that? If so, how can I set that up?

gsmph 04-11-2009 01:25 AM

@drew82 and MTGDarkness


PHP Code:





<?php 
ob_start
(); 
header("Location: http://location here where your visitors will land.com"); //without a trailing slash
ob_end_flush(); 
?>

make a clean index.php and put this code inside it. and upload it on your main domain..

ps.
ofcourse edit the red text except the "location: :D

br

gsmph

MTGDarkness 04-11-2009 01:33 AM

But that will just redirect, won't it?

drew82 04-11-2009 02:04 AM

yeah that worked, but now when I click my forum link it just reroutes it to my homepage

I still want to be able to view my forum overview?

can anyone help?

TheLastSuperman 04-11-2009 02:21 AM

Quote:

Originally Posted by drew82 (Post 1788613)
yeah that worked, but now when I click my forum link it just reroutes it to my homepage

I still want to be able to view my forum overview?

can anyone help?

Edit your index.php or index.html and at the VERY top add:

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yoursite.com/the rest of the url from WebTemplates etc">

Then save and that should redirect you, gsmph gave a more forum friendly php way of doing it but the lesser works just as good.

Edit the content="0 to 1 or 2 for seconds IF you want the redirect to take place after 1 or 2 seconds and so on... maybe change your original index into a loading or intro page... perhaps add a splash page etc.

S-MAN

drew82 04-11-2009 02:28 AM

that does the same exact thing

let me try to explain this another way

I want my custom homepage to come up when you go to mysite.com, but I still want access to the forum page

does anyone know how to do this

TheLastSuperman 04-11-2009 02:32 AM

Well then you need to have your redirect via your hosting/cpanel/ whatever verified, it should work w/ the specified URL.

TheLastSuperman 04-11-2009 02:41 AM

Quote:

Originally Posted by drew82 (Post 1788630)
that does the same exact thing

let me try to explain this another way

I want my custom homepage to come up when you go to mysite.com, but I still want access to the forum page

does anyone know how to do this

I think we have lost each other, sounds simple but take it one way and you go another route eh?

So here's what I have so far... (So we ALL can be clear & help you)

1. You created a custom page via WebTemplates
2. You want that custom page to be your new homepage
3. The custom page (I suspect you did it w/ a theme if not and it is in fact an Independent template then simply copy the contents and replace the contents in your original index file and no need for redirect) is not being redirected properly even when you apply a redirect via your hosting panel/cpanel etc.

Is that correct?

drew82 04-11-2009 03:43 AM

i don't want to replace the default homepage with my new custom homepage

after I made a custom homepage called *home I added it to my menu as well as added a menu item called *forums

but I want my landing page *home, but I want to keep access to the forums main page so my members can click *forums and see the overview

I though I can do this by redirecting my domain to www.mysite.com/view.php?pg=home

but this solution is not working


All times are GMT. The time now is 11:12 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.01971 seconds
  • Memory Usage 1,999KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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