Announcement

Collapse
No announcement yet.

Default Home Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • anthonyparsons
    replied
    Originally posted by popular View Post
    i want my content.php and everything else to be in /forum/ and just the index.php for cms in my root , is that possible?

    ok i figured it out.. but how do i make site.com/forum/ not goto the cms page since the index is pretty much the cms page, do i redirect it? if i deleted the index.php in /forum/ then it would have no place to hold the site.
    Why would you want this? You either follow the instructions within the index.php to have the CMS read at root and then forum at /folder or the whole lot in the specific destination you installed it. If you aren't using / then just redirect via 301 to /folder.

    Leave a comment:


  • popular
    replied
    i want my content.php and everything else to be in /forum/ and just the index.php for cms in my root , is that possible?

    ok i figured it out.. but how do i make site.com/forum/ not goto the cms page since the index is pretty much the cms page, do i redirect it? if i deleted the index.php in /forum/ then it would have no place to hold the site.
    Last edited by popular; Sat 3 Jul '10, 10:20pm.

    Leave a comment:


  • steven s
    replied
    Originally posted by popular View Post
    thanks but isn't vbulletin.com working like that? when u goto www.vbulletin.com/forum/ it seems to work as a forum itself
    Like what?
    The forum and CMS in the same directory? /content.php /forum.php.
    I thought you wanted your content to be in your root directory, public_html/content.php and your forum to be public_html/forum/forum.php?

    Leave a comment:


  • popular
    replied
    thanks but isn't vbulletin.com working like that? when u goto www.vbulletin.com/forum/ it seems to work as a forum itself

    Leave a comment:


  • steven s
    replied
    Originally posted by popular View Post
    sorry to thread jack but would anyone know how to install cms to index page and forum to /forum? my current forum is based around joomla as the index but i want to replace it with vb cms and /forum as the forum page. How would that work out? if i were to move the index.php provided by vbulletin onto my index page to replace jooma then wouldn't i end up not having an index.php for my /forum or if i were to copy it over then i would end up with 2 cms front pages for my forum and index? thanks
    Currently you cannot have your CMS outside of your forum directory. Maybe in 4.1.
    There are workarounds. I'm doing it this way.

    Leave a comment:


  • popular
    replied
    sorry to thread jack but would anyone know how to install cms to index page and forum to /forum? my current forum is based around joomla as the index but i want to replace it with vb cms and /forum as the forum page. How would that work out? if i were to move the index.php provided by vbulletin onto my index page to replace jooma then wouldn't i end up not having an index.php for my /forum or if i were to copy it over then i would end up with 2 cms front pages for my forum and index? thanks

    Leave a comment:


  • anthonyparsons
    replied
    Don't be scared to edit the templates, that is exactly what you need to edit in order to customise the site the right way. If you edited .php files, that would be the wrong way and hinder upgrades. The system has template merge built-in, so new additions, changes, etc, are merged into your template modifications. Yes, the less you make the less chances you have off merging issues, though the merge system will simply tell you all the details for manual changes. It gets the majority right, usually only with one or two templates you may need to make changes manually, ie. remove old code / enter new code. Very efficient though. If you keep all your CSS in additional.css, and don't edit CSS files directly, then you will have little issue.

    Leave a comment:


  • ldove
    replied
    Originally posted by zappaDPJ View Post
    I could be wrong but I think you have to change a template to do it. The way I do it is to edit the header template like so;

    Find: <a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image">

    Replace: <a name="top" href="http://www.yoursite.com" class="logo-image"
    Yea.. that's what I was hoping to avoid.

    Leave a comment:


  • zappaDPJ
    replied
    I could be wrong but I think you have to change a template to do it. The way I do it is to edit the header template like so;

    Find: <a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image">

    Replace: <a name="top" href="http://www.yoursite.com" class="logo-image"

    Leave a comment:


  • ldove
    replied
    Originally posted by anthonyparsons View Post
    You can change the image from the image stylevar, yes. Sorry, my mistake on reading the above with content.php... long day and tired eyes.
    I got the picture changed, I want to change the URL it points to.

    Leave a comment:


  • anthonyparsons
    replied
    You can change the image from the image stylevar, yes. Sorry, my mistake on reading the above with content.php... long day and tired eyes.

    Leave a comment:


  • ldove
    replied
    Originally posted by anthonyparsons View Post
    Hi Lyle,

    content.php IS NOT supposed to be commented out. If it is commented out, then it means it WON'T work. If you wanted to make forum.php the default homepage, it would read like this:

    // content.php

    forum.php

    See how the // is now placed in front of content.php and // removed from forum.php? That would change the CMS from being the homepage to the forum being the new homepage, ie. http://www.yourdomain.com would take you to forum.php instead of the default factory set, content.php.

    To change the logo path you edit the header template, which is called into all the master templates. The line you're looking for is:

    HTML Code:
    <div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
    content.php, as I stated previously, is *NOT* commented out as it was shown in my initial code that I included, and is working fine as shown below.

    Code:
    /**
     * You can choose the default script here.  Uncomment the appropriate line
     * to set the default script.  Note: Only uncomment one of these, you must
     * add // to comment out the script(s) that you DO NOT want to use as your
     * default script.
     *
     * You can choose the default script even if you do not plan to move this
     * file to the root of your website.
     */
    
    /**
     * Use the CMS as the default script:
     */
    
    require('content.php');
    
    
    /**
     * Use the forum as the default script:
     */
    
    // require('forum.php');
    That never changed from day one when I installed it, so I think we beat that dead horse enough.

    The logo link is where i was looking to change merely a stylevar or variable somewhere vs. actually modifying the template. I was aware of where to make the change, I just wanted to do it via the application vs. modifying files.

    Thanks for the help...

    Leave a comment:


  • anthonyparsons
    replied
    Hi Lyle,

    content.php IS NOT supposed to be commented out. If it is commented out, then it means it WON'T work. If you wanted to make forum.php the default homepage, it would read like this:

    // content.php

    forum.php

    See how the // is now placed in front of content.php and // removed from forum.php? That would change the CMS from being the homepage to the forum being the new homepage, ie. http://www.yourdomain.com would take you to forum.php instead of the default factory set, content.php.

    To change the logo path you edit the header template, which is called into all the master templates. The line you're looking for is:

    HTML Code:
    <div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>

    Leave a comment:


  • ldove
    replied
    Originally posted by anthonyparsons View Post
    Not from what you are showing above. You stated it is all default. You need to be as specific as possible with your questions. For example, some people think that clicking on the logo should take them to the homepage, not the forum.php page, so that is a change within another template, etc. Specifics.

    Again, if you edited anything in the index.php from what it is default (as you have copied above), you will break it, as content.php is set to default. Commented lines have // in front of them or areas are commented by enclosing within /* ... */

    As you will notice, content.php has no such commenting around it, hence it is live.
    I don't think you read the code correctly then, because that is the default as it was installed. 'content.php' is not commented out, ie-default. The only issue I'm looking to see now, since that was resolved about going to the homepage, is if a variable is the URL link for the logo by a stylevar or something, or is it a manual change in the template?

    Leave a comment:


  • anthonyparsons
    replied
    Originally posted by ldove View Post
    Hmm.. appears that content.php is commented out already as it states to do.
    Not from what you are showing above. You stated it is all default. You need to be as specific as possible with your questions. For example, some people think that clicking on the logo should take them to the homepage, not the forum.php page, so that is a change within another template, etc. Specifics.

    Again, if you edited anything in the index.php from what it is default (as you have copied above), you will break it, as content.php is set to default. Commented lines have // in front of them or areas are commented by enclosing within /* ... */

    As you will notice, content.php has no such commenting around it, hence it is live.

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X