vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Forum Intro 1.0.3 (https://vborg.vbsupport.ru/showthread.php?t=133368)

Breathex 11-16-2007 04:13 AM

Quote:

Originally Posted by jaks (Post 1381878)
Sorry people I haven't been around for a while. I got screw by Registerfly and my host at the same time so I lost a buttload of sites and files.




This was not designed for that but you should be able to do that manually by editting your forumhome template at the very top without this hack.

Thanks for the answer jacks, it would be very nice if you put an option for forumhome in the next version.

jaks 11-17-2007 07:43 PM

Quote:

Originally Posted by gforce75 (Post 1381990)
Does this appear always? I mean there are better hacks if this does. Good concept though.

Not sure what you mean. Please explain. Are you talking about per usergroups, only the first forum page or something else?

jaks 11-17-2007 07:56 PM

Quote:

Originally Posted by Breathex (Post 1383546)
Thanks for the answer jacks, it would be very nice if you put an option for forumhome in the next version.

Like I said, this hack is not designed to do that on Forum Home but you can do it manually very easily. Below is an example template that you would add below $navbar in the Forumhome template. It was just a matter of removing the if statements and adding the info you need manually.

Code:

<!-- Begin ForumHome Intro  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
 
   
      <tr>
        <td  class="tcat" border="1" valign="top" colspan="2"><div align="center">Put The Block Title here</div></td>
      </tr>
      <tr>
        <td class="alt1" valign="top">
<img src="Put Image URL Here" alt="Put Image Title Here" border="0" align="left"></td>
<td class="alt1" valign="top"><div align="left">Put your Content Here using HTML</div></td>
      </tr>

</table>
<br>
<!-- / End ForumHome Intro  -->

Obviously it would look the same as in the forums but below is an example from my site.
https://vborg.vbsupport.ru/

John3971 11-21-2007 10:25 AM

i love this mod. thank you.

rpainter 11-21-2007 12:57 PM

Great MOD!!!!

I did add a couple of things though (hope it's OK). Because the AdminCP stuff seemed to be getting lost under some other settings, I edited the xml file with the following code:

Starting at line 22, the first plugin looks like this:

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Forum Intro</title>
            <
hookname>forumadmin_edit_form</hookname>
    <
phpcode><![CDATA[print_yes_no_row($vbphrase['forumintroonoff'], 'forum[forumintroonoff]'$forum['forumintroonoff']);
print_input_row($vbphrase['forumintroname'], 'forum[forumintroname]'$forum['forumintroname']); 
print_textarea_row($vbphrase['forumintrodescr'], 'forum[forumintrodescr]'$forum['forumintrodescr']);]]>
print_input_row($vbphrase['forumintroimage'], 'forum[forumintroimage]'$forum['forumintroimage']);
</
phpcode>
 </
plugin

I changed it just a little to add a Header for the options. Here is the new code:

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Forum Intro</title>
            <
hookname>forumadmin_edit_form</hookname>
            <
phpcode><![CDATA[print_table_header($vbphrase['intro_forum_title']);
print_yes_no_row($vbphrase['forumintroonoff'], 'forum[forumintroonoff]'$forum['forumintroonoff']);
print_input_row($vbphrase['forumintroname'], 'forum[forumintroname]'$forum['forumintroname']); 
print_textarea_row($vbphrase['forumintrodescr'], 'forum[forumintrodescr]'$forum['forumintrodescr']);]]>
print_input_row($vbphrase['forumintroimage'], 'forum[forumintroimage]'$forum['forumintroimage']);
</
phpcode>
 </
plugin

Notice that in the "new" code, there is a new phrase (intro_forum_title). I added this code under the "Forum-Related" phrase type section (under the "Intro_Title" phrase).

PHP Code:

            <phrase name="intro_forum_title" date="1165422620" username="BigPig" version="1.0.3"><![CDATA[Forum Intro]]></phrase

Here is a screenshot of what it looks like:


This is not a major addition, but it does help me sort out all the stuff, and find it easily. If any of you find this useful, feel free to use it.

Again, I hope this is OK with you jaks. If it is not, let me know and I will remove this post.

periphrastic 11-21-2007 02:55 PM

trying to insert the template modification below navbar in forum display...it's just not showing up/"processing" - i open the template after adding the code, and the code is still gone - it's not being recognized

rpainter 11-21-2007 05:04 PM

Quote:

Originally Posted by periphrastic (Post 1386960)
trying to insert the template modification below navbar in forum display...it's just not showing up/"processing" - i open the template after adding the code, and the code is still gone - it's not being recognized

Have you turned it "On" in the forum (AdminCP>Forums & Moderators>Forum Manager>Whatever Forum You Want)?

periphrastic 11-21-2007 06:54 PM

yep i have turned it on

the thing is, when i insert the code into the template and click "save" - i get a blank screen (well, actually, a blank blue screen, that is - which is the color of my forum) - there is no indication the changes have been saved

when i search in my templates for that particular code, it's not even there

so i input it again - click "save" - get the blank screen (with no indication it's been saved) - look for the code in my templates to see if it's there, anyway, and it's not there

i'm inputting the code in the correct template and attempting to save it, but it's not even saving it ?

nectons 11-22-2007 11:47 PM

It is not working or it is unuseless. My opinion is to add a feauture for anyone to try to enter the whole forum without to have to setting it for every single forum. Just my opinion. I clicked install btw.

jaks 11-23-2007 05:51 AM

Quote:

Originally Posted by rpainter (Post 1386876)
Great MOD!!!!

I did add a couple of things though (hope it's OK). Because the AdminCP stuff seemed to be getting lost under some other settings, I edited the xml file with the following code:

Starting at line 22, the first plugin looks like this:

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Forum Intro</title>
            <
hookname>forumadmin_edit_form</hookname>
    <
phpcode><![CDATA[print_yes_no_row($vbphrase['forumintroonoff'], 'forum[forumintroonoff]'$forum['forumintroonoff']);
print_input_row($vbphrase['forumintroname'], 'forum[forumintroname]'$forum['forumintroname']); 
print_textarea_row($vbphrase['forumintrodescr'], 'forum[forumintrodescr]'$forum['forumintrodescr']);]]>
print_input_row($vbphrase['forumintroimage'], 'forum[forumintroimage]'$forum['forumintroimage']);
</
phpcode>
 </
plugin

I changed it just a little to add a Header for the options. Here is the new code:

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Forum Intro</title>
            <
hookname>forumadmin_edit_form</hookname>
            <
phpcode><![CDATA[print_table_header($vbphrase['intro_forum_title']);
print_yes_no_row($vbphrase['forumintroonoff'], 'forum[forumintroonoff]'$forum['forumintroonoff']);
print_input_row($vbphrase['forumintroname'], 'forum[forumintroname]'$forum['forumintroname']); 
print_textarea_row($vbphrase['forumintrodescr'], 'forum[forumintrodescr]'$forum['forumintrodescr']);]]>
print_input_row($vbphrase['forumintroimage'], 'forum[forumintroimage]'$forum['forumintroimage']);
</
phpcode>
 </
plugin

Notice that in the "new" code, there is a new phrase (intro_forum_title). I added this code under the "Forum-Related" phrase type section (under the "Intro_Title" phrase).

PHP Code:

            <phrase name="intro_forum_title" date="1165422620" username="BigPig" version="1.0.3"><![CDATA[Forum Intro]]></phrase

Here is a screenshot of what it looks like:


This is not a major addition, but it does help me sort out all the stuff, and find it easily. If any of you find this useful, feel free to use it.

Again, I hope this is OK with you jaks. If it is not, let me know and I will remove this post.

rpainter, I'm not one of those uptight idiots that doesn't except help..lol Great addition. I will add it to the next release and put your name as a contributor. I think I'll fix up field #4 so people are clear that the image URL goes there.

Anyone else wish to contribute, please feel free.

Jon


All times are GMT. The time now is 06:36 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.01227 seconds
  • Memory Usage 1,806KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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