vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Owned Forums / Diaries for your members! (https://vborg.vbsupport.ru/showthread.php?t=92546)

webspider 07-23-2005 11:40 AM

Quote:

Originally Posted by Andrew111888
Did you set $prefs['parentid'] to the forum you wanted to be the parent in prefs.php?

You may have done this...

Diaries (category, id 140)
-- Diaries (forum id 141)
---- Diary 1 (subforum of Diaries forum, id 142)
I just did more tests and everytime I add a new forum the parentid gets set to 142. It looks to me like either the pref.php is not being used or you have hard coded 142 into your code.

This is from my pref.php
// Set the ParentID of the forum that your diaries will be a child of

$prefs['parentid'] = 37;

bane1 07-23-2005 01:39 PM

Sounds interesting!!! Anyone have a working example?

Andrew111888 07-23-2005 05:11 PM

@Skyline_GT: I did.

@Hoffi: You're welcome to attempt to implement it :). If you do succeed and release it as an add-on, please tell me so that I can include the add-on link in my readme.html file :).

@webspider: Indeed, when I was testing my code I left 142 hardcoded in queue.php and forgot to updated. I have since updated queue with the proper variable as well as tested it and it appears to be working fine; I have attached queue.php to this post for you to download :). Here's to hoping you have no more bugs from my hack! :P

To everyone that has installed this hack already:

1) Please download queue.php from this post and upload it over your current one to fix a bug.

2) If your logo or navbits icons are not showing up properly, please do this (from the updated readme.html:

To everyone that has yet to install this hack:

Original zip updated :).

webspider 07-24-2005 11:48 AM

Quote:

Originally Posted by bane1
Sounds interesting!!! Anyone have a working example?

No joy for me.

webspider 07-24-2005 11:51 AM

Quote:

Originally Posted by Andrew111888
@Skyline_GT: I did.

@Hoffi: You're welcome to attempt to implement it :). If you do succeed and release it as an add-on, please tell me so that I can include the add-on link in my readme.html file :).

@webspider: Indeed, when I was testing my code I left 142 hardcoded in queue.php and forgot to updated. I have since updated queue with the proper variable as well as tested it and it appears to be working fine; I have attached queue.php to this post for you to download :). Here's to hoping you have no more bugs from my hack! :P

To everyone that has installed this hack already:

1) Please download queue.php from this post and upload it over your current one to fix a bug.

2) If your logo or navbits icons are not showing up properly, please do this (from the updated readme.html:

In Admin CP -> Styles & Templates -> Style Manager -> (desired style) StyleVars, you will need to hardcode the URL for "Title Image" and "Miscellaneous Images Folder". Example: instead of /images/misc it would be http://www.siteurl.com/yourforums/images/misc to make sure your logo and navbit images will work correctly.

To everyone that has yet to install this hack:

Original zip updated :).


I'll give this a try next week when I have more time. I still don't think that using the full URL will solve the path problem but I'll give it a try. Thanks for your effort.

webspider 07-25-2005 03:12 PM

Quote:

Originally Posted by webspider
I'll give this a try next week when I have more time. I still don't think that using the full URL will solve the path problem but I'll give it a try. Thanks for your effort.

I changed my image paths and they now show correctly however the link paths are all still incorrect as stated earlier. If I hard code the index.php, newdiary.php etc with the correct path it works fine. I'm sure there is a var that can be used to correct this for all users.

$navbits = array("/board/diarycp/index.php"

I did a test forum today and now the parentid is correct. THANKS

webspider 07-25-2005 03:20 PM

Found a new bug:-(

When I access editdiary.php I get a blank page, I can not find any errors in my php error.log though.

webspider 07-25-2005 03:30 PM

Do you have any suggestions as to how to link this hack so users can access it?

Andrew111888 07-25-2005 05:03 PM

editdiary.php is blank if you don't specify an action or forumid (http://www.blah.net/forum/diarycp/ed...id=x&do=foobar)

That's why there's index.php :).

I tried to fix the URL error that you needed to hardcode by putting $vboptions['bburl'] in the navbit link, but on my installation that made it http://www.blah.net/forum/http://www...rycp/index.php but I will keep looking for a solution.

Just put a link anywhere on your site to $vboptions[bburl]/diarycp/ and that should work for others to access it.

webspider 07-25-2005 07:08 PM

Quote:

Originally Posted by Andrew111888
I tried to fix the URL error that you needed to hardcode by putting $vboptions['bburl'] in the navbit link, but on my installation that made it http://www.blah.net/forum/http://www...rycp/index.php but I will keep looking for a solution.

You need to define somewhere where the board root is. Changing the $navbits arrayto $navbits = array("index.php" => fixed part of the problem. But the the main nav link does not bring me back to the board root.


All times are GMT. The time now is 08:44 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.01221 seconds
  • Memory Usage 1,746KB
  • 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_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
  • (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