vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Welcome Panel for 3.8? (https://vborg.vbsupport.ru/showthread.php?t=203155)

Blue91 01-26-2009 02:55 PM

Welcome Panel for 3.8?
 
1 Attachment(s)
I have vb3.8. I am using this welcome panel, made for VB 3.5... (link)

It works fine on my forums index (first screen shot) and doesn't show on any subsequent forum pages, which is the intent (and good for me).

I use VBA for my home page. Currently, the welcome panel does not show on the vba homepage. It shows the "default" panel. (second screen shot)

I've posted in the original thread linked above and on the vba forums and no one can tell me how to solve my inquiry.

Two questions:

A) Can someone tell me how to get the welcome panel linked above to show on my vbA home page also?

and/or

B) Can someone update this hack for VB 3.8 and have it work on forums index and vba index?

It'd be mucho appreciated.

glennybee 01-26-2009 03:03 PM

I'm not sure how the code should be structured but here goes...

Open the xml product with your favourite editor.

Look for the following line:

Code:

if (THIS_SCRIPT == "index")
This means the plugin will only show on pages that are index pages, i.e. forumhome. You want it to show on 'adv_index' too. This is where I'm not sure of the code structure but try replacing it with something like this:

Code:

if (THIS_SCRIPT == "index") AND (THIS_SCRIPT == "adv_index")
Then reimport the new product overwritting the old one.

Like I said, not even sure if this will work but give it a go anyway. Maybe someone who knows what they're doing with the code will be able to confirm or deny.

Blue91 01-26-2009 03:13 PM

Thanks for the attempt but that didn't work. I added what you said and it didn't add it to the vbA page. On the forum index page, it removed the avatar image and the actual data from the new posts, new threads, and other statistics categories.

*shrug*

glennybee 01-26-2009 04:33 PM

Maybe ask on the vbadvanced website.

Blue91 01-26-2009 05:59 PM

I have. Only one person has tried to help, unsuccessfully, thusfar. :(

javolin14 01-26-2009 06:17 PM

try and go into the VBadvanced CMS admin center, add module for center, make it able to recieve php and input the vb code for the welcome mod. ie $nameofwelcomemod

If that doesn't work try searching the vba block code they use to incorperate the forum stats, and use that same format however use the welcome mod code.

Blue91 01-26-2009 07:02 PM

Well, that would just create another vbA module. What I want to do is put it above the navbar like it is on the forums homepage. This is so I can turn off the welcome block on the vba page. Right now, the "stock" vb breadcrumb panel thing is above the navbar, with my username, last time I visitied, and notice of any PMs. Then, I have the same info pretty much in the welcome block in the center of the vba portion. I'd rather the welcome panel above the navbar look the same as on the vb forums index so I can just remove the welcome module all together from the vba portion of the page. Right now, the info is redundant.

I suck at coding so I'm unsure why some mods/hacks work on both forum and vba pages, while some work on forums but don't work on vba. This is similar to the Automatic UserCP Navbar Menu that I just installed. People are having the same issues... the hack works on the forum pages but not on the vba page.

javolin14 01-26-2009 07:47 PM

The reason is, the mods created are modifying the style templates in the whole style, and vba is being modified as well. What you need to do is go to the template for the welcome mod, take that code, and apply it to the vba_portal template and input the code between;

$header
&
$navbar

Then save.

Blue91 01-26-2009 10:21 PM

1 Attachment(s)
That didn't work either. I took all of the code from my navbar template (where the welcome panel mod is) and pasted it where you said in the adv_portal template between the $header and $navbar text. All it got me was a second "stock" welcome panel and navbar links. See screenshot below. I've since reverted it.

Here is what I don't understand. The adv_portal template calls for $navbar. Well, my navbar template has everything I want to see. WHY isn't this what shows on the vbA page? It's as if the adv_portal template is pulling the navbar template from somewhere else instead of pulling the navbar template from within the same style.

I've made numerous changes to my navbar template. Half of them show on the vbA site home page and half of them don't. Example... my dynamic Forums / Home Page link shows correctly. My "Better" New Posts show correctly. My "My Threads from Past Month" shows (under my quick links menu).

However, my Welcome Panel doesn't show and my UserCP dropdown menu doesn't show even though the codes for these are in the same navbar template as the others that I listed above. Is it because they might be pulling info from templates or hooks or something like that? I'm not familiar enough with that stuff yet to know what's causing some to work and some not to work.

Hopefully I'm being clear enough with my descriptions.

Thanks.

javolin14 01-26-2009 11:02 PM

if you want i could look at it for you, upload your navbar template, and your vba_portal file to your ftp and give me the link and i'll look at the files for you

Blue91 01-27-2009 02:03 AM

I can email you each one in a txt file. That'd be easier for me than setting up my ftp. PM your email addy if that'll work.

Thanks.

--------------- Added [DATE]1233073304[/DATE] at [TIME]1233073304[/TIME] ---------------

Email sent.

Blue91 01-28-2009 03:57 PM

Have you had a chance to look further into this yet?

javolin14 01-29-2009 05:42 PM

sorry for the delay i'm actually not at home to where i can look at it further. I looked at it a little bit, and was able to get it to show up on the vba page however the information that has to do with
Recent Posts:
Recent Threads:
etc. Is not showing up due to the vb code not working in an outside page. Once i'm back home I can see about figuring it further. I should be back home on sunday evening.

For now though if you would like to have it show up in your vba page take the navbar template code, remove the VERY TOP <if> code and the end </if> after <!----Breadcrumbs and paste it between the $header & $navbar code. It should show up.

I think the reason it doesn't show the recents is due to the plugin not being setup for the vba home page, but as i said i'll look more into it sunday evening.

Vaupell 01-30-2009 10:21 AM

post the link you have to the vba forum cant find your post there.. ??
was thinking why dont you use the standard welcome panel from vba
and intergrate your pages with costum module content = vba with forum in middle and welcome bar on top.

Blue91 01-30-2009 02:20 PM

Javolin, no problem. Thanks.

Vaupell. One reason I don't do that... I don't know how, haha. The second is that I like the Hack Welcome Panel (being discussed here) better than the "stock" vBa welcome panel. The third, I only want the welcome panel on my forums index and the home index. I don't want it anywhere else. Again, I'm not sure how I'd do that using the method you stated. I'd take any help and lessons you can provide though!

BTW, the link to the vBa forum thread is here.

Vaupell 01-30-2009 04:37 PM

Responded with vBa support and instructions.

And i know you prefer that modification, but im afraid
gonna need some work to make it work on newer boards.
so its really up to the dev to remake/update it or someone else
to pickup a new mod and redo it.

And to make it show on your vBa front page.. hmm think you have to
make it into costum content, page and add it as a module to your frontpage.
can be tricky with advanced mods im afraid.

Blue91 01-31-2009 01:28 PM

So, back to option B in my original post.

Can someone develop this welcome panel mod for use on VB 3.8.1 forum index page and vBa home page?

Thanks,

Blue91 02-25-2009 06:50 PM

No updates eh? :(

DarkGizmo 05-17-2010 04:09 AM

I'd also like a welcome panel mod for 3.8! :)


All times are GMT. The time now is 05:23 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.01124 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete