vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vB Forum Sponsors (https://vborg.vbsupport.ru/showthread.php?t=93648)

Logikos 08-05-2005 06:03 PM

Quote:

Originally Posted by iguanairs
Hello,

Is it possible to make sponsors for Categories? I want to seperate my categories, but when a Forum is placed in a category, it kills the sponsor.

For some reason, they don't seem to get along.

I don't quite understand, care to show me a screenshot?
Quote:

Originally Posted by iguanairs
Hello,

All went well except for one thing. After I installed this, I couldn't get it to work with the existing forums I have. It works great when new forums are added, but doesn't take effect with the other forums. Do we need to re-add all of the forums in order for this to work?

The options are there, I used them, activated them, and saved. Then I looked at the forums and it didn't work. So I went down and rebuilt the forums and then repaired/optimized the tables. Still didn't take effect.

Thats when I tried a new forum. That worked great. So I re-did the steps above again to see if it needed a kick perhaps, and still nothing.

Thanks for creating this. If I need to, I will redo all the forums. There are only 30-40 of them right now, so it won't be too bad. I am going to hold out on that however in case you find a way to force the new addition.

Quote:

Originally Posted by hotrod1
I am having that same problem too with my forum.

Well this was created on a fresh install, let me install this on my live forum, since I have pre exsisting forums all ready. But i've never seen or heard of such a bug.

Rich 08-05-2005 06:16 PM

Hello,

No screenshot required. If I have a forum that has a sponsor, and move it to a Category, it removes the sponsor bit completely. Just picture the "normal" view. Thats what I get.

It has to do with the categories. I installed this on a pre-existing site with forums, and then did a clean install. The categories, for some reason, mess it up.

Categories wouldn't bother me except I want to space everything. I can space the categories, and lose this mod, or use forums and subforums, but no spacing, and use this mod.

My preference, use this mod and space them. lol

Logikos 08-05-2005 06:27 PM

Well depending on the design of your forums you can place this anywhere within the forum. Its a global variable. You can even place it in the postbit if you wanted to. And if you have a banner on forumid 6, then everypost that is in forumid 6 will show the banner.

I can't seem to reproduce the bug you stating about pre existing forums. Keep in mind that your categorys are within the "forumhome_forumbit_level1_nopost" template, and your subforums are within the "forumhome_forumbit_level2_post" template.

Logikos 08-05-2005 06:37 PM

As you can see in my screenshot, everything is working as designed.

My forumhome_forumbit_level1_nopost template code is:
HTML Code:

<tbody>
        <tr>
                <td class="tcat" colspan="2">

                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">4<else />3</if>" valign="middle">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                <if condition="$forum[issponsor] == 1">
                        $vbphrase[sponsored_by] <a href="$forum[sponsor_url]" target="_blank">$forum[sponsor_banner]</a>
                </if>
                </td>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

My forumhome_forumbit_level2_post Template code is:
HTML Code:

<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">

                <if condition="$forum[issponsor] == 1">
                        <div style="float:$stylevar[right]">
                        $vbphrase[sponsored_by] <a href="$forum[sponsor_url]" target="_blank">$forum[sponsor_banner]</a>
                        </div>
                </if>

                <div>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                </div>
                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits


Rich 08-05-2005 07:18 PM

Hello,

I don't know why, but when I copied your code above over the default code I had for those 2 templates, everything started working fine.

Prior to just now, I haden't editted either one of those files. Was I suppose to do that during install? I only editted the forumhome_forumbit_level1_post. With just that edited, that is where I was getting the problem. With your template code above, everything is working.

I don't know, but thank you! This does what I need. Thanks again!

Logikos 08-05-2005 07:24 PM

Glad you got it working :)

Koopa 08-05-2005 07:26 PM

This looks good, will give it a try sometime :)

hotrod1 08-05-2005 08:02 PM

Thanks alot and that worked and I know why there was a problem before. In your readme it says forumhome_forumbit_level1_post when it should be forumhome_forumbit_level1_nopost. Hope that helps and that future installations can be saved from the hassle but it is a great hack now all I need is some supporters willing to donate lol

Logikos 08-05-2005 08:14 PM

Thanks, I didn't relize that. I'll fix now.

Logikos 08-05-2005 08:18 PM

Updated first post with fixed readme.txt :)


All times are GMT. The time now is 11:13 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.01152 seconds
  • Memory Usage 1,767KB
  • 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_html_printable
  • (3)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