Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2008, 05:59 AM
Chris11987 Chris11987 is offline
 
Join Date: Jun 2008
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can someone point me towards this mod?

I made a post on vbulletin.com, seen here: http://www.vbulletin.com/forum/showthread.php?t=279567, and was directed to here, but am unable to find the mod mentioned. Does anyone know where I can find this?
Reply With Quote
  #2  
Old 07-23-2008, 06:00 AM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?p=1581370#post1581370" target="_blank">https://vborg.vbsupport.ru/showt...70#post1581370</a>
Reply With Quote
  #3  
Old 07-23-2008, 06:13 AM
Chris11987 Chris11987 is offline
 
Join Date: Jun 2008
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I able to use those custom pages OUTSIDE of the forum directory? Like instead of it being root/forums/blahblahblah, it can be root/folder/file.php?
Reply With Quote
  #4  
Old 07-23-2008, 10:12 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you just need to chdir() into the forum directory before including global.php.
Reply With Quote
  #5  
Old 07-23-2008, 08:06 PM
Chris11987 Chris11987 is offline
 
Join Date: Jun 2008
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you explain that a little better? Sorry, I'm not too experienced with some of this
Reply With Quote
  #6  
Old 07-23-2008, 08:36 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before this line
PHP Code:
require_once('./global.php'); 
add something like this

PHP Code:
chdir('PATHTOFORUM'); 
Where you change PATHTOFORUM to the path to your forum.
Reply With Quote
  #7  
Old 07-23-2008, 09:54 PM
Chris11987 Chris11987 is offline
 
Join Date: Jun 2008
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, I did that, but there's two things:

1) Some of the style doesn't seem to be transferring over. I have my banner, and the positioning all in place, but the table and category css, as well as some others, isn't showing up.

2) The content of the page is dependent on the content I have in place in the template. I need to make a lot of pages (thousands), and I need the content of them to be dependent on what I place in the php files on my server, because I don't want to have to shuffle through thousands of extra templates when I look through a style's template.
Reply With Quote
  #8  
Old 07-23-2008, 09:56 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to go to your style and replace all paths for images with absolute paths...

So instead of having something like
images/yourimage.png
You need to have
http://yoursite.com/forumpath/images/yourimage.png


edit; you lost me on question 2
Reply With Quote
  #9  
Old 07-23-2008, 10:02 PM
Chris11987 Chris11987 is offline
 
Join Date: Jun 2008
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already have absolute paths for all my images in the style. The images are fine, but it's not pulling most of the CSS, like the background color for a table (which is defined by a solid color and not by an image).

For #2: On my custom page that I made, the contents of it (like the text saying "blah blah this is my page, blah blah") is controlled inside the actual template on the style. I want to know how to control the content of the page in a php file. Since I'm gonna have 100's of pages for my main site that I want to use the forums skin, I need them to go into different directories on my site, and not have them all listed in a row in the style's templates.
Reply With Quote
  #10  
Old 07-23-2008, 10:08 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris11987 View Post
I already have absolute paths for all my images in the style. The images are fine, but it's not pulling most of the CSS, like the background color for a table (which is defined by a solid color and not by an image).

For #2: On my custom page that I made, the contents of it (like the text saying "blah blah this is my page, blah blah") is controlled inside the actual template on the style. I want to know how to control the content of the page in a php file. Since I'm gonna have 100's of pages for my main site that I want to use the forums skin, I need them to go into different directories on my site, and not have them all listed in a row in the style's templates.
1. Are you sure your using the css classes that hold those style options when your creating the tables? (tborder, tcat, and etc) Because as long as your setting up the template with the headinclude variable all the css should be there.

2. You can create php pages without creating custom templates to hold the content.. I started out doing it without templates before I learned how to do it with templates.

quick example...
PHP Code:
<?


define('THIS_SCRIPT', 'MAIN_INDEX');
chdir ('forum');
require_once('./global.php');


// Now set up the <head>

echo $stylevar[htmldoctype]."<html dir=\"".$stylevar[textdirection]."\" lang=\"".$stylevar[languagecode]."\">";
echo "<head>".$headinclude."</head>";

//now start with the body......
echo "<body>";
// and include the header and navbar.....
echo $header.$navbar;
?>



THIS IS WHERE YOU PUT YOUR CONTENT

<?
//now include footer template...
echo $footer;
?>
</body>
</html>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 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.12844 seconds
  • Memory Usage 2,281KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete